aboutsummaryrefslogtreecommitdiff
path: root/test/highlight
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-10-04 13:39:56 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-10-04 13:39:56 +0200
commitdc87cd894bad9ad0202dcd4a89e7d0af47c53fc9 (patch)
tree19fbc45b90d717b2e150f6ab711b234d9102e423 /test/highlight
Initial Commit
Diffstat (limited to 'test/highlight')
-rw-r--r--test/highlight/notation.api48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/highlight/notation.api b/test/highlight/notation.api
new file mode 100644
index 0000000..b798549
--- /dev/null
+++ b/test/highlight/notation.api
@@ -0,0 +1,48 @@
+Forum.Models.Post
+// <- keyword
+// ^ keyword
+// ^ keyword
+ +glyphs <Array<String>>
+ //<- operator
+ //^ property
+ // ^ type
+ // ^ keyword
+ // ^ type
+ // ^ keyword
+ // ^ type
+
+ -id <UUID>
+ -created_at <Date>
+ -parent_id <UUID>
+ -text <String>
+ -author <Author>
+ ~>textUpdated(text <String>)
+ //<- operator
+ //^ property
+ // ^ function
+ // ^ parameter
+ // ^ type
+ // ^ keyword
+ // ^ type
+ // ^ function
+ ->authorUpdated(author <Author>)
+ <~textWillUpdate(text <String>)
+ <-postWillRender(post <Forum.Models.Post>)
+ +>authorUpdated(author <Author>)
+ <+textWillUpdate(text <String>)
+ ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
+ //<- operator
+ //^ property
+ // ^ function
+ // ^ parameter
+ // ^ type
+ // ^ keyword
+ // ^ type
+ // ^ function
+ // ^ operator
+ // ^ keyword
+ // ^ operator
+ // ^ keyword
+ ::get(id <UUID>) => Promise<Forum.Models.Post>
+ #update(text <String>) => Promise<void>
+ #transform(transformer <Function<T>(T) => boolean>)