refactor!: remove lepty-scoping feature and make its behaviour the default; deprecate scope members; bump MSRV; bump deps
This commit is contained in:
parent
e10b4d5af1
commit
2736a27be4
1 changed files with 284 additions and 374 deletions
|
|
@ -1,3 +1,5 @@
|
|||
use raffia::ast::InterpolableIdent;
|
||||
|
||||
/// Convenience wrapper for String-being-a-hash
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct ScopeHash(String);
|
||||
|
|
@ -30,7 +32,10 @@ impl ScopeHash {
|
|||
.iter()
|
||||
.map(|s| &s.name)
|
||||
.chain(ids.iter().map(|i| &i.name))
|
||||
.map(|ident| ident.as_literal())
|
||||
.map(|ident| match ident {
|
||||
InterpolableIdent::Literal(lit) => Some(lit),
|
||||
_ => None,
|
||||
})
|
||||
.filter_map(|mbl| mbl.map(|l| l.raw))
|
||||
.collect::<String>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue