You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case (FieldDeclaration)`<FieldModifierfm><Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId> = new <{AnnotatedType"."}* aType><TypeArgumentsargs>(<ArgumentList? al>);` : {
25
+
if(args !:= (TypeArguments)`\<\>`){
26
+
numberOfOccurences += 1;
27
+
insert((FieldDeclaration)`<FieldModifierfm><Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId>= new <{AnnotatedType"."}* aType>\<\>(<ArgumentList? al>);`);
28
+
}
32
29
}
33
-
34
-
case (LocalVariableDeclaration)`<Identifieridt><TypeArgumentstas><VariableDeclaratorListvdl>` : {
35
-
VariableDeclaratorListv2 = visit(vdl){ //case lvalue is a generic type
36
-
//Case where generics isn't especified
37
-
case (ClassOrInterfaceTypeToInstantiate)`<{AnnotatedType"."}* aType>` : {
case (FieldDeclaration)`<Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId> = new <{AnnotatedType"."}* aType><TypeArgumentsargs>(<ArgumentList? al>);` : {
31
+
if(args !:= (TypeArguments)`\<\>`){
32
+
numberOfOccurences += 1;
33
+
insert((FieldDeclaration)`<Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId>= new <{AnnotatedType"."}* aType>\<\>(<ArgumentList? al>);`);
case (LocalVariableDeclaration) `<VariableModifiervm><Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId> = new <{AnnotatedType"."}* aType><TypeArgumentsargs>(<ArgumentList? al>)` : {
45
+
if(args !:= (TypeArguments)`\<\>`){
46
+
numberOfOccurences += 1;
47
+
insert((LocalVariableDeclaration)`<VariableModifiervm><Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId>= new <{AnnotatedType"."}* aType>\<\>(<ArgumentList? al>)`);
48
+
}
49
+
}
50
+
case (LocalVariableDeclaration)`<Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId> = new <{AnnotatedType"."}* aType><TypeArgumentsargs>(<ArgumentList? al>)` : {
51
+
if(args !:= (TypeArguments)`\<\>`){
52
+
numberOfOccurences += 1;
53
+
insert((LocalVariableDeclaration)`<Identifieridt><TypeArgumentstas><VariableDeclaratorIdvdId>= new <{AnnotatedType"."}* aType>\<\>(<ArgumentList? al>)`);
0 commit comments