Class: Reference

Reference

new Reference()

A Reference represents a single occurrence of an identifier in code.
Source:

Members

from :Scope

Reference to the enclosing Scope.
Type:
Source:

identifier :esprima#Identifier

Identifier syntax node.
Type:
  • esprima#Identifier
Source:

partial :boolean

Whether the Reference might refer to a partial value of writeExpr.
Type:
  • boolean
Source:

resolved :Variable

The variable this reference is resolved with.
Type:
Source:

tainted :boolean

Whether the reference comes from a dynamic scope (such as 'eval', 'with', etc.), and may be trapped by dynamic scopes.
Type:
  • boolean
Source:

writeExpr :esprima#Node

If reference is writeable, this is the tree being written to it.
Type:
  • esprima#Node
Source:

Methods

isRead() → {boolean}

Whether the reference is readable.
Source:
Returns:
Type
boolean

isReadOnly() → {boolean}

Whether the reference is read-only.
Source:
Returns:
Type
boolean

isReadWrite() → {boolean}

Whether the reference is read-write.
Source:
Returns:
Type
boolean

isStatic() → {boolean}

Whether the reference is static.
Source:
Returns:
Type
boolean

isWrite() → {boolean}

Whether the reference is writeable.
Source:
Returns:
Type
boolean

isWriteOnly() → {boolean}

Whether the reference is write-only.
Source:
Returns:
Type
boolean