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

Function getParseError

packages/compiler/src/expression_parser/parser.ts:1894–1906  ·  view source on GitHub ↗
(
  message: string,
  input: string,
  locationText: string,
  parseSourceSpan: ParseSourceSpan,
)

Source from the content-addressed store, hash-verified

1892}
1893
1894function getParseError(
1895 message: string,
1896 input: string,
1897 locationText: string,
1898 parseSourceSpan: ParseSourceSpan,
1899) {
1900 if (locationText.length > 0) {
1901 locationText = ` ${locationText} `;
1902 }
1903 const location = getLocation(parseSourceSpan);
1904 const error = `Parser Error: ${message}${locationText}[${input}] in ${location}`;
1905 return new ParseError(parseSourceSpan, error);
1906}
1907
1908class SimpleExpressionChecker extends RecursiveAstVisitor {
1909 errors: string[] = [];

Callers 6

parseSimpleBindingMethod · 0.85
parseInterpolationMethod · 0.85
splitInterpolationMethod · 0.85
_checkNoInterpolationMethod · 0.85
errorMethod · 0.85
skipMethod · 0.85

Calls 1

getLocationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…