Remove getNode as required interface

This commit is contained in:
Josh Brown
2024-01-29 16:15:57 -08:00
parent 2314d3be16
commit 3056e8cdab
7 changed files with 0 additions and 21 deletions

View File

@@ -896,9 +896,6 @@ class DataFlowCall extends CallInstruction {
/** Gets an argument to this call as a Node. */
ArgumentNode getAnArgumentNode(){ none() } // TODO: JB1 return an argument as a DataFlow ArgumentNode
/** Gets the data flow node corresponding to this call. */
ExprNode getDataFlowNode() {none() }
/** Gets the target of the call, as a DataFlowCallable. */
DataFlowCallable getARuntimeTarget(){ none() } // TODO getCallTarget() returns `Instruction`
}

View File

@@ -294,9 +294,6 @@ abstract class DataFlowCall extends TDataFlowCall {
/** Gets an argument of this call. */
final ArgumentNode getAnArgumentNode() { result.argumentOf(this, _) }
/** Gets the data flow node corresponding to this call. (An alias of `getNode()`) */
DataFlow::Node getDataFlowNode(){ result = this.getNode() }
/** Gets a textual representation of this call. */
abstract string toString();

View File

@@ -339,9 +339,6 @@ class DataFlowCall extends Expr {
/** Gets an argument to this call as a Node. */
ArgumentNode getAnArgumentNode(){ result = this.getArgument(_) }
/* Gets the data flow node corresponding to this call. */
ExprNode getDataFlowNode() { result = this.getNode() }
/** Gets the target of the call, as a DataFlowCallable. */
DataFlowCallable getARuntimeTarget(){ result.asCallable() = call.getACalleeIncludingExternals() }
}

View File

@@ -463,9 +463,6 @@ class DataFlowCall extends TDataFlowCall {
/** Gets an argument to this call as a Node. */
ArgumentNode getAnArgumentNode(){ none() } // TODO: JB1 return an argument as a DataFlow ArgumentNode
/** Gets the data flow node corresponding to this call. */
ExprNode getDataFlowNode() { none() } // TODO: JB1 return this Call as a Node
/** Gets the target of the call, as a DataFlowCallable. */
DataFlowCallable getARuntimeTarget(){ none() }
}

View File

@@ -1377,9 +1377,6 @@ abstract class DataFlowCall extends TDataFlowCall {
/** Gets an argument to this call as a Node. */
ArgumentNode getAnArgumentNode(){ none() } // TODO: JB1 return an argument as a DataFlow ArgumentNode
// Gets the data flow node corresponding to this call.
ExprNode getDataFlowNode() { none() } // TODO: JB1 return this Call as a Node
/** Gets the target of the call, as a DataFlowCallable. */
DataFlowCallable getARuntimeTarget(){ none() } // TODO
}

View File

@@ -141,9 +141,6 @@ class DataFlowCall extends TDataFlowCall {
/** Gets an argument to this call as a Node. */
ArgumentNode getAnArgumentNode(){ none() } // TODO: JB1 return an argument as a DataFlow ArgumentNode
/** Gets the data flow node corresponding to this call. */
ExprNode getDataFlowNode() { none() } // TODO: JB1 return this Call as a Node
/** Gets the target of the call, as a DataFlowCallable. */
DataFlowCallable getARuntimeTarget(){ none() } // TODO
}

View File

@@ -126,9 +126,6 @@ class DataFlowCall extends TDataFlowCall {
/** Gets an argument to this call as a Node. */
ArgumentNode getAnArgumentNode(){ none() } // TODO: JB1 return an argument as a DataFlow ArgumentNode
/** Gets the data flow node corresponding to this call. */
ExprNode getDataFlowNode() { none() } // TODO: JB1 return this Call as a Node
/** Gets the target of the call, as a DataFlowCallable. */
DataFlowCallable getARuntimeTarget(){ none() } // TODO getCallTarget() returns `Instruction`
}