From: Ben Beltran Date: Sat, 5 Sep 2015 20:35:42 +0000 (-0500) Subject: Adds example notation for testing X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation.tmLanguage/commitdiff_plain/76da60c63cc6623c9da9929d01cc7cf3420bb031?hp=--cc Adds example notation for testing --- 76da60c63cc6623c9da9929d01cc7cf3420bb031 diff --git a/example-syntax.api b/example-syntax.api new file mode 100644 index 0000000..ecc4c3c --- /dev/null +++ b/example-syntax.api @@ -0,0 +1,18 @@ +HypotheticalModule + +staticProperty + +anotherStaticProperty + ::toggleAnotherStaticProperty() + ::setStaticProperty(newValue ) + -instanceProperty + -anotherInstanceProperty + #instanceMethodSync([optionalParameter]) => resultOfCall + #instanceMethodAsync(someValue , [callback] ) ->(error , result ) + +// Comment +EventHypotheticalClass + +>AnotherClass<+staticEventToListen(eventData ) // More Comments + <+staticEventDispatched(someData ) + ~>listenedSocketEvent(eventData ) + <~dispatchedSocketEvent(eventData ) + ->AnotherClass<-instanceEventToListen(eventData ) + <-instanceEventDispatched(specificDataType )