mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #9641 from boveus/patch-1
Make ActiveRecordInstanceMethodCall Public
This commit is contained in:
@@ -330,12 +330,13 @@ class ActiveRecordInstance extends DataFlow::Node {
|
||||
ActiveRecordModelClass getClass() { result = instantiation.getClass() }
|
||||
}
|
||||
|
||||
// A call whose receiver may be an active record model object
|
||||
private class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
|
||||
/** A call whose receiver may be an active record model object */
|
||||
class ActiveRecordInstanceMethodCall extends DataFlow::CallNode {
|
||||
private ActiveRecordInstance instance;
|
||||
|
||||
ActiveRecordInstanceMethodCall() { this.getReceiver() = instance }
|
||||
|
||||
/** Gets the `ActiveRecordInstance` that is the receiver of this call. */
|
||||
ActiveRecordInstance getInstance() { result = instance }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user