PageRenderTime 32ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/output/oc/50700-cmt_insert.m

http://github.com/bengardner/uncrustify
Objective C | 95 lines | 33 code | 20 blank | 42 comment | 0 complexity | c6049a3a0f42129167e4e6828b1f3843 MD5 | raw file
Possible License(s): GPL-2.0
  1. /**
  2. * @file cmt_insert.m
  3. * Description
  4. *
  5. * $Id$
  6. */
  7. @protocol spacingProtocol
  8. @property NSInteger spacing;
  9. @end
  10. @interface cmt_insert
  11. + (cmt_insert*) shareInstance;
  12. @property (readonly) BOOL isAvailable;
  13. @property (copy) NSArray<NSString*>* contents;
  14. - (void) updateContents:(NSArray<NSString*>*) inContents andRefresh:(BOOL) inRefresh;
  15. @end
  16. @implementation cmt_insert
  17. /**
  18. * +[cmt_insert sharedInstance]
  19. *
  20. * @return TODO
  21. */
  22. + (cmt_insert*) sharedInstance {
  23. return nil;
  24. }
  25. /**
  26. * -[cmt_insert isAvailable]
  27. *
  28. * @return TODO
  29. */
  30. - (BOOL) isAvailable {
  31. return YES;
  32. }
  33. /**
  34. * -[cmt_insert contents]
  35. *
  36. * @return TODO
  37. */
  38. - (NSArray<NSString*>*) contents {
  39. return @[];
  40. }
  41. /**
  42. * -[cmt_insert setContents:]
  43. *
  44. * @param inContents TODO
  45. */
  46. - (void) setContents:(NSArray<NSString*>*) inContents {
  47. }
  48. /**
  49. * -[cmt_insert updateContents:andRefresh:]
  50. *
  51. * @param inContents TODO
  52. * @param inRefresh TODO
  53. */
  54. - (void) updateContents:(NSArray<NSString*>*) inContents andRefresh:(BOOL) inRefresh {
  55. }
  56. @end
  57. @interface cmt_insert_with_protocol (spacingProtocol)
  58. @end
  59. @implementation cmt_insert_with_protocol (spacingProtocol)
  60. /**
  61. * -[cmt_insert_with_protocol(spacingProtocol) spacing]
  62. *
  63. * @return TODO
  64. */
  65. - (NSInteger) spacing {
  66. return 0;
  67. }
  68. /**
  69. * -[cmt_insert_with_protocol(spacingProtocol) setSpacing:]
  70. *
  71. * @param inSpacing TODO
  72. */
  73. - (void) setSpacing:(NSInteger) inSpacing {
  74. }
  75. @end