Class Compiler.ScriptNodeLicensesOnlyTracker

java.lang.Object
com.google.javascript.jscomp.Compiler.ScriptNodeLicensesOnlyTracker
All Implemented Interfaces:
CodePrinter.LicenseTracker
Enclosing class:
Compiler

public static class Compiler.ScriptNodeLicensesOnlyTracker extends Object
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.