Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–864 unchanged (864 lines)
865 } else if (defValue.equals("false")) {
866 options.setDefineToBooleanLiteral(defName, false);
867 continue;
868 } else if (defValue.length() > 1
869 && ((defValue.charAt(0) == '\'' &&
870 defValue.charAt(defValue.length() - 1) == '\'')
871 )) {
872 // If the value starts and ends with a single quote,
873 // we assume that it's a string.
874 String maybeStringVal =
875 defValue.substring(1, defValue.length() - 1);
876 if (maybeStringVal.indexOf(defValue.charAt(0)) == -1) {
877 options.setDefineToStringLiteral(defName, maybeStringVal);
878 continue;
879 }
880 } else {
881 try {
882 options.setDefineToDoubleLiteral(defName,
883 Double.parseDouble(defValue));
884 continue;
885 } catch (NumberFormatException e) {
886 // do nothing, it will be caught at the end
…lines 887–1257 unchanged (371 lines)

After

…lines 1–864 unchanged (864 lines)
865 } else if (defValue.equals("false")) {
866 options.setDefineToBooleanLiteral(defName, false);
867 continue;
868 } else if (defValue.length() > 1
869 && ((defValue.charAt(0) == '\'' &&
870 defValue.charAt(defValue.length() - 1) == '\'')
871 || (defValue.charAt(0) == '\"' &&
872 defValue.charAt(defValue.length() - 1) == '\"'))) {
873 // If the value starts and ends with a single quote,
874 // we assume that it's a string.
875 String maybeStringVal =
876 defValue.substring(1, defValue.length() - 1);
877 if (maybeStringVal.indexOf(defValue.charAt(0)) == -1) {
878 options.setDefineToStringLiteral(defName, maybeStringVal);
879 continue;
880 }
881 } else {
882 try {
883 options.setDefineToDoubleLiteral(defName,
884 Double.parseDouble(defValue));
885 continue;
886 } catch (NumberFormatException e) {
887 // do nothing, it will be caught at the end
…lines 888–1258 unchanged (371 lines)

Before

program
block_comment "/*\n * Copyright 2009 Google Inc.\n *\n * Licensed under the Ap"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "annotations"
. "."
identifier "VisibleForTesting"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Charsets"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Joiner"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Preconditions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "collect"
. "."
identifier "ImmutableList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "collect"
. "."
identifier "Lists"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "collect"
. "."
identifier "Maps"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "Node"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "TokenStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "CodedOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "File"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "FileOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "PrintStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "charset"
. "."
identifier "Charset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collections"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Level"
; ";"
block_comment "/**\n * Implementations of AbstractCommandLineRunner translat"...
class_declaration
modifiers
abstract "abstract"
class "class"
identifier "AbstractCommandLineRunner"
type_parameters
< "<"
type_parameter
type_identifier "A"
type_bound
extends "extends"
type_identifier "Compiler"
, ","
type_parameter
type_identifier "B"
type_bound
extends "extends"
type_identifier "CompilerOptions"
> ">"
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)
} "}"

After

program
block_comment "/*\n * Copyright 2009 Google Inc.\n *\n * Licensed under the Ap"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "jscomp"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "annotations"
. "."
identifier "VisibleForTesting"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Charsets"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Joiner"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "base"
. "."
identifier "Preconditions"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "collect"
. "."
identifier "ImmutableList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "collect"
. "."
identifier "Lists"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "collect"
. "."
identifier "Maps"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "Node"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "javascript"
. "."
identifier "rhino"
. "."
identifier "TokenStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "CodedOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "File"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "FileOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "PrintStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "charset"
. "."
identifier "Charset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collections"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Level"
; ";"
block_comment "/**\n * Implementations of AbstractCommandLineRunner translat"...
class_declaration
modifiers
abstract "abstract"
class "class"
identifier "AbstractCommandLineRunner"
type_parameters
< "<"
type_parameter
type_identifier "A"
type_bound
extends "extends"
type_identifier "Compiler"
, ","
type_parameter
type_identifier "B"
type_bound
extends "extends"
type_identifier "CompilerOptions"
> ">"
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
( "("
binary_expression
parenthesized_expression (+36 nodes collapsed)
|| "||"
parenthesized_expression
( "("
binary_expression
binary_expression
method_invocation
identifier "defValue"
. "."
identifier "charAt"
argument_list
( "("
decimal_integer_literal "0"
) ")"
== "=="
character_literal "'\\\"'"
&& "&&"
binary_expression
method_invocation
identifier "defValue"
. "."
identifier "charAt"
argument_list
( "("
binary_expression
method_invocation
identifier "defValue"
. "."
identifier "length"
argument_list
( "("
) ")"
- "-"
decimal_integer_literal "1"
) ")"
== "=="
character_literal "'\\\"'"
) ")"
) ")"
) ")"
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)
} "}"