MCPcopy
hub / github.com/angular/angular / withContext

Method withContext

packages/compiler/src/expression_parser/parser.ts:693–698  ·  view source on GitHub ↗

* Executes a callback in the provided context.

(context: ParseContextFlags, cb: () => T)

Source from the content-addressed store, hash-verified

691 * Executes a callback in the provided context.
692 */
693 private withContext<T>(context: ParseContextFlags, cb: () => T): T {
694 this.context |= context;
695 const ret = cb();
696 this.context ^= context;
697 return ret;
698 }
699
700 private consumeOptionalCharacter(code: number): boolean {
701 if (this.next.isCharacter(code)) {

Callers 15

parseAccessMemberMethod · 0.95
parseKeyedReadOrWriteMethod · 0.95
happy_spec.tsFile · 0.80
_parseTemplateBindingsFunction · 0.80
expectTypeFunction · 0.80
verifyFunction · 0.80
verifyFunction · 0.80

Calls 1

cbFunction · 0.50

Tested by 3

verifyFunction · 0.64
verifyFunction · 0.64
checkRoutesFunction · 0.64