Swift: QLDoc getCanonicalType.

This commit is contained in:
Geoffrey White
2023-10-27 14:16:59 +01:00
parent 4920c7f8b0
commit ce471105e2

View File

@@ -77,7 +77,13 @@ class AstNode(Locatable):
@ql.hideable
class Type(Element):
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")
class Decl(AstNode):