File tree Expand file tree Collapse file tree 5 files changed +4
-24
lines changed
codeql/swift/generated/type Expand file tree Collapse file tree 5 files changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -898,7 +898,6 @@ BoundGenericStructType:
898
898
899
899
ClassType :
900
900
_extends : NominalType
901
- decl : ClassDecl
902
901
903
902
EnumType :
904
903
_extends : NominalType
@@ -908,7 +907,6 @@ ProtocolType:
908
907
909
908
StructType :
910
909
_extends : NominalType
911
- decl : StructDecl
912
910
913
911
ArraySliceType :
914
912
_extends : UnarySyntaxSugarType
Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ class TypeVisitor : public TypeVisitorBase<TypeVisitor> {
28
28
29
29
void visitStructType (swift::StructType* type) {
30
30
auto label = dispatcher_.assignNewLabel (type);
31
- dispatcher_.emit (StructTypesTrap{label, dispatcher_. fetchLabel (type-> getDecl ()) });
31
+ dispatcher_.emit (StructTypesTrap{label});
32
32
emitAnyGenericType (type, label);
33
33
}
34
34
35
35
void visitClassType (swift::ClassType* type) {
36
36
auto label = dispatcher_.assignNewLabel (type);
37
- dispatcher_.emit (ClassTypesTrap{label, dispatcher_. fetchLabel (type-> getDecl ()) });
37
+ dispatcher_.emit (ClassTypesTrap{label});
38
38
emitAnyGenericType (type, label);
39
39
}
40
40
Original file line number Diff line number Diff line change 1
1
// generated by codegen/codegen.py
2
- import codeql.swift.elements.decl.ClassDecl
3
2
import codeql.swift.elements.type.NominalType
4
3
5
4
class ClassTypeBase extends @class_type, NominalType {
6
5
override string getAPrimaryQlClass ( ) { result = "ClassType" }
7
-
8
- ClassDecl getDecl ( ) {
9
- exists ( ClassDecl x |
10
- class_types ( this , x ) and
11
- result = x .resolve ( )
12
- )
13
- }
14
6
}
Original file line number Diff line number Diff line change 1
1
// generated by codegen/codegen.py
2
2
import codeql.swift.elements.type.NominalType
3
- import codeql.swift.elements.decl.StructDecl
4
3
5
4
class StructTypeBase extends @struct_type, NominalType {
6
5
override string getAPrimaryQlClass ( ) { result = "StructType" }
7
-
8
- StructDecl getDecl ( ) {
9
- exists ( StructDecl x |
10
- struct_types ( this , x ) and
11
- result = x .resolve ( )
12
- )
13
- }
14
6
}
Original file line number Diff line number Diff line change @@ -1774,8 +1774,7 @@ bound_generic_struct_types(
1774
1774
);
1775
1775
1776
1776
class_types(
1777
- unique int id: @class_type,
1778
- int decl: @class_decl ref
1777
+ unique int id: @class_type
1779
1778
);
1780
1779
1781
1780
enum_types(
@@ -1787,8 +1786,7 @@ protocol_types(
1787
1786
);
1788
1787
1789
1788
struct_types(
1790
- unique int id: @struct_type,
1791
- int decl: @struct_decl ref
1789
+ unique int id: @struct_type
1792
1790
);
1793
1791
1794
1792
array_slice_types(
You can’t perform that action at this time.
0 commit comments