MCPcopy
hub / github.com/formatjs/formatjs / error

Method error

packages/icu-messageformat-parser/parser.ts:1150–1162  ·  view source on GitHub ↗
(
    kind: ErrorKind,
    location: Location
  )

Source from the content-addressed store, hash-verified

1148 }
1149
1150 private error(
1151 kind: ErrorKind,
1152 location: Location
1153 ): Result<never, ParserError> {
1154 return {
1155 val: null,
1156 err: {
1157 kind,
1158 message: this.message,
1159 location,
1160 },
1161 }
1162 }
1163
1164 /** Bump the parser to the next UTF-16 code unit. */
1165 private bump(): void {

Callers 15

parseMessageMethod · 0.95
parseTagMethod · 0.95
parseArgumentMethod · 0.95
parseArgumentOptionsMethod · 0.95
tryParseArgumentCloseMethod · 0.95
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected