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

Method _stripComments

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

Source from the content-addressed store, hash-verified

446 }
447
448 private _stripComments(input: string): {stripped: string; hasComments: boolean} {
449 const i = this._commentStart(input);
450 return i != null
451 ? {stripped: input.substring(0, i), hasComments: true}
452 : {stripped: input, hasComments: false};
453 }
454
455 private _commentStart(input: string): number | null {
456 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