X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation.vim/blobdiff_plain/41d7b8b05c6b52f414182fb3beae0c36991978a7..ff11ecc1ac84459c448430ce843741d20b70057f:/example-syntax.api diff --git a/example-syntax.api b/example-syntax.api new file mode 100644 index 0000000..670be57 --- /dev/null +++ b/example-syntax.api @@ -0,0 +1,17 @@ +HypotheticalModule + +staticProperty + +anotherStaticProperty + ::toggleAnotherStaticProperty() + ::setStaticProperty(newValue ) + -instanceProperty + -anotherInstanceProperty + #instanceMethodSync([optionalParameter]) => resultOfCall + #instanceMethodAsync(someValue , [callback] ) ->(error , result ) + +EventHypotheticalClass + +>AnotherClass<+staticEventToListen(eventData ) + <+staticEventDispatched(someData ) + ~>listenedSocketEvent(eventData ) + <~dispatchedSocketEvent(eventData ) + ->AnotherClass<-instanceEventToListen(eventData ) + <-instanceEventDispatched(specificDataType )