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

Function _unexpectedCharacterErrorMsg

packages/compiler/src/ml_parser/lexer.ts:116–119  ·  view source on GitHub ↗
(charCode: number)

Source from the content-addressed store, hash-verified

114const _CR_OR_CRLF_REGEXP = /\r\n?/g;
115
116function _unexpectedCharacterErrorMsg(charCode: number): string {
117 const char = charCode === chars.$EOF ? 'EOF' : String.fromCharCode(charCode);
118 return `Unexpected character "${char}"`;
119}
120
121function _unknownEntityErrorMsg(entitySrc: string): string {
122 return `Unknown entity "${entitySrc}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`;

Callers 5

_requireCharCodeMethod · 0.85
_requireStrMethod · 0.85
_consumeTagOpenMethod · 0.85
_consumeAttributeNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected