MCPcopy Create free account
hub / github.com/angular/angular / getSpan

Method getSpan

packages/compiler/src/ml_parser/lexer.ts:1597–1597  ·  view source on GitHub ↗

Get a span from the marked start point to the current point.

(start?: this, leadingTriviaCodePoints?: number[])

Source from the content-addressed store, hash-verified

1595 advance(): void;
1596 /** Get a span from the marked start point to the current point. */
1597 getSpan(start?: this, leadingTriviaCodePoints?: number[]): ParseSourceSpan;
1598 /** Get the parsed characters from the marked start point to the current point. */
1599 getChars(start: this): string;
1600 /** The number of characters left before the end of the cursor. */

Callers 10

_endTokenMethod · 0.65
handleErrorMethod · 0.65
_requireCharCodeMethod · 0.65
_requireStrMethod · 0.65
_consumeEntityMethod · 0.65
_consumeTagOpenMethod · 0.65
_consumeAttributeNameMethod · 0.65
_consumeDirectiveMethod · 0.65

Implementers 1

PlainCharacterCursorpackages/compiler/src/ml_parser/lexer.

Calls

no outgoing calls

Tested by

no test coverage detected