calculateResolvedType

returns the type associated with the node.