mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Swift: QLDoc getCanonicalType.
This commit is contained in:
@@ -77,7 +77,13 @@ class AstNode(Locatable):
|
|||||||
@ql.hideable
|
@ql.hideable
|
||||||
class Type(Element):
|
class Type(Element):
|
||||||
name: string
|
name: string
|
||||||
canonical_type: "Type"
|
canonical_type: "Type" | desc("""
|
||||||
|
This is the unique type we get after resolving aliases and desugaring. For example, given
|
||||||
|
```
|
||||||
|
typealias MyInt == Int
|
||||||
|
```
|
||||||
|
then `[MyInt?]` has the canonical type `Array<Optional<Int>>`.
|
||||||
|
""")
|
||||||
|
|
||||||
@group("decl")
|
@group("decl")
|
||||||
class Decl(AstNode):
|
class Decl(AstNode):
|
||||||
|
|||||||
Reference in New Issue
Block a user