public static interface CompilerOptions.AliasTransformationHandler
Calls to the mutators are expected to resolve very quickly, so implementations should not perform expensive operations in the mutator methods.
Modifier and Type | Method and Description |
---|---|
CompilerOptions.AliasTransformation |
logAliasTransformation(String sourceFile,
SourcePosition<CompilerOptions.AliasTransformation> position)
Builds an AliasTransformation implementation and returns it to the
caller.
|
CompilerOptions.AliasTransformation logAliasTransformation(String sourceFile, SourcePosition<CompilerOptions.AliasTransformation> position)
Callers are allowed to request multiple AliasTransformation instances for the same file, though it is expected that the first and last char values for multiple instances will not overlap.
This method is expected to have a side-effect of storing off the created AliasTransformation, which guarantees that invokers of this interface cannot leak AliasTransformation to this implementation that the implementor did not create
sourceFile
- the source file the aliases re contained in.position
- the region of the source file associated with the
goog.scope call. The item of the SourcePosition is the returned
AliasTransformationCopyright © 2009-2017 Google. All Rights Reserved.