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

Function getParseError

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

Source from the content-addressed store, hash-verified

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