update parser docs

This commit is contained in:
Connor Skees 2021-07-21 19:10:16 -04:00
parent d360af2cd6
commit be3edd8a62
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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<Identifier, Value>,