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
{{ message }}
Repository navigation
Commit 3f42106
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: unified/extractor/tests/corpus/swift/types/protocol-with-read-only-and-read-write-property-requirements.output
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
protocol P {
2
-
var foo: Int { get }
2
+
static var foo: Int { get }
3
3
var bar: String { get set }
4
4
var count: Int { get }
5
5
}
@@ -24,6 +24,8 @@ sourceFile
24
24
variableDecl
25
25
attributes:
26
26
modifiers:
27
+
declModifier
28
+
name: static
27
29
bindingSpecifier: var
28
30
bindings:
29
31
patternBinding
@@ -106,11 +108,12 @@ top_level source="⟨body⟩"
106
108
body:
107
109
block source="⟨stmt⟩"
108
110
stmt:
109
-
class_like_declaration source="⟨modifier⟩ ⟨name_node⟩ {\n var foo: Int { ⟨member⟩ }\n var bar: String { ⟨member⟩ ⟨member⟩ }\n var count: Int { ⟨member⟩ }\n}"
111
+
class_like_declaration source="⟨modifier⟩ ⟨name_node⟩ {\n static var foo: Int { ⟨member⟩ }\n var bar: String { ⟨member⟩ ⟨member⟩ }\n var count: Int { ⟨member⟩ }\n}"
0 commit comments