Skip to main content

Class: StaticVariable

Defined in: src/static_analysis.ts:97

A variable as a sequence of segments and its location.

Constructors​

Constructor​

new StaticVariable(segments, location): StaticVariable

Defined in: src/static_analysis.ts:98

Parameters​

segments​

Segments

location​

Location

Returns​

StaticVariable

Properties​

location​

readonly location: Location

Defined in: src/static_analysis.ts:100


segments​

readonly segments: Segments

Defined in: src/static_analysis.ts:99

Methods​

equals()​

equals(other): boolean

Defined in: src/static_analysis.ts:106

Variables with the same segments compare equal, regardless of span.

Parameters​

other​

StaticVariable

Returns​

boolean


root()​

root(): string

Defined in: src/static_analysis.ts:110

Returns​

string


toString()​

toString(): string

Defined in: src/static_analysis.ts:118

Returns​

string