]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blob - test/corpus/notation.txt
Add optionals
[rbdr/tree-sitter-api-notation] / test / corpus / notation.txt
1 ==================
2 Block
3 ==================
4
5 // An example
6 Forum.Models.Post
7 +glyphs <Array<String>>
8 -id <UUID>
9 -created_at <Date>
10 -parent_id <UUID>
11 -text <String>
12 -author <Author>
13 // Comments are also
14 // Allowed in the middle
15 ~>textUpdated(text <String>)
16 ->authorUpdated(author <Author>)
17 <~textWillUpdate(text <String>)
18 <-postWillRender(post <Forum.Models.Post>)
19 +>authorUpdated(author <Author>)
20 <+textWillUpdate(text <String>)
21 ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
22 ::get(id <UUID>) => Promise<Forum.Models.Post>
23 #update(text <String>) => Promise<void>
24 #transform([transformer] <Function<T>(T) => boolean>)
25
26 ---
27
28 (source_file
29 (comment)
30 (definition
31 (entry
32 (identifier)
33 (identifier)
34 (identifier)
35 )
36 (member
37 (member_type)
38 (type_annotation
39 (entry
40 (identifier
41 (type_annotation
42 (entry
43 (identifier)))))))
44 (member
45 (member_type)
46 (type_annotation
47 (entry
48 (identifier))))
49 (member
50 (member_type)
51 (type_annotation
52 (entry
53 (identifier))))
54 (member
55 (member_type)
56 (type_annotation
57 (entry
58 (identifier))))
59 (member
60 (member_type)
61 (type_annotation
62 (entry
63 (identifier))))
64 (member
65 (member_type)
66 (type_annotation
67 (entry
68 (identifier))))
69 (comment)
70 (comment)
71 (member
72 (member_type)
73 (parameter_list
74 (identifier
75 (type_annotation
76 (entry
77 (identifier))))))
78 (member
79 (member_type)
80 (parameter_list
81 (identifier
82 (type_annotation
83 (entry
84 (identifier))))))
85 (member
86 (member_type)
87 (parameter_list
88 (identifier
89 (type_annotation
90 (entry
91 (identifier))))))
92 (member
93 (member_type)
94 (parameter_list
95 (identifier
96 (type_annotation
97 (entry
98 (identifier)
99 (identifier)
100 (identifier))))))
101 (member
102 (member_type)
103 (parameter_list
104 (identifier
105 (type_annotation
106 (entry
107 (identifier))))))
108 (member
109 (member_type)
110 (parameter_list
111 (identifier
112 (type_annotation
113 (entry
114 (identifier))))))
115 (member
116 (member_type)
117 (parameter_list
118 (identifier
119 (type_annotation
120 (entry
121 (identifier)))))
122 (return_statement
123 (entry
124 (identifier
125 (type_annotation
126 (entry
127 (identifier
128 (type_annotation
129 (entry
130 (identifier)
131 (identifier)
132 (identifier)))))))))
133 (throw_statement
134 (entry
135 (identifier))
136 (entry
137 (identifier))))
138 (member
139 (member_type)
140 (parameter_list
141 (identifier
142 (type_annotation
143 (entry
144 (identifier)))))
145 (return_statement
146 (entry
147 (identifier
148 (type_annotation
149 (entry
150 (identifier)
151 (identifier)
152 (identifier)))))))
153 (member
154 (member_type)
155 (parameter_list
156 (identifier
157 (type_annotation
158 (entry
159 (identifier)))))
160 (return_statement
161 (entry
162 (identifier
163 (type_annotation
164 (entry
165 (identifier)))))))
166 (member
167 (member_type)
168 (parameter_list
169 (identifier
170 (optional_value)
171 (type_annotation
172 (entry
173 (identifier
174 (type_annotation
175 (entry
176 (identifier)))
177 (parameter_list
178 (identifier))
179 (return_statement
180 (entry
181 (identifier)))))))))))