class_body
{ "{"
block_comment "/**\n * A suffix for naming delegate proxies differently fr"...
field_declaration
modifiers
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DELEGATE_PROXY_SUFFIX"
= "="
string_literal
" "\""
string_fragment "(Proxy)"
" "\""
; ";"
field_declaration (+25 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
type_identifier "AbstractCompiler"
variable_declarator
identifier "compiler"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "ErrorReporter"
variable_declarator
identifier "typeParsingErrorReporter"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "TypeValidator"
variable_declarator
identifier "validator"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "CodingConvention"
variable_declarator
identifier "codingConvention"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "JSTypeRegistry"
variable_declarator
identifier "typeRegistry"
; ";"
field_declaration
modifiers
private "private"
generic_type
type_identifier "List"
type_arguments
< "<"
type_identifier "ObjectType"
> ">"
variable_declarator
identifier "delegateProxyPrototypes"
= "="
method_invocation
identifier "Lists"
. "."
identifier "newArrayList"
argument_list
( "("
) ")"
; ";"
block_comment "/**\n * Defer attachment of types to nodes until all type n"...
class_declaration (+118 nodes collapsed)
constructor_declaration (+26 nodes collapsed)
constructor_declaration (+78 nodes collapsed)
block_comment "/**\n * Creates a scope with all types declared. Declares n"...
method_declaration (+303 nodes collapsed)
block_comment "/**\n * Create the outermost scope. This scope contains nat"...
method_declaration (+256 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+41 nodes collapsed)
method_declaration (+40 nodes collapsed)
class_declaration (+227 nodes collapsed)
block_comment "/**\n * Given a node, determines whether that node names a "...
method_declaration (+131 nodes collapsed)
method_declaration (+266 nodes collapsed)
method_declaration (+25 nodes collapsed)
class_declaration (+6436 nodes collapsed)
block_comment "/**\n * A stub declaration without any type information.\n "...
class_declaration (+82 nodes collapsed)
block_comment "/**\n * A shallow traversal of the global scope to build up"...
class_declaration (+623 nodes collapsed)
line_comment "// end GlobalScopeBuilder"
block_comment "/**\n * A shallow traversal of a local scope to find all ar"...
class_declaration
modifiers
private "private"
final "final"
class "class"
identifier "LocalScopeBuilder"
superclass
extends "extends"
type_identifier "AbstractScopeBuilder"
class_body
{ "{"
block_comment "/**\n * @param scope The scope that we're builidng.\n "...
constructor_declaration
modifiers
private "private"
identifier "LocalScopeBuilder"
formal_parameters
( "("
formal_parameter
type_identifier "Scope"
identifier "scope"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
identifier "scope"
) ")"
; ";"
} "}"
block_comment "/**\n * Traverse the scope root and build it.\n */"
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Visit a node in a local scope, and add any local "...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
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
identifier "n"
== "=="
method_invocation
identifier "scope"
. "."
identifier "getRootNode"
argument_list
( "("
) ")"
) ")"
return_statement
return "return"
; ";"
if_statement (+44 nodes collapsed)
expression_statement
method_invocation
identifier "attachLiteralTypes"
argument_list
( "("
identifier "n"
) ")"
; ";"
switch_expression
switch "switch"
parenthesized_expression
( "("
method_invocation
identifier "n"
. "."
identifier "getType"
argument_list
( "("
) ")"
) ")"
switch_block
{ "{"
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "FUNCTION"
: ":"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "parent"
. "."
identifier "getType"
argument_list
( "("
) ")"
== "=="
field_access
identifier "Token"
. "."
identifier "NAME"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
expression_statement
method_invocation
identifier "defineDeclaredFunction"
argument_list
( "("
identifier "n" all 3:1
, "," all 3:1
identifier "parent" all 3:1
) ")"
; ";"
break_statement
break "break"
; ";"
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "CATCH"
: ":"
expression_statement
method_invocation
identifier "defineCatch"
argument_list
( "("
identifier "n" all 3:1
, "," all 3:1
identifier "parent" all 3:1
) ")"
; ";"
break_statement
break "break"
; ";"
switch_block_statement_group
switch_label
case "case"
field_access
identifier "Token"
. "."
identifier "VAR"
: ":"
expression_statement
method_invocation
identifier "defineVar"
argument_list
( "("
identifier "n" all 3:1
, "," all 3:1
identifier "parent" all 3:1
) ")"
; ";"
break_statement
break "break"
; ";"
} "}"
} "}"
block_comment "/** Handle bleeding functions and function parameters. */"
method_declaration (+147 nodes collapsed)
block_comment "/**\n * Declares all of a function's arguments.\n */"
method_declaration (+192 nodes collapsed)
line_comment "// end declareArguments"
} "}"
line_comment "// end LocalScopeBuilder"
} "}"