Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.ant | |
com.google.javascript.jscomp.debugger | |
com.google.javascript.jscomp.gwt.client | |
com.google.javascript.refactoring |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCommandLineRunner<A extends Compiler,B extends CompilerOptions>
Implementations of AbstractCommandLineRunner translate flags into Java
API calls on the Compiler.
|
Modifier and Type | Field and Description |
---|---|
(package private) CompilerOptions |
PassConfig.options |
private CompilerOptions |
JsMessageExtractor.options |
(package private) CompilerOptions |
Compiler.options |
private CompilerOptions |
CodePrinter.Builder.options |
Modifier and Type | Method and Description |
---|---|
protected CompilerOptions |
CommandLineRunner.createOptions() |
(package private) CompilerOptions |
Compiler.getOptions() |
(package private) abstract CompilerOptions |
AbstractCompiler.getOptions() |
protected CompilerOptions |
Compiler.newCompilerOptions()
Allow subclasses to override the default CompileOptions object.
|
Modifier and Type | Method and Description |
---|---|
private static void |
WarningLevel.addDefaultWarnings(CompilerOptions options)
Add the default checking pass to the compilation options.
|
private static void |
WarningLevel.addVerboseWarnings(CompilerOptions options)
Add all the check pass that are possibly relevant to a non-googler.
|
protected abstract void |
AbstractCommandLineRunner.addWhitelistWarningsGuard(CompilerOptions options,
File whitelistFile) |
protected void |
CommandLineRunner.addWhitelistWarningsGuard(CompilerOptions options,
File whitelistFile) |
private static void |
CompilationLevel.applyBasicCompilationOptions(CompilerOptions options)
Gets options that only strip whitespace and comments.
|
private static void |
CompilationLevel.applyFullCompilationOptions(CompilerOptions options)
Add the options that will work only if the user exported all the symbols
correctly.
|
private static void |
CompilationLevel.applySafeCompilationOptions(CompilerOptions options)
Add options that are safe.
|
private void |
CommandLineRunner.FormattingOption.applyToOptions(CompilerOptions options) |
<T1 extends SourceFile,T2 extends SourceFile> |
Compiler.compile(java.util.List<T1> externs,
java.util.List<T2> inputs,
CompilerOptions options)
Compiles a list of inputs.
|
Result |
Compiler.compile(SourceFile extern,
SourceFile input,
CompilerOptions options) |
<T extends SourceFile> |
Compiler.compileModules(java.util.List<T> externs,
java.util.List<JSModule> modules,
CompilerOptions options)
Compiles a list of modules.
|
(package private) static void |
AbstractCommandLineRunner.createDefineOrTweakReplacements(java.util.List<java.lang.String> definitions,
CompilerOptions options,
boolean tweaks)
Create a map of constant names to constant values from a textual
description of the map.
|
protected java.util.List<SourceFile> |
AbstractCommandLineRunner.createExterns(CompilerOptions options) |
protected java.util.List<SourceFile> |
CommandLineRunner.createExterns(CompilerOptions options) |
(package private) static CodePrinter.Format |
CodePrinter.Format.fromOptions(CompilerOptions options,
boolean outputTypes,
boolean prettyPrint) |
(package private) static java.util.Map<java.lang.String,Node> |
DefaultPassConfig.getAdditionalReplacements(CompilerOptions options) |
<T1 extends SourceFile,T2 extends SourceFile> |
Compiler.init(java.util.List<T1> externs,
java.util.List<T2> inputs,
CompilerOptions options)
Initializes the instance state needed for a compile job.
|
<T extends SourceFile> |
Compiler.initModules(java.util.List<T> externs,
java.util.List<JSModule> modules,
CompilerOptions options)
Initializes the instance state needed for a compile job if the sources
are in modules.
|
void |
Compiler.initOptions(CompilerOptions options)
Initializes the compiler options.
|
(package private) static void |
CompilerOptionsPreprocessor.preprocess(CompilerOptions options) |
CodePrinter.Builder |
CodePrinter.Builder.setCompilerOptions(CompilerOptions options)
Sets the output options from compiler options.
|
void |
CompilationLevel.setDebugOptionsForCompilationLevel(CompilerOptions options) |
void |
CompilationLevel.setOptionsForCompilationLevel(CompilerOptions options) |
void |
WarningLevel.setOptionsForWarningLevel(CompilerOptions options) |
protected void |
AbstractCommandLineRunner.setRunOptions(CompilerOptions options)
Sets options based on the configurations set flags API.
|
void |
CompilationLevel.setTypeBasedOptimizationOptions(CompilerOptions options)
Enable additional optimizations that use type information.
|
(package private) void |
DiagnosticGroups.setWarningLevel(CompilerOptions options,
java.lang.String name,
CheckLevel level)
Adds warning levels by name.
|
void |
CompilationLevel.setWrappedOutputOptimizations(CompilerOptions options)
Enable additional optimizations that operate on global declarations.
|
private static void |
WarningLevel.silenceAllWarnings(CompilerOptions options)
Silence all non-essential warnings.
|
private static java.lang.String |
CodePrinter.toSource(Node root,
CodePrinter.Format outputFormat,
CompilerOptions options,
SourceMap sourceMap,
boolean tagAsStrict,
boolean lineBreak,
CodePrinter.Builder.CodeGeneratorFactory codeGeneratorFactory)
Converts a tree to JS code
|
Constructor and Description |
---|
CleanupPasses(CompilerOptions options) |
CodeGenerator(CodeConsumer consumer,
CompilerOptions options) |
DefaultPassConfig(CompilerOptions options) |
JsMessageExtractor(JsMessage.IdGenerator idGenerator,
JsMessage.Style style,
CompilerOptions options,
boolean extractExternalMessages) |
LintPassConfig(CompilerOptions options) |
PassConfig(CompilerOptions options) |
TypedCodeGenerator(CodeConsumer consumer,
CompilerOptions options,
TypeIRegistry registry) |
Modifier and Type | Method and Description |
---|---|
private CompilerOptions |
CompileTask.createCompilerOptions() |
Modifier and Type | Method and Description |
---|---|
private void |
CompileTask.convertDefineParameters(CompilerOptions options)
Converts
<define/> nested elements into Compiler @define
replacements. |
private void |
CompileTask.convertEntryPointParameters(CompilerOptions options)
Converts
<entrypoint/> nested elements into Compiler entrypoint
replacements. |
private void |
CompileTask.convertPropertiesMap(CompilerOptions options)
Converts project properties beginning with the replacement prefix
into Compiler
@define replacements. |
private Compiler |
CompileTask.createCompiler(CompilerOptions options) |
private java.util.List<SourceFile> |
CompileTask.findExternFiles(CompilerOptions options) |
private java.util.List<SourceFile> |
CompileTask.getBuiltinExterns(CompilerOptions options)
Gets the default externs set.
|
private boolean |
CompileTask.setDefine(CompilerOptions options,
java.lang.String key,
java.lang.Object value)
Maps Ant-style values (e.g., from Properties) into expected
Closure
@define literals |
Modifier and Type | Field and Description |
---|---|
(package private) CompilerOptions |
DebuggerGwtMain.options |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
CompilationParam.apply(CompilerOptions options,
boolean value)
Applies a CGI parameter to the options.
|
Modifier and Type | Method and Description |
---|---|
private static void |
GwtRunner.applyDefaultOptions(CompilerOptions options) |
private static void |
GwtRunner.applyOptionsFromFlags(CompilerOptions options,
GwtRunner.Flags flags) |
private static void |
GwtRunner.disableUnsupportedOptions(CompilerOptions options) |
Modifier and Type | Field and Description |
---|---|
private CompilerOptions |
RefactoringDriver.Builder.compilerOptions |
Modifier and Type | Method and Description |
---|---|
static CompilerOptions |
RefactoringDriver.getCompilerOptions() |
Modifier and Type | Method and Description |
---|---|
private Compiler |
RefactoringDriver.createCompiler(java.util.List<SourceFile> inputs,
java.util.List<SourceFile> externs,
CompilerOptions compilerOptions) |
RefactoringDriver.Builder |
RefactoringDriver.Builder.withCompilerOptions(CompilerOptions compilerOptions) |
Constructor and Description |
---|
RefactoringDriver(Scanner scanner,
java.util.List<SourceFile> inputs,
java.util.List<SourceFile> externs,
CompilerOptions compilerOptions) |