code: 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);
    }
docs: Replaces a string literal with a reference to the string's alias variable.