doc.objc.h.golden 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // Objective-C API for talking to doc Go package.
  2. // gobind -lang=objc doc
  3. //
  4. // File is generated by gobind. Do not edit.
  5. #ifndef __Doc_H__
  6. #define __Doc_H__
  7. @import Foundation;
  8. #include "ref.h"
  9. #include "Universe.objc.h"
  10. @class DocNoDoc;
  11. @class DocS;
  12. @class DocS2;
  13. @protocol DocI;
  14. @class DocI;
  15. @protocol DocI <NSObject>
  16. /**
  17. * IM is a method.
  18. */
  19. - (void)im;
  20. @end
  21. /**
  22. * A generic comment with <HTML>.
  23. */
  24. @interface DocNoDoc : NSObject <goSeqRefInterface> {
  25. }
  26. @property(strong, readonly) _Nonnull id _ref;
  27. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  28. - (nonnull instancetype)init;
  29. @end
  30. /**
  31. * S is a struct.
  32. */
  33. @interface DocS : NSObject <goSeqRefInterface> {
  34. }
  35. @property(strong, readonly) _Nonnull id _ref;
  36. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  37. /**
  38. * NewS is a constructor.
  39. */
  40. - (nullable instancetype)init;
  41. /**
  42. * SF is a field.
  43. */
  44. @property (nonatomic) NSString* _Nonnull sf;
  45. /**
  46. * Anonymous field.
  47. */
  48. @property (nonatomic) DocS2* _Nullable s2;
  49. /**
  50. * Multiple fields.
  51. */
  52. @property (nonatomic) NSString* _Nonnull f1;
  53. /**
  54. * Multiple fields.
  55. */
  56. @property (nonatomic) NSString* _Nonnull f2;
  57. /**
  58. * After is another method.
  59. */
  60. - (void)after;
  61. - (void)before;
  62. @end
  63. /**
  64. * S2 is a struct.
  65. */
  66. @interface DocS2 : NSObject <goSeqRefInterface> {
  67. }
  68. @property(strong, readonly) _Nonnull id _ref;
  69. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  70. - (nonnull instancetype)init;
  71. @end
  72. /**
  73. * C is a constant.
  74. */
  75. FOUNDATION_EXPORT const BOOL DocC;
  76. @interface Doc : NSObject
  77. /**
  78. * A group of vars.
  79. */
  80. + (double) noDocVar;
  81. + (void) setNoDocVar:(double)v;
  82. /**
  83. * A specific var.
  84. */
  85. + (NSString* _Nonnull) specific;
  86. + (void) setSpecific:(NSString* _Nonnull)v;
  87. /**
  88. * V is a var.
  89. */
  90. + (NSString* _Nonnull) v;
  91. + (void) setV:(NSString* _Nonnull)v;
  92. @end
  93. /**
  94. * F is a function.
  95. */
  96. FOUNDATION_EXPORT void DocF(void);
  97. /**
  98. * NewS is a constructor.
  99. */
  100. FOUNDATION_EXPORT DocS* _Nullable DocNewS(void);
  101. @class DocI;
  102. /**
  103. * I is an interface.
  104. */
  105. @interface DocI : NSObject <goSeqRefInterface, DocI> {
  106. }
  107. @property(strong, readonly) _Nonnull id _ref;
  108. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  109. /**
  110. * IM is a method.
  111. */
  112. - (void)im;
  113. @end
  114. #endif