mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Prevent magic/inlining in getCase
This is a simplified version of https://github.com/github/codeql/pull/8028 consisting of just the `nomagic` fix.
This commit is contained in:
@@ -10,6 +10,7 @@ class Pattern extends Pattern_, AstNode {
|
||||
override Scope getScope() { result = this.getCase().getScope() }
|
||||
|
||||
/** Gets the case statement containing this pattern */
|
||||
pragma[nomagic]
|
||||
Case getCase() { result.contains(this) }
|
||||
|
||||
override string toString() { result = "Pattern" }
|
||||
|
||||
Reference in New Issue
Block a user