Package com.google.javascript.jscomp
Class Compiler.ScriptNodeLicensesOnlyTracker
java.lang.Object
com.google.javascript.jscomp.Compiler.ScriptNodeLicensesOnlyTracker
- All Implemented Interfaces:
CodePrinter.LicenseTracker
- Enclosing class:
Compiler
A license tracker implementation that emits all licenses attached to script nodes, regardless
of if the content of that script is used anywhere in the compilation.
This license tracker encapsulates the logic that the compiler used before the concept of
license tracking was implemented, and should only used in places where a better implementation
cannot be used. See Compiler.SingleBinaryLicenseTracker
and Compiler.ChunkGraphAwareLicenseTracker
for smarter implementations of a license tracker for the
single-binary and multiple-chunk emit use-cases.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<String> protected boolean
shouldUseLicenseInfo
(Node node) void
trackLicensesForNode
(Node node)
-
Constructor Details
-
ScriptNodeLicensesOnlyTracker
-
-
Method Details
-
shouldUseLicenseInfo
-
trackLicensesForNode
- Specified by:
trackLicensesForNode
in interfaceCodePrinter.LicenseTracker
-
emitLicenses
- Specified by:
emitLicenses
in interfaceCodePrinter.LicenseTracker
-