Serialized Form
-
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
-
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
Var node -
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
-
propertyTestFunctions
com.google.common.collect.ImmutableSet<java.lang.String> propertyTestFunctions
-
-
Class com.google.javascript.jscomp.CodingConventions.Proxy extends java.lang.Object implements Serializable
-
Serialized Fields
-
nextConvention
CodingConvention nextConvention
-
-
-
Class com.google.javascript.jscomp.CompilerInput extends DependencyInfo.Base implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
ast
SourceAst ast
-
dependencyInfo
DependencyInfo dependencyInfo
-
dynamicRequires
java.util.List<java.lang.String> dynamicRequires
-
extraProvides
java.util.List<java.lang.String> extraProvides
-
extraRequires
java.util.List<DependencyInfo.Require> extraRequires
-
hasFullParseDependencyInfo
boolean hasFullParseDependencyInfo
-
id
InputId id
-
jsModuleType
CompilerInput.ModuleType jsModuleType
-
module
JSModule module
-
orderedRequires
java.util.List<DependencyInfo.Require> orderedRequires
-
-
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
-
aliasableStrings
java.util.Set<java.lang.String> aliasableStrings
If set to a non-empty set, those strings literals will be aliased to a single global instance per string, to avoid creating more objects than necessary. -
aliasAllStrings
boolean aliasAllStrings
Aliases all string literals to global instances, to avoid creating more objects than necessary (if true, overrides any set of strings passed in to aliasableStrings) -
aliasStringsBlacklist
java.lang.String aliasStringsBlacklist
A blacklist in the form of a regular expression to block strings that contains certain words from being aliased. If the value is the empty string, no words are blacklisted. -
allowHotswapReplaceScript
boolean allowHotswapReplaceScript
-
ambiguateProperties
boolean ambiguateProperties
Rename unrelated properties to the same name to reduce code size. -
angularPass
boolean angularPass
Processes AngularJS-specific annotations -
anonymousFunctionNaming
AnonymousFunctionNamingPolicy anonymousFunctionNaming
Give anonymous functions names for easier debugging -
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.
-
assumeStaticInheritanceRequired
boolean assumeStaticInheritanceRequired
Consider that static (class-side) inheritance may be being used and that static methods may be referenced via `this` or through subclasses.When
false
, 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.false
was the long-standing implicit assumption before static inheritance came about in ES6.Example of what may break if this flag is
false
: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). -
brokenClosureRequiresLevel
CheckLevel brokenClosureRequiresLevel
Deprecated. -
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. -
checkGlobalNamesLevel
CheckLevel checkGlobalNamesLevel
-
checkMissingGetCssNameBlacklist
java.lang.String checkMissingGetCssNameBlacklist
Regex of string literals that may only appear in goog.getCssName arguments. -
checkMissingGetCssNameLevel
CheckLevel checkMissingGetCssNameLevel
-
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 -
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<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. -
dartPass
boolean dartPass
Processes the output of the Dart Dev Compiler -
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.Map<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. -
emitUseStrict
com.google.common.base.Optional<java.lang.Boolean> emitUseStrict
Should the compiled output start with "'use strict';"? -
enableModuleRewriting
boolean enableModuleRewriting
-
enforceAccessControlCodingConventions
boolean enforceAccessControlCodingConventions
Transitional option. -
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
-
extraSmartNameRemoval
boolean extraSmartNameRemoval
Removes code associated with unused global names -
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 -
inputAnonymousFunctionNamingMap
VariableMap inputAnonymousFunctionNamingMap
Input anonymous function renaming map. -
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
-
instrumentBranchCoverage
boolean instrumentBranchCoverage
Deprecated.Please use setInstrumentForCoverageOption with BRANCH_ONLY InstrumentationOption insteadInstrument branch coverage data - valid only if instrumentForCoverage is True -
instrumentForCoverage
boolean instrumentForCoverage
Deprecated.Please use setInstrumentForCoverageOption with LINE_ONLY InstrumentationOption insteadInstrument code for the purpose of collecting coverage data. -
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. -
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. -
moveFunctionDeclarations
boolean moveFunctionDeclarations
Move top-level function declarations to the top -
nameGenerator
com.google.javascript.jscomp.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 parameters from call sites. -
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. -
propertyInvalidationErrors
java.util.Map<java.lang.String,CheckLevel> propertyInvalidationErrors
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. -
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 -
removeUnusedPrototypePropertiesInExterns
boolean removeUnusedPrototypePropertiesInExterns
Tells AnalyzePrototypeProperties it can remove externed props. -
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
-
replaceStringsReservedStrings
java.util.Set<java.lang.String> replaceStringsReservedStrings
-
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. -
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. -
stripNamePrefixes
java.util.Set<java.lang.String> stripNamePrefixes
Name prefixes that determine which variables and properties to strip -
stripNameSuffixes
java.util.Set<java.lang.String> stripNameSuffixes
Name suffixes that determine which variables and properties to strip -
stripTypePrefixes
java.util.Set<java.lang.String> stripTypePrefixes
Qualified type name prefixes that determine which types to strip -
stripTypes
java.util.Set<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. -
tweakReplacements
java.util.Map<java.lang.String,java.lang.Object> tweakReplacements
Replacements for tweaks. Will be Boolean, Numbers, or Strings -
typedAstOutputFile
java.nio.file.Path typedAstOutputFile
-
useGraphBasedDisambiguator
boolean useGraphBasedDisambiguator
Use the graph based disambiguator.This is a transitional option while the graph based disambiguator becomes the default. This option has no effect if disambiguation is disabled.
-
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
- serialVersionUID:
- 0L
-
Serialized Fields
-
memoizedIsInitialized
byte memoizedIsInitialized
-
requirement_
java.util.List<Requirement> requirement_
-
-
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.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 DiagnosticGroupWarningsGuard implements Serializable
-
Serialized Fields
-
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.text.MessageFormat format
The default way to format errors -
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.FileAwareWarningsGuard extends WarningsGuard implements Serializable
-
Serialized Fields
-
compiler
AbstractCompiler compiler
-
-
-
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.Instrumentation extends com.google.protobuf.GeneratedMessage implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
writeReplace
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-
Serialized Fields
-
appNameSetter_
java.lang.Object appNameSetter_
-
bitField0_
int bitField0_
-
declarationToRemove_
com.google.protobuf.LazyStringList declarationToRemove_
-
init_
com.google.protobuf.LazyStringList init_
-
memoizedIsInitialized
byte memoizedIsInitialized
-
memoizedSerializedSize
int memoizedSerializedSize
-
reportCall_
java.lang.Object reportCall_
-
reportDefined_
java.lang.Object reportDefined_
-
reportExit_
java.lang.Object reportExit_
-
unknownFields
com.google.protobuf.UnknownFieldSet unknownFields
-
-
Class com.google.javascript.jscomp.J2clSuppressWarningsGuard extends DiagnosticGroupWarningsGuard implements Serializable
-
Class com.google.javascript.jscomp.JsAst extends java.lang.Object 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
-
features
FeatureSet features
-
fileName
java.lang.String fileName
-
inputId
InputId inputId
-
root
Node root
-
sourceFile
SourceFile sourceFile
-
-
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.JSError extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.JSModule extends DependencyInfo.Base implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
deps
java.util.List<JSModule> deps
Modules that this module depends on -
depth
int depth
The length of the longest path starting from this module -
index
int index
The position of this module relative to all others in the AST. -
inputs
java.util.List<CompilerInput> inputs
Source code inputs -
name
java.lang.String name
Module name
-
-
Class com.google.javascript.jscomp.JSModuleGraph extends java.lang.Object implements Serializable
-
Serialized Fields
-
dependencyMap
java.util.Map<JSModule,java.util.Set<JSModule>> dependencyMap
dependencyMap is a cache of dependencies that makes the dependsOn function faster. Each map entry associates a starting JSModule with the set of JSModules that are transitively dependent on the starting module.If the cache returns null, then the entry hasn't been filled in for that module.
NOTE: JSModule has identity semantics so this map implementation is safe
-
modules
JSModule[] modules
-
modulesByDepth
java.util.List<java.util.List<JSModule>> modulesByDepth
Lists of modules at each depth.modulesByDepth.get(3)
is a list of the modules at depth 3, for example. -
selfPlusTransitiveDeps
java.util.BitSet[] selfPlusTransitiveDeps
selfPlusTransitiveDeps[i] = indices of all modules that modules[i] depends on, including itself. -
subtreeSize
int[] subtreeSize
subtreeSize[i] = Number of modules that transitively depend on modules[i], including itself.
-
-
-
Class com.google.javascript.jscomp.JSModuleGraph.MissingModuleException extends java.lang.Exception implements Serializable
-
Class com.google.javascript.jscomp.JSModuleGraph.ModuleDependenceException extends java.lang.IllegalArgumentException implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.jscomp.LazyParsedDependencyInfo extends DependencyInfo.Base implements Serializable
-
Serialized Fields
-
ast
JsAst ast
-
delegate
DependencyInfo delegate
-
loadFlags
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> loadFlags
-
-
-
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.RecoverableJsAst extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
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<Requirement> implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
allowExtendingValue_
boolean allowExtendingValue_
-
bitField0_
int bitField0_
-
configFile_
com.google.protobuf.LazyStringList configFile_
-
errorMessage_
java.lang.Object errorMessage_
-
extends_
java.lang.Object extends_
-
javaClass_
java.lang.Object javaClass_
-
memoizedIsInitialized
byte memoizedIsInitialized
-
onlyApplyTo_
com.google.protobuf.LazyStringList onlyApplyTo_
-
onlyApplyToRegexp_
com.google.protobuf.LazyStringList onlyApplyToRegexp_
-
reportLooseTypeViolations_
boolean reportLooseTypeViolations_
-
ruleId_
java.lang.Object ruleId_
-
severity_
int severity_
-
type_
int type_
-
typeMatchingStrategy_
int typeMatchingStrategy_
-
value_
com.google.protobuf.LazyStringList value_
-
whitelist_
com.google.protobuf.LazyStringList whitelist_
-
whitelistEntry_
java.util.List<Requirement.WhitelistEntry> whitelistEntry_
-
whitelistRegexp_
com.google.protobuf.LazyStringList whitelistRegexp_
-
-
Class com.google.javascript.jscomp.Requirement.WhitelistEntry extends com.google.protobuf.GeneratedMessageV3 implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
automaticallyPrune_
boolean automaticallyPrune_
-
bitField0_
int bitField0_
-
comment_
com.google.protobuf.LazyStringList comment_
-
explanation_
java.lang.Object explanation_
-
memoizedIsInitialized
byte memoizedIsInitialized
-
prefix_
com.google.protobuf.LazyStringList prefix_
-
reason_
int reason_
-
regexp_
com.google.protobuf.LazyStringList regexp_
-
-
Class com.google.javascript.jscomp.Scope extends AbstractScope<Scope,Var> implements Serializable
-
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
-
-
Serialized Fields
-
fileName
java.lang.String fileName
-
kind
StaticSourceFile.SourceKind kind
-
originalPath
java.lang.String originalPath
-
-
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.SyntheticAst extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
inputId
InputId inputId
-
root
Node root
-
sourceFile
SourceFile sourceFile
-
-
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. -
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.String> counter
-
-
-
Class com.google.javascript.jscomp.Var extends AbstractVar<Scope,Var> implements Serializable
-
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.deps
-
Class com.google.javascript.jscomp.deps.DependencyInfo.Base extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.deps.DependencyInfo.Require extends java.lang.Object implements Serializable
-
Class com.google.javascript.jscomp.deps.ServiceException extends java.lang.Exception implements Serializable
-
Class com.google.javascript.jscomp.deps.SimpleDependencyInfo extends DependencyInfo.Base 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.LookaheadErrorReporter.ParseException extends java.lang.RuntimeException implements Serializable
-
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.refactoring
-
Class com.google.javascript.refactoring.RefasterJsScanner extends Scanner implements Serializable
-
Serialized Fields
-
matchedTemplates
com.google.common.collect.ImmutableList<com.google.javascript.refactoring.RefasterJsScanner.RefasterJsTemplate> matchedTemplates
The RefasterJsTemplates that matched the last match. -
templateJs
java.lang.String templateJs
The JS code that contains the RefasterJs templates. -
templates
java.util.LinkedHashMap<JsSourceMatcher,com.google.common.collect.ImmutableList<com.google.javascript.refactoring.RefasterJsScanner.RefasterJsTemplate>> templates
Each 'before' template has multiple RefasterJsTemplate instances that correspond to the multiple alternative fixes. -
typeMatchingStrategy
TypeMatchingStrategy typeMatchingStrategy
The type matching strategy to use when matching templates.Defaults to
TypeMatchingStrategy.SUBTYPES
.
-
-
-
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
-
bitset
int bitset
TheJSDocInfo.isConstant()
,JSDocInfo.isConstructor()
,JSDocInfo.isInterface()
,JSDocInfo.isHidden()
and other flags as well as whether theJSDocInfo.type
field stores a value forJSDocInfo.getType()
,JSDocInfo.getReturnType()
orJSDocInfo.getEnumParameterType()
. -
documentation
com.google.javascript.rhino.JSDocInfo.LazilyInitializedDocumentation documentation
-
includeDocumentation
boolean includeDocumentation
Whether to include documentation.- See Also:
JSDocInfo.LazilyInitializedDocumentation
-
info
com.google.javascript.rhino.JSDocInfo.LazilyInitializedInfo info
-
inlineType
boolean inlineType
Whether the type annotation was inlined. -
originalCommentPosition
int originalCommentPosition
Position of the original comment. -
thisType
JSTypeExpression thisType
The type forJSDocInfo.getThisType()
. -
type
JSTypeExpression type
The type forJSDocInfo.getType()
,JSDocInfo.getReturnType()
orJSDocInfo.getEnumParameterType()
. The knowledge of which one is recorded is stored in theJSDocInfo.bitset
field. -
visibility
JSDocInfo.Visibility visibility
-
-
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.Node 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 out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Class com.google.javascript.rhino.Node.TypeDeclarationNode extends Node implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
str
java.lang.String str
-
-
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.AllType extends JSType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.BigIntType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.BooleanType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.EnumElementType extends ObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
enumType
EnumType enumType
-
name
java.lang.String name
-
primitiveObjectType
ObjectType primitiveObjectType
-
primitiveType
JSType primitiveType
The primitive type this enum element type wraps. For instance, in the following code defining theLOCAL_CODES
enumvar LOCAL_CODES = {A: 3, B: 9, C: 8}
the primitive type of the the constants isnumber
.
-
-
Class com.google.javascript.rhino.jstype.EnumType extends PrototypeObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
elements
java.util.Set<java.lang.String> elements
-
elementsType
EnumElementType elementsType
-
source
Node source
-
-
Class com.google.javascript.rhino.jstype.FunctionType extends PrototypeObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
call
com.google.javascript.rhino.jstype.ArrowType call
[[Call]]
property. -
canonicalRepresentation
FunctionType canonicalRepresentation
If non-null, the original canonical variant of this function; only used for constructors. -
closurePrimitive
ClosurePrimitive closurePrimitive
The primitive id associated with this FunctionType, or null if none. -
constructorAmbiguity
com.google.javascript.rhino.jstype.FunctionType.ConstructorAmbiguity constructorAmbiguity
-
extendedInterfaces
com.google.common.collect.ImmutableList<ObjectType> extendedInterfaces
The interfaces directly extended by this function (for interfaces) It is only relevant for constructors. May not benull
. -
implementedInterfaces
com.google.common.collect.ImmutableList<ObjectType> implementedInterfaces
The interfaces directly implemented by this function (for constructors) It is only relevant for constructors. May not benull
. -
isAbstract
boolean isAbstract
If true, the function type represents an abstract method or the constructor of an abstract class -
isStructuralInterface
boolean isStructuralInterface
if this is an interface, indicate whether or not it supports structural interface matching -
kind
com.google.javascript.rhino.jstype.FunctionType.Kind kind
Whether a function is a constructor, an interface, or just an ordinary function. -
propAccess
com.google.javascript.rhino.jstype.FunctionType.PropAccess propAccess
Whether the instances are structs, dicts, or unrestricted. -
prototypeSlot
Property prototypeSlot
Theprototype
property. This field is lazily initialized by#getPrototype()
. The most important reason for lazily initializing this field is that there are cycles in the native types graph, so some prototypes must temporarily benull
during the construction of the graph.If non-null, the type must be a PrototypeObjectType.
-
source
Node source
The function node which this type represents. It may benull
. -
subTypes
java.util.List<FunctionType> subTypes
The types which are subtypes of this function. It is lazily initialized and only relevant for constructors. In all other cases it isnull
. -
typeOfThis
JSType typeOfThis
The type ofthis
in the scope of this function. -
wasAddedToExtendedConstructorSubtypes
boolean wasAddedToExtendedConstructorSubtypes
Whether this constructor was added to its superclass constructor's subtypes list, to avoid a limited amount of duplication that can happen from unresolved supertypes. This only tracks classes extending classes (no interfaces), since there is no way to duplicate interfaces via methods accessible outside this class.
-
-
Class com.google.javascript.rhino.jstype.FunctionType.Parameter extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.JSType extends java.lang.Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
hashCodeInProgress
boolean hashCodeInProgress
-
inTemplatedCheckVisit
boolean inTemplatedCheckVisit
-
loosenTypecheckingDueToForwardReferencedSupertype
boolean loosenTypecheckingDueToForwardReferencedSupertype
-
registry
JSTypeRegistry registry
-
resolveResult
JSType resolveResult
-
templateTypeMap
TemplateTypeMap templateTypeMap
-
-
Class com.google.javascript.rhino.jstype.JSTypeRegistry extends java.lang.Object implements Serializable
-
Serialized Fields
-
arrayElementTemplateKey
TemplateType arrayElementTemplateKey
The template variable inArray<T>
-
asyncGeneratorValueTemplate
TemplateType asyncGeneratorValueTemplate
The template variable corresponding to the VALUE type inAsyncGenerator<VALUE, UNUSED_RETURN_T, UNUSED_NEXT_T>
-
asyncIterableTemplate
TemplateType asyncIterableTemplate
The template variable corresponding to the VALUE type inAsyncIterable<VALUE>
-
asyncIteratorValueTemplate
TemplateType asyncIteratorValueTemplate
The template variable corresponding to the VALUE type inAsyncIterator<VALUE>
-
droppedPropertiesOfUnions
java.util.Set<java.lang.String> droppedPropertiesOfUnions
-
emptyTemplateTypeMap
TemplateTypeMap emptyTemplateTypeMap
-
generatorValueTemplate
TemplateType generatorValueTemplate
The template variable corresponding to the VALUE type inGenerator<VALUE, UNUSED_RETURN_T, UNUSED_NEXT_T>
-
greatestSubtypeByProperty
java.util.Map<java.lang.String,JSType> greatestSubtypeByProperty
-
iiterableResultTemplate
TemplateType iiterableResultTemplate
The template variable corresponding to the VALUE type inIIterableResult<VALUE>
-
iObjectElementTemplateKey
TemplateType iObjectElementTemplateKey
The template variable inIObject<IOBJECT_KEY, IOBJECT_VALUE>
(plus the builtin Javascript Object). -
iObjectIndexTemplateKey
TemplateType iObjectIndexTemplateKey
The template variable inIObject<IOBJECT_KEY, IOBJECT_VALUE>
(plus the builtin Javascript Object). -
iterableTemplate
TemplateType iterableTemplate
The template variable corresponding to the VALUE type inIterable<VALUE>
-
iteratorValueTemplate
TemplateType iteratorValueTemplate
The template variable corresponding to the VALUE type inIterator<VALUE, UNUSED_RETURN_T, UNUSED_NEXT_T>
-
iThenableTemplateKey
TemplateType iThenableTemplateKey
The template variable corresponding to the VALUE type inIThenable<VALUE>
-
nameTableGlobalRoot
Node nameTableGlobalRoot
-
nativeTypes
JSType[] nativeTypes
-
nonNullableTypeNames
com.google.common.collect.Multimap<Node,java.lang.String> nonNullableTypeNames
-
promiseTemplateKey
TemplateType promiseTemplateKey
The template variable corresponding to the TYPE inPromise<TYPE>
-
propertiesOfSupertypesInUnions
java.util.Set<java.lang.String> propertiesOfSupertypesInUnions
-
resolver
JSTypeResolver resolver
-
scopedNameTable
com.google.common.collect.Table<Node,java.lang.String,JSType> scopedNameTable
-
sentinelObjectLiteral
JSType sentinelObjectLiteral
-
-
-
Class com.google.javascript.rhino.jstype.JSTypeResolver extends java.lang.Object implements Serializable
-
Serialized Fields
-
captureStack
java.util.ArrayDeque<JSType> captureStack
The sequence of instantiated types.This allows verification that every new type is captured by this resolver. In general this stack should never be more than a handful of types.
-
registry
JSTypeRegistry registry
-
resolutionQueue
java.util.ArrayDeque<JSType> resolutionQueue
The sequence of types to resolve then the resolver is closed. -
state
com.google.javascript.rhino.jstype.JSTypeResolver.State state
-
-
-
Class com.google.javascript.rhino.jstype.NamedType extends ProxyObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
charno
int charno
-
lineno
int lineno
-
reference
java.lang.String reference
-
resolutionKind
com.google.javascript.rhino.jstype.NamedType.ResolutionKind resolutionKind
-
resolutionScope
StaticTypedScope resolutionScope
-
restrictByNull
boolean restrictByNull
Applies the "!" operator to the resolved type, which removes null and undefined -
sourceName
java.lang.String sourceName
-
templateTypes
com.google.common.collect.ImmutableList<JSType> templateTypes
Template types defined on a named, not yet resolved type, ornull
if none. These are ignored during resolution, for backwards compatibility with existing usage. This field is not used for JSCompiler's type checking; it is only needed by Clutz.
-
-
Class com.google.javascript.rhino.jstype.NoObjectType extends FunctionType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.NoResolvedType extends NoType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
referenceName
java.lang.String referenceName
The name originally used to reference this type, ornull
if none. -
templateTypes
com.google.common.collect.ImmutableList<JSType> templateTypes
Any template arguments to this type, ornull
if none. This field is not used for JSCompiler's type checking; it is only needed by Clutz.
-
-
Class com.google.javascript.rhino.jstype.NoType extends NoObjectType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.NullType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.NumberType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.ObjectType extends JSType implements Serializable
-
Serialized Fields
-
docInfo
JSDocInfo docInfo
-
unknown
boolean unknown
-
visited
boolean visited
-
-
-
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.PrototypeObjectType extends ObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
anonymousType
boolean anonymousType
-
className
java.lang.String className
-
implicitPrototypeFallback
ObjectType implicitPrototypeFallback
-
nativeType
boolean nativeType
-
ownerFunction
FunctionType ownerFunction
-
prettyPrint
boolean prettyPrint
-
properties
com.google.javascript.rhino.jstype.PropertyMap properties
-
templateParamCount
int templateParamCount
-
-
Class com.google.javascript.rhino.jstype.ProxyObjectType extends ObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
referencedObjType
ObjectType referencedObjType
-
referencedType
JSType referencedType
-
-
Class com.google.javascript.rhino.jstype.RecordType extends PrototypeObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
declared
boolean declared
-
isFrozen
boolean isFrozen
-
-
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
-
-
Class com.google.javascript.rhino.jstype.StringType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.SymbolType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.TemplateType extends ProxyObjectType implements Serializable
- serialVersionUID:
- 1L
-
Class com.google.javascript.rhino.jstype.TemplateTypeMap extends java.lang.Object implements Serializable
-
Serialized Fields
-
registry
JSTypeRegistry registry
-
resolvedTemplateValues
JSType[] resolvedTemplateValues
-
templateKeys
com.google.common.collect.ImmutableList<TemplateType> templateKeys
-
templateValues
com.google.common.collect.ImmutableList<JSType> templateValues
-
-
-
Class com.google.javascript.rhino.jstype.TemplatizedType extends ProxyObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
@GwtIncompatible("ObjectInputStream") private void readObject(java.io.ObjectInputStream in) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Serialized Fields
-
isSpecializedOnlyWithUnknown
boolean isSpecializedOnlyWithUnknown
Whether all type parameter values for this specialization are `?`. -
templateTypes
com.google.common.collect.ImmutableList<JSType> templateTypes
A cache of the type parameter values for this specialization.
-
-
Class com.google.javascript.rhino.jstype.UnionType extends JSType implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
alternates
com.google.common.collect.ImmutableList<JSType> alternates
-
maxUnionSize
int maxUnionSize
-
-
Class com.google.javascript.rhino.jstype.UnknownType extends ObjectType implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
isChecked
boolean isChecked
-
-
Class com.google.javascript.rhino.jstype.VoidType extends com.google.javascript.rhino.jstype.ValueType implements Serializable
- serialVersionUID:
- 1L
-