Converts the object property name into a string.
(self)
| 378 | impl<'a> ObjectPropName<'a> { |
| 379 | /// Converts the object property name into a string. |
| 380 | pub fn into_string(self) -> String { |
| 381 | match self { |
| 382 | ObjectPropName::String(lit) => lit.value.into_owned(), |
| 383 | ObjectPropName::Word(lit) => lit.value.to_string(), |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | /// Gets the object property name as a string reference. |
| 388 | pub fn as_str(&'a self) -> &'a str { |
no outgoing calls
no test coverage detected