class_body
{ "{"
method_declaration (+98 nodes collapsed)
block_comment "/**\n * Try to collapse the given assign into subsequent ex"...
method_declaration (+148 nodes collapsed)
block_comment "/**\n * Determines whether we know enough about the given v"...
method_declaration (+94 nodes collapsed)
block_comment "/**\n * Collapse the given assign expression into the expre"...
method_declaration (+533 nodes collapsed)
block_comment "/**\n * Checks name referenced in node to determine if it m"...
method_declaration
modifiers
private "private"
boolean_type "boolean"
identifier "isSafeReplacement"
formal_parameters
( "("
formal_parameter
type_identifier "Node"
identifier "node"
, ","
formal_parameter
type_identifier "Node"
identifier "replacement"
) ")"
block
{ "{"
line_comment "// No checks are needed for simple names."
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "node"
. "."
identifier "isName"
argument_list
( "("
) ")"
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
expression_statement
method_invocation
identifier "Preconditions"
. "."
identifier "checkArgument"
argument_list
( "("
method_invocation
identifier "node"
. "."
identifier "isGetProp"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
assignment_expression
identifier "node"
= "="
method_invocation
identifier "node"
. "."
identifier "getFirstChild"
argument_list
( "("
) ")"
; ";"
if_statement (+35 nodes collapsed)
return_statement
return "return"
true "true"
; ";"
} "}"
block_comment "/**\n * @return Whether name is assigned in the expression "...
method_declaration (+158 nodes collapsed)
} "}"