Uses of Package
com.google.javascript.jscomp
Packages that use com.google.javascript.jscomp
Package
Description
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscompClassDescriptionImplementations of AbstractCommandLineRunner translate flags into Java API calls on the Compiler.Configurations for the command line configs.Set of options that can be used with the --formatting flag.A pair from flag to its value.Represents a specification for a serving chunk.Representation of a source file from an encoded json stream inputFlag types for JavaScript source files.An abstract compiler, to help remove the circular dependency of passes on JSCompiler.What point in optimizations we're in.Abstract message formatter providing default behavior for implementations of
MessageFormatter
needing aSourceExcerptProvider
.Scope contains information about a variable scope in JavaScript.Used byScope
to store information about variables.An extension ofWarningsGuard
that provides functionality to maintain a list of warnings (allowlist).Allowlist builderLogic for answering questions about portions of the AST.This class walks the AST and validates that the structure is correct.Violation handlerDeprecated.An implementation of aWarningsGuard
that can modify theCheckLevel
based on the file that caused the warning, and whether this file matches a set of paths (specified either as include or exclude of path name parts).A condition that must be true for a rule to possibly match a node.Controls checking levels of certain options.Abstracted consumer of the CodeGenerator output.CodeGenerator generates codes from a parse tree, sending it to the specified CodeConsumer.Information on the current context.Specifies a format for code generation.License Trackers are responsible for ensuring that any licensing information attached to nodes is retained in the final output of JSCompiler.SourceAndMappings bundles together the source and generated SourceMap Mappings for that source.CodingConvention defines a set of hooks to customize the behavior of the Compiler for a specific team/company.A description of a JavaScript function that will throw an exception when either: One of its parameters does not match the return type of the function One of its parameters is falsy.Bind classCache classDelegates provides a mechanism and structure for identifying where classes can call out to optional code to augment their functionality.An object literal cast provides a mechanism to cast object literals to other types without a warning.Record subclass relationsSpecify the kind of inheritanceA convention that wraps another.Set of options that can be used with the --formatting flag.A CompilationLevel represents the level of optimization that should be applied when compiling JavaScript code.Interface used by `AbstractCompilerRunner` to report metrics about the compilation action it performs.Compiler (and the other classes in this package) does the following: parses JS code checks for undefined variables performs optimizations such as constant folding and constants inlining renames variables (to short names) outputs compact JavaScript code External variables are declared in 'externs' files.Stores a buffer of text to which more can be appended.Serializable state of the compiler specific to multistage binary buildsA class for the internal representation of an input to the compiler.JavaScript module type.A provider mapping a InputId to a CompilerInput.Compiler optionsA mode enum used to indicate the alias strings policy for the AliasStrings passA Role Specific Interface for the JS Compiler to report aliases used to change the code during a compile.A Role Specific Interface for JS Compiler that represents a data holder object which is used to store goog.scope alias code changes to code made during a compile.Format for compiler output when multiple chunks are requested.When to do the extra validity checksAn environment specifies the built-in externs that are loaded for a given compilation.How ES modules should be transformed.Options to force transpile specific features for performance experiments.An option to determine what level of code instrumentation is performed, if anyWhat kind of isolation is going to be usedA mode enum used to indicate whether J2clPass should be enabled, disabled, or enabled automatically if there is any J2cl source file (i.e.A language mode applies to the whole compilation job.What type of JS file should be output by this compilationA common enum for compiler passes that can run either globally or locally.How much tracing we want to doOption for the ProcessTweaks passInterface for classes that can compile JS.WarningsGuard that represents just a chain of other guards.A conformance rule implementation to support things common to all rules such as allowlisting and reporting.Possible check check resultsClasses extending AbstractRule must return ConformanceResult from their checkConformance implementation.Configures aControlFlowAnalysis
instance then computes theControlFlowGraph
Control flow graph.The edge object for the control flow graph.Interface used byReplaceCssNames
to substitute CSS class names.Kind of renaming mapCustom pass type.Options for how to manage dependencies between input files.Describes how the compiler should manage dependencies.Represents a single target inside a destructuring pattern, whether another pattern or a lhs expression.Group a set of related diagnostic types together, so that they can be toggled on and off as one unit.Named groups of DiagnosticTypes exposed by Compiler.The type of a compile or analysis error.Error formats available.The error handler is any generic sink for warnings and errors, after they've passed through any filteringWarningsGuard
s.The error manager is in charge of storing, organizing and displaying errors and warnings generated by the compiler.Contains aJsMessage
representing an ICU template message and information about thegoog.i18n.messages.declareIcuTemplate()
call from which it was extracted.Id generator used in CrossModuleMotion.Represents the types of implicit nullability errors caught by this pass: a) implicitly nonnull (missing a "!"), and b) implicitly nullable (missing a "?").Information to represent a single "implicit nullability result", including the JSDoc string node that needs a "!" or "?" to be explicit, as well as an enum indicating which of the two nullability cases were found ("!" or "?").Keeps track of "invalidating types" that force type-based optimizations to back off.BuilderA JavaScript chunk has a unique name, consists of a list of compiler inputs, and can depend on other chunks.Another exception classCompile error description.A representation of a translatable message in JavaScript source code.Contains functionality for creating JS messages.ID generatorRepresents part of a message.Thrown when parsing a message string into parts fails because of a misformatted place holder.A reference to a placeholder in a translatable message.Represents a literal string part of a message.Container class that holds aJsMessage
and information about thegoog.getMsg()
call it was built from.Represents the contents of a object literal Node in the AST.Lightweight message formatter.Tool for running just the lint checks which can be run on a single file at a time.Builder for a Linter that allows some customization.An interface for providing alternative values for user-visible messages in JavaScript code.Format warnings and errors.Basic information on an entry point module.A class that generates unique JavaScript variable/property names.NodeTraversal allows an iteration through the nodes in the parse tree, and facilitates the optimizations on the parse tree.Abstract callback that knows when a global script, goog.provide file, goog.module, goog.loadModule, ES module or CommonJS module is entered or exited.Abstract callback to visit all nodes in postorder.Abstract callback to visit all nodes in postorder.Abstract callback to visit all nodes in preorder.BuilderCallback for tree-based traversalsCallback that also knows about scope changesRepresents a goog.require'd namespace and property inside a module.Interface for use with the visit method.Pass factories and meta-data for native Compiler passes.Different ways to split optimization passes.An implementation of PassConfig that just proxies all its method calls into an inner class.A factory for creating JSCompiler passes based on the Options injected.A builder for aPassFactory
.This class exists to funnel the list of passes through a central mechanism to ensure that the PassFactory can define and enforce conditions that much be met in order for the pass they create to be added to the compilation process.A PerformanceTracker collects statistics about the runtime of each pass, and how much a pass impacts the size of the compiled output, before and after gzip.A Stats object contains statistics about a pass run, such as running time, size changes, etcPolicies to determine how properties should be renamed.Represents a single declaration or reference to a variable.A collection of references.Way for callers to add specific behavior during traversal that utilizes the built-up reference information.MapsVar
s to their references.Source code region.Interface used by to substitute names.A decoder for strings encoded by the ReplaceStrings JS compiler pass.Holds information about the protected form of a translatable message that appears in the AST.Compilation resultsPossible traversal modes - either linting or linting+rewriting.Scope contains information about a variable scope in JavaScript.Controls whether warnings should be restricted to a specified path or suppressed within the specified path.A customizable error manager that sorts all errors and warnings reported to it, and has customizable output through theSortingErrorManager.ErrorReportGenerator
interface.Strategy for customizing the output format of the error reportA source excerpt provider is responsible for building source code excerpt of specific locations, such as a specific line or a region around a given line number.A excerpt formatter is responsible of formatting source excerpts.Source excerpt variety.An abstract representation of a source file that provides access to language-neutral features.A builder interface for source files.A SourceFileMapping maps a source file, line, and column into anMapping.OriginalMapping
.Collects information mapping the generated (compiled) source back to its original source for debugging purposes.Source maps can be very large different levels of detail can be specified.An enumeration of available source map formatsFunction that mape a "destination" location to use within the source map.Maintains a mapping from a given node to the position in the source code at which its generated form was placed.A lazy-loaded SourceMapConsumerV3 instance.A symbol table for people that want to use Closure Compiler as an indexer.ReferenceA symbol-table entryScope of a symbolTypedScope contains information about variables and their types.AbstractVar
subclass for use withTypedScope
.The different strategies for matching theJSType
of nodes.The result of comparing two differentJSType
instances.Signals that the first type and the second type have been used interchangeably.Used byScope
to store information about variables.Stores the mapping from original variable name to new variable names.Policies to determine which variables should be renamed.Convert the warnings level to an Options object.Class that allows to flexibly manage what to do with a reported warning/error.PriorityStrategy for selecting the underlying hash code function to be used by Xid. -
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.antClassDescriptionDeprecated.Controls checking levels of certain options.The error handler is any generic sink for warnings and errors, after they've passed through any filtering
WarningsGuard
s.The error manager is in charge of storing, organizing and displaying errors and warnings generated by the compiler.Compile error description.Format warnings and errors.A customizable error manager that sorts all errors and warnings reported to it, and has customizable output through theSortingErrorManager.ErrorReportGenerator
interface. -
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.bundleClassDescriptionCompiler (and the other classes in this package) does the following: parses JS code checks for undefined variables performs optimizations such as constant folding and constants inlining renames variables (to short names) outputs compact JavaScript code External variables are declared in 'externs' files.Compiler optionsGroup a set of related diagnostic types together, so that they can be toggled on and off as one unit.Compile error description.Compilation resultsA source excerpt provider is responsible for building source code excerpt of specific locations, such as a specific line or a region around a given line number.An abstract representation of a source file that provides access to language-neutral features.
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.depsClassDescriptionThe type of a compile or analysis error.The error handler is any generic sink for warnings and errors, after they've passed through any filtering
WarningsGuard
s.The error manager is in charge of storing, organizing and displaying errors and warnings generated by the compiler.An abstract representation of a source file that provides access to language-neutral features. -
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.disambiguateClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.Interface for classes that can compile JS.The type of a compile or analysis error.
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.ijsClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.Controls checking levels of certain options.Interface for classes that can compile JS.The type of a compile or analysis error.Compile error description.Class that allows to flexibly manage what to do with a reported warning/error.
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.instrumentationClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.An option to determine what level of code instrumentation is performed, if anyInterface for classes that can compile JS.NodeTraversal allows an iteration through the nodes in the parse tree, and facilitates the optimizations on the parse tree.An traversal base class that tracks and caches the ControlFlowGraph (CFG) during the traversal.Callback for tree-based traversalsCallback that also knows about scope changes
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.lintClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.Interface for classes that can compile JS.Group a set of related diagnostic types together, so that they can be toggled on and off as one unit.The type of a compile or analysis error.NodeTraversal allows an iteration through the nodes in the parse tree, and facilitates the optimizations on the parse tree.Abstract callback to visit all nodes in postorder.Abstract callback to visit all nodes in preorder.Callback for tree-based traversals
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.modulesClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.Interface for classes that can compile JS.The type of a compile or analysis error.NodeTraversal allows an iteration through the nodes in the parse tree, and facilitates the optimizations on the parse tree.Callback for tree-based traversals
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.serializationClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.Interface for classes that can compile JS.An abstract representation of a source file that provides access to language-neutral features.
-
Classes in com.google.javascript.jscomp used by com.google.javascript.jscomp.transpileClassDescriptionCompiler (and the other classes in this package) does the following: parses JS code checks for undefined variables performs optimizations such as constant folding and constants inlining renames variables (to short names) outputs compact JavaScript code External variables are declared in 'externs' files.Compiler optionsAn abstract representation of a source file that provides access to language-neutral features.
-
Classes in com.google.javascript.jscomp used by com.google.javascript.refactoringClassDescriptionAn abstract compiler, to help remove the circular dependency of passes on JSCompiler.Deprecated.Controls checking levels of certain options.Compiler (and the other classes in this package) does the following: parses JS code checks for undefined variables performs optimizations such as constant folding and constants inlining renames variables (to short names) outputs compact JavaScript code External variables are declared in 'externs' files.Compiler optionsThe type of a compile or analysis error.The error handler is any generic sink for warnings and errors, after they've passed through any filtering
WarningsGuard
s.The error manager is in charge of storing, organizing and displaying errors and warnings generated by the compiler.Compile error description.NodeTraversal allows an iteration through the nodes in the parse tree, and facilitates the optimizations on the parse tree.A customizable error manager that sorts all errors and warnings reported to it, and has customizable output through theSortingErrorManager.ErrorReportGenerator
interface.An abstract representation of a source file that provides access to language-neutral features.The different strategies for matching theJSType
of nodes.