Skip to content

Commit f3aad36

Browse files
author
Paolo Tranquilli
committed
Rust: add forgotten files
1 parent c6ff21c commit f3aad36

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* This module provides a hand-modifiable wrapper around the generated class `LangCrateRef`.
3+
*
4+
* INTERNAL: Do not use.
5+
*/
6+
7+
private import codeql.rust.elements.internal.generated.canonical_paths.LangCrateRef
8+
9+
/**
10+
* INTERNAL: This module contains the customizable definition of `LangCrateRef` and should not
11+
* be referenced directly.
12+
*/
13+
module Impl {
14+
// the following QLdoc is generated: if you need to edit it, do it in the schema file
15+
/**
16+
* A reference to a crate in the Rust standard libraries.
17+
*/
18+
class LangCrateRef extends Generated::LangCrateRef {
19+
override string toString() { result = this.getName() }
20+
}
21+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* This module provides a hand-modifiable wrapper around the generated class `RepoCrateRef`.
3+
*
4+
* INTERNAL: Do not use.
5+
*/
6+
7+
private import codeql.rust.elements.internal.generated.canonical_paths.RepoCrateRef
8+
9+
/**
10+
* INTERNAL: This module contains the customizable definition of `RepoCrateRef` and should not
11+
* be referenced directly.
12+
*/
13+
module Impl {
14+
// the following QLdoc is generated: if you need to edit it, do it in the schema file
15+
/**
16+
* A reference to a crate in the repository.
17+
*/
18+
class RepoCrateRef extends Generated::RepoCrateRef {
19+
override string toString() {
20+
result = this.getName()
21+
or
22+
not this.hasName() and result = "?"
23+
}
24+
}
25+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* This module provides a hand-modifiable wrapper around the generated class `RustcCrateRef`.
3+
*
4+
* INTERNAL: Do not use.
5+
*/
6+
7+
private import codeql.rust.elements.internal.generated.canonical_paths.RustcCrateRef
8+
9+
/**
10+
* INTERNAL: This module contains the customizable definition of `RustcCrateRef` and should not
11+
* be referenced directly.
12+
*/
13+
module Impl {
14+
// the following QLdoc is generated: if you need to edit it, do it in the schema file
15+
/**
16+
* A reference to a crate provided by rustc. TODO: understand where these come from.
17+
*/
18+
class RustcCrateRef extends Generated::RustcCrateRef {
19+
override string toString() { result = this.getName() }
20+
}
21+
}

0 commit comments

Comments
 (0)