@@ -293,14 +293,12 @@ private module Cached {
293
293
newtype TArgumentPosition =
294
294
TThisArgument ( ) or
295
295
// we rely on default exprs generated in the caller for ordering
296
- TPositionalArgument ( int n ) { n = any ( Argument arg ) .getIndex ( ) } or
297
- TClosureSelfArgument ( )
296
+ TPositionalArgument ( int n ) { n = any ( Argument arg ) .getIndex ( ) }
298
297
299
298
cached
300
299
newtype TParameterPosition =
301
300
TThisParameter ( ) or
302
- TPositionalParameter ( int n ) { n = any ( Argument arg ) .getIndex ( ) } or
303
- TClosureSelfParameter ( )
301
+ TPositionalParameter ( int n ) { n = any ( Argument arg ) .getIndex ( ) }
304
302
}
305
303
306
304
import Cached
@@ -333,10 +331,6 @@ class ThisParameterPosition extends ParameterPosition, TThisParameter {
333
331
override string toString ( ) { result = "this" }
334
332
}
335
333
336
- class ClosureSelfParameter extends ParameterPosition , TClosureSelfParameter {
337
- override string toString ( ) { result = "{ ... }" }
338
- }
339
-
340
334
/** An argument position. */
341
335
class ArgumentPosition extends TArgumentPosition {
342
336
/** Gets a textual representation of this position. */
@@ -353,18 +347,11 @@ class ThisArgumentPosition extends ArgumentPosition, TThisArgument {
353
347
override string toString ( ) { result = "this" }
354
348
}
355
349
356
- class ClosureSelfArgument extends ArgumentPosition , TClosureSelfArgument {
357
- override string toString ( ) { result = "{ ... }" }
358
- }
359
-
360
350
/** Holds if arguments at position `apos` match parameters at position `ppos`. */
361
351
pragma [ inline]
362
352
predicate parameterMatch ( ParameterPosition ppos , ArgumentPosition apos ) {
363
353
ppos instanceof TThisParameter and
364
354
apos instanceof TThisArgument
365
355
or
366
356
ppos .( PositionalParameterPosition ) .getIndex ( ) = apos .( PositionalArgumentPosition ) .getIndex ( )
367
- or
368
- ppos instanceof TClosureSelfParameter and
369
- apos instanceof TClosureSelfArgument
370
357
}
0 commit comments