(
annotations: Annotations.Schema<Schema.Type<S>>
)
| 1403 | readonly from: S |
| 1404 | ) {} |
| 1405 | annotations( |
| 1406 | annotations: Annotations.Schema<Schema.Type<S>> |
| 1407 | ): ElementImpl<S, Token> { |
| 1408 | return new ElementImpl( |
| 1409 | new AST.OptionalType( |
| 1410 | this.ast.type, |
| 1411 | this.ast.isOptional, |
| 1412 | { ...this.ast.annotations, ...toASTAnnotations(annotations) } |
| 1413 | ), |
| 1414 | this.from |
| 1415 | ) |
| 1416 | } |
| 1417 | toString() { |
| 1418 | return `${this.ast.type}${this.ast.isOptional ? "?" : ""}` |
| 1419 | } |
nothing calls this directly
no test coverage detected