diff --git a/src/protocol/ast_printer.rs b/src/protocol/ast_printer.rs index 7a89d9478e39e034e812ff8acfc41721b48127cb..209767533d73ef52f9fcf27d1e63f9291f3f4e9f 100644 --- a/src/protocol/ast_printer.rs +++ b/src/protocol/ast_printer.rs @@ -612,17 +612,17 @@ impl ASTWriter { self.kv(indent2).with_s_key("ConcreteType") .with_custom_val(|v| write_concrete_type(v, heap, def_id, &expr.concrete_type)); }, - Expression::Constant(expr) => { + Expression::Literal(expr) => { self.kv(indent).with_id(PREFIX_CONST_EXPR_ID, expr.this.0.index) .with_s_key("ConstantExpr"); let val = self.kv(indent2).with_s_key("Value"); match &expr.value { - Constant::Null => { val.with_s_val("null"); }, - Constant::True => { val.with_s_val("true"); }, - Constant::False => { val.with_s_val("false"); }, - Constant::Character(char) => { val.with_ascii_val(char); }, - Constant::Integer(int) => { val.with_disp_val(int); }, + Literal::Null => { val.with_s_val("null"); }, + Literal::True => { val.with_s_val("true"); }, + Literal::False => { val.with_s_val("false"); }, + Literal::Character(char) => { val.with_ascii_val(char); }, + Literal::Integer(int) => { val.with_disp_val(int); }, } self.kv(indent2).with_s_key("Parent")