File tree Expand file tree Collapse file tree 1 file changed +5
-22
lines changed
compiler-core/src/language_server/tests Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -10639,24 +10639,6 @@ fn wibble(f: fn() -> Float) -> Float { f() }
1063910639 ) ;
1064010640}
1064110641
10642- #[ test]
10643- fn annotate_all_top_level_definitions_dont_affect_local_vars( ) {
10644- assert_code_action ! (
10645- ANNOTATE_TOP_LEVEL_DEFINITIONS ,
10646- r#"
10647- pub const answer = 42
10648-
10649- pub fn add_two(thing) {
10650- thing + 2
10651-
10652- pub fn add_one(thing) {
10653- let result = thing + 1
10654- result
10655- }
10656- "# ,
10657- find_position_of( "fn" ) . select_until( find_position_of( "(" ) ) ;
10658- }
10659-
1066010642#[ test]
1066110643fn annotate_all_top_level_definitions_constant ( ) {
1066210644 assert_code_action ! (
@@ -10679,20 +10661,21 @@ pub fn add_one(thing) {
1067910661#[ test]
1068010662fn annotate_all_top_level_definitions_function ( ) {
1068110663 assert_code_action ! (
10682- ANNOTATE_TOP_LEVEL_TYPE_DEFINITIONS ,
10664+ ANNOTATE_TOP_LEVEL_DEFINITIONS ,
1068310665 r#"
1068410666pub fn add_two(thing) {
10685- thing + 2
10667+ thing + 2
1068610668}
1068710669
1068810670pub fn add_one(thing) {
10689- thing + 1
10671+ thing + 1
1069010672}
10691- "#,
10673+ "# ,
1069210674 find_position_of( "fn" ) . select_until( find_position_of( "(" ) )
1069310675 ) ;
1069410676}
1069510677
10678+ #[ test]
1069610679fn annotate_all_top_level_definitions_already_annotated ( ) {
1069710680 assert_no_code_actions ! (
1069810681 ANNOTATE_TOP_LEVEL_DEFINITIONS ,
You can’t perform that action at this time.
0 commit comments