Class: Location
Defined in: src/static_analysis.ts:13
The location of a variable, tag or filter.
Constructors
Constructor
new Location(
template,token):Location
Defined in: src/static_analysis.ts:14
Parameters
template
token
Returns
Location
Properties
template
readonlytemplate:Template
Defined in: src/static_analysis.ts:15
token
readonlytoken:Token
Defined in: src/static_analysis.ts:16
Methods
equals()
equals(
other):boolean
Defined in: src/static_analysis.ts:19
Parameters
other
Location
Returns
boolean
lineCol()
lineCol(
index): [number,number]
Defined in: src/static_analysis.ts:28
Return the line and column number of the given index.
Parameters
index
number
Returns
[number, number]
span()
span(): [[
number,number], [number,number]]
Defined in: src/static_analysis.ts:52
Return line and column number for the start and end index spanning this location.
Returns
[[number, number], [number, number]]
value()
value():
string
Defined in: src/static_analysis.ts:59
Return the substring in source at this location.
Returns
string