@internal
(s: string, options: ParseOptions)
| 2911 | } |
| 2912 | /** @internal */ |
| 2913 | matchPart(s: string, options: ParseOptions): LiteralValue | undefined { |
| 2914 | for (const type of this.types) { |
| 2915 | const out = (type as TemplateLiteralPart).matchPart(s, options) |
| 2916 | if (out !== undefined) return out |
| 2917 | } |
| 2918 | return undefined |
| 2919 | } |
| 2920 | /** @internal */ |
| 2921 | getExpected(getExpected: (ast: AST) => string): string { |
| 2922 | const expected = this.annotations?.expected |