Merge pull request #9641 from boveus/patch-1

Make ActiveRecordInstanceMethodCall Public
This commit is contained in:
Alex Ford
2022-06-29 14:39:36 +01:00
committed by GitHub

View File

@@ -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 }
}