File tree Expand file tree Collapse file tree 3 files changed +67
-0
lines changed
rust/ql/lib/codeql/rust/elements/canonical_paths/internal Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments