mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Rust: QLDoc fixes
This commit is contained in:
@@ -457,12 +457,12 @@ class AssociatedTypeTypeParameter extends TypeParameter, TAssociatedTypeTypePara
|
||||
override Location getLocation() { result = typeAlias.getLocation() }
|
||||
}
|
||||
|
||||
/** Gets the associated type type parameter corresponding directly to `typeAlias`. */
|
||||
/** Gets the associated type type-parameter corresponding directly to `typeAlias`. */
|
||||
AssociatedTypeTypeParameter getAssociatedTypeTypeParameter(TypeAlias typeAlias) {
|
||||
result.isDirect() and result.getTypeAlias() = typeAlias
|
||||
}
|
||||
|
||||
/** Gets the dyn type type parameter corresponding directly to `typeAlias`. */
|
||||
/** Gets the dyn type type-parameter corresponding directly to `typeAlias`. */
|
||||
DynTraitTypeParameter getDynTraitTypeParameter(TypeAlias typeAlias) {
|
||||
result.getTraitTypeParameter() = getAssociatedTypeTypeParameter(typeAlias)
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ class NonAliasPathTypeMention extends PathTypeMention {
|
||||
// trait Sub: Super<Assoc=Assoc[Sub]>
|
||||
// ```
|
||||
// Where `Assoc` is an associated type of `Super` and `Assoc[Sub]` denotes
|
||||
// the copy of the type parameter inherited into `Sub`.
|
||||
// the copy of the type parameter inherited by `Sub`.
|
||||
exists(Trait subtrait, TypeAlias alias |
|
||||
subtrait.getATypeBound().getTypeRepr().(PathTypeRepr).getPath() = this and
|
||||
result = TAssociatedTypeTypeParameter(subtrait, alias) and
|
||||
|
||||
Reference in New Issue
Block a user