Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(kind: SyntaxKind, start: number, length: number): TokenSpan

Parameters

Returns

TokenSpan

Properties

private _kind: any

Methods

public containsPosition(position: number): boolean

Parameters

  • position: number

Returns

boolean

public containsTextSpan(span: TextSpan): boolean

Parameters

Returns

boolean

public end(): number

Returns

number

public intersection(span: TextSpan): TextSpan

Parameters

Returns

TextSpan

public intersectsWith(start: number, length: number): boolean

Parameters

  • start: number
  • length: number

Returns

boolean

public intersectsWithPosition(position: number): boolean

Parameters

  • position: number

Returns

boolean

public intersectsWithTextSpan(span: TextSpan): boolean

Parameters

Returns

boolean

public isEmpty(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

public length(): number

Returns

number

public overlap(span: TextSpan): TextSpan

Parameters

Returns

TextSpan

public overlapsWith(span: TextSpan): boolean

Parameters

Returns

boolean

public start(): number

Returns

number