Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. shared annotation RouteAnnotation route(String path) => RouteAnnotation(path);
  2.  
  3. shared final annotation class RouteAnnotation(path)
  4. satisfies OptionalAnnotation<RouteAnnotation, FunctionDeclaration|ClassDeclaration> {
  5.  
  6. shared String path;
  7. }
  8.  
  9. shared annotation ControllerAnnotation controller() => ControllerAnnotation();
  10.  
  11. shared final annotation class ControllerAnnotation()
  12. satisfies OptionalAnnotation<ControllerAnnotation, ClassDeclaration> {
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement