diff --git a/crates/language/src/tests.rs b/crates/language/src/tests.rs index 94001c591a..1fe3c7a917 100644 --- a/crates/language/src/tests.rs +++ b/crates/language/src/tests.rs @@ -190,7 +190,7 @@ async fn test_reparse(mut cx: gpui::TestAppContext) { concat!( "(source_file (function_item name: (identifier) ", "parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ", - "body: (block (identifier))))" + "body: (block (expression_statement (identifier)))))" ) ); @@ -224,11 +224,11 @@ async fn test_reparse(mut cx: gpui::TestAppContext) { concat!( "(source_file (function_item name: (identifier) ", "parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ", - "body: (block (call_expression ", + "body: (block (expression_statement (call_expression ", "function: (generic_function ", "function: (field_expression value: (identifier) field: (field_identifier)) ", "type_arguments: (type_arguments (type_identifier))) ", - "arguments: (arguments (identifier))))))", + "arguments: (arguments (identifier)))))))", ) ); @@ -262,11 +262,11 @@ async fn test_reparse(mut cx: gpui::TestAppContext) { concat!( "(source_file (function_item name: (identifier) ", "parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ", - "body: (block (call_expression ", + "body: (block (expression_statement (call_expression ", "function: (generic_function ", "function: (field_expression value: (identifier) field: (field_identifier)) ", "type_arguments: (type_arguments (type_identifier))) ", - "arguments: (arguments (identifier))))))", + "arguments: (arguments (identifier)))))))", ) );