MCPcopy
hub / github.com/formatjs/formatjs / clonePosition

Method clonePosition

packages/icu-messageformat-parser/parser.ts:1125–1132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1123 }
1124
1125 private clonePosition(): Position {
1126 // This is much faster than `Object.assign` or spread.
1127 return {
1128 offset: this.position.offset,
1129 line: this.position.line,
1130 column: this.position.column,
1131 }
1132 }
1133
1134 /**
1135 * Return the code point at the current position of the parser.

Callers 11

parseMethod · 0.95
parseMessageMethod · 0.95
parseTagMethod · 0.95
parseLiteralMethod · 0.95
parseArgumentMethod · 0.95
parseArgumentOptionsMethod · 0.95
tryParseArgumentCloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected