From 95e6b078fecddeaa3d6f2c920b617201b74bf01e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 19 Jan 2020 21:50:20 +0100 Subject: =?UTF-8?q?Move=20to=20non-fatal=20errors=20=F0=9F=AA=82=20[WIP]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dynamic models instead of SyntaxTrees - No more ParseResult/LayoutResult - Errors and Decorations which are propagated to parent contexts - Models are finally clonable --- src/syntax/expr.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/syntax/expr.rs') diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index c4feea74..74deda46 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -1,3 +1,4 @@ +use crate::size::ScaleSize; use super::*; @@ -126,6 +127,7 @@ impl Display for Object { } } +/// A key-value pair in an object. #[derive(Clone, PartialEq)] pub struct Pair { pub key: Spanned, @@ -144,7 +146,6 @@ debug_display!(Tuple); debug_display!(Object); debug_display!(Pair); - /// Kinds of expressions. pub trait ExpressionKind: Sized { /// The name of the expression in an `expected ` error. -- cgit v1.2.3