add type information to the expression node.