class_body
{ "{"
block_comment "/**\n * Maps a given variable to a collection of references"...
field_declaration (+23 nodes collapsed)
block_comment "/**\n * The stack of basic blocks and scopes the current tr"...
field_declaration (+25 nodes collapsed)
block_comment "/**\n * Source of behavior at various points in the travers"...
field_declaration
modifiers
private "private"
final "final"
type_identifier "Behavior"
variable_declarator
identifier "behavior"
; ";"
block_comment "/**\n * Javascript compiler to use in traversing.\n */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "AbstractCompiler"
variable_declarator
identifier "compiler"
; ";"
block_comment "/**\n * Only collect references for filtered variables.\n "...
field_declaration
modifiers
private "private"
final "final"
generic_type
type_identifier "Predicate"
type_arguments
< "<"
type_identifier "Var"
> ">"
variable_declarator
identifier "varFilter"
; ";"
block_comment "/**\n * Constructor initializes block stack.\n */"
constructor_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructor only collects references that match the"...
constructor_declaration (+51 nodes collapsed)
block_comment "/**\n * Convenience method for running this pass over a tre"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * Gets the variables that were referenced in this cal"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Gets the reference collection for the given variabl"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * For each node, update the block stack and reference"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "visit"
formal_parameters
( "("
formal_parameter
type_identifier "NodeTraversal"
identifier "t"
, ","
formal_parameter
type_identifier "Node"
identifier "n"
, ","
formal_parameter
type_identifier "Node"
identifier "parent"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "n"
. "."
identifier "getType"
argument_list
( "("
) ")"
== "=="
field_access
identifier "Token"
. "."
identifier "NAME"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Var"
variable_declarator
identifier "v" all 1:3
= "=" all 1:2
method_invocation
method_invocation all 1:2
identifier "t" all 1:2
. "." all 1:2
identifier "getScope" all 1:2
argument_list all 1:2
( "(" all 1:2
) ")" all 1:2
. "."
identifier "getVar"
argument_list
( "("
method_invocation
identifier "n"
. "."
identifier "getString"
argument_list
( "("
) ")"
) ")"
; ";" all 1:2
if_statement (+52 nodes collapsed)
} "}"
if_statement (+25 nodes collapsed)
} "}"
block_comment "/**\n * Updates block stack and invokes any additional beha"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Updates block statck and invokes any additional beh"...
method_declaration (+35 nodes collapsed)
block_comment "/**\n * Updates block stack.\n */"
method_declaration (+67 nodes collapsed)
block_comment "/**\n * @return true if this node marks the start of a new "...
method_declaration (+162 nodes collapsed)
method_declaration (+87 nodes collapsed)
block_comment "/**\n * Way for callers to add specific behavior during tra"...
interface_declaration (+28 nodes collapsed)
field_declaration (+45 nodes collapsed)
block_comment "/**\n * A collection of references. Can be subclassed to ap"...
class_declaration (+1015 nodes collapsed)
block_comment "/**\n * Represents a single declaration or reference to a v"...
class_declaration (+799 nodes collapsed)
block_comment "/**\n * Represents a section of code that is uninterrupted "...
class_declaration (+280 nodes collapsed)
} "}"