mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge branch 'MagicMethods' of github.com:yoff/codeql into MagicMethods
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
import python
|
||||
|
||||
/** A control flow node which might correpsond to a special method call. */
|
||||
/** A control flow node which might correspond to a special method call. */
|
||||
class PotentialSpecialMethodCallNode extends ControlFlowNode {
|
||||
PotentialSpecialMethodCallNode() { this instanceof SpecialMethod::Potential }
|
||||
}
|
||||
@@ -20,12 +20,12 @@ class PotentialSpecialMethodCallNode extends ControlFlowNode {
|
||||
* Extend `SpecialMethod::Potential` to capture more cases.
|
||||
*/
|
||||
module SpecialMethod {
|
||||
/** A control flow node which might correpsond to a special method call. */
|
||||
/** A control flow node which might correspond to a special method call. */
|
||||
abstract class Potential extends ControlFlowNode {
|
||||
/** Gets the name of the method that would be called. */
|
||||
abstract string getSpecialMethodName();
|
||||
|
||||
/** Gets the controlflow node that would be passed as the specified argument. */
|
||||
/** Gets the control flow node that would be passed as the specified argument. */
|
||||
abstract ControlFlowNode getArg(int n);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user