]> git.r.bdr.sh - rbdr/api-notation.vim/blob - example-syntax.api
670be570e7e3fcb3484a6075fbb7042cbe92e787
[rbdr/api-notation.vim] / example-syntax.api
1 HypotheticalModule
2 +staticProperty <String>
3 +anotherStaticProperty <Boolean>
4 ::toggleAnotherStaticProperty()
5 ::setStaticProperty(newValue <String>)
6 -instanceProperty <Number>
7 -anotherInstanceProperty <String>
8 #instanceMethodSync([optionalParameter]<Boolean>) => resultOfCall <String>
9 #instanceMethodAsync(someValue <Number>, [callback] <Function>) ->(error <String|null>, result <Number|null>)
10
11 EventHypotheticalClass
12 +>AnotherClass<+staticEventToListen(eventData <PredefinedObject>)
13 <+staticEventDispatched(someData <SomeData>)
14 ~>listenedSocketEvent(eventData <SomeObject>)
15 <~dispatchedSocketEvent(eventData <BlaBla>)
16 ->AnotherClass<-instanceEventToListen(eventData <Object>)
17 <-instanceEventDispatched(specificDataType <DefinedObject>)