public static interface CompilerOptions.AliasTransformation
While aliases defined by goog.scope are expected to by only 1 per file, and the only top-level structure in the file, this is not enforced.
Modifier and Type | Method and Description |
---|---|
void |
addAlias(java.lang.String alias,
java.lang.String definition)
Adds an alias definition to the AliasTransformation instance.
|
void addAlias(java.lang.String alias, java.lang.String definition)
Last definition for a given alias is kept if an alias is inserted multiple times (since this is generally the behavior in JavaScript code).
alias
- the name of the alias.definition
- the definition of the alias.Copyright © 2009-2020 Google. All Rights Reserved.