File tree Expand file tree Collapse file tree
python/ql/lib/semmle/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ library class StrListParent extends StrListParent_ { }
8383library class ExprParent extends ExprParent_ { }
8484
8585/** Internal implementation class */
86- library class PatternListParent extends PatternListParent_ { }
86+ class PatternListParent extends PatternListParent_ { }
8787
8888/** Internal implementation class */
8989library class PatternParent extends PatternParent_ { }
Original file line number Diff line number Diff line change @@ -7,12 +7,7 @@ import python
77/** A pattern in a match statement */
88class Pattern extends Pattern_ , AstNode {
99 /** 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 ( ) }
1611
1712 /** Gets the case statement containing this pattern */
1813 Case getCase ( ) { result .contains ( this ) }
Original file line number Diff line number Diff line change @@ -1590,8 +1590,8 @@ import IterableUnpacking
15901590 * case ('quit' as c) | ('go', ('up'|'down') as c):
15911591 * ...body
15921592 * ```
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.
15951595 *
15961596 * - as pattern: subject flows to alias as well as to the interior pattern
15971597 * - or pattern: subject flows to each alternative
You can’t perform that action at this time.
0 commit comments