File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ library class StrListParent extends StrListParent_ { }
83
83
library class ExprParent extends ExprParent_ { }
84
84
85
85
/** Internal implementation class */
86
- library class PatternListParent extends PatternListParent_ { }
86
+ class PatternListParent extends PatternListParent_ { }
87
87
88
88
/** Internal implementation class */
89
89
library class PatternParent extends PatternParent_ { }
Original file line number Diff line number Diff line change @@ -7,12 +7,7 @@ import python
7
7
/** A pattern in a match statement */
8
8
class Pattern extends Pattern_ , AstNode {
9
9
/** Gets the scope of this pattern */
10
- override Scope getScope ( ) {
11
- // TODO: Should it be defined as
12
- // py_scopes(this, result)
13
- // instead?
14
- result = this .getCase ( ) .getScope ( )
15
- }
10
+ override Scope getScope ( ) { result = this .getCase ( ) .getScope ( ) }
16
11
17
12
/** Gets the case statement containing this pattern */
18
13
Case getCase ( ) { result .contains ( this ) }
Original file line number Diff line number Diff line change @@ -1590,8 +1590,8 @@ import IterableUnpacking
1590
1590
* case ('quit' as c) | ('go', ('up'|'down') as c):
1591
1591
* ...body
1592
1592
* ```
1593
- * `command` is the subject of the as-pattern, while the second component of `command` is the subject
1594
- * of the first capture pattern. As such, 'subject' refers to the pattern under evaluation.
1593
+ * `command` is the subject of first the as-pattern, while the second component of `command`
1594
+ * is the subject of the second as- pattern. As such, 'subject' refers to the pattern under evaluation.
1595
1595
*
1596
1596
* - as pattern: subject flows to alias as well as to the interior pattern
1597
1597
* - or pattern: subject flows to each alternative
You can’t perform that action at this time.
0 commit comments