Support negative numbers in Literal::from_str
This commit is contained in:
parent
331da5820c
commit
55ff45a5c2
3 changed files with 57 additions and 23 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue