We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
static_property_info
1 parent 024c71e commit 48d83abCopy full SHA for 48d83ab
crates/oxc_ast/src/ast_impl/js.rs
@@ -675,9 +675,7 @@ impl<'a> ComputedMemberExpression<'a> {
675
pub fn static_property_info(&self) -> Option<(Span, &'a str)> {
676
match &self.expression {
677
Expression::StringLiteral(lit) => Some((lit.span, lit.value.as_str())),
678
- Expression::TemplateLiteral(lit)
679
- if lit.expressions.is_empty() && lit.quasis.len() == 1 =>
680
- {
+ Expression::TemplateLiteral(lit) if lit.quasis.len() == 1 => {
681
lit.quasis[0].value.cooked.map(|cooked| (lit.span, cooked.as_str()))
682
}
683
Expression::RegExpLiteral(lit) => lit.raw.map(|raw| (lit.span, raw.as_str())),
0 commit comments