Rust: add Comment to schema

This commit is contained in:
Arthur Baars
2024-09-30 14:29:11 +02:00
parent c3311e52a6
commit fd459be165
22 changed files with 415 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ from misc.codegen.lib.schemadefs import *
include("../shared/tree-sitter-extractor/src/generator/prefix.dbscheme")
include("prefix.dbscheme")
@qltest.skip
class Element:
pass
@@ -18,6 +19,26 @@ class AstNode(Locatable):
pass
@qltest.skip
class Token(AstNode):
"""
The base class for all tokens.
"""
pass
class Comment(Token):
"""
A comment. For example:
```rust
// this is a comment
/// This is a doc comment
```
"""
parent: AstNode
text: string
@qltest.skip
class Unextracted(Element):
"""