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
public static class Compiler.ScriptNodeLicensesOnlyTracker extends java.lang.ObjectA 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.SingleBinaryLicenseTrackerandCompiler.ChunkGraphAwareLicenseTrackerfor smarter implementations of a license tracker for the single-binary and multiple-chunk emit use-cases.
-
-
Constructor Summary
Constructors Constructor Description ScriptNodeLicensesOnlyTracker(AbstractCompiler compiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanshouldUseLicenseInfo(Node node)
-
-
-
Constructor Detail
-
ScriptNodeLicensesOnlyTracker
public ScriptNodeLicensesOnlyTracker(AbstractCompiler compiler)
-
-
Method Detail
-
shouldUseLicenseInfo
protected boolean shouldUseLicenseInfo(Node node)
-
-