mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Rename expression classes
Rename the expression classes to match the documentation.
This commit is contained in:
parent
ef39b5d7db
commit
9e82a2fb2a
5 changed files with 23 additions and 23 deletions
|
@ -20,19 +20,19 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
from .common import *
|
||||
from .expression import ExprChain, LookupOp, LiteralExpr
|
||||
from .expression import Expression, LookupOp, LiteralExpr
|
||||
from .contexts import ValueTypeCtx
|
||||
|
||||
|
||||
class Binding(AstNode):
|
||||
grammar = [
|
||||
Keyword("bind"),
|
||||
ExprChain,
|
||||
Expression,
|
||||
]
|
||||
|
||||
@property
|
||||
def expression(self) -> ExprChain:
|
||||
return self.children[ExprChain][0]
|
||||
def expression(self) -> Expression:
|
||||
return self.children[Expression][0]
|
||||
|
||||
@property
|
||||
def simple_binding(self) -> T.Optional["SimpleBinding"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue