Class SyntacticScopeCreator


  • public class SyntacticScopeCreator
    extends java.lang.Object
    The syntactic scope creator scans the parse tree to create a Scope object containing all the variable declarations in that scope. This class adds support for block-level scopes introduced in ECMAScript 6.

    This implementation is not thread-safe.

    • Field Detail

      • DEFAULT_REDECLARATION_HANDLER

        public static final com.google.javascript.jscomp.SyntacticScopeCreator.RedeclarationHandler DEFAULT_REDECLARATION_HANDLER
      • ASSERT_NO_SCOPES_CREATED

        public static final com.google.javascript.jscomp.ScopeCreator ASSERT_NO_SCOPES_CREATED
        A scope creator that can be provided to NodeTraversal to ensure that no scopes are actually ever created. This is in contrast to the default SyntacticScopeCreator, which will create scopes on demand.