Package com.google.javascript.jscomp
Class ChangeTracker
java.lang.Object
com.google.javascript.jscomp.ChangeTracker
Tracks various kind of changes during a single compilation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmarkNewScopesChanged(Node node) Recurses through a tree, marking all function nodes as changed.voidreportChangeToChangeScope(Node changeScopeRoot) Marks modifications to a function or script nodevoidMarks modifications to the enclosing change scope, as defined byisChangeScopeRoot(Node)voidMarks a specific function node as known to be deleted.
-
Constructor Details
-
ChangeTracker
public ChangeTracker()
-
-
Method Details
-
reportChangeToEnclosingScope
Marks modifications to the enclosing change scope, as defined byisChangeScopeRoot(Node) -
reportChangeToChangeScope
Marks modifications to a function or script node -
markNewScopesChanged
Recurses through a tree, marking all function nodes as changed. -
reportFunctionDeleted
Marks a specific function node as known to be deleted. Is part of having accurate change tracking which is necessary to streamline optimizations.
-