Support negative numbers in Literal::from_str
This commit is contained in:
@@ -1588,6 +1588,10 @@ impl Symbol {
|
||||
self.0.as_u32()
|
||||
}
|
||||
|
||||
pub fn len(self) -> usize {
|
||||
with_interner(|interner| interner.get(self).len())
|
||||
}
|
||||
|
||||
pub fn is_empty(self) -> bool {
|
||||
self == kw::Empty
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user