Class ChangeTracker

java.lang.Object
com.google.javascript.jscomp.ChangeTracker

public final class ChangeTracker extends Object
Tracks various kind of changes during a single compilation
  • Constructor Details

    • ChangeTracker

      public ChangeTracker()
  • Method Details

    • reportChangeToEnclosingScope

      public void reportChangeToEnclosingScope(Node n)
      Marks modifications to the enclosing change scope, as defined by isChangeScopeRoot(Node)
    • reportChangeToChangeScope

      public void reportChangeToChangeScope(Node changeScopeRoot)
      Marks modifications to a function or script node
    • markNewScopesChanged

      public void markNewScopesChanged(Node node)
      Recurses through a tree, marking all function nodes as changed.
    • reportFunctionDeleted

      public void reportFunctionDeleted(Node n)
      Marks a specific function node as known to be deleted. Is part of having accurate change tracking which is necessary to streamline optimizations.