Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
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 String |
SourceExcerptProvider.SourceExcerpt.get(SourceExcerptProvider source,
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) |
LightweightMessageFormatter(SourceExcerptProvider source) |
LightweightMessageFormatter(SourceExcerptProvider source,
SourceExcerptProvider.SourceExcerpt excerpt) |
Copyright © 2009-2016 Google. All Rights Reserved.