diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-01-21 17:09:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-01-21 17:09:31 +0100 |
| commit | 78da2bdd5d77d1b8572e5e9da119bfa68127a3fa (patch) | |
| tree | 020c8c39268690d34226eb7e33e75f86304988d6 /src/syntax/func.rs | |
| parent | 1c1c994c46f7dc30ee34dbc99b02f2342c4617f3 (diff) | |
Decoupled function parser 🔗 [WIP]
Diffstat (limited to 'src/syntax/func.rs')
| -rw-r--r-- | src/syntax/func.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<Expression>), + Pos(Spanned<Expr>), Key(Pair), } @@ -46,12 +46,12 @@ impl FuncArgs { } /// Add a positional argument. - pub fn add_pos(&mut self, item: Spanned<Expression>) { + pub fn add_pos(&mut self, item: Spanned<Expr>) { self.pos.add(item); } /// Add a keyword argument. - pub fn add_key(&mut self, key: Spanned<Ident>, value: Spanned<Expression>) { + pub fn add_key(&mut self, key: Spanned<Ident>, value: Spanned<Expr>) { self.key.add(key, value); } @@ -92,7 +92,7 @@ impl FuncArgs { // } // /// Iterator over positional arguments. - // pub fn iter_pos(&mut self) -> std::vec::IntoIter<Spanned<Expression>> { + // pub fn iter_pos(&mut self) -> std::vec::IntoIter<Spanned<Expr>> { // let tuple = std::mem::replace(&mut self.positional, Tuple::new()); // tuple.items.into_iter() // } |
