File tree Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,6 @@ private module Cached {
246
246
explicitAssignmentNode ( g , _)
247
247
or
248
248
casePattern ( g )
249
- or
250
- classReferencePattern ( g )
251
249
)
252
250
} or
253
251
TScopeResolutionMethodCall ( Ruby:: ScopeResolution g , Ruby:: Identifier i ) {
@@ -293,8 +291,6 @@ private module Cached {
293
291
explicitAssignmentNode ( g , _)
294
292
or
295
293
casePattern ( g )
296
- or
297
- classReferencePattern ( g )
298
294
} or
299
295
TTokenMethodName ( MethodName:: Token g ) { MethodName:: range ( g ) } or
300
296
TTokenSuperCall ( Ruby:: Super g ) { vcall ( g ) } or
Original file line number Diff line number Diff line change @@ -48,13 +48,7 @@ predicate casePattern(Ruby::AstNode node) {
48
48
node = any ( Ruby:: KeywordPattern parent ) .getValue ( )
49
49
or
50
50
node = any ( Ruby:: ParenthesizedPattern parent ) .getChild ( )
51
- }
52
-
53
- /**
54
- * Holds if `node` is a class reference used in an
55
- * array, find, or hash pattern.
56
- */
57
- predicate classReferencePattern ( Ruby:: AstNode node ) {
51
+ or
58
52
node = any ( Ruby:: ArrayPattern p ) .getClass ( )
59
53
or
60
54
node = any ( Ruby:: FindPattern p ) .getClass ( )
Original file line number Diff line number Diff line change @@ -227,12 +227,6 @@ private predicate inMatchingContext(AstNode n) {
227
227
or
228
228
n instanceof CasePattern
229
229
or
230
- n = any ( ArrayPattern p ) .getClass ( )
231
- or
232
- n = any ( FindPattern p ) .getClass ( )
233
- or
234
- n = any ( HashPattern p ) .getClass ( )
235
- or
236
230
n .( Trees:: DefaultValueParameterTree ) .hasDefaultValue ( )
237
231
}
238
232
You can’t perform that action at this time.
0 commit comments