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

Method scanCloseBrace

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

Source from the content-addressed store, hash-verified

380 }
381
382 private scanCloseBrace(start: number, code: number): Token {
383 this.advance();
384
385 const currentBrace = this.braceStack.pop();
386 if (currentBrace === 'interpolation') {
387 this.tokens.push(newCharacterToken(start, this.index, chars.$RBRACE));
388 return this.scanTemplateLiteralPart(this.index);
389 }
390
391 return newCharacterToken(start, this.index, code);
392 }
393
394 /**
395 * 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