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

Method _stripComments

packages/compiler/src/expression_parser/parser.ts:456–461  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

454 }
455
456 private _stripComments(input: string): {stripped: string; hasComments: boolean} {
457 const i = this._commentStart(input);
458 return i != null
459 ? {stripped: input.substring(0, i), hasComments: true}
460 : {stripped: input, hasComments: false};
461 }
462
463 private _commentStart(input: string): number | null {
464 let outerQuote: number | null = null;

Callers 4

parseActionMethod · 0.95
_parseBindingAstMethod · 0.95
parseInterpolationMethod · 0.95

Calls 1

_commentStartMethod · 0.95

Tested by

no test coverage detected