aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/file_structure.rs53
1 files changed, 53 insertions, 0 deletions
diff --git a/crates/ide/src/file_structure.rs b/crates/ide/src/file_structure.rs
index 33d3c5323..c5ca6ff26 100644
--- a/crates/ide/src/file_structure.rs
+++ b/crates/ide/src/file_structure.rs
@@ -253,6 +253,13 @@ fn very_obsolete() {}
253 253
254// region: Some region name 254// region: Some region name
255// endregion 255// endregion
256
257// region: dontpanic
258mod m {
259fn f() {}
260// endregion
261fn g() {}
262}
256"#, 263"#,
257 expect![[r#" 264 expect![[r#"
258 [ 265 [
@@ -466,6 +473,52 @@ fn very_obsolete() {}
466 detail: None, 473 detail: None,
467 deprecated: false, 474 deprecated: false,
468 }, 475 },
476 StructureNode {
477 parent: None,
478 label: "m",
479 navigation_range: 568..569,
480 node_range: 543..606,
481 kind: Module,
482 detail: None,
483 deprecated: false,
484 },
485 StructureNode {
486 parent: Some(
487 20,
488 ),
489 label: "dontpanic",
490 navigation_range: 543..563,
491 node_range: 543..563,
492 kind: Region,
493 detail: None,
494 deprecated: false,
495 },
496 StructureNode {
497 parent: Some(
498 20,
499 ),
500 label: "f",
501 navigation_range: 575..576,
502 node_range: 572..581,
503 kind: Function,
504 detail: Some(
505 "fn()",
506 ),
507 deprecated: false,
508 },
509 StructureNode {
510 parent: Some(
511 20,
512 ),
513 label: "g",
514 navigation_range: 598..599,
515 node_range: 582..604,
516 kind: Function,
517 detail: Some(
518 "fn()",
519 ),
520 deprecated: false,
521 },
469 ] 522 ]
470 "#]], 523 "#]],
471 ); 524 );