public class AstAnalyzer
extends java.lang.Object
What kind of methods should go here?
Methods that answer questions about some portion of the AST and that may require global
information about the compilation, generally taking at least one Node
as an argument. For
example:
What kind of logic should not go here?
Really simple logic that requires no global information, like finding the parameter list node
of a function, should be in NodeUtil
. Logic that creates new Nodes or modifies the AST
should go in AstFactory
.
Modifier and Type | Method and Description |
---|---|
boolean |
mayHaveSideEffects(Node n)
Returns true if the node which may have side effects when executed.
|
public boolean mayHaveSideEffects(Node n)
Copyright © 2009-2019 Google. All Rights Reserved.