]> git.r.bdr.sh - rbdr/api-notation.tmLanguage/blame - example-syntax.api
Adds example notation for testing
[rbdr/api-notation.tmLanguage] / example-syntax.api
CommitLineData
76da60c6
BB
1HypotheticalModule <IModuleInterface>
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// Comment
12EventHypotheticalClass
13 +>AnotherClass<+staticEventToListen(eventData <PredefinedObject>) // More Comments
14 <+staticEventDispatched(someData <SomeData>)
15 ~>listenedSocketEvent(eventData <SomeObject>)
16 <~dispatchedSocketEvent(eventData <BlaBla>)
17 ->AnotherClass<-instanceEventToListen(eventData <Object>)
18 <-instanceEventDispatched(specificDataType <DefinedObject>)