@@ -293,14 +293,12 @@ private module Cached {
293293 newtype TArgumentPosition =
294294 TThisArgument ( ) or
295295 // 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 ( ) }
298297
299298 cached
300299 newtype TParameterPosition =
301300 TThisParameter ( ) or
302- TPositionalParameter ( int n ) { n = any ( Argument arg ) .getIndex ( ) } or
303- TClosureSelfParameter ( )
301+ TPositionalParameter ( int n ) { n = any ( Argument arg ) .getIndex ( ) }
304302}
305303
306304import Cached
@@ -333,10 +331,6 @@ class ThisParameterPosition extends ParameterPosition, TThisParameter {
333331 override string toString ( ) { result = "this" }
334332}
335333
336- class ClosureSelfParameter extends ParameterPosition , TClosureSelfParameter {
337- override string toString ( ) { result = "{ ... }" }
338- }
339-
340334/** An argument position. */
341335class ArgumentPosition extends TArgumentPosition {
342336 /** Gets a textual representation of this position. */
@@ -353,18 +347,11 @@ class ThisArgumentPosition extends ArgumentPosition, TThisArgument {
353347 override string toString ( ) { result = "this" }
354348}
355349
356- class ClosureSelfArgument extends ArgumentPosition , TClosureSelfArgument {
357- override string toString ( ) { result = "{ ... }" }
358- }
359-
360350/** Holds if arguments at position `apos` match parameters at position `ppos`. */
361351pragma [ inline]
362352predicate parameterMatch ( ParameterPosition ppos , ArgumentPosition apos ) {
363353 ppos instanceof TThisParameter and
364354 apos instanceof TThisArgument
365355 or
366356 ppos .( PositionalParameterPosition ) .getIndex ( ) = apos .( PositionalArgumentPosition ) .getIndex ( )
367- or
368- ppos instanceof TClosureSelfParameter and
369- apos instanceof TClosureSelfArgument
370357}
0 commit comments