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 booleanshouldUseLicenseInfo(Node node) voidtrackLicensesForNode(Node node)
-
Method Details
-
shouldUseLicenseInfo
-
trackLicensesForNode
- Specified by:
trackLicensesForNodein interfaceCodePrinter.LicenseTracker
-
emitLicenses
- Specified by:
emitLicensesin interfaceCodePrinter.LicenseTracker
-