mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
Rust: avoid classes with multiple getAPrimaryQLClass result
This commit is contained in:
@@ -448,8 +448,7 @@ module Impl {
|
||||
private import codeql.rust.elements.internal.generated.Synth
|
||||
|
||||
/** A variable access. */
|
||||
abstract class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand
|
||||
{
|
||||
class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand {
|
||||
private string name;
|
||||
private Variable v;
|
||||
|
||||
@@ -462,8 +461,6 @@ module Impl {
|
||||
predicate isCapture() { this.getEnclosingCallable() != v.getPat().getEnclosingCallable() }
|
||||
|
||||
override string toString() { result = name }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "VariableAccess" }
|
||||
}
|
||||
|
||||
/** Holds if `e` occurs in the LHS of an assignment or compound assignment. */
|
||||
|
||||
Reference in New Issue
Block a user