mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Remove getNode as required interface
This commit is contained in:
@@ -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`
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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() }
|
||||
}
|
||||
|
||||
@@ -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() }
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user