Node createThisAliasReferenceForFunction ( String aliasName , Node functionNode ) { final Node result = IR . name ( aliasName ) ; if ( isAddingTypes ( ) ) { result . setJSType ( getTypeOfThisForFunctionNode ( functionNode ) ) ; } return result ; }
Creates a NAME node having the type of this appropriate for the given function node .