From be3edd8a62d3fccbb7b3eda3251877d9e88b6fda Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Wed, 21 Jul 2021 19:10:16 -0400 Subject: [PATCH] update parser docs --- src/parse/mod.rs | 3 --- src/scope.rs | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parse/mod.rs b/src/parse/mod.rs index ba4eb73..52227d7 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -63,9 +63,6 @@ pub(crate) enum Stmt { Import(String), } -/// We could use a generic for the toks, but it makes the API -/// much simpler to work with if it isn't generic. The performance -/// hit (if there is one) is not important for now. // todo: merge at_root and at_root_has_selector into an enum pub(crate) struct Parser<'a> { pub toks: &'a mut Lexer, diff --git a/src/scope.rs b/src/scope.rs index 528101b..78b0dda 100644 --- a/src/scope.rs +++ b/src/scope.rs @@ -10,6 +10,9 @@ use crate::{ value::{SassFunction, Value}, }; +/// A singular scope +/// +/// Contains variables, functions, and mixins #[derive(Debug, Default)] pub(crate) struct Scope { pub vars: BTreeMap,