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
Copy file name to clipboardExpand all lines: unified/extractor/tests/corpus/swift/types/protocol-with-read-only-and-read-write-property-requirements.output
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
protocol P {
2
2
var foo: Int { get }
3
3
var bar: String { get set }
4
+
var count: Int { get }
4
5
}
5
6
6
7
---
@@ -71,6 +72,31 @@ sourceFile
71
72
attributes:
72
73
leftBrace: {
73
74
rightBrace: }
75
+
memberBlockItem
76
+
decl:
77
+
variableDecl
78
+
attributes:
79
+
modifiers:
80
+
bindingSpecifier: var
81
+
bindings:
82
+
patternBinding
83
+
pattern:
84
+
identifierPattern
85
+
identifier: identifier "count"
86
+
typeAnnotation:
87
+
typeAnnotation
88
+
colon: :
89
+
type:
90
+
identifierType
91
+
name: identifier "Int"
92
+
accessorBlock:
93
+
accessorBlock
94
+
accessors:
95
+
accessorDecl
96
+
accessorSpecifier: get
97
+
attributes:
98
+
leftBrace: {
99
+
rightBrace: }
74
100
modifiers:
75
101
protocolKeyword: protocol
76
102
@@ -85,18 +111,19 @@ top_level
85
111
name_node: name_node "P"
86
112
member:
87
113
accessor_declaration
114
+
name_node: name_node "foo"
88
115
accessor_kind: accessor_kind "get"
89
116
type: name_node "Int"
90
-
name: name_node "foo" <-- ERROR: the node 'accessor_declaration' has no field 'name'
91
-
<-- ERROR: missing required field 'name_node'
92
117
accessor_declaration
118
+
name_node: name_node "bar"
93
119
accessor_kind: accessor_kind "get"
94
120
type: name_node "String"
95
-
name: name_node "bar" <-- ERROR: the node 'accessor_declaration' has no field 'name'
96
-
<-- ERROR: missing required field 'name_node'
97
121
accessor_declaration
98
122
modifier: modifier "chained_declaration"
123
+
name_node: name_node "bar"
99
124
accessor_kind: accessor_kind "set"
100
125
type: name_node "String"
101
-
name: name_node "bar" <-- ERROR: the node 'accessor_declaration' has no field 'name'
0 commit comments