mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Don't bother hiding toString() and getLocation()
This commit is contained in:
@@ -12,9 +12,9 @@ private import SemanticExprSpecific::SemanticExprConfig as Specific
|
||||
* the expression's opcode (`getOpcode()`).
|
||||
*/
|
||||
class SemExpr instanceof Specific::Expr {
|
||||
final string toString() { result = Specific::exprToString(this) }
|
||||
final string toString() { result = super.toString() }
|
||||
|
||||
final Specific::Location getLocation() { result = Specific::getExprLocation(this) }
|
||||
final Specific::Location getLocation() { result = super.getLocation() }
|
||||
|
||||
Opcode getOpcode() { result instanceof Opcode::Unknown }
|
||||
|
||||
|
||||
@@ -13,10 +13,6 @@ module SemanticExprConfig {
|
||||
|
||||
class Expr = IR::Instruction;
|
||||
|
||||
string exprToString(Expr e) { result = e.toString() }
|
||||
|
||||
Location getExprLocation(Expr e) { result = e.getLocation() }
|
||||
|
||||
SemBasicBlock getExprBasicBlock(Expr e) { result = getSemanticBasicBlock(e.getBlock()) }
|
||||
|
||||
private predicate anyConstantExpr(Expr expr, SemType type, string value) {
|
||||
|
||||
Reference in New Issue
Block a user