mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: add Comment to schema
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user