Node createThisForFunction ( Node functionNode ) { final Node result = IR . thisNode ( ) ; if ( isAddingTypes ( ) ) { result . setJSType ( getTypeOfThisForFunctionNode ( functionNode ) ) ; } return result ; }
Creates a THIS node with the correct type for the given function node .