Package com.google.javascript.jscomp
Class Compiler.SingleBinaryLicenseTracker
java.lang.Object
com.google.javascript.jscomp.Compiler.SingleBinaryLicenseTracker
- All Implemented Interfaces:
CodePrinter.LicenseTracker
- Enclosing class:
Compiler
A license tracker implementation that only retains licenses for which there are useful nodes in
a binary. This will ignore licenses attached to script or root nodes when there are no other
nodes from that script in use in the binary (likely removed due to compiler optimizations).
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<String> protected boolean
shouldUseLicenseInfo
(Node node) void
trackLicensesForNode
(Node node)
-
Method Details
-
shouldUseLicenseInfo
-
trackLicensesForNode
- Specified by:
trackLicensesForNode
in interfaceCodePrinter.LicenseTracker
-
emitLicenses
- Specified by:
emitLicenses
in interfaceCodePrinter.LicenseTracker
-