diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-05-01 17:15:59 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-05-01 17:19:27 +0200 |
| commit | 27947e212cf217005059c4d31fa4301e92cfd3cc (patch) | |
| tree | 2580c0626918a145da88fa65cb6dcfa46087536a /src/func.rs | |
| parent | 632bf2f2efae9e5820a256bef9e30a5cdf67a148 (diff) | |
Require scope for parser ♻
Diffstat (limited to 'src/func.rs')
| -rw-r--r-- | src/func.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, } |
