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

Function _unexpectedCharacterErrorMsg

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

Source from the content-addressed store, hash-verified

124const _CR_OR_CRLF_REGEXP = /\r\n?/g;
125
126function _unexpectedCharacterErrorMsg(charCode: number): string {
127 const char = charCode === chars.$EOF ? 'EOF' : String.fromCharCode(charCode);
128 return `Unexpected character "${char}"`;
129}
130
131function _unknownEntityErrorMsg(entitySrc: string): string {
132 return `Unknown entity "${entitySrc}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`;

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…