MCPcopy
hub / github.com/angular/angular / scanCloseBrace

Method scanCloseBrace

packages/compiler/src/expression_parser/lexer.ts:383–393  ·  view source on GitHub ↗
(start: number, code: number)

Source from the content-addressed store, hash-verified

381 }
382
383 private scanCloseBrace(start: number, code: number): Token {
384 this.advance();
385
386 const currentBrace = this.braceStack.pop();
387 if (currentBrace === 'interpolation') {
388 this.tokens.push(newCharacterToken(start, this.index, chars.$RBRACE));
389 return this.scanTemplateLiteralPart(this.index);
390 }
391
392 return newCharacterToken(start, this.index, code);
393 }
394
395 /**
396 * Tokenize a 2/3 char long operator

Callers 1

scanTokenMethod · 0.95

Calls 5

advanceMethod · 0.95
newCharacterTokenFunction · 0.85
popMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected