forked from argotorg/fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_struct.snap
More file actions
87 lines (87 loc) · 2.48 KB
/
Copy pathsimple_struct.snap
File metadata and controls
87 lines (87 loc) · 2.48 KB
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
---
source: crates/fe/src/extract.rs
expression: output
input_file: tests/doc_fixtures/simple_struct.fe
---
{
"items": [
{
"path": "simple_struct",
"name": "simple_struct",
"kind": "module",
"visibility": "public",
"docs": null,
"signature": "/// A point in 2D space.\n///\n/// Used to represent coordinates in the plane.\npub struct Point {\n /// The x coordinate\n pub x: u256\n /// The y coordinate\n pub y: u256\n}",
"generics": [],
"where_bounds": [],
"children": [],
"source": {
"display_file": "simple_struct.fe",
"line": 1,
"column": 0
},
"source_text": "/// A point in 2D space.\n///\n/// Used to represent coordinates in the plane.\npub struct Point {\n /// The x coordinate\n pub x: u256\n /// The y coordinate\n pub y: u256\n}\n",
"trait_impls": []
},
{
"path": "simple_struct::Point",
"name": "Point",
"kind": "struct",
"visibility": "public",
"docs": {
"summary": "A point in 2D space.",
"body": "A point in 2D space.\n\n Used to represent coordinates in the plane.",
"sections": []
},
"signature": "pub struct Point",
"generics": [],
"where_bounds": [],
"children": [
{
"kind": "field",
"name": "x",
"docs": {
"summary": "The x coordinate",
"body": "The x coordinate",
"sections": []
},
"signature": "x: u256",
"visibility": "public"
},
{
"kind": "field",
"name": "y",
"docs": {
"summary": "The y coordinate",
"body": "The y coordinate",
"sections": []
},
"signature": "y: u256",
"visibility": "public"
}
],
"source": {
"display_file": "simple_struct.fe",
"line": 1,
"column": 0
},
"source_text": "/// A point in 2D space.\n///\n/// Used to represent coordinates in the plane.\npub struct Point {\n /// The x coordinate\n pub x: u256\n /// The y coordinate\n pub y: u256\n}",
"trait_impls": []
}
],
"modules": [
{
"name": "simple_struct",
"path": "simple_struct",
"children": [],
"items": [
{
"name": "Point",
"path": "simple_struct::Point",
"kind": "struct",
"summary": "A point in 2D space."
}
]
}
]
}