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
|
@ -211,15 +211,15 @@ class XmlOutput(OutputFormat):
|
|||
else:
|
||||
raise CompilerBugError()
|
||||
|
||||
def _emit_expression(self, expression: ExprChain, xml: XmlEmitter):
|
||||
def _emit_expression(self, expression: Expression, xml: XmlEmitter):
|
||||
self._emit_expression_part(expression.last, xml)
|
||||
|
||||
def _emit_expression_part(self, expression: Expr, xml: XmlEmitter):
|
||||
def _emit_expression_part(self, expression: ExprBase, xml: XmlEmitter):
|
||||
if isinstance(expression, LiteralExpr):
|
||||
self._emit_literal_expr(expression, xml)
|
||||
elif isinstance(expression, LookupOp):
|
||||
self._emit_lookup_op(expression, xml)
|
||||
elif isinstance(expression, ExprChain):
|
||||
elif isinstance(expression, Expression):
|
||||
self._emit_expression(expression, xml)
|
||||
elif isinstance(expression, CastExpr):
|
||||
self._emit_cast_expr(expression, xml)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue