aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/snapshots/tests__file_structure.snap
blob: 2efa8e22cb39047946ffe6719f05bde8ce8f7b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
created: "2019-02-05T22:03:50.763530100Z"
creator: [email protected]
source: crates/ra_ide_api/src/structure.rs
expression: structure
---
[
    StructureNode {
        parent: None,
        label: "Foo",
        navigation_range: [8; 11),
        node_range: [1; 26),
        kind: STRUCT_DEF,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: Some(
            0
        ),
        label: "x",
        navigation_range: [18; 19),
        node_range: [18; 24),
        kind: NAMED_FIELD_DEF,
        detail: Some(
            "i32"
        ),
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "m",
        navigation_range: [32; 33),
        node_range: [28; 158),
        kind: MODULE,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: Some(
            2
        ),
        label: "bar1",
        navigation_range: [43; 47),
        node_range: [40; 52),
        kind: FN_DEF,
        detail: Some(
            "fn()"
        ),
        deprecated: false
    },
    StructureNode {
        parent: Some(
            2
        ),
        label: "bar2",
        navigation_range: [60; 64),
        node_range: [57; 81),
        kind: FN_DEF,
        detail: Some(
            "fn<T>(t: T) -> T"
        ),
        deprecated: false
    },
    StructureNode {
        parent: Some(
            2
        ),
        label: "bar3",
        navigation_range: [89; 93),
        node_range: [86; 156),
        kind: FN_DEF,
        detail: Some(
            "fn<A, B>(a: A, b: B) -> Vec< u32 >"
        ),
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "E",
        navigation_range: [165; 166),
        node_range: [160; 180),
        kind: ENUM_DEF,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: Some(
            6
        ),
        label: "X",
        navigation_range: [169; 170),
        node_range: [169; 170),
        kind: ENUM_VARIANT,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: Some(
            6
        ),
        label: "Y",
        navigation_range: [172; 173),
        node_range: [172; 178),
        kind: ENUM_VARIANT,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "T",
        navigation_range: [186; 187),
        node_range: [181; 193),
        kind: TYPE_ALIAS_DEF,
        detail: Some(
            "()"
        ),
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "S",
        navigation_range: [201; 202),
        node_range: [194; 213),
        kind: STATIC_DEF,
        detail: Some(
            "i32"
        ),
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "C",
        navigation_range: [220; 221),
        node_range: [214; 232),
        kind: CONST_DEF,
        detail: Some(
            "i32"
        ),
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "impl E",
        navigation_range: [239; 240),
        node_range: [234; 243),
        kind: IMPL_BLOCK,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "impl fmt::Debug for E",
        navigation_range: [265; 266),
        node_range: [245; 269),
        kind: IMPL_BLOCK,
        detail: None,
        deprecated: false
    },
    StructureNode {
        parent: None,
        label: "obsolete",
        navigation_range: [288; 296),
        node_range: [271; 301),
        kind: FN_DEF,
        detail: Some(
            "fn()"
        ),
        deprecated: true
    },
    StructureNode {
        parent: None,
        label: "very_obsolete",
        navigation_range: [341; 354),
        node_range: [303; 359),
        kind: FN_DEF,
        detail: Some(
            "fn()"
        ),
        deprecated: true
    }
]