Search in sources :

Example 1 with ChainableReverseAbstractInterpreter

use of com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter in project closure-compiler by google.

the class Compiler method getReverseAbstractInterpreter.

@Override
public ReverseAbstractInterpreter getReverseAbstractInterpreter() {
    if (abstractInterpreter == null) {
        ChainableReverseAbstractInterpreter interpreter = new SemanticReverseAbstractInterpreter(getTypeRegistry());
        if (options.closurePass) {
            interpreter = new ClosureReverseAbstractInterpreter(getTypeRegistry()).append(interpreter).getFirst();
        }
        abstractInterpreter = interpreter;
    }
    return abstractInterpreter;
}
Also used : ChainableReverseAbstractInterpreter(com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter) SemanticReverseAbstractInterpreter(com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter) ClosureReverseAbstractInterpreter(com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter)

Aggregations

ChainableReverseAbstractInterpreter (com.google.javascript.jscomp.type.ChainableReverseAbstractInterpreter)1 ClosureReverseAbstractInterpreter (com.google.javascript.jscomp.type.ClosureReverseAbstractInterpreter)1 SemanticReverseAbstractInterpreter (com.google.javascript.jscomp.type.SemanticReverseAbstractInterpreter)1