| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `DerefPat`. | |
| 4 | 3 | * | |
@@ -12,6 +11,7 @@ private import codeql.rust.elements.internal.generated.DerefPat | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * A deref pattern, matching the value behind a smart pointer. This is an experimental | |
| 17 | 17 | * Rust feature that cannot be written directly in stable Rust; the example below uses | |
@@ -23,5 +23,7 @@ module Impl { | |||
| 23 | 23 | * }; | |
| 24 | 24 | * ``` | |
| 25 | 25 | */ | |
| 26 | - class DerefPat extends Generated::DerefPat { } | ||
| 26 | + class DerefPat extends Generated::DerefPat { | ||
| 27 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 28 | + } | ||
| 27 | 29 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `ImplRestriction`. | |
| 4 | 3 | * | |
@@ -12,8 +11,11 @@ private import codeql.rust.elements.internal.generated.ImplRestriction | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * An implementation restriction, limiting where a trait can be implemented. For example the `impl(crate)` restriction (an unstable feature). | |
| 17 | 17 | */ | |
| 18 | - class ImplRestriction extends Generated::ImplRestriction { } | ||
| 18 | + class ImplRestriction extends Generated::ImplRestriction { | ||
| 19 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 20 | + } | ||
| 19 | 21 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `IncludeBytesExpr`. | |
| 4 | 3 | * | |
@@ -12,11 +11,14 @@ private import codeql.rust.elements.internal.generated.IncludeBytesExpr | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * An expression produced by the built-in `include_bytes!` macro, embedding the contents of a file as a byte array. For example: | |
| 17 | 17 | * ```rust | |
| 18 | 18 | * let data = include_bytes!("data.bin"); | |
| 19 | 19 | * ``` | |
| 20 | 20 | */ | |
| 21 | - class IncludeBytesExpr extends Generated::IncludeBytesExpr { } | ||
| 21 | + class IncludeBytesExpr extends Generated::IncludeBytesExpr { | ||
| 22 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 23 | + } | ||
| 22 | 24 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `MutRestriction`. | |
| 4 | 3 | * | |
@@ -12,8 +11,11 @@ private import codeql.rust.elements.internal.generated.MutRestriction | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * A mutability restriction, limiting where a field can be mutated. For example the `mut(crate)` restriction (an unstable feature). | |
| 17 | 17 | */ | |
| 18 | - class MutRestriction extends Generated::MutRestriction { } | ||
| 18 | + class MutRestriction extends Generated::MutRestriction { | ||
| 19 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 20 | + } | ||
| 19 | 21 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `NotNull`. | |
| 4 | 3 | * | |
@@ -12,6 +11,7 @@ private import codeql.rust.elements.internal.generated.NotNull | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * The `!null` pattern used in a pattern type to denote a non-null value. Pattern types | |
| 17 | 17 | * are an experimental, mostly compiler-internal feature (used in the standard library for | |
@@ -21,5 +21,7 @@ module Impl { | |||
| 21 | 21 | * type NonNull = builtin#pattern_type(*const () is !null); | |
| 22 | 22 | * ``` | |
| 23 | 23 | */ | |
| 24 | - class NotNull extends Generated::NotNull { } | ||
| 24 | + class NotNull extends Generated::NotNull { | ||
| 25 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 26 | + } | ||
| 25 | 27 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `PatternTypeRepr`. | |
| 4 | 3 | * | |
@@ -12,6 +11,7 @@ private import codeql.rust.elements.internal.generated.PatternTypeRepr | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * A pattern type, constraining a type to values matching a pattern. Pattern types are an | |
| 17 | 17 | * experimental, mostly compiler-internal feature and cannot be written directly in stable | |
@@ -20,5 +20,7 @@ module Impl { | |||
| 20 | 20 | * type NonZero = builtin#pattern_type(u32 is 1..); | |
| 21 | 21 | * ``` | |
| 22 | 22 | */ | |
| 23 | - class PatternTypeRepr extends Generated::PatternTypeRepr { } | ||
| 23 | + class PatternTypeRepr extends Generated::PatternTypeRepr { | ||
| 24 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 25 | + } | ||
| 24 | 26 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // generated by codegen, remove this comment if you wish to edit this file | ||
| 2 | 1 | /** | |
| 3 | 2 | * This module provides a hand-modifiable wrapper around the generated class `VisibilityInner`. | |
| 4 | 3 | * | |
@@ -12,12 +11,15 @@ private import codeql.rust.elements.internal.generated.VisibilityInner | |||
| 12 | 11 | * be referenced directly. | |
| 13 | 12 | */ | |
| 14 | 13 | module Impl { | |
| 14 | + // the following QLdoc is generated: if you need to edit it, do it in the schema file | ||
| 15 | 15 | /** | |
| 16 | 16 | * The parenthesized inner part of a visibility modifier or restriction, such as the `(in path)` in `pub(in path)`, or the `(crate)` in `pub(crate)`. For example the `(in foo::bar)` in: | |
| 17 | 17 | * ```rust | |
| 18 | 18 | * pub(in foo::bar) struct S; | |
| 19 | 19 | * // ^^^^^^^^^^^^ | |
| 20 | 20 | * ``` | |
| 21 | 21 | */ | |
| 22 | - class VisibilityInner extends Generated::VisibilityInner { } | ||
| 22 | + class VisibilityInner extends Generated::VisibilityInner { | ||
| 23 | + override string toStringImpl() { result = this.getAPrimaryQlClass() } | ||
| 24 | + } | ||
| 23 | 25 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments