Serialized Form
-
Package com.google.debugging.sourcemap
-
Class com.google.debugging.sourcemap.SourceMapParseException extends java.lang.Exception implements Serializable
-
-
Package com.google.javascript.jscomp
-
Class com.google.javascript.jscomp.AbstractScope extends java.lang.Object implements Serializable
-
Serialized Fields
-
implicitVars
java.util.Map<com.google.javascript.jscomp.AbstractScope.ImplicitVar,V extends AbstractVar<S,V>> implicitVars
-
rootNode
Node rootNode
-
vars
java.util.Map<java.lang.String,V extends AbstractVar<S,V>> vars
-
-
-
Class com.google.javascript.jscomp.AbstractVar extends com.google.javascript.jscomp.ScopedName implements Serializable
-
Serialized Fields
-
implicitGoogNamespaceStrength
StaticSourceFile.SourceKind implicitGoogNamespaceStrength
-
index
int index
The index at which the var is declared. e.g. if it's 0, it's the first declared variable in that scope -
input
CompilerInput input
Input source -
name
java.lang.String name
-
nameNode
Node nameNode
-
scope
S extends AbstractScope<S,V> scope
-
-
-
Class com.google.javascript.jscomp.AllowlistWarningsGuard extends WarningsGuard implements Serializable
-
Serialized Fields
-
allowlist
java.util.Set<java.lang.String> allowlist
The set of allowlisted warnings, same format asformatWarning
.
-
-
-
Class com.google.javascript.jscomp.ByPathWarningsGuard extends WarningsGuard implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
include
boolean include
-
level
CheckLevel level
-
paths
java.util.List<java.lang.String> paths
-
priority
int priority
-
-
Class com.google.javascript.jscomp.CheckConformance.InvalidRequirementSpec extends java.lang.Exception implements Serializable
-
Class com.google.javascript.jscomp.ChromeCodingConvention extends CodingConventions.Proxy implements Serializable
-
Serialized Fields
-
indirectlyDeclaredProperties
com.google.common.collect.ImmutableSet<java.lang.String> indirectlyDeclaredProperties
-
-
-
Class com.google.javascript.jscomp.ClosureCodingConvention extends CodingConventions.Proxy implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
indirectlyDeclaredProperties
com.google.common.collect.ImmutableSet<java.lang.String> indirectlyDeclaredProperties
-
-
Class com.google.javascript.jscomp.CodingConventions.Proxy extends java.lang.Object implements Serializable
-
Serialized Fields
-
nextConvention
CodingConvention nextConvention
-
-
-
Class com.google.javascript.jscomp.CompilerOptions extends java.lang.Object implements Serializable
-
Serialization Methods
-
readObject
@GwtIncompatible("ObjectInputStream") private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeObject
@GwtIncompatible("ObjectOutputStream") private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-
Serialized Fields
-
aliasStringsMode
CompilerOptions.AliasStringsMode aliasStringsMode
Aliases string literals to global instances, to reduce code size. -
allowDynamicImport
boolean allowDynamicImport
-
allowZoneJsWithAsyncFunctionsInOutput
boolean allowZoneJsWithAsyncFunctionsInOutput
Bypass check preventing output at a language mode that includes async functions when zone.js is detected as present. Since this check catches difficult-to-debug issues at build time (see https://github.com/angular/angular/issues/31730), setting this option is not recommended. -
ambiguateProperties
boolean ambiguateProperties
Rename unrelated properties to the same name to reduce code size. -
angularPass
boolean angularPass
Processes AngularJS-specific annotations -
applyInputSourceMaps
boolean applyInputSourceMaps
Whether to apply input source maps to the output, i.e. map back to original inputs from input files that have source maps applied to them. -
assumeClosuresOnlyCaptureReferences
boolean assumeClosuresOnlyCaptureReferences
More aggressive function inlining -
assumeForwardDeclaredForMissingTypes
boolean assumeForwardDeclaredForMissingTypes
-
assumeGettersArePure
boolean assumeGettersArePure
Ignore the possibility that getter invocations (gets) can have side-effects and that the results of gets can be side-effected by local state mutations.When
false
, it doesn't necessarily mean that all gets are considered side-effectful or side-effected. Gets that can be proven to be pure may still be considered as such.Recall that object-spread is capable of triggering getters. Since the syntax doesn't explicitly specifiy a property, it is essentailly impossible to prove it has no side-effects without this assumption.
-
assumeStaticInheritanceIsNotUsed
boolean assumeStaticInheritanceIsNotUsed
Assume that static (class-side) inheritance is not being used and that static methods will not be referenced via `this` or through subclasses.When
true
, the compiler is free to make unsafe (breaking) optimizations to code that depends on static inheritance. These optimizations represent a substantial code-size reduction for older projects and therefore cannot be unilaterally disabled.true
was the long-standing implicit assumption before static inheritance came about in ES2015.Example of what may break if this flag is
true
:class Parent { static method() { } } class Child extends Parent { } Child.method(); // `method` will not be defined.
-
assumeStrictThis
boolean assumeStrictThis
Whether the compiler should assume that a function's "this" value never needs coercion (for example in non-strict "null" or "undefined" will be coerced to the global "this" and primitives to objects). -
browserFeaturesetYear
com.google.javascript.jscomp.CompilerOptions.BrowserFeaturesetYear browserFeaturesetYear
Represents browserFeaturesetYear to use for compilation -
browserResolverPrefixReplacements
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> browserResolverPrefixReplacements
Map of prefix replacements for use when moduleResolutionMode isModuleLoader.ResolutionMode.BROWSER_WITH_TRANSFORMED_PREFIXES
. -
checkDeterminism
boolean checkDeterminism
Configures the compiler to log a hash code of the AST after every pass. Only intended for internal development. -
checkMissingOverrideTypes
boolean checkMissingOverrideTypes
-
checksOnly
boolean checksOnly
-
checkSuspiciousCode
boolean checkSuspiciousCode
Checks for suspicious statements that have no effect -
checkSymbols
boolean checkSymbols
Checks that all symbols are defined -
checkTypes
boolean checkTypes
Checks types on expressions -
chromePass
boolean chromePass
Processes cr.* functions -
chunkOutputType
CompilerOptions.ChunkOutputType chunkOutputType
-
chunksToPrintAfterEachPassRegexList
java.util.List<java.lang.String> chunksToPrintAfterEachPassRegexList
-
closurePass
boolean closurePass
Processes goog.provide() and goog.require() calls -
coalesceVariableNames
boolean coalesceVariableNames
Merge two variables together as one. -
codingConvention
CodingConvention codingConvention
A CodingConvention to use during the compile. -
collapseAnonymousFunctions
boolean collapseAnonymousFunctions
Collapses anonymous function declarations into named function declarations -
collapseObjectLiterals
boolean collapseObjectLiterals
Split object literals into individual variables when possible. -
collapsePropertiesLevel
CompilerOptions.PropertyCollapseLevel collapsePropertiesLevel
-
collapseVariableDeclarations
boolean collapseVariableDeclarations
Collapses multiple variable declarations into one -
colorizeErrorOutput
boolean colorizeErrorOutput
-
computeFunctionSideEffects
boolean computeFunctionSideEffects
Use @nosideeffects annotations, function bodies and name graph to determine if calls have side effects. Requires --check_types. -
conformanceConfigs
com.google.common.collect.ImmutableList<com.google.javascript.jscomp.ConformanceConfig> conformanceConfigs
List of conformance configs to use in CheckConformance.The first entry of this list is always the Global ConformanceConfig
-
conformanceRemoveRegexFromPath
com.google.common.base.Optional<java.util.regex.Pattern> conformanceRemoveRegexFromPath
Remove the first match of this regex from any paths when checking conformance whitelists.You can use this to make absolute paths relative to the root of your source tree. This is useful to work around CI and build systems that use absolute paths.
-
continueAfterErrors
boolean continueAfterErrors
-
convertToDottedProperties
boolean convertToDottedProperties
Converts quoted property accesses to dot syntax (a['b'] → a.b) -
crossChunkCodeMotion
boolean crossChunkCodeMotion
Move code to a deeper chunk -
crossChunkCodeMotionNoStubMethods
boolean crossChunkCodeMotionNoStubMethods
Don't generate stub functions when moving methods deeper.Note, switching on this option may break existing code that depends on enumerating prototype methods for mixin behavior, such as goog.mixin or goog.object.extend, since the prototype assignments will be removed from the parent chunk and moved to a later chunk.
-
crossChunkMethodMotion
boolean crossChunkMethodMotion
Move methods to a deeper chunk -
cssRenamingMap
CssRenamingMap cssRenamingMap
Map used in the renaming of CSS class names. -
cssRenamingSkiplist
java.util.Set<java.lang.String> cssRenamingSkiplist
Skiplist used in the renaming of CSS class names. -
deadAssignmentElimination
boolean deadAssignmentElimination
Remove assignments to values that can not be referenced -
debugLogDirectory
java.nio.file.Path debugLogDirectory
A directory into which human readable debug log files can be written.null
indicates that no such files should be written. -
defineReplacements
java.util.LinkedHashMap<java.lang.String,java.lang.Object> defineReplacements
Replacements for @defines. Will be Boolean, Numbers, or Strings -
dependencyOptions
DependencyOptions dependencyOptions
-
devirtualizeMethods
boolean devirtualizeMethods
Devirtualize prototype method by rewriting them to be static calls that take the this pointer as their first argument -
devMode
CompilerOptions.DevMode devMode
Configures the compiler to run expensive validity checks after every pass. Only intended for internal development. -
disambiguateProperties
boolean disambiguateProperties
Rename properties to disambiguate between unrelated fields based on type information. -
doLateLocalization
boolean doLateLocalization
If true, then perform localization passes as late as possible.At the moment this only affects when `ReplaceMessages` does the work of inserting the localized form of declared messages from the message bundle.
TODO(johnlenz): Use this option to control late substitution of other locale-specific code.
-
dynamicImportAlias
java.lang.String dynamicImportAlias
-
emitUseStrict
com.google.common.base.Optional<java.lang.Boolean> emitUseStrict
Should the compiled output start with "'use strict';"? -
enableModuleRewriting
boolean enableModuleRewriting
-
environment
CompilerOptions.Environment environment
The builtin set of externs to be used -
errorFormat
ErrorFormat errorFormat
-
es6ModuleTranspilation
CompilerOptions.Es6ModuleTranspilation es6ModuleTranspilation
-
exportLocalPropertyDefinitions
boolean exportLocalPropertyDefinitions
-
exportTestFunctions
boolean exportTestFunctions
Whether to export test functions. -
externExports
boolean externExports
Whether the exports should be made available viaResult
after compilation. This is implicitly true ifCompilerOptions.externExportsPath
is set. -
externExportsPath
java.lang.String externExportsPath
The output path for the created externs file. -
extraAnnotationNames
java.util.Set<java.lang.String> extraAnnotationNames
A set of extra annotation names which are accepted and silently ignored when encountered in a source file. Defaults to null which has the same effect as specifying an empty set. -
extractPrototypeMemberDeclarations
CompilerOptions.ExtractPrototypeMemberDeclarationsMode extractPrototypeMemberDeclarations
Extracts common prototype member declarations -
extraReportGenerators
java.util.List<SortingErrorManager.ErrorReportGenerator> extraReportGenerators
-
filesToPrintAfterEachPassRegexList
java.util.List<java.lang.String> filesToPrintAfterEachPassRegexList
-
flowSensitiveInlineVariables
boolean flowSensitiveInlineVariables
-
foldConstants
boolean foldConstants
Folds constants (e.g. (2 + 3) to 5) -
forceLibraryInjection
java.util.List<java.lang.String> forceLibraryInjection
Runtime libraries to always inject. -
gatherCssNames
boolean gatherCssNames
Gather CSS names (requires closurePass) -
generateExports
boolean generateExports
-
generatePseudoNames
boolean generatePseudoNames
Generate pseudo names for variables and properties for debugging purposes. -
idGenerators
com.google.common.collect.ImmutableMap<java.lang.String,RenamingMap> idGenerators
Id generators to replace. -
idGeneratorsMapSerialized
java.lang.String idGeneratorsMapSerialized
A previous map of ids (serialized to a string by a previous compile). This will be used as a hint during the ReplaceIdGenerators pass, which will attempt to reuse the same ids. -
incrementalCheckMode
CompilerOptions.IncrementalCheckMode incrementalCheckMode
-
inferConsts
boolean inferConsts
Whether to infer consts. This should not be configurable by external clients. This is a transitional flag for a new type of const analysis.TODO(nicksantos): Remove this option.
-
inferTypes
boolean inferTypes
Even if checkTypes is disabled, clients such as IDEs might want to still infer types. -
inlineConstantVars
boolean inlineConstantVars
Inlines constants (symbols that are all CAPS) -
inlineFunctionsLevel
CompilerOptions.Reach inlineFunctionsLevel
-
inlineGetters
boolean inlineGetters
Inlines trivial getters -
inlineLocalVariables
boolean inlineLocalVariables
Inlines variables -
inlineProperties
boolean inlineProperties
Inlines properties -
inlineVariables
boolean inlineVariables
Inlines variables -
inputDelimiter
java.lang.String inputDelimiter
The string to use as the separator for printInputDelimiter -
inputPropertyMap
VariableMap inputPropertyMap
Input property renaming map. -
inputSourceMaps
com.google.common.collect.ImmutableMap<java.lang.String,SourceMapInput> inputSourceMaps
Input sourcemap files, indexed by the JS files they refer to -
inputVariableMap
VariableMap inputVariableMap
Input variable renaming map.During renaming, the compiler uses this map and the inputPropertyMap to try to preserve renaming mappings from a previous compilation. The application is delta encoding: keeping the diff between consecutive versions of one's code small. The compiler does NOT guarantee to respect these maps; projects should not use these maps to prevent renaming or to select particular names. Point questioners to this post: http://closuretools.blogspot.com/2011/01/property-by-any-other-name-part-3.html
-
instrumentForCoverageOnly
boolean instrumentForCoverageOnly
Instrument code for the purpose of collecting coverage data - restrict to coverage pass only, and skip all other passes. -
instrumentForCoverageOption
CompilerOptions.InstrumentOption instrumentForCoverageOption
-
isolatePolyfills
boolean isolatePolyfills
Isolates injected polyfills from the global scope. -
isStrictModeInput
com.google.common.base.Optional<java.lang.Boolean> isStrictModeInput
Are the input files written for strict mode? -
j2clMinifierEnabled
boolean j2clMinifierEnabled
-
j2clMinifierPruningManifest
java.lang.String j2clMinifierPruningManifest
-
j2clPassMode
CompilerOptions.J2clPassMode j2clPassMode
Processes the output of J2CL -
labelRenaming
boolean labelRenaming
Controls label renaming. -
languageIn
CompilerOptions.LanguageMode languageIn
The JavaScript language version accepted. -
languageOutIsDefaultStrict
com.google.common.base.Optional<java.lang.Boolean> languageOutIsDefaultStrict
-
lineBreak
boolean lineBreak
Line break the output a bit more aggressively -
lineLengthThreshold
int lineLengthThreshold
-
locale
java.lang.String locale
Compiling locale -
markAsCompiled
boolean markAsCompiled
Sets the special "COMPILED" value to true -
maxFunctionSizeAfterInlining
int maxFunctionSizeAfterInlining
For projects that want to avoid the creation of giant functions after inlining. -
mergedPrecompiledLibraries
boolean mergedPrecompiledLibraries
-
messageBundle
MessageBundle messageBundle
Returns localized replacement for MSG_* variables -
moduleResolutionMode
ModuleLoader.ResolutionMode moduleResolutionMode
Which algorithm to use for locating ES6 and CommonJS modules -
moduleRoots
java.util.List<java.lang.String> moduleRoots
CommonJS module prefix. -
nameGenerator
NameGenerator nameGenerator
Shared name generator -
numParallelThreads
int numParallelThreads
-
optimizationLoopMaxIterations
int optimizationLoopMaxIterations
Do up to this many iterations of the optimization loop. Setting this field to some small number, say 3 or 4, allows a large project to build faster, but sacrifice some code size. -
optimizeArgumentsArray
boolean optimizeArgumentsArray
Provide formal names for elements of arguments array. -
optimizeCalls
boolean optimizeCalls
Remove unused function arguments, remove unused return values, and inlines constant parameters. -
optimizeESClassConstructors
boolean optimizeESClassConstructors
Removes trivial constructors where ES class implicit constructors are sufficient. -
outputFeatureSet
com.google.common.base.Optional<FeatureSet> outputFeatureSet
The JavaScript features that are allowed to be in the output. -
outputJs
CompilerOptions.OutputJs outputJs
-
outputJsStringUsage
boolean outputJsStringUsage
Print string usage as part of the compilation log. -
packageJsonEntryNames
java.util.List<java.lang.String> packageJsonEntryNames
Which entries to look for in package.json files when processing modules -
parentChunkCanSeeSymbolsDeclaredInChildren
boolean parentChunkCanSeeSymbolsDeclaredInChildren
Whether when chunk B depends on chunk A and chunk B declares a symbol, this symbol can be seen in A after B has been loaded. This is often true, but may not be true when loading code using nested eval. -
parseInlineSourceMaps
boolean parseInlineSourceMaps
Whether to parse inline source maps. -
parseJsDocDocumentation
Config.JsDocParsing parseJsDocDocumentation
-
pathEscaper
ModuleLoader.PathEscaper pathEscaper
-
polymerExportPolicy
PolymerExportPolicy polymerExportPolicy
How to handle exports/externs for Polymer properties and methods. -
polymerVersion
java.lang.Integer polymerVersion
If non-null, processes Polymer code -
preferLineBreakAtEndOfFile
boolean preferLineBreakAtEndOfFile
Prefer line breaks at end of file -
preferSingleQuotes
boolean preferSingleQuotes
-
preferStableNames
boolean preferStableNames
Use a renaming heuristic with better stability across source changes. With this option each symbol is more likely to receive the same name between builds. The cost may be a slight increase in code size. -
preserveClosurePrimitives
boolean preserveClosurePrimitives
Do not strip goog.provide()/goog.require() calls from the code. -
preserveDetailedSourceInfo
boolean preserveDetailedSourceInfo
-
preserveNonJSDocComments
boolean preserveNonJSDocComments
-
preserveTypeAnnotations
boolean preserveTypeAnnotations
Do not strip closure-style type annotations from code. -
prettyPrint
boolean prettyPrint
Output in pretty indented format -
preventLibraryInjection
boolean preventLibraryInjection
Runtime libraries to never inject. -
printConfig
boolean printConfig
Print all configuration options to stderr after the compiler is initialized. -
printExterns
boolean printExterns
-
printInputDelimiter
boolean printInputDelimiter
Prints a separator comment before each JS script -
printSourceAfterEachPass
boolean printSourceAfterEachPass
-
processCommonJSModules
boolean processCommonJSModules
Rewrite CommonJS modules so that they can be concatenated together. -
productionInstrumentationArrayName
java.lang.String productionInstrumentationArrayName
-
propertiesThatMustDisambiguate
com.google.common.collect.ImmutableSet<java.lang.String> propertiesThatMustDisambiguate
List of properties that we report invalidation errors for. -
propertyRenaming
PropertyRenamingPolicy propertyRenaming
Controls which properties get renamed. -
protectHiddenSideEffects
boolean protectHiddenSideEffects
When set, assume that apparently side-effect free code is meaningful. -
qnameUsesToPrintAfterEachPassList
java.util.List<java.lang.String> qnameUsesToPrintAfterEachPassList
-
quoteKeywordProperties
boolean quoteKeywordProperties
Whether to write keyword properties as foo['class'] instead of foo.class; needed for IE8. -
removeAbstractMethods
boolean removeAbstractMethods
Remove goog.abstractMethod assignments and @abstract methods. -
removeClosureAsserts
boolean removeClosureAsserts
Remove goog.asserts calls. -
removeDeadCode
boolean removeDeadCode
Removes code that will never execute -
removeJ2clAsserts
boolean removeJ2clAsserts
Remove J2CL assert calls. -
removeUnusedClassProperties
boolean removeUnusedClassProperties
Removes unused member properties -
removeUnusedConstructorProperties
boolean removeUnusedConstructorProperties
Removes unused constructor properties -
removeUnusedLocalVars
boolean removeUnusedLocalVars
Removes unused variables in local scope. -
removeUnusedPrototypeProperties
boolean removeUnusedPrototypeProperties
Removes unused member prototypes -
removeUnusedVars
boolean removeUnusedVars
Removes unused variables -
renamePrefix
java.lang.String renamePrefix
Specifies a prefix for all globals -
renamePrefixNamespace
java.lang.String renamePrefixNamespace
Specifies the name of an object that will be used to store all non-extern globals. -
renamePrefixNamespaceAssumeCrossChunkNames
boolean renamePrefixNamespaceAssumeCrossChunkNames
Used by tests of the RescopeGlobalSymbols pass to avoid having declare 2 chunks in simple cases. -
replaceIdGenerators
boolean replaceIdGenerators
Replace id generators -
replaceMessagesWithChromeI18n
boolean replaceMessagesWithChromeI18n
Replace UI strings with chrome.i18n.getMessage calls. Used by Chrome extensions/apps. -
replaceStringsFunctionDescriptions
java.util.List<java.lang.String> replaceStringsFunctionDescriptions
Configuration strings -
replaceStringsInputMap
VariableMap replaceStringsInputMap
-
replaceStringsPlaceholderToken
java.lang.String replaceStringsPlaceholderToken
-
reserveRawExports
boolean reserveRawExports
Reserve property names on the global this object. -
resolveSourceMapAnnotations
boolean resolveSourceMapAnnotations
Whether to resolve source mapping annotations. Cannot do this in an appengine or js environment since we don't have access to the filesystem. -
rewriteFunctionExpressions
boolean rewriteFunctionExpressions
Reduces the size of common function expressions. -
rewriteGlobalDeclarationsForTryCatchWrapping
boolean rewriteGlobalDeclarationsForTryCatchWrapping
Move top-level function declarations to the top -
rewriteModulesBeforeTypechecking
boolean rewriteModulesBeforeTypechecking
-
rewritePolyfills
boolean rewritePolyfills
Inject polyfills -
runtimeTypeCheck
boolean runtimeTypeCheck
Inserts run-time type assertions for debugging. -
runtimeTypeCheckLogFunction
java.lang.String runtimeTypeCheckLogFunction
A JS function to be used for logging run-time type assertion failures. It will be passed the warning as a string and the faulty expression as arguments. -
skipNonTranspilationPasses
boolean skipNonTranspilationPasses
Configures the compiler to skip as many passes as possible. If transpilation is requested, it will be run, but all others passes will be skipped. -
skipUnsupportedPasses
boolean skipUnsupportedPasses
Skips passes (logging a warning) whose PassFactory feature set doesn't include some features currently in the AST. -
smartNameRemoval
boolean smartNameRemoval
Removes code associated with unused global names -
sourceMapDetailLevel
SourceMap.DetailLevel sourceMapDetailLevel
The detail level for the generated source map. -
sourceMapFormat
SourceMap.Format sourceMapFormat
The source map file format -
sourceMapIncludeSourcesContent
boolean sourceMapIncludeSourcesContent
Whether to include full file contents in the source map. -
sourceMapLocationMappings
java.util.List<? extends SourceMap.LocationMapping> sourceMapLocationMappings
-
sourceMapOutputPath
java.lang.String sourceMapOutputPath
The output path for the source map. -
strictMessageReplacement
boolean strictMessageReplacement
Whether we should report an error if a message is absent from a bundle. -
stripNamePrefixes
com.google.common.collect.ImmutableSet<java.lang.String> stripNamePrefixes
Name prefixes that determine which variables and properties to strip -
stripNameSuffixes
com.google.common.collect.ImmutableSet<java.lang.String> stripNameSuffixes
Name suffixes that determine which variables and properties to strip -
stripTypes
com.google.common.collect.ImmutableSet<java.lang.String> stripTypes
Names of types to strip -
summaryDetailLevel
int summaryDetailLevel
-
syntheticBlockEndMarker
java.lang.String syntheticBlockEndMarker
-
syntheticBlockStartMarker
java.lang.String syntheticBlockStartMarker
-
tcProjectId
java.lang.String tcProjectId
-
tracer
CompilerOptions.TracerMode tracer
-
tracerOutput
java.nio.file.Path tracerOutput
-
transformAMDToCJSModules
boolean transformAMDToCJSModules
Transform AMD to CommonJS modules. -
trustedStrings
boolean trustedStrings
-
tweakProcessing
CompilerOptions.TweakProcessing tweakProcessing
What kind of processing to do for goog.tweak functions. -
typedAstOutputFile
java.nio.file.Path typedAstOutputFile
-
unusedImportsToRemove
com.google.common.collect.ImmutableSet<java.lang.String> unusedImportsToRemove
A Set of goog.requires to be removed. If null, ALL of the unused goog.requires will be counted as a candidate to be removed. -
useOriginalNamesInOutput
boolean useOriginalNamesInOutput
Whether to use the original names of nodes in the code output. This option is only really useful when using the compiler to print code meant to check in to source. -
useSizeHeuristicToStopOptimizationLoop
boolean useSizeHeuristicToStopOptimizationLoop
-
useTypesForLocalOptimization
boolean useTypesForLocalOptimization
Use type information to enable additional optimization opportunities. -
variableRenaming
VariableRenamingPolicy variableRenaming
Controls which variables get renamed. -
warningsGuard
ComposeWarningsGuard warningsGuard
-
wrapGoogModulesForWhitespaceOnly
boolean wrapGoogModulesForWhitespaceOnly
For use inCompilationLevel.WHITESPACE_ONLY
mode, when using goog.module. -
xidHashFunction
Xid.HashFunction xidHashFunction
Hash function to use for xid generation.
-
-
-
Class com.google.javascript.jscomp.CompilerOptionsPreprocessor.InvalidOptionsException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.ComposeWarningsGuard extends WarningsGuard implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
demoteErrors
boolean demoteErrors
-
guardComparator
java.util.Comparator<WarningsGuard> guardComparator
-
guards
java.util.TreeSet<WarningsGuard> guards
-
numberOfAdds
int numberOfAdds
-
orderOfAddition
java.util.Map<WarningsGuard,java.lang.Integer> orderOfAddition
-
-
Class com.google.javascript.jscomp.ConformanceConfig extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.CssRenamingMap.ByPart extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.CssRenamingMap.ByWhole extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.DefaultNameGenerator extends java.lang.Object implements Serializable
-
Serialized Fields
-
firstChars
com.google.javascript.jscomp.DefaultNameGenerator.CharPriority[] firstChars
-
nameCount
int nameCount
-
nonFirstChars
com.google.javascript.jscomp.DefaultNameGenerator.CharPriority[] nonFirstChars
-
prefix
java.lang.String prefix
-
priorityLookupMap
java.util.Map<java.lang.Character,com.google.javascript.jscomp.DefaultNameGenerator.CharPriority> priorityLookupMap
-
reservedNames
java.util.Set<java.lang.String> reservedNames
-
-
-
Class com.google.javascript.jscomp.DependencyOptions extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.DiagnosticGroup extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
name
java.lang.String name
-
types
com.google.common.collect.ImmutableSet<DiagnosticType> types
-
-
Class com.google.javascript.jscomp.DiagnosticGroupPathSuppressingWarningsGuard extends WarningsGuard implements Serializable
-
Serialized Fields
-
group
DiagnosticGroup group
-
part
java.lang.String part
-
-
-
Class com.google.javascript.jscomp.DiagnosticGroupWarningsGuard extends WarningsGuard implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
group
DiagnosticGroup group
-
level
CheckLevel level
-
-
Class com.google.javascript.jscomp.DiagnosticType extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
format
java.lang.String format
The default way to format errors. The style of format is java.text.MessageFormat. -
key
java.lang.String key
The error type. Used as the BugPattern and BugInstance types by BugBot's XML -
level
CheckLevel level
The default reporting level for this diagnostic
-
-
Class com.google.javascript.jscomp.FlagUsageException extends java.lang.RuntimeException implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.jscomp.GoogleCodingConvention extends CodingConventions.Proxy implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.jscomp.IdGenerator extends java.lang.Object implements Serializable
-
Serialized Fields
-
currentId
int currentId
Ids for cross-module method stubbing, so that each method has a unique id.
-
-
-
Class com.google.javascript.jscomp.J2clSuppressWarningsGuard extends WarningsGuard implements Serializable
-
Class com.google.javascript.jscomp.JsAst.ParseResult extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
errors
com.google.common.collect.ImmutableList<JsAst.RhinoError> errors
-
warnings
com.google.common.collect.ImmutableList<JsAst.RhinoError> warnings
-
-
Class com.google.javascript.jscomp.JsAst.RhinoError extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
line
int line
-
lineOffset
int lineOffset
-
message
java.lang.String message
-
sourceName
java.lang.String sourceName
-
-
Class com.google.javascript.jscomp.JSChunk extends DependencyInfo.Base implements Serializable
- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
@GwtIncompatible("ObjectinputStream") private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-
Serialized Fields
-
deps
java.util.List<JSChunk> deps
Chunks that this chunk depends on -
depth
int depth
The length of the longest path starting from this chunk -
index
int index
The position of this chunk relative to all others in the AST. -
name
java.lang.String name
Chunk name
-
-
Class com.google.javascript.jscomp.JSChunkGraph extends java.lang.Object implements Serializable
-
Serialized Fields
-
chunks
JSChunk[] chunks
-
chunksByDepth
java.util.List<java.util.List<JSChunk>> chunksByDepth
Lists of chunks at each depth.chunksByDepth.get(3)
is a list of the chunks at depth 3, for example. -
dependencyMap
java.util.IdentityHashMap<JSChunk,java.util.Set<JSChunk>> dependencyMap
dependencyMap is a cache of dependencies that makes the dependsOn function faster. Each map entry associates a starting JSChunk with the set of JSChunks that are transitively dependent on the starting chunk.If the cache returns null, then the entry hasn't been filled in for that chunk.
NOTE: JSChunk has identity semantics so this map implementation is safe
-
selfPlusTransitiveDeps
java.util.BitSet[] selfPlusTransitiveDeps
selfPlusTransitiveDeps[i] = indices of all chunks that chunks[i] depends on, including itself. -
subtreeSize
int[] subtreeSize
subtreeSize[i] = Number of chunks that transitively depend on chunks[i], including itself.
-
-
-
Class com.google.javascript.jscomp.JSChunkGraph.ChunkDependenceException extends java.lang.IllegalArgumentException implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.jscomp.JSChunkGraph.MissingChunkException extends java.lang.Exception implements Serializable
-
Class com.google.javascript.jscomp.JSError extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.JsMessage.PlaceholderFormatException extends java.lang.Exception implements Serializable
-
Class com.google.javascript.jscomp.ModuleIdentifier extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.RandomNameGenerator extends java.lang.Object implements Serializable
-
Serialized Fields
-
firstChars
com.google.common.collect.ImmutableSet<java.lang.Character> firstChars
The possible first characters, after reserved characters are removed -
nameCount
int nameCount
How many names have we issued so far (includes names that cannot be used because they are reserved through 'reservedNames' or JavaScript keywords) -
nonFirstChars
com.google.common.collect.ImmutableSet<java.lang.Character> nonFirstChars
Possible non-first characters, after reserved characters are removed -
prefix
java.lang.String prefix
Prefix added to all generated names -
random
java.util.Random random
Source of randomness -
reservedNames
com.google.common.collect.ImmutableSet<java.lang.String> reservedNames
List of reserved names; these are not returned by generateNextName -
shuffledFirst
java.lang.String shuffledFirst
Randomly-shuffled version of firstChars -
shuffledNonFirst
com.google.common.collect.ImmutableList<java.lang.String> shuffledNonFirst
Randomly-shuffled versions of nonFirstChars (there are NUM_SHUFFLES of them)
-
-
-
Class com.google.javascript.jscomp.Reference extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.ReferenceCollection extends java.lang.Object implements Serializable
-
Serialized Fields
-
references
java.util.List<Reference> references
-
-
-
Class com.google.javascript.jscomp.Requirement extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<com.google.javascript.jscomp.Requirement> implements Serializable
-
Class com.google.javascript.jscomp.Requirement.WhitelistEntry extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.Scope extends AbstractScope<Scope,Var> implements Serializable
-
Serialized Fields
-
depth
int depth
-
parent
Scope parent
-
-
-
Class com.google.javascript.jscomp.ShowByPathWarningsGuard extends WarningsGuard implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
warningsGuard
ByPathWarningsGuard warningsGuard
-
-
Class com.google.javascript.jscomp.SourceFile extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
@GwtIncompatible("ObjectInputStream") private void readObject(java.io.ObjectInputStream in) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeObject
@GwtIncompatible("ObjectOutputStream") private void writeObject(java.io.ObjectOutputStream os) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Serialized Fields
-
fileName
java.lang.String fileName
The file name of the source file.It does not necessarily need to correspond to a real path. But it should be unique. Will appear in warning messages emitted by the compiler.
-
kind
StaticSourceFile.SourceKind kind
-
loader
com.google.javascript.jscomp.SourceFile.CodeLoader loader
-
-
Class com.google.javascript.jscomp.SourceMapInput extends java.lang.Object implements Serializable
-
Serialized Fields
-
sourceFile
SourceFile sourceFile
-
-
-
Class com.google.javascript.jscomp.StrictWarningsGuard extends WarningsGuard implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.jscomp.SymbolTable.Symbol extends SimpleSlot implements Serializable
-
Serialized Fields
-
declaration
SymbolTable.Reference declaration
-
docInfo
JSDocInfo docInfo
-
docScope
SymbolTable.SymbolScope docScope
-
propertyScope
SymbolTable.SymbolScope propertyScope
-
references
java.util.Map<Node,SymbolTable.Reference> references
-
scope
SymbolTable.SymbolScope scope
-
visibility
JSDocInfo.Visibility visibility
Stored separately fromSymbolTable.Symbol.docInfo
, because the visibility stored in JSDocInfo is not
-
-
-
Class com.google.javascript.jscomp.TypedScope extends AbstractScope<TypedScope,TypedVar> implements Serializable
-
Serialized Fields
-
depth
int depth
-
isBottom
boolean isBottom
Whether this is a bottom scope for the purposes of type inference. -
module
Module module
-
parent
TypedScope parent
-
reservedNames
java.util.Set<java.lang.String> reservedNames
-
-
-
Class com.google.javascript.jscomp.TypedVar extends AbstractVar<TypedScope,TypedVar> implements Serializable
-
Serialized Fields
-
markedAssignedExactlyOnce
boolean markedAssignedExactlyOnce
-
markedEscaped
boolean markedEscaped
-
type
JSType type
-
typeInferred
boolean typeInferred
Whether the variable's type has been inferred or is declared. An inferred type may change over time (as more code is discovered), whereas a declared type is a static contract that must be matched.
-
-
-
Class com.google.javascript.jscomp.TypeMismatch extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.UniqueIdSupplier extends java.lang.Object implements Serializable
-
Serialized Fields
-
counter
com.google.common.collect.Multiset<java.lang.Integer> counter
-
-
-
Class com.google.javascript.jscomp.Var extends AbstractVar<Scope,Var> implements Serializable
-
Class com.google.javascript.jscomp.VariableMap extends java.lang.Object implements Serializable
-
Serialized Fields
-
map
com.google.common.collect.ImmutableBiMap<java.lang.String,java.lang.String> map
Maps between original source name to new name
-
-
-
Class com.google.javascript.jscomp.WarningsGuard extends java.lang.Object implements Serializable
-
-
Package com.google.javascript.jscomp.bundle
-
Class com.google.javascript.jscomp.bundle.TranspilationException extends java.lang.RuntimeException implements Serializable
-
-
Package com.google.javascript.jscomp.colors
-
Class com.google.javascript.jscomp.colors.ColorId extends java.lang.Object implements Serializable
-
Serialized Fields
-
rightAligned
long rightAligned
-
-
-
-
Package com.google.javascript.jscomp.deps
-
Class com.google.javascript.jscomp.deps.ServiceException extends java.lang.Exception implements Serializable
-
Class com.google.javascript.jscomp.deps.SortedDependencies.MissingProvideException extends java.lang.Exception implements Serializable
-
-
Package com.google.javascript.jscomp.graph
-
Class com.google.javascript.jscomp.graph.StandardUnionFind extends java.lang.Object implements Serializable
-
-
Package com.google.javascript.jscomp.ijs
-
Class com.google.javascript.jscomp.ijs.CheckTypeSummaryWarningsGuard extends WarningsGuard implements Serializable
-
Serialized Fields
-
level
CheckLevel level
-
-
-
-
Package com.google.javascript.jscomp.parsing.parser
-
Class com.google.javascript.jscomp.parsing.parser.FeatureSet extends java.lang.Object implements Serializable
-
Serialized Fields
-
features
com.google.common.collect.ImmutableSet<FeatureSet.Feature> features
-
-
-
Class com.google.javascript.jscomp.parsing.parser.SourceFile extends java.lang.Object implements Serializable
-
Serialized Fields
-
contents
java.lang.String contents
-
name
java.lang.String name
-
-
-
-
Package com.google.javascript.jscomp.parsing.parser.util
-
Class com.google.javascript.jscomp.parsing.parser.util.SourcePosition extends java.lang.Object implements Serializable
-
Serialized Fields
-
column
int column
-
line
int line
-
offset
int offset
-
source
SourceFile source
-
-
-
-
Package com.google.javascript.jscomp.parsing.parser.util.format
-
Class com.google.javascript.jscomp.parsing.parser.util.format.IllegalFormatCodePointException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.IllegalFormatConversionException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.IllegalFormatFlagsException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.IllegalFormatPrecisionException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.IllegalFormatWidthException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.MissingFormatArgumentException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.MissingFormatWidthException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.parsing.parser.util.format.UnknownFormatConversionException extends java.lang.RuntimeException implements Serializable
-
-
Package com.google.javascript.jscomp.serialization
-
Class com.google.javascript.jscomp.serialization.AstNode extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.ExternsSummary extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.LazyAst extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.MalformedTypedAstException extends java.lang.RuntimeException implements Serializable
-
Class com.google.javascript.jscomp.serialization.NonLazyAst extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.NonLazyTypedAst extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.NonLazyTypedAst.List extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.ObjectTypeProto extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.ObjectTypeProto.DebugInfo extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.OptimizationJsdoc extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.SourceFilePool extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.SourceFileProto extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.SourceFileProto.FileOnDisk extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.SourceFileProto.ZipEntryOnDisk extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.StringPoolProto extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.SubtypingEdge extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TemplateStringValue extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypedAst extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypedAst.List extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypePool extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypePool.DebugInfo extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypePool.DebugInfo.Mismatch extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypePoolList extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.TypeProto extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
Class com.google.javascript.jscomp.serialization.UnionTypeProto extends com.google.protobuf.GeneratedMessageV3 implements Serializable
-
-
Package com.google.javascript.refactoring
-
Class com.google.javascript.refactoring.Scanner extends java.lang.Object implements Serializable
-
-
Package com.google.javascript.refactoring.examples
-
Class com.google.javascript.refactoring.examples.GoogBindToArrow extends Scanner implements Serializable
-
-
Package com.google.javascript.rhino
-
Class com.google.javascript.rhino.HamtPMap extends java.lang.Object implements Serializable
-
Serialized Fields
-
children
HamtPMap<K,V>[] children
Non-null array of children. Elements are never reassigned. -
hash
int hash
Hash of the key, right-shifted by BITS*depth. -
key
K key
Non-null key (exception: empty map has a null key). -
mask
int mask
Bit mask indicating the children that are present (bitCount(mask) == children.length). -
value
V value
Non-null value (exceptions: (1) empty map, (2) result of pivot, if not found).
-
-
-
Class com.google.javascript.rhino.InputId extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
id
java.lang.String id
-
-
Class com.google.javascript.rhino.JSDocInfo extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
propertyBits
long propertyBits
-
propertyKeysBitset
long propertyKeysBitset
-
propertyValues
com.google.common.collect.ImmutableList<java.lang.Object> propertyValues
-
-
Class com.google.javascript.rhino.JSTypeExpression extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
root
Node root
The root of the AST. -
sourceName
java.lang.String sourceName
The source name where the type expression appears.
-
-
Class com.google.javascript.rhino.NonJSDocComment extends java.lang.Object implements Serializable
-
Serialized Fields
-
contents
java.lang.String contents
-
endPosition
SourcePosition endPosition
-
endsAsLineComment
boolean endsAsLineComment
-
isInline
boolean isInline
-
isTrailing
boolean isTrailing
-
startPosition
SourcePosition startPosition
-
-
-
Class com.google.javascript.rhino.SimpleSourceFile extends java.lang.Object implements Serializable
-
Serialized Fields
-
kind
StaticSourceFile.SourceKind kind
-
name
java.lang.String name
-
-
-
-
Package com.google.javascript.rhino.jstype
-
Class com.google.javascript.rhino.jstype.Property extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
docInfo
JSDocInfo docInfo
The JSDocInfo for this property. -
inferred
boolean inferred
Whether the property's type is inferred. -
name
java.lang.String name
Property's name. -
propertyNode
Node propertyNode
The node corresponding to this property, e.g., a GETPROP node that declares this property. -
type
JSType type
Property's type.
-
-
Class com.google.javascript.rhino.jstype.SimpleSlot extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
inferred
boolean inferred
-
name
java.lang.String name
-
type
JSType type
-
-