From 594809e35b9e768f1a50926cf5e7a9df41ba7d16 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 17 Aug 2021 22:04:18 +0200 Subject: Library functions behave more imperatively - Templates scope state changes - State-modifying function operate in place instead of returning a template - Internal template representation contains actual owned nodes instead of a pointer to a syntax tree + an expression map - No more wide calls --- src/syntax/expr.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/syntax/expr.rs') diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index 3a71bedd..aac23a6f 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -170,7 +170,7 @@ pub struct TemplateExpr { /// The source code location. pub span: Span, /// The contents of the template. - pub tree: Rc, + pub tree: SyntaxTree, } /// A grouped expression: `(1 + 2)`. @@ -406,8 +406,6 @@ pub struct CallExpr { pub span: Span, /// The function to call. pub callee: Expr, - /// Whether the call is wide, that is, capturing the template behind it. - pub wide: bool, /// The arguments to the function. pub args: CallArgs, } -- cgit v1.2.3