From d3419f7d147b8c362a3795c8284d55ff6f4f3492 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 31 Jul 2024 18:31:03 -0400 Subject: perf: update deno_ast to 0.41 (#24819) Some perf gains in swc (I measured formatting and it was slightly faster). Includes: * https://github.com/denoland/deno_graph/pull/508 * https://github.com/denoland/eszip/pull/193 --- cli/lsp/testing/collectors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/lsp/testing') diff --git a/cli/lsp/testing/collectors.rs b/cli/lsp/testing/collectors.rs index 7b00228df..2f2ddb877 100644 --- a/cli/lsp/testing/collectors.rs +++ b/cli/lsp/testing/collectors.rs @@ -147,7 +147,7 @@ fn visit_call_expr( let ast::Prop::KeyValue(key_value_prop) = prop.as_ref() else { continue; }; - let ast::PropName::Ident(ast::Ident { sym, .. }) = + let ast::PropName::Ident(ast::IdentName { sym, .. }) = &key_value_prop.key else { continue; @@ -187,7 +187,7 @@ fn visit_call_expr( }; match prop.as_ref() { ast::Prop::KeyValue(key_value_prop) => { - let ast::PropName::Ident(ast::Ident { sym, .. }) = + let ast::PropName::Ident(ast::IdentName { sym, .. }) = &key_value_prop.key else { continue; @@ -206,7 +206,7 @@ fn visit_call_expr( } } ast::Prop::Method(method_prop) => { - let ast::PropName::Ident(ast::Ident { sym, .. }) = + let ast::PropName::Ident(ast::IdentName { sym, .. }) = &method_prop.key else { continue; @@ -472,7 +472,7 @@ impl Visit for TestCollector { collector: &mut TestCollector, node: &ast::CallExpr, range: &deno_ast::SourceRange, - ns_prop_ident: &ast::Ident, + ns_prop_ident: &ast::IdentName, member_expr: &ast::MemberExpr, ) { if ns_prop_ident.sym == "test" { -- cgit v1.2.3