A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://eslint.org/docs/latest/developer-guide/scope-manager-interface below:

ScopeManager - ESLint - Pluggable JavaScript Linter

ScopeManager Table of Contents

This document was written based on the implementation of eslint-scope, a fork of escope, and deprecates some members ESLint is not using.

ScopeManager interface

ScopeManager object has all variable scopes.

Fields scopes globalScope Methods acquire(node, inner = false) getDeclaredVariables(node) Deprecated members

Those members are defined but not used in ESLint.

isModule() isImpliedStrict() isStrictModeSupported() acquireAll(node) Scope interface

Scope object has all variables and references in the scope.

Fields type isStrict upper childScopes variableScope

This represents the lowest enclosing function or top-level scope. Class field initializers and class static blocks are implicit functions. Historically, this was the scope which hosts variables that are defined by var declarations, and thus the name variableScope.

block variables set references through functionExpressionScope implicit

This field exists only in the root Scope object (the global scope). It provides information about implicit global variables. Implicit global variables are variables that are neither built-in nor explicitly declared, but created implicitly by assigning values to undeclared variables in non-strict code. Variable objects for these variables are not present in the root Scope object’s fields variables and set.

The value of the implicit field is an object with two properties.

variables set Tip

In Variable objects that represent implicit global variables, references is always an empty array. You can find references to these variables in the through field of the root Scope object (the global scope), among other unresolved references.

Deprecated members

Those members are defined but not used in ESLint.

taints dynamic directCallToEvalScope thisFound resolve(node) isStatic() isArgumentsMaterialized() isThisMaterialized() isUsedName(name) Variable interface

Variable object is variable’s information.

Fields name scope identifiers references defs Deprecated members

Those members are defined but not used in ESLint.

tainted stack Reference interface

Reference object is reference’s information.

Fields identifier from resolved writeExpr init Methods isWrite() isRead() isWriteOnly() isReadOnly() isReadWrite() Deprecated members

Those members are defined but not used in ESLint.

tainted flag partial isStatic() Definition interface

Definition object is variable definition’s information.

Fields type name node type node "CatchClause" CatchClause "ClassName" ClassDeclaration or ClassExpression "FunctionName" FunctionDeclaration or FunctionExpression "ImplicitGlobalVariable" AssignmentExpression or ForInStatement or ForOfStatement "ImportBinding" ImportSpecifier, ImportDefaultSpecifier, or ImportNamespaceSpecifier "Parameter" FunctionDeclaration, FunctionExpression, or ArrowFunctionExpression "Variable" VariableDeclarator parent type parent "CatchClause" null "ClassName" null "FunctionName" null "ImplicitGlobalVariable" null "ImportBinding" ImportDeclaration "Parameter" null "Variable" VariableDeclaration Deprecated members

Those members are defined but not used in ESLint.

index kind

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4