]> git.r.bdr.sh - rbdr/api-notation.vim/blob - example-syntax.api
Adds the syntax def
[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>)