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–855 unchanged (855 lines)
856 // run-time.
857 //
858 // In ADVANCED mode, goog.getMsg is going to be renamed anyway,
859 // so we might as well inline it. But shut off the i18n warnings,
860 // because the user didn't really ask for i18n.
861 options.messageBundle = new EmptyMessageBundle();
862 }
863
864 return options;
865 }
866
867 @Override
868 protected Compiler createCompiler() {
…lines 869–1000 unchanged (132 lines)

After

…lines 1–855 unchanged (855 lines)
856 // run-time.
857 //
858 // In ADVANCED mode, goog.getMsg is going to be renamed anyway,
859 // so we might as well inline it. But shut off the i18n warnings,
860 // because the user didn't really ask for i18n.
861 options.messageBundle = new EmptyMessageBundle();
862 options.setWarningLevel(JsMessageVisitor.MSG_CONVENTIONS, CheckLevel.OFF);
863 }
864
865 return options;
866 }
867
868 @Override
…lines 869–1001 unchanged (133 lines)

Before

program
block_comment "/*\n * Copyright 2009 The Closure Compiler Authors.\n *\n * Lic"...
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 "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 "common"
. "."
identifier "collect"
. "."
identifier "Sets"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "io"
. "."
identifier "ByteStreams"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "io"
. "."
identifier "Files"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "Argument"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "CmdLineException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "CmdLineParser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "Option"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "OptionDef"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "FieldSetter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "OptionHandler"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "Parameters"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "Setter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "StringOptionHandler"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "BufferedInputStream"
; ";"
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 "FileInputStream"
; ";"
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 "InputStream"
; ";"
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 "lang"
. "."
identifier "reflect"
. "."
identifier "AnnotatedElement"
; ";"
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 "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Level"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "regex"
. "."
identifier "Matcher"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "regex"
. "."
identifier "Pattern"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipEntry"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipInputStream"
; ";"
block_comment "/**\n * CommandLineRunner translates flags into Java API call"...
class_declaration
modifiers
public "public"
class "class"
identifier "CommandLineRunner"
superclass
extends "extends"
generic_type
type_identifier "AbstractCommandLineRunner"
type_arguments
< "<"
type_identifier "Compiler"
, ","
type_identifier "CompilerOptions"
> ">"
class_body
{ "{"
class_declaration (+56 nodes collapsed)
line_comment "// I don't really care about unchecked warnings in this clas"...
class_declaration (+3507 nodes collapsed)
block_comment "/**\n * Set of options that can be used with the --formatti"...
enum_declaration (+114 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
type_identifier "Flags"
variable_declarator
identifier "flags"
= "="
object_creation_expression
new "new"
type_identifier "Flags"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "isConfigValid"
= "="
false "false"
; ";"
block_comment "/**\n * Create a new command-line runner. You should only n"...
constructor_declaration (+36 nodes collapsed)
constructor_declaration (+44 nodes collapsed)
block_comment "/**\n * Split strings into tokens delimited by whitespace, "...
method_declaration (+132 nodes collapsed)
method_declaration (+231 nodes collapsed)
method_declaration (+246 nodes collapsed)
method_declaration (+869 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
protected "protected"
type_identifier "CompilerOptions"
identifier "createOptions"
formal_parameters
( "("
) ")"
block
{ "{"
local_variable_declaration
type_identifier "CompilerOptions"
variable_declarator
identifier "options"
= "="
object_creation_expression
new "new"
type_identifier "CompilerOptions"
argument_list
( "("
) ")"
; ";"
if_statement (+46 nodes collapsed)
expression_statement
method_invocation
identifier "options"
. "."
identifier "setExtraAnnotationNames"
argument_list
( "("
field_access
identifier "flags"
. "."
identifier "extraAnnotationName"
) ")"
; ";"
local_variable_declaration
type_identifier "CompilationLevel"
variable_declarator
identifier "level"
= "="
field_access
identifier "flags"
. "."
identifier "compilationLevel"
; ";"
expression_statement
method_invocation
identifier "level"
. "."
identifier "setOptionsForCompilationLevel"
argument_list
( "("
identifier "options"
) ")"
; ";"
if_statement (+22 nodes collapsed)
if_statement (+22 nodes collapsed)
if_statement (+25 nodes collapsed)
local_variable_declaration
type_identifier "WarningLevel"
variable_declarator
identifier "wLevel"
= "="
field_access
identifier "flags"
. "."
identifier "warningLevel"
; ";"
expression_statement
method_invocation
identifier "wLevel"
. "."
identifier "setOptionsForWarningLevel"
argument_list
( "("
identifier "options"
) ")"
; ";"
enhanced_for_statement (+24 nodes collapsed)
expression_statement
assignment_expression
field_access
identifier "options"
. "."
identifier "closurePass"
= "="
field_access
identifier "flags"
. "."
identifier "processClosurePrimitives"
; ";"
expression_statement (+21 nodes collapsed)
expression_statement
assignment_expression
field_access
identifier "options"
. "."
identifier "angularPass"
= "="
field_access
identifier "flags"
. "."
identifier "angularPass"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
method_invocation
field_access
identifier "flags"
. "."
identifier "translationsFile"
. "."
identifier "isEmpty"
argument_list
( "("
) ")"
) ")"
block (+63 nodes collapsed)
else "else"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
field_access
identifier "CompilationLevel"
. "."
identifier "ADVANCED_OPTIMIZATIONS"
== "=="
identifier "level"
) ")"
block
{ "{"
line_comment "// In SIMPLE or WHITESPACE mode, if the user hasn't specifie"...
line_comment "// translations file, they might reasonably try to write the"...
line_comment "// implementation of goog.getMsg that makes the substitution"...
line_comment "// run-time."
line_comment "//"
line_comment "// In ADVANCED mode, goog.getMsg is going to be renamed anyw"...
line_comment "// so we might as well inline it. But shut off the i18n warn"...
line_comment "// because the user didn't really ask for i18n."
expression_statement
assignment_expression
field_access
identifier "options"
. "."
identifier "messageBundle"
= "="
object_creation_expression
new "new"
type_identifier "EmptyMessageBundle"
argument_list
( "("
) ")"
; ";"
} "}"
return_statement
return "return"
identifier "options"
; ";"
} "}"
method_declaration (+28 nodes collapsed)
method_declaration (+99 nodes collapsed)
line_comment "// The externs expected in externs.zip, in sorted order."
field_declaration (+236 nodes collapsed)
block_comment "/**\n * @return a mutable list\n * @throws IOException\n "...
method_declaration (+302 nodes collapsed)
block_comment "/**\n * @return Whether the configuration is valid.\n */"
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "shouldRunCompiler"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "isConfigValid"
; ";"
} "}"
block_comment "/**\n * Runs the Compiler. Exits cleanly in the event of an"...
method_declaration (+72 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Copyright 2009 The Closure Compiler Authors.\n *\n * Lic"...
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 "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 "common"
. "."
identifier "collect"
. "."
identifier "Sets"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "io"
. "."
identifier "ByteStreams"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "common"
. "."
identifier "io"
. "."
identifier "Files"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "Argument"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "CmdLineException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "CmdLineParser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "Option"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "OptionDef"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "FieldSetter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "OptionHandler"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "Parameters"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "Setter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "kohsuke"
. "."
identifier "args4j"
. "."
identifier "spi"
. "."
identifier "StringOptionHandler"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "BufferedInputStream"
; ";"
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 "FileInputStream"
; ";"
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 "InputStream"
; ";"
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 "lang"
. "."
identifier "reflect"
. "."
identifier "AnnotatedElement"
; ";"
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 "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "logging"
. "."
identifier "Level"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "regex"
. "."
identifier "Matcher"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "regex"
. "."
identifier "Pattern"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipEntry"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipInputStream"
; ";"
block_comment "/**\n * CommandLineRunner translates flags into Java API call"...
class_declaration
modifiers
public "public"
class "class"
identifier "CommandLineRunner"
superclass
extends "extends"
generic_type
type_identifier "AbstractCommandLineRunner"
type_arguments
< "<"
type_identifier "Compiler"
, ","
type_identifier "CompilerOptions"
> ">"
class_body
{ "{"
class_declaration (+56 nodes collapsed)
line_comment "// I don't really care about unchecked warnings in this clas"...
class_declaration (+3507 nodes collapsed)
block_comment "/**\n * Set of options that can be used with the --formatti"...
enum_declaration (+114 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
type_identifier "Flags"
variable_declarator
identifier "flags"
= "="
object_creation_expression
new "new"
type_identifier "Flags"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "isConfigValid"
= "="
false "false"
; ";"
block_comment "/**\n * Create a new command-line runner. You should only n"...
constructor_declaration (+36 nodes collapsed)
constructor_declaration (+44 nodes collapsed)
block_comment "/**\n * Split strings into tokens delimited by whitespace, "...
method_declaration (+132 nodes collapsed)
method_declaration (+231 nodes collapsed)
method_declaration (+246 nodes collapsed)
method_declaration (+869 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
protected "protected"
type_identifier "CompilerOptions"
identifier "createOptions"
formal_parameters
( "("
) ")"
block
{ "{"
local_variable_declaration
type_identifier "CompilerOptions"
variable_declarator
identifier "options"
= "="
object_creation_expression
new "new"
type_identifier "CompilerOptions"
argument_list
( "("
) ")"
; ";"
if_statement (+46 nodes collapsed)
expression_statement
method_invocation
identifier "options"
. "."
identifier "setExtraAnnotationNames"
argument_list
( "("
field_access
identifier "flags"
. "."
identifier "extraAnnotationName"
) ")"
; ";"
local_variable_declaration
type_identifier "CompilationLevel"
variable_declarator
identifier "level"
= "="
field_access
identifier "flags"
. "."
identifier "compilationLevel"
; ";"
expression_statement
method_invocation
identifier "level"
. "."
identifier "setOptionsForCompilationLevel"
argument_list
( "("
identifier "options"
) ")"
; ";"
if_statement (+22 nodes collapsed)
if_statement (+22 nodes collapsed)
if_statement (+25 nodes collapsed)
local_variable_declaration
type_identifier "WarningLevel"
variable_declarator
identifier "wLevel"
= "="
field_access
identifier "flags"
. "."
identifier "warningLevel"
; ";"
expression_statement
method_invocation
identifier "wLevel"
. "."
identifier "setOptionsForWarningLevel"
argument_list
( "("
identifier "options"
) ")"
; ";"
enhanced_for_statement (+24 nodes collapsed)
expression_statement
assignment_expression
field_access
identifier "options"
. "."
identifier "closurePass"
= "="
field_access
identifier "flags"
. "."
identifier "processClosurePrimitives"
; ";"
expression_statement (+21 nodes collapsed)
expression_statement
assignment_expression
field_access
identifier "options"
. "."
identifier "angularPass"
= "="
field_access
identifier "flags"
. "."
identifier "angularPass"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
method_invocation
field_access
identifier "flags"
. "."
identifier "translationsFile"
. "."
identifier "isEmpty"
argument_list
( "("
) ")"
) ")"
block (+63 nodes collapsed)
else "else"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
field_access
identifier "CompilationLevel"
. "."
identifier "ADVANCED_OPTIMIZATIONS"
== "=="
identifier "level"
) ")"
block
{ "{"
line_comment "// In SIMPLE or WHITESPACE mode, if the user hasn't specifie"...
line_comment "// translations file, they might reasonably try to write the"...
line_comment "// implementation of goog.getMsg that makes the substitution"...
line_comment "// run-time."
line_comment "//"
line_comment "// In ADVANCED mode, goog.getMsg is going to be renamed anyw"...
line_comment "// so we might as well inline it. But shut off the i18n warn"...
line_comment "// because the user didn't really ask for i18n."
expression_statement
assignment_expression
field_access
identifier "options"
. "."
identifier "messageBundle"
= "="
object_creation_expression
new "new"
type_identifier "EmptyMessageBundle"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "options"
. "."
identifier "setWarningLevel"
argument_list
( "("
field_access
identifier "JsMessageVisitor"
. "."
identifier "MSG_CONVENTIONS"
, ","
field_access
identifier "CheckLevel"
. "."
identifier "OFF"
) ")"
; ";"
} "}"
return_statement
return "return"
identifier "options"
; ";"
} "}"
method_declaration (+28 nodes collapsed)
method_declaration (+99 nodes collapsed)
line_comment "// The externs expected in externs.zip, in sorted order."
field_declaration (+236 nodes collapsed)
block_comment "/**\n * @return a mutable list\n * @throws IOException\n "...
method_declaration (+302 nodes collapsed)
block_comment "/**\n * @return Whether the configuration is valid.\n */"
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "shouldRunCompiler"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "isConfigValid"
; ";"
} "}"
block_comment "/**\n * Runs the Compiler. Exits cleanly in the event of an"...
method_declaration (+72 nodes collapsed)
} "}"