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 @@ -10746,24 +10746,6 @@ fn wibble() -> Nil
1074610746 ) ;
1074710747}
1074810748
10749- #[ test]
10750- fn annotate_all_top_level_definitions_dont_affect_local_vars( ) {
10751- assert_code_action ! (
10752- ANNOTATE_TOP_LEVEL_DEFINITIONS ,
10753- r#"
10754- pub const answer = 42
10755-
10756- pub fn add_two(thing) {
10757- thing + 2
10758-
10759- pub fn add_one(thing) {
10760- let result = thing + 1
10761- result
10762- }
10763- "# ,
10764- find_position_of( "fn" ) . select_until( find_position_of( "(" ) ) ;
10765- }
10766-
1076710749#[ test]
1076810750fn annotate_all_top_level_definitions_constant ( ) {
1076910751 assert_code_action ! (
@@ -10786,20 +10768,21 @@ pub fn add_one(thing) {
1078610768#[ test]
1078710769fn annotate_all_top_level_definitions_function ( ) {
1078810770 assert_code_action ! (
10789- ANNOTATE_TOP_LEVEL_TYPE_DEFINITIONS ,
10771+ ANNOTATE_TOP_LEVEL_DEFINITIONS ,
1079010772 r#"
1079110773pub fn add_two(thing) {
10792- thing + 2
10774+ thing + 2
1079310775}
1079410776
1079510777pub fn add_one(thing) {
10796- thing + 1
10778+ thing + 1
1079710779}
10798- "#,
10780+ "# ,
1079910781 find_position_of( "fn" ) . select_until( find_position_of( "(" ) )
1080010782 ) ;
1080110783}
1080210784
10785+ #[ test]
1080310786fn annotate_all_top_level_definitions_already_annotated ( ) {
1080410787 assert_no_code_actions ! (
1080510788 ANNOTATE_TOP_LEVEL_DEFINITIONS ,
You can’t perform that action at this time.
0 commit comments