class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
type_identifier "CommandLineConfig"
variable_declarator
identifier "config"
; ";"
field_declaration
modifiers
private "private"
type_identifier "PrintStream"
variable_declarator
identifier "out"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "PrintStream"
variable_declarator
identifier "err"
; ";"
field_declaration
modifiers
private "private"
type_identifier "A"
variable_declarator
identifier "compiler"
; ";"
field_declaration
modifiers
private "private"
static "static"
type_identifier "Charset"
variable_declarator
identifier "inputCharset"
; ";"
line_comment "// Bookkeeping to measure optimal phase orderings."
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "NUM_RUNS_TO_DETERMINE_OPTIMAL_ORDER"
= "="
decimal_integer_literal "100"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "RunTimeStats"
variable_declarator
identifier "runTimeStats"
= "="
object_creation_expression
new "new"
type_identifier "RunTimeStats"
argument_list
( "("
) ")"
; ";"
constructor_declaration (+23 nodes collapsed)
constructor_declaration (+47 nodes collapsed)
block_comment "/**\n * Get the command line config, so that it can be init"...
method_declaration
modifiers
protected "protected"
type_identifier "CommandLineConfig"
identifier "getCommandLineConfig"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "config"
; ";"
} "}"
block_comment "/**\n * Returns the instance of the Compiler to use when {@"...
method_declaration
modifiers
protected "protected"
abstract "abstract"
type_identifier "A"
identifier "createCompiler"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * Returns the instance of the Options to use when {@l"...
method_declaration
modifiers
protected "protected"
abstract "abstract"
type_identifier "B"
identifier "createOptions"
formal_parameters
( "("
) ")"
; ";"
method_declaration
modifiers
protected "protected"
type_identifier "DiagnosticGroups"
identifier "getDiagnosticGroups"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
object_creation_expression
new "new"
type_identifier "DiagnosticGroups"
argument_list
( "("
) ")"
; ";"
} "}"
method_declaration (+98 nodes collapsed)
method_declaration
modifiers
final "final"
protected "protected"
type_identifier "A"
identifier "getCompiler"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "compiler"
; ";"
} "}"
method_declaration (+218 nodes collapsed)
block_comment "/**\n * Runs the Compiler and calls System.exit() with the "...
method_declaration (+217 nodes collapsed)
block_comment "/**\n * Returns the PrintStream for writing errors associat"...
method_declaration
modifiers
protected "protected"
type_identifier "PrintStream"
identifier "getErrorPrintStream"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "err"
; ";"
} "}"
block_comment "/**\n * An exception thrown when command-line flags are use"...
class_declaration (+42 nodes collapsed)
block_comment "/**\n * Creates inputs from a list of files.\n *\n * @par"...
method_declaration (+213 nodes collapsed)
block_comment "/**\n * Creates js source code inputs from a list of files."...
method_declaration (+110 nodes collapsed)
block_comment "/**\n * Creates js extern inputs from a list of files.\n *"...
method_declaration (+119 nodes collapsed)
block_comment "/**\n * Creates module objects from a list of module specif"...
method_declaration (+724 nodes collapsed)
block_comment "/**\n * Parses module wrapper specifications.\n *\n * @pa"...
method_declaration (+302 nodes collapsed)
block_comment "/**\n * Writes code to an output stream, optionally wrappin"...
method_declaration (+238 nodes collapsed)
block_comment "/**\n * Creates any directories necessary to write a file t"...
method_declaration (+124 nodes collapsed)
block_comment "/**\n * Parses command-line arguments and runs the compiler"...
method_declaration (+379 nodes collapsed)
block_comment "/**\n * Processes the results of the compile job, and retur"...
method_declaration (+793 nodes collapsed)
block_comment "/**\n * Query the flag for the charset, and return a Charse"...
method_declaration (+95 nodes collapsed)
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Returns true if and only if a source map file shoul"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Returns a stream for outputting the generated exter"...
method_declaration (+121 nodes collapsed)
block_comment "/**\n * Returns a stream to give to an instance of the Sour"...
method_declaration (+167 nodes collapsed)
block_comment "/**\n * Outputs the source map found in the compiler to the"...
method_declaration (+99 nodes collapsed)
block_comment "/**\n * Returns the path at which to output map file(s) bas"...
method_declaration (+188 nodes collapsed)
block_comment "/**\n * Outputs the variable and property name maps for the"...
method_declaration (+424 nodes collapsed)
block_comment "/**\n * Create a map of constant names to constant values f"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "VisibleForTesting"
static "static"
void_type "void"
identifier "createDefineReplacements"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "List"
type_arguments
< "<"
type_identifier "String"
> ">"
identifier "definitions"
, ","
formal_parameter
type_identifier "CompilerOptions"
identifier "options"
) ")"
block
{ "{"
line_comment "// Parse the definitions"
enhanced_for_statement
for "for"
( "("
type_identifier "String"
identifier "override"
: ":"
identifier "definitions"
) ")"
block
{ "{"
local_variable_declaration (+23 nodes collapsed)
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "defName"
= "="
array_access
identifier "assignment"
[ "["
decimal_integer_literal "0"
] "]"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "defName"
. "."
identifier "length"
argument_list
( "("
) ")"
> ">"
decimal_integer_literal "0"
) ")"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
field_access
identifier "assignment"
. "."
identifier "length"
== "=="
decimal_integer_literal "1"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "options"
. "."
identifier "setDefineToBooleanLiteral"
argument_list
( "("
identifier "defName"
, ","
true "true"
) ")"
; ";"
continue_statement
continue "continue"
; ";"
} "}"
else "else"
block
{ "{"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "defValue"
= "="
array_access
identifier "assignment"
[ "["
decimal_integer_literal "1"
] "]"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "defValue"
. "."
identifier "equals"
argument_list
( "("
string_literal
" "\""
string_fragment "true"
" "\""
) ")"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "options"
. "."
identifier "setDefineToBooleanLiteral"
argument_list
( "("
identifier "defName"
, ","
true "true"
) ")"
; ";"
continue_statement
continue "continue"
; ";"
} "}"
else "else"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
identifier "defValue"
. "."
identifier "equals"
argument_list
( "("
string_literal
" "\""
string_fragment "false"
" "\""
) ")"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "options"
. "."
identifier "setDefineToBooleanLiteral"
argument_list
( "("
identifier "defName"
, ","
false "false"
) ")"
; ";"
continue_statement
continue "continue"
; ";"
} "}"
else "else"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
method_invocation
identifier "defValue"
. "."
identifier "length"
argument_list
( "("
) ")"
> ">"
decimal_integer_literal "1"
&& "&&"
parenthesized_expression
( "("
parenthesized_expression (+36 nodes collapsed)
) ")"
) ")"
block (+73 nodes collapsed)
else "else"
block (+42 nodes collapsed)
} "}"
} "}"
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "RuntimeException"
argument_list
( "("
binary_expression
string_literal
" "\""
string_fragment "--define flag syntax invalid: "
" "\""
+ "+"
identifier "override"
) ")"
; ";"
} "}"
} "}"
class_declaration (+295 nodes collapsed)
block_comment "/**\n * Configurations for the command line configs. Design"...
class_declaration (+1265 nodes collapsed)
} "}"