We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4920c7f commit ce47110Copy full SHA for ce47110
swift/schema.py
@@ -77,7 +77,13 @@ class AstNode(Locatable):
77
@ql.hideable
78
class Type(Element):
79
name: string
80
- canonical_type: "Type"
+ canonical_type: "Type" | desc("""
81
+ This is the unique type we get after resolving aliases and desugaring. For example, given
82
+ ```
83
+ typealias MyInt == Int
84
85
+ then `[MyInt?]` has the canonical type `Array<Optional<Int>>`.
86
+ """)
87
88
@group("decl")
89
class Decl(AstNode):
0 commit comments