From 78da2bdd5d77d1b8572e5e9da119bfa68127a3fa Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 21 Jan 2020 17:09:31 +0100 Subject: =?UTF-8?q?Decoupled=20function=20parser=20=F0=9F=94=97=20[WIP]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/func.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/syntax/func.rs') diff --git a/src/syntax/func.rs b/src/syntax/func.rs index 5b1ce6e8..abc8c431 100644 --- a/src/syntax/func.rs +++ b/src/syntax/func.rs @@ -15,7 +15,7 @@ pub struct FuncArgs { #[derive(Debug, Clone, PartialEq)] pub enum Arg { - Pos(Spanned), + Pos(Spanned), Key(Pair), } @@ -46,12 +46,12 @@ impl FuncArgs { } /// Add a positional argument. - pub fn add_pos(&mut self, item: Spanned) { + pub fn add_pos(&mut self, item: Spanned) { self.pos.add(item); } /// Add a keyword argument. - pub fn add_key(&mut self, key: Spanned, value: Spanned) { + pub fn add_key(&mut self, key: Spanned, value: Spanned) { self.key.add(key, value); } @@ -92,7 +92,7 @@ impl FuncArgs { // } // /// Iterator over positional arguments. - // pub fn iter_pos(&mut self) -> std::vec::IntoIter> { + // pub fn iter_pos(&mut self) -> std::vec::IntoIter> { // let tuple = std::mem::replace(&mut self.positional, Tuple::new()); // tuple.items.into_iter() // } -- cgit v1.2.3