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

Method _commentStart

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

Source from the content-addressed store, hash-verified

461 }
462
463 private _commentStart(input: string): number | null {
464 let outerQuote: number | null = null;
465 for (let i = 0; i < input.length - 1; i++) {
466 const char = input.charCodeAt(i);
467 const nextChar = input.charCodeAt(i + 1);
468
469 if (char === chars.$SLASH && nextChar == chars.$SLASH && outerQuote == null) return i;
470
471 if (outerQuote === char) {
472 outerQuote = null;
473 } else if (outerQuote == null && chars.isQuote(char)) {
474 outerQuote = char;
475 }
476 }
477 return null;
478 }
479
480 private _checkNoInterpolation(
481 errors: ParseError[],

Callers 1

_stripCommentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected