(
openingBracePosition: Position
)
| 866 | } |
| 867 | |
| 868 | private tryParseArgumentClose( |
| 869 | openingBracePosition: Position |
| 870 | ): Result<true, ParserError> { |
| 871 | // Parse: {value, number, ::currency/GBP } |
| 872 | // |
| 873 | if (this.isEOF() || this.char() !== 125 /* `}` */) { |
| 874 | return this.error( |
| 875 | ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, |
| 876 | createLocation(openingBracePosition, this.clonePosition()) |
| 877 | ) |
| 878 | } |
| 879 | this.bump() // `}` |
| 880 | return {val: true, err: null} |
| 881 | } |
| 882 | |
| 883 | /** |
| 884 | * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659 |
no test coverage detected