File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/codeql/swift/elements/type
test/library-tests/elements/type/nominaltype Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.type.NominalType
2
2
private import codeql.swift.elements.decl.NominalTypeDecl
3
+ private import codeql.swift.elements.type.Type
3
4
4
5
class NominalType extends Generated:: NominalType {
5
- NominalType getABaseType ( ) { result = this .getDeclaration ( ) .( NominalTypeDecl ) .getABaseType ( ) }
6
+ Type getABaseType ( ) { result = this .getDeclaration ( ) .( NominalTypeDecl ) .getABaseType ( ) }
6
7
7
8
NominalType getADerivedType ( ) { result .getABaseType ( ) = this }
8
9
Original file line number Diff line number Diff line change 2
2
| nominaltype.swift:36:6:36:6 | a_alias | A_alias | A_alias | |
3
3
| nominaltype.swift:37:6:37:6 | a_optional_alias | A_optional_alias | A_optional_alias | |
4
4
| nominaltype.swift:38:6:38:6 | b1 | B1 | B1 | getABaseType:A |
5
- | nominaltype.swift:39:6:39:6 | b2 | B2 | B2 | |
5
+ | nominaltype.swift:39:6:39:6 | b2 | B2 | B2 | getABaseType:A_alias |
6
6
| nominaltype.swift:40:6:40:6 | b1_alias | B1_alias | B1_alias | |
7
7
| nominaltype.swift:41:6:41:6 | b2_alias | B2_alias | B2_alias | |
8
8
| nominaltype.swift:42:6:42:6 | p | P | P | |
9
9
| nominaltype.swift:43:6:43:6 | p_alias | P_alias | P_alias | |
10
10
| nominaltype.swift:44:6:44:6 | c1 | C1 | C1 | getABaseType:P |
11
- | nominaltype.swift:45:6:45:6 | c2 | C2 | C2 | |
11
+ | nominaltype.swift:45:6:45:6 | c2 | C2 | C2 | getABaseType:P_alias |
12
12
| nominaltype.swift:46:6:46:6 | c1_alias | C1_alias | C1_alias | |
13
13
| nominaltype.swift:47:6:47:6 | c2_alias | C2_alias | C2_alias | |
You can’t perform that action at this time.
0 commit comments