You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description:"The generic parameters, if any, of the class declaration.",
299
359
isOptional:true
300
360
),
301
361
Child(
302
362
name:"InheritanceClause",
303
363
kind:.node(kind:"TypeInheritanceClause"),
304
364
nameForDiagnostics:"inheritance clause",
365
+
description:"The inheritance clause describing one or more conformances for this class declaration.",
305
366
isOptional:true
306
367
),
307
368
Child(
308
369
name:"GenericWhereClause",
309
370
kind:.node(kind:"GenericWhereClause"),
310
371
nameForDiagnostics:"generic where clause",
372
+
description:"The `where` clause that applies to the generic parameters of this class declaration.",
311
373
isOptional:true
312
374
),
313
375
Child(
314
376
name:"MemberBlock",
315
-
kind:.node(kind:"MemberDeclBlock")
377
+
kind:.node(kind:"MemberDeclBlock"),
378
+
description:"The members of the class declaration. As class extension declarations may declare additional members, the contents of this member block isn't guaranteed to be a complete list of members for this type."
316
379
),
317
380
]
318
381
),
@@ -992,6 +1055,13 @@ public let DECL_NODES: [Node] = [
992
1055
Node(
993
1056
name:"ImportDecl",
994
1057
nameForDiagnostics:"import",
1058
+
description:"""
1059
+
An import declaration like the following.
1060
+
1061
+
```swift
1062
+
import Foundation
1063
+
```
1064
+
""",
995
1065
kind:"Decl",
996
1066
traits:[
997
1067
"Attributed"
@@ -1001,26 +1071,31 @@ public let DECL_NODES: [Node] = [
Copy file name to clipboardExpand all lines: CodeGeneration/Sources/SyntaxSupport/ExprNodes.swift
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -905,19 +905,31 @@ public let EXPR_NODES: [Node] = [
905
905
Node(
906
906
name:"IsExpr",
907
907
nameForDiagnostics:"'is'",
908
+
description:"""
909
+
An `is` expression like the following.
910
+
911
+
```swift
912
+
value is Double
913
+
```
914
+
915
+
This node is only generated after operators are folded using the `SwiftOperators` library. Beforehand, the parser does not know the precedences of operators and thus represents `is` by an `UnresolvedIsExpr`.
916
+
""",
908
917
kind:"Expr",
909
918
children:[
910
919
Child(
911
920
name:"Expression",
912
-
kind:.node(kind:"Expr")
921
+
kind:.node(kind:"Expr"),
922
+
description:"The expression which will be checked to determine whether it can be cast to a specific type."
913
923
),
914
924
Child(
915
925
name:"IsTok",
916
-
kind:.token(choices:[.keyword(text:"is")])
926
+
kind:.token(choices:[.keyword(text:"is")]),
927
+
description:"The `is` keyword for this expression."
917
928
),
918
929
Child(
919
930
name:"TypeName",
920
-
kind:.node(kind:"Type")
931
+
kind:.node(kind:"Type"),
932
+
description:"The type against which the expression will be checked to see if the expression can be cast to it."
0 commit comments