MCPcopy Index your code
hub / github.com/angular/angular / expectToken

Function expectToken

packages/compiler/test/expression_parser/lexer_spec.ts:15–19  ·  view source on GitHub ↗
(token: any, index: number, end: number)

Source from the content-addressed store, hash-verified

13}
14
15function expectToken(token: any, index: number, end: number) {
16 expect(token instanceof Token).toBe(true);
17 expect(token.index).toEqual(index);
18 expect(token.end).toEqual(end);
19}
20
21function expectCharacterToken(token: any, index: number, end: number, character: string) {
22 expect(character.length).toBe(1);

Callers 10

expectCharacterTokenFunction · 0.85
expectOperatorTokenFunction · 0.85
expectNumberTokenFunction · 0.85
expectStringTokenFunction · 0.85
expectIdentifierTokenFunction · 0.85
expectKeywordTokenFunction · 0.85
expectErrorTokenFunction · 0.85
expectRegExpBodyTokenFunction · 0.85
expectRegExpFlagsTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…