]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - test/corpus/notation.txt
Simplify dir
[rbdr/tree-sitter-api-notation] / test / corpus / notation.txt
index 435e9dc266ca50d0d16e33f0a6a937b4a78ff7cc..18be2523dbed83113071a457d769eca32f4581f3 100644 (file)
@@ -21,7 +21,7 @@ Forum.Models.Post
   ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
   ::get(id <UUID>) => Promise<Forum.Models.Post>
   #update(text <String>) => Promise<void>
   ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError
   ::get(id <UUID>) => Promise<Forum.Models.Post>
   #update(text <String>) => Promise<void>
-  #transform(transformer <Function<T>(T) => boolean>)
+  #transform([transformer] <Function<T>(T) => boolean>)
 
 ---
 
 
 ---
 
@@ -167,6 +167,7 @@ Forum.Models.Post
       (member_type)
       (parameter_list
         (identifier
       (member_type)
       (parameter_list
         (identifier
+          (optional_value)
           (type_annotation
             (entry
               (identifier
           (type_annotation
             (entry
               (identifier