@@ -39,7 +39,7 @@ import Type
39
39
* For example, `X` in `class X<T> { }`.
40
40
*/
41
41
class GenericType extends ClassOrInterface {
42
- GenericType ( ) { typeVars ( _, _, _, _ , this ) }
42
+ GenericType ( ) { typeVars ( _, _, _, this ) }
43
43
44
44
/**
45
45
* Gets a parameterization of this generic type, where each use of
@@ -64,7 +64,7 @@ class GenericType extends ClassOrInterface {
64
64
/**
65
65
* Gets the `i`-th type parameter of this generic type.
66
66
*/
67
- TypeVariable getTypeParameter ( int i ) { typeVars ( result , _, i , _ , this ) }
67
+ TypeVariable getTypeParameter ( int i ) { typeVars ( result , _, i , this ) }
68
68
69
69
/**
70
70
* Gets a type parameter of this generic type.
@@ -139,10 +139,10 @@ abstract class BoundedType extends RefType, @boundedtype {
139
139
*/
140
140
class TypeVariable extends BoundedType , Modifiable , @typevariable {
141
141
/** Gets the generic type that is parameterized by this type parameter, if any. */
142
- GenericType getGenericType ( ) { typeVars ( this , _, _, _ , result ) }
142
+ GenericType getGenericType ( ) { typeVars ( this , _, _, result ) }
143
143
144
144
/** Gets the generic callable that is parameterized by this type parameter, if any. */
145
- GenericCallable getGenericCallable ( ) { typeVars ( this , _, _, _ , result ) }
145
+ GenericCallable getGenericCallable ( ) { typeVars ( this , _, _, result ) }
146
146
147
147
/**
148
148
* Gets an upper bound of this type parameter, or `Object`
@@ -196,7 +196,7 @@ class TypeVariable extends BoundedType, Modifiable, @typevariable {
196
196
}
197
197
198
198
/** Gets the index of `this` type variable. */
199
- int getIndex ( ) { typeVars ( this , _, result , _, _ ) }
199
+ int getIndex ( ) { typeVars ( this , _, result , _) }
200
200
201
201
override string getAPrimaryQlClass ( ) { result = "TypeVariable" }
202
202
}
@@ -327,7 +327,7 @@ class TypeBound extends @typebound {
327
327
class ParameterizedType extends ClassOrInterface {
328
328
ParameterizedType ( ) {
329
329
typeArgs ( _, _, this ) or
330
- typeVars ( _, _, _, _ , this )
330
+ typeVars ( _, _, _, this )
331
331
}
332
332
333
333
/**
@@ -351,27 +351,27 @@ class ParameterizedType extends ClassOrInterface {
351
351
*/
352
352
RefType getATypeArgument ( ) {
353
353
typeArgs ( result , _, this ) or
354
- typeVars ( result , _, _, _ , this )
354
+ typeVars ( result , _, _, this )
355
355
}
356
356
357
357
/** Gets the type argument of this parameterized type at the specified position. */
358
358
RefType getTypeArgument ( int pos ) {
359
359
typeArgs ( result , pos , this ) or
360
- typeVars ( result , _, pos , _ , this )
360
+ typeVars ( result , _, pos , this )
361
361
}
362
362
363
363
/** Gets the number of type arguments of this parameterized type. */
364
364
int getNumberOfTypeArguments ( ) {
365
365
result =
366
366
count ( int pos |
367
367
typeArgs ( _, pos , this ) or
368
- typeVars ( _, _, pos , _ , this )
368
+ typeVars ( _, _, pos , this )
369
369
)
370
370
}
371
371
372
372
/** Holds if this type originates from source code. */
373
373
override predicate fromSource ( ) {
374
- typeVars ( _, _, _, _ , this ) and ClassOrInterface .super .fromSource ( )
374
+ typeVars ( _, _, _, this ) and ClassOrInterface .super .fromSource ( )
375
375
}
376
376
377
377
override string getAPrimaryQlClass ( ) { result = "ParameterizedType" }
@@ -444,14 +444,14 @@ class GenericCallable extends Callable {
444
444
exists ( Callable srcDecl |
445
445
methods ( this , _, _, _, _, srcDecl ) or constrs ( this , _, _, _, _, srcDecl )
446
446
|
447
- typeVars ( _, _, _, _ , srcDecl )
447
+ typeVars ( _, _, _, srcDecl )
448
448
)
449
449
}
450
450
451
451
/**
452
452
* Gets the `i`-th type parameter of this generic callable.
453
453
*/
454
- TypeVariable getTypeParameter ( int i ) { typeVars ( result , _, i , _ , this .getSourceDeclaration ( ) ) }
454
+ TypeVariable getTypeParameter ( int i ) { typeVars ( result , _, i , this .getSourceDeclaration ( ) ) }
455
455
456
456
/**
457
457
* Gets a type parameter of this generic callable.
0 commit comments