src/com/google/javascript/jscomp/TypeCheck.java
/** Main entry point of this phase for testing code. */
Main entry point of this phase for testing code.
Main entry point of this phase for testing code .
public TypedScope processForTesting(Node externsRoot, Node jsRoot) {
    checkState(scopeCreator == null);
    checkState(topScope == null);
    checkState(jsRoot.getParent() != null);
    Node externsAndJsRoot = jsRoot.getParent();
    scopeCreator = new TypedScopeCreator(compiler);
    topScope = scopeCreator.createScope(externsAndJsRoot, null);
    TypeInferencePass inference = new TypeInferencePass(compiler,
        reverseInterpreter, topScope, scopeCreator);
    inference.process(externsRoot, jsRoot);
    process(externsRoot, jsRoot);
    return topScope;
  }
public TypedScope processForTesting ( Node externsRoot , Node jsRoot ) { checkState ( scopeCreator == null ) ; checkState ( topScope == null ) ; checkState ( jsRoot . getParent ( ) != null ) ; Node externsAndJsRoot = jsRoot . getParent ( ) ; scopeCreator = new TypedScopeCreator ( compiler ) ; topScope = scopeCreator . createScope ( externsAndJsRoot , null ) ; TypeInferencePass inference = new TypeInferencePass ( compiler , reverseInterpreter , topScope , scopeCreator ) ; inference . process ( externsRoot , jsRoot ) ; process ( externsRoot , jsRoot ) ; return topScope ; }
Main entry point of this phase for testing code.
Main entry point of this phase for testing code .