diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-31 18:31:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-31 18:31:03 -0400 |
| commit | d3419f7d147b8c362a3795c8284d55ff6f4f3492 (patch) | |
| tree | 1518a685d93c908a8820bd72d2958c6e06182c2c /cli/lsp | |
| parent | 6267905f096f03dec1a5ed92609192edff901148 (diff) | |
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
Diffstat (limited to 'cli/lsp')
| -rw-r--r-- | cli/lsp/code_lens.rs | 2 | ||||
| -rw-r--r-- | cli/lsp/testing/collectors.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cli/lsp/code_lens.rs b/cli/lsp/code_lens.rs index 2996103be..e117888fb 100644 --- a/cli/lsp/code_lens.rs +++ b/cli/lsp/code_lens.rs @@ -107,7 +107,7 @@ impl DenoTestCollector { for prop in &obj_lit.props { if let ast::PropOrSpread::Prop(prop) = prop { if let ast::Prop::KeyValue(key_value_prop) = prop.as_ref() { - if let ast::PropName::Ident(ast::Ident { sym, .. }) = + if let ast::PropName::Ident(ast::IdentName { sym, .. }) = &key_value_prop.key { if sym == "name" { 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" { |
