Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.bundle |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCompiler
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
class |
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
Modifier and Type | Method and Description |
---|---|
protected SourceExcerptProvider |
AbstractMessageFormatter.getSource()
Get the source excerpt provider.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
SourceExcerptProvider.SourceExcerpt.get(SourceExcerptProvider source,
java.lang.String sourceName,
int lineNumber,
int length,
SourceExcerptProvider.ExcerptFormatter formatter)
Get a source excerpt string based on the type of the source excerpt.
|
java.lang.String |
SourceExcerptProvider.SourceExcerpt.get(SourceExcerptProvider source,
java.lang.String sourceName,
int lineNumber,
SourceExcerptProvider.ExcerptFormatter formatter)
Get a source excerpt string based on the type of the source excerpt.
|
abstract MessageFormatter |
ErrorFormat.toFormatter(SourceExcerptProvider source,
boolean colorize)
Convert to a concrete formatter.
|
Constructor and Description |
---|
AbstractMessageFormatter(SourceExcerptProvider source) |
JsonErrorReportGenerator(java.io.PrintStream stream,
SourceExcerptProvider sourceExcerptProvider)
Creates an error manager.
|
LightweightMessageFormatter(SourceExcerptProvider source) |
LightweightMessageFormatter(SourceExcerptProvider source,
SourceExcerptProvider.SourceExcerpt excerpt) |
Constructor and Description |
---|
TranspilationException(SourceExcerptProvider source,
com.google.common.collect.ImmutableList<JSError> errors,
com.google.common.collect.ImmutableList<JSError> warnings) |
Copyright © 2009-2020 Google. All Rights Reserved.