public class J2clEqualitySameRewriterPass
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AbstractCompiler |
compiler |
Constructor and Description |
---|
J2clEqualitySameRewriterPass() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areNodesEqualForInlining(Node n1,
Node n2)
Are the nodes equal for the purpose of inlining?
If type aware optimizations are on, type equality is checked.
|
protected boolean |
isASTNormalized()
Is the current AST normalized? (e.g.
|
protected void |
report(DiagnosticType diagnostic,
Node n)
Helper method for reporting an error to the compiler when applying a
peephole optimization.
|
protected AbstractCompiler compiler
protected void report(DiagnosticType diagnostic, Node n)
diagnostic
- The error typen
- The node for which the error should be reportedprotected boolean areNodesEqualForInlining(Node n1, Node n2)
protected boolean isASTNormalized()
Copyright © 2009-2017 Google. All Rights Reserved.