]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blame - test/highlight/notation.api
Add optionals
[rbdr/tree-sitter-api-notation] / test / highlight / notation.api
CommitLineData
dc87cd89
RBR
1Forum.Models.Post
2// <- keyword
3// ^ keyword
4// ^ keyword
5 +glyphs <Array<String>>
6 //<- operator
7 //^ property
8 // ^ type
9 // ^ keyword
10 // ^ type
11 // ^ keyword
12 // ^ type
13
14 -id <UUID>
15 -created_at <Date>
16 -parent_id <UUID>
17 -text <String>
18 -author <Author>
19 ~>textUpdated(text <String>)
20 //<- operator
21 //^ property
22 // ^ function
4a1d5628 23 // ^ variable.parameter
dc87cd89
RBR
24 // ^ type
25 // ^ keyword
26 // ^ type
27 // ^ function
28 ->authorUpdated(author <Author>)
29 <~textWillUpdate(text <String>)
30 <-postWillRender(post <Forum.Models.Post>)
31 +>authorUpdated(author <Author>)
32 <+textWillUpdate(text <String>)
33 ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
34 //<- operator
35 //^ property
36 // ^ function
4a1d5628 37 // ^ variable.parameter
dc87cd89
RBR
38 // ^ type
39 // ^ keyword
40 // ^ type
41 // ^ function
42 // ^ operator
43 // ^ keyword
44 // ^ operator
45 // ^ keyword
46 ::get(id <UUID>) => Promise<Forum.Models.Post>
47 #update(text <String>) => Promise<void>
4a1d5628
RBR
48 #transform([transformer] <Function<T>(T) => boolean>)
49 //<- operator
50 //^ property
51 // ^ function
52 // ^ variable.parameter.optional
53 // ^ type
54 // ^ keyword