From 27947e212cf217005059c4d31fa4301e92cfd3cc Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 1 May 2019 17:15:59 +0200 Subject: =?UTF-8?q?Require=20scope=20for=20parser=20=E2=99=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/func.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/func.rs') diff --git a/src/func.rs b/src/func.rs index e9212278..7558a124 100644 --- a/src/func.rs +++ b/src/func.rs @@ -5,7 +5,7 @@ use std::collections::HashMap; use std::fmt::{self, Debug, Formatter}; use crate::syntax::{FuncHeader, Expression}; -use crate::parsing::{ParseTokens, ParseResult}; +use crate::parsing::{BodyTokens, ParseResult}; /// A function which transforms a parsing context into a boxed function. @@ -66,7 +66,7 @@ pub struct ParseContext<'s, 't> { /// The header of the function to be parsed. pub header: &'s FuncHeader, /// Tokens if the function has a body, otherwise nothing. - pub tokens: Option<&'s mut ParseTokens<'t>>, + pub tokens: Option<&'s mut BodyTokens<'t>>, /// The current scope containing function definitions. pub scope: &'s Scope, } -- cgit v1.2.3