public class JsTypeLinker extends JsAbstractTextTransformer
Provided JS and Ranges are used to grab new JS type chunks. A RebuildCache is used to cache per type JS, statement ranges and sourcemaps (possibly across compiles) and calculate the set of reachable types. JTypeOracle is used to order linked output.
js, originalStatementRanges, sourceInfoMap, statementRanges
Constructor and Description |
---|
JsTypeLinker(TreeLogger logger,
JsAbstractTextTransformer textTransformer,
List<NamedRange> typeRanges,
NamedRange programTypeRange,
MinimalRebuildCache minimalRebuildCache,
JTypeOracle typeOracle) |
Modifier and Type | Method and Description |
---|---|
void |
exec() |
protected void |
updateSourceInfoMap()
Update the expression ranges in the SourceInfo map after the
transformer has manipulated the statements.
|
addStatement, beginStatement, beginStatements, endStatement, endStatements, getJs, getJsForRange, getSourceInfoMap, getStatementRanges, recomputeJsAndStatementRanges
public JsTypeLinker(TreeLogger logger, JsAbstractTextTransformer textTransformer, List<NamedRange> typeRanges, NamedRange programTypeRange, MinimalRebuildCache minimalRebuildCache, JTypeOracle typeOracle)
public void exec()
exec
in class JsAbstractTextTransformer
protected void updateSourceInfoMap()
JsAbstractTextTransformer
updateSourceInfoMap
in class JsAbstractTextTransformer
Copyright © 2018. All rights reserved.