private Node createAssignNode ( Node lhs , Node rhs ) { Node assignNode = IR . assign ( lhs , rhs ) ; if ( shouldAddTypesOnNewAstNodes ) { assignNode . setJSType ( rhs . getJSType ( ) ) ; } return assignNode ; }
Creates an ASSIGN node with type information matching its RHS .