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

Function getParseError

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

Source from the content-addressed store, hash-verified

1938}
1939
1940function getParseError(
1941 message: string,
1942 input: string,
1943 locationText: string,
1944 parseSourceSpan: ParseSourceSpan,
1945) {
1946 if (locationText.length > 0) {
1947 locationText = ` ${locationText} `;
1948 }
1949 const location = getLocation(parseSourceSpan);
1950 const error = `Parser Error: ${message}${locationText}[${input}] in ${location}`;
1951 return new ParseError(parseSourceSpan, error);
1952}
1953
1954class SimpleExpressionChecker extends RecursiveAstVisitor {
1955 errors: string[] = [];

Callers 7

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

Calls 1

getLocationFunction · 0.70

Tested by

no test coverage detected