Shared: remove unused getLhs() predicate

This commit is contained in:
Asger F
2026-07-02 15:39:54 +02:00
parent 36b31a855c
commit d0cd4ac536
3 changed files with 0 additions and 14 deletions

View File

@@ -170,8 +170,6 @@ private module Input implements LocalNameBindingInputSig<Location> {
class SiblingShadowingDecl extends AstNode {
SiblingShadowingDecl() { none() }
AstNode getLhs() { none() }
AstNode getRhs() { none() }
AstNode getElse() { none() }

View File

@@ -82,9 +82,6 @@ signature module LocalNameBindingInputSig<LocationSig Location> {
* ```
*/
class SiblingShadowingDecl extends AstNode {
/** Gets the left-hand side of this declaration. */
AstNode getLhs();
/**
* Gets the right-hand side of this declaration.
*

View File

@@ -91,9 +91,6 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
}
abstract class SiblingShadowingDecl extends AstNode {
/** Gets the left-hand side of this declaration. */
abstract AstNode getLhs();
/**
* Gets the right-hand side of this declaration.
*
@@ -113,8 +110,6 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
private class LocalVariableDeclarationSiblingShadowingDecl extends SiblingShadowingDecl instanceof LocalVariableDeclaration
{
override AstNode getLhs() { result = LocalVariableDeclaration.super.getPattern() }
override AstNode getRhs() { result = LocalVariableDeclaration.super.getValue() }
override AstNode getElse() { none() }
@@ -122,16 +117,12 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
private class PatternGuardExprSiblingShadowingDecl extends SiblingShadowingDecl instanceof PatternGuardExpr
{
override AstNode getLhs() { result = PatternGuardExpr.super.getPattern() }
override AstNode getRhs() { result = PatternGuardExpr.super.getValue() }
override AstNode getElse() { none() }
}
private class GuardIfStmtSiblingShadowingDecl extends SiblingShadowingDecl instanceof GuardIfStmt {
override AstNode getLhs() { result = GuardIfStmt.super.getCondition() }
override AstNode getRhs() { none() }
override AstNode getElse() { result = GuardIfStmt.super.getElse() }