private void replaceStringWithAliasName ( StringOccurrence occurrence , String name , StringInfo info ) { Node nameNode = IR . name ( name ) ; occurrence . parent . replaceChild ( occurrence . node , nameNode ) ; info . isAliased = true ; compiler . reportChangeToEnclosingScope ( nameNode ) ; }
Replaces a string literal with a reference to the string s alias variable .