mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: add Crate to dbscheme
This commit is contained in:
@@ -5,6 +5,7 @@ include("prefix.dbscheme")
|
||||
|
||||
File = imported("File", "codeql.files.FileSystem")
|
||||
|
||||
|
||||
@qltest.skip
|
||||
class Element:
|
||||
pass
|
||||
@@ -85,7 +86,8 @@ class Addressable(AstNode):
|
||||
or `{<block id>}::name` for addressable items defined in an anonymous block (and only
|
||||
addressable there-in).
|
||||
""") | rust.detach | ql.internal
|
||||
crate_origin: optional[string] | desc("One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
|
||||
crate_origin: optional[string] | desc(
|
||||
"One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
|
||||
|
||||
|
||||
class Resolvable(AstNode):
|
||||
@@ -109,3 +111,11 @@ class ExtractorStep(Element):
|
||||
action: string
|
||||
file: optional[File]
|
||||
duration_ms: int
|
||||
|
||||
|
||||
class Crate(Element):
|
||||
name: optional[string]
|
||||
version: optional[string]
|
||||
module: optional["Module"]
|
||||
cfg_options: list[string]
|
||||
dependencies: list["Crate"]
|
||||
|
||||
Reference in New Issue
Block a user