Package com.google.javascript.jscomp
Interface CodePrinter.LicenseTracker
- All Known Implementing Classes:
Compiler.ChunkGraphAwareLicenseTracker
,Compiler.ScriptNodeLicensesOnlyTracker
,Compiler.SingleBinaryLicenseTracker
- Enclosing class:
CodePrinter
public static interface CodePrinter.LicenseTracker
License Trackers are responsible for ensuring that any licensing information attached to nodes
is retained in the final output of JSCompiler.
The Code Printer will visit every node being printed and call trackLicensesForNode for that node. Later, some other code can call emitLicenses to retrieve all relevant licenses. Deciding what is relevant varies between implementations of License Trackers - read their javadoc to determine how they are intended to be used.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<String> void
trackLicensesForNode
(Node node)
-
Method Details
-
trackLicensesForNode
-
emitLicenses
com.google.common.collect.ImmutableSet<String> emitLicenses()
-