]> git.r.bdr.sh - rbdr/api-notation.vim/blame_incremental - example-syntax.api
Uses proper character classes to support namespacing
[rbdr/api-notation.vim] / example-syntax.api
... / ...
CommitLineData
1HypotheticalModule
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
11EventHypotheticalClass
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>)