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
|
@ -121,11 +121,6 @@ class PropertyBinding(AstNode):
|
|||
f"{gir_class.full_name} does not have a property called {self.property_name}"
|
||||
)
|
||||
|
||||
@validate("bind-property")
|
||||
def not_bindable(self) -> None:
|
||||
if binding_error := self.context[ValueTypeCtx].binding_error:
|
||||
raise binding_error
|
||||
|
||||
@validate("bind")
|
||||
def old_bind(self):
|
||||
if self.tokens["bind"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue