void function ( Node arg0 ) { TypeI loc0 = arg0 . getTypeI ( ) ; if ( loc0 == null ) { return ; } FunctionTypeI loc1 = loc0 . toMaybeFunctionType ( ) ; if ( loc1 != null ) { arg0 . setTypeI ( loc1 . convertMethodToFunction ( ) ) ; } }
creates a new type based on the original function type by adding the original this pointer type to the beginning of the argument type list and replacing the this pointer type with bottom . concode_field_sep AbstractCompiler compiler concode_field_sep boolean isPrototypeMethodDefinition concode_elem_sep void process concode_elem_sep void process concode_elem_sep String getMethodName concode_elem_sep boolean isCall concode_elem_sep void replaceReferencesToThis concode_elem_sep void rewriteDefinition concode_elem_sep void rewriteCallSites concode_elem_sep String getRewrittenMethodName concode_elem_sep boolean isEligibleDefinition concode_elem_sep void rewriteDefinitionIfEligible concode_elem_sep boolean allDefinitionsEquivalent