(
nestingLevel: number,
parentArgType: ArgType
)
| 505 | } |
| 506 | |
| 507 | private tryParseUnquoted( |
| 508 | nestingLevel: number, |
| 509 | parentArgType: ArgType |
| 510 | ): string | null { |
| 511 | if (this.isEOF()) { |
| 512 | return null |
| 513 | } |
| 514 | const ch = this.char() |
| 515 | |
| 516 | if ( |
| 517 | ch === 60 /* `<` */ || |
| 518 | ch === 123 /* `{` */ || |
| 519 | (ch === 35 /* `#` */ && |
| 520 | (parentArgType === 'plural' || parentArgType === 'selectordinal')) || |
| 521 | (ch === 125 /* `}` */ && nestingLevel > 0) |
| 522 | ) { |
| 523 | return null |
| 524 | } else { |
| 525 | this.bump() |
| 526 | return String.fromCodePoint(ch) |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | private parseArgument( |
| 531 | nestingLevel: number, |
no test coverage detected