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 @@ -10715,24 +10715,6 @@ pub fn main() -> Nil {
1071510715 ) ;
1071610716}
1071710717
10718- #[ test]
10719- fn annotate_all_top_level_definitions_dont_affect_local_vars( ) {
10720- assert_code_action ! (
10721- ANNOTATE_TOP_LEVEL_DEFINITIONS ,
10722- r#"
10723- pub const answer = 42
10724-
10725- pub fn add_two(thing) {
10726- thing + 2
10727-
10728- pub fn add_one(thing) {
10729- let result = thing + 1
10730- result
10731- }
10732- "# ,
10733- find_position_of( "fn" ) . select_until( find_position_of( "(" ) ) ;
10734- }
10735-
1073610718#[ test]
1073710719fn annotate_all_top_level_definitions_constant ( ) {
1073810720 assert_code_action ! (
@@ -10755,20 +10737,21 @@ pub fn add_one(thing) {
1075510737#[ test]
1075610738fn annotate_all_top_level_definitions_function ( ) {
1075710739 assert_code_action ! (
10758- ANNOTATE_TOP_LEVEL_TYPE_DEFINITIONS ,
10740+ ANNOTATE_TOP_LEVEL_DEFINITIONS ,
1075910741 r#"
1076010742pub fn add_two(thing) {
10761- thing + 2
10743+ thing + 2
1076210744}
1076310745
1076410746pub fn add_one(thing) {
10765- thing + 1
10747+ thing + 1
1076610748}
10767- "#,
10749+ "# ,
1076810750 find_position_of( "fn" ) . select_until( find_position_of( "(" ) )
1076910751 ) ;
1077010752}
1077110753
10754+ #[ test]
1077210755fn annotate_all_top_level_definitions_already_annotated ( ) {
1077310756 assert_no_code_actions ! (
1077410757 ANNOTATE_TOP_LEVEL_DEFINITIONS ,
You can’t perform that action at this time.
0 commit comments