aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar.ron
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-14 12:45:56 +0100
committerAleksey Kladov <[email protected]>2018-08-14 12:45:56 +0100
commit199e3b73c712a74e36bbb75eebf9e9418f1b1341 (patch)
treec1d19ef695eedd9848eb9019a7c77c66f035a9bf /crates/libsyntax2/src/grammar.ron
parent1141d448d960eedba0a5647d525910de706bf778 (diff)
fields are part of the structure
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r--crates/libsyntax2/src/grammar.ron9
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index 3ae403bb5..aa28ab922 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -222,7 +222,13 @@ Grammar(
222 ] 222 ]
223 ), 223 ),
224 "FnDef": ( traits: ["NameOwner"] ), 224 "FnDef": ( traits: ["NameOwner"] ),
225 "StructDef": ( traits: ["NameOwner"] ), 225 "StructDef": (
226 traits: ["NameOwner"],
227 collections: [
228 ["fields", "NamedField"]
229 ]
230 ),
231 "NamedField": ( traits: ["NameOwner"] ),
226 "EnumDef": ( traits: ["NameOwner"] ), 232 "EnumDef": ( traits: ["NameOwner"] ),
227 "TraitDef": ( traits: ["NameOwner"] ), 233 "TraitDef": ( traits: ["NameOwner"] ),
228 "Module": ( traits: ["NameOwner"] ), 234 "Module": ( traits: ["NameOwner"] ),
@@ -230,6 +236,7 @@ Grammar(
230 "StaticDef": ( traits: ["NameOwner"] ), 236 "StaticDef": ( traits: ["NameOwner"] ),
231 "TypeDef": ( traits: ["NameOwner"] ), 237 "TypeDef": ( traits: ["NameOwner"] ),
232 "ImplItem": (), 238 "ImplItem": (),
239
233 "Name": (), 240 "Name": (),
234 "NameRef": (), 241 "NameRef": (),
235 242