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

Function expectStringToken

packages/compiler/test/expression_parser/lexer_spec.ts:38–49  ·  view source on GitHub ↗
(
  token: any,
  index: number,
  end: number,
  str: string,
  kind: StringTokenKind,
)

Source from the content-addressed store, hash-verified

36}
37
38function expectStringToken(
39 token: any,
40 index: number,
41 end: number,
42 str: string,
43 kind: StringTokenKind,
44) {
45 expectToken(token, index, end);
46 expect(token.isString()).toBe(true);
47 expect(token.kind).toBe(kind);
48 expect(token.toString()).toEqual(str);
49}
50
51function expectIdentifierToken(token: any, index: number, end: number, identifier: string) {
52 expectToken(token, index, end);

Callers 1

lexer_spec.tsFile · 0.85

Calls 3

expectTokenFunction · 0.85
toStringMethod · 0.65
isStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…