mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Move bindings out of the Value syntax
They're only valid in properties, so they should just be there. Same with object values.
This commit is contained in:
parent
ac2a7d9282
commit
75055ac967
7 changed files with 45 additions and 47 deletions
|
@ -361,12 +361,12 @@ class ObjectValue(AstNode):
|
|||
|
||||
|
||||
class Value(AstNode):
|
||||
grammar = AnyOf(PropertyBinding, Binding, Translated, ObjectValue, Flags, Literal)
|
||||
grammar = AnyOf(Translated, Flags, Literal)
|
||||
|
||||
@property
|
||||
def child(
|
||||
self,
|
||||
) -> T.Union[PropertyBinding, Binding, Translated, ObjectValue, Flags, Literal]:
|
||||
) -> T.Union[Translated, Flags, Literal]:
|
||||
return self.children[0]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue