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

Method _createError

packages/compiler/src/ml_parser/lexer.ts:529–537  ·  view source on GitHub ↗
(msg: string, span: ParseSourceSpan)

Source from the content-addressed store, hash-verified

527 }
528
529 private _createError(msg: string, span: ParseSourceSpan): ParseError {
530 if (this._isInExpansionForm()) {
531 msg += ` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`;
532 }
533 const error = new ParseError(span, msg);
534 this._currentTokenStart = null;
535 this._currentTokenType = null;
536 return error;
537 }
538
539 private handleError(e: any) {
540 if (e instanceof CursorError) {

Callers 7

handleErrorMethod · 0.95
_requireCharCodeMethod · 0.95
_requireStrMethod · 0.95
_consumeEntityMethod · 0.95
_consumeTagOpenMethod · 0.95
_consumeAttributeNameMethod · 0.95

Calls 1

_isInExpansionFormMethod · 0.95

Tested by

no test coverage detected