(
optionFlags: OptionFlags,
filename: string | undefined | null,
pos: number,
loc?: Position,
)
| 15 | |
| 16 | class Node implements BaseNode { |
| 17 | constructor( |
| 18 | optionFlags: OptionFlags, |
| 19 | filename: string | undefined | null, |
| 20 | pos: number, |
| 21 | loc?: Position, |
| 22 | ) { |
| 23 | this.start = pos; |
| 24 | this.end = 0; |
| 25 | if (loc !== undefined) this.loc = new SourceLocation(loc); |
| 26 | if (optionFlags & OptionFlags.Ranges) this.range = [pos, 0]; |
| 27 | if (loc !== undefined && filename) { |
| 28 | this.loc.filename = filename; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | type: string = ""; |
| 33 | declare start: number; |
nothing calls this directly
no outgoing calls
no test coverage detected