private void changeMethodSignature ( ImmutableSortedMap < Integer , String > argNames , Node paramList ) { ImmutableSortedMap < Integer , String > newParams = argNames . tailMap ( paramList . getChildCount ( ) ) ; for ( String name : newParams . values ( ) ) { paramList . addChildToBack ( IR . name ( name ) . useSourceInfoIfMissingFrom ( paramList ) ) ; } if ( ! newParams . isEmpty ( ) ) { compiler . reportChangeToEnclosingScope ( paramList ) ; } }
Inserts new formal parameters into the method s signature based on the given set of names .