< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java

Print this page

        

*** 301,310 **** --- 301,314 ---- /** The flow analyzer. */ protected Flow flow; + /** The constables analyzer. + */ + protected ConstablesVisitor constablesVisitor; + /** The modules visitor */ protected Modules modules; /** The module finder
*** 413,422 **** --- 417,427 ---- attr = Attr.instance(context); analyzer = Analyzer.instance(context); chk = Check.instance(context); gen = Gen.instance(context); flow = Flow.instance(context); + constablesVisitor = ConstablesVisitor.instance(context); transTypes = TransTypes.instance(context); lower = Lower.instance(context); annotate = Annotate.instance(context); types = Types.instance(context); taskListener = MultiTaskListener.instance(context);
*** 1409,1418 **** --- 1414,1425 ---- if (shouldStop(CompileState.FLOW)) return; analyzer.flush(env); + env.tree = constablesVisitor.analyzeTree(env.tree, env); + results.add(env); } finally { log.useSource(prev); }
< prev index next >