@@ -7,20 +7,26 @@ import 'package:library/src/generic_types__conversion.dart';
7
7
import 'package:library/src/smoke/type_collection.dart' ;
8
8
import 'package:meta/meta.dart' ;
9
9
abstract class TypeDefs {
10
- static double methodWithPrimitiveTypeDef (double input) => $prototype.methodWithPrimitiveTypeDef (input);
11
- static List < TypeDefs_TestStruct > methodWithComplexTypeDef (List < TypeDefs_TestStruct > input) => $prototype.methodWithComplexTypeDef (input);
12
- static double returnNestedIntTypeDef (double input) => $prototype.returnNestedIntTypeDef (input);
13
- static TypeDefs_TestStruct returnTestStructTypeDef (TypeDefs_TestStruct input) => $prototype.returnTestStructTypeDef (input);
14
- static TypeDefs_TestStruct returnNestedStructTypeDef (TypeDefs_TestStruct input) => $prototype.returnNestedStructTypeDef (input);
15
- static TypeCollection_Point returnTypeDefPointFromTypeCollection (TypeCollection_Point input) => $prototype.returnTypeDefPointFromTypeCollection (input);
16
- List <double > get primitiveTypeProperty;
17
- set primitiveTypeProperty (List <double > value);
10
+ static TypeDefs_PrimitiveTypeDef methodWithPrimitiveTypeDef (TypeDefs_PrimitiveTypeDef input) => $prototype.methodWithPrimitiveTypeDef (input);
11
+ static TypeDefs_ComplexTypeDef methodWithComplexTypeDef (TypeDefs_ComplexTypeDef input) => $prototype.methodWithComplexTypeDef (input);
12
+ static TypeDefs_NestedIntTypeDef returnNestedIntTypeDef (TypeDefs_NestedIntTypeDef input) => $prototype.returnNestedIntTypeDef (input);
13
+ static TypeDefs_TestStructTypeDef returnTestStructTypeDef (TypeDefs_TestStructTypeDef input) => $prototype.returnTestStructTypeDef (input);
14
+ static TypeDefs_NestedStructTypeDef returnNestedStructTypeDef (TypeDefs_NestedStructTypeDef input) => $prototype.returnNestedStructTypeDef (input);
15
+ static PointTypeDef returnTypeDefPointFromTypeCollection (PointTypeDef input) => $prototype.returnTypeDefPointFromTypeCollection (input);
16
+ List <TypeDefs_PrimitiveTypeDef > get primitiveTypeProperty;
17
+ set primitiveTypeProperty (List <TypeDefs_PrimitiveTypeDef > value);
18
18
/// @nodoc
19
19
@visibleForTesting
20
20
static dynamic $prototype = TypeDefs$Impl (Pointer <Void >.fromAddress (0 ));
21
21
}
22
+ typedef TypeDefs_NestedIntTypeDef = TypeDefs_PrimitiveTypeDef ;
23
+ typedef TypeDefs_PrimitiveTypeDef = double ;
24
+ typedef TypeDefs_StructArray = List <TypeDefs_TestStruct >;
25
+ typedef TypeDefs_ComplexTypeDef = TypeDefs_StructArray ;
26
+ typedef TypeDefs_TestStructTypeDef = TypeDefs_TestStruct ;
27
+ typedef TypeDefs_NestedStructTypeDef = TypeDefs_TestStructTypeDef ;
22
28
class TypeDefs_StructHavingAliasFieldDefinedBelow {
23
- double field;
29
+ TypeDefs_PrimitiveTypeDef field;
24
30
TypeDefs_StructHavingAliasFieldDefinedBelow (this .field);
25
31
}
26
32
// TypeDefs_StructHavingAliasFieldDefinedBelow "private" section, not exported.
@@ -162,7 +168,7 @@ final _smokeTypedefsReleaseHandle = __lib.catchArgumentError(() => __lib.nativeL
162
168
@visibleForTesting
163
169
class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
164
170
TypeDefs$Impl (Pointer <Void > handle) : super (handle);
165
- double methodWithPrimitiveTypeDef (double input) {
171
+ TypeDefs_PrimitiveTypeDef methodWithPrimitiveTypeDef (TypeDefs_PrimitiveTypeDef input) {
166
172
final _methodWithPrimitiveTypeDefFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Double Function (Int32 , Double ), double Function (int , double )> ('library_smoke_TypeDefs_methodWithPrimitiveTypeDef__Double' ));
167
173
final _inputHandle = (input);
168
174
final __resultHandle = _methodWithPrimitiveTypeDefFfi (__lib.LibraryContext .isolateId, _inputHandle);
@@ -171,7 +177,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
171
177
} finally {
172
178
}
173
179
}
174
- List < TypeDefs_TestStruct > methodWithComplexTypeDef (List < TypeDefs_TestStruct > input) {
180
+ TypeDefs_ComplexTypeDef methodWithComplexTypeDef (TypeDefs_ComplexTypeDef input) {
175
181
final _methodWithComplexTypeDefFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Pointer <Void > Function (Int32 , Pointer <Void >), Pointer <Void > Function (int , Pointer <Void >)> ('library_smoke_TypeDefs_methodWithComplexTypeDef__ListOf_smoke_TypeDefs_TestStruct' ));
176
182
final _inputHandle = foobarListofSmokeTypedefsTeststructToFfi (input);
177
183
final __resultHandle = _methodWithComplexTypeDefFfi (__lib.LibraryContext .isolateId, _inputHandle);
@@ -182,7 +188,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
182
188
foobarListofSmokeTypedefsTeststructReleaseFfiHandle (__resultHandle);
183
189
}
184
190
}
185
- double returnNestedIntTypeDef (double input) {
191
+ TypeDefs_NestedIntTypeDef returnNestedIntTypeDef (TypeDefs_NestedIntTypeDef input) {
186
192
final _returnNestedIntTypeDefFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Double Function (Int32 , Double ), double Function (int , double )> ('library_smoke_TypeDefs_returnNestedIntTypeDef__Double' ));
187
193
final _inputHandle = (input);
188
194
final __resultHandle = _returnNestedIntTypeDefFfi (__lib.LibraryContext .isolateId, _inputHandle);
@@ -191,7 +197,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
191
197
} finally {
192
198
}
193
199
}
194
- TypeDefs_TestStruct returnTestStructTypeDef (TypeDefs_TestStruct input) {
200
+ TypeDefs_TestStructTypeDef returnTestStructTypeDef (TypeDefs_TestStructTypeDef input) {
195
201
final _returnTestStructTypeDefFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Pointer <Void > Function (Int32 , Pointer <Void >), Pointer <Void > Function (int , Pointer <Void >)> ('library_smoke_TypeDefs_returnTestStructTypeDef__TestStruct' ));
196
202
final _inputHandle = smokeTypedefsTeststructToFfi (input);
197
203
final __resultHandle = _returnTestStructTypeDefFfi (__lib.LibraryContext .isolateId, _inputHandle);
@@ -202,7 +208,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
202
208
smokeTypedefsTeststructReleaseFfiHandle (__resultHandle);
203
209
}
204
210
}
205
- TypeDefs_TestStruct returnNestedStructTypeDef (TypeDefs_TestStruct input) {
211
+ TypeDefs_NestedStructTypeDef returnNestedStructTypeDef (TypeDefs_NestedStructTypeDef input) {
206
212
final _returnNestedStructTypeDefFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Pointer <Void > Function (Int32 , Pointer <Void >), Pointer <Void > Function (int , Pointer <Void >)> ('library_smoke_TypeDefs_returnNestedStructTypeDef__TestStruct' ));
207
213
final _inputHandle = smokeTypedefsTeststructToFfi (input);
208
214
final __resultHandle = _returnNestedStructTypeDefFfi (__lib.LibraryContext .isolateId, _inputHandle);
@@ -213,7 +219,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
213
219
smokeTypedefsTeststructReleaseFfiHandle (__resultHandle);
214
220
}
215
221
}
216
- TypeCollection_Point returnTypeDefPointFromTypeCollection (TypeCollection_Point input) {
222
+ PointTypeDef returnTypeDefPointFromTypeCollection (PointTypeDef input) {
217
223
final _returnTypeDefPointFromTypeCollectionFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Pointer <Void > Function (Int32 , Pointer <Void >), Pointer <Void > Function (int , Pointer <Void >)> ('library_smoke_TypeDefs_returnTypeDefPointFromTypeCollection__Point' ));
218
224
final _inputHandle = smokeTypecollectionPointToFfi (input);
219
225
final __resultHandle = _returnTypeDefPointFromTypeCollectionFfi (__lib.LibraryContext .isolateId, _inputHandle);
@@ -225,7 +231,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
225
231
}
226
232
}
227
233
@override
228
- List <double > get primitiveTypeProperty {
234
+ List <TypeDefs_PrimitiveTypeDef > get primitiveTypeProperty {
229
235
final _getFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Pointer <Void > Function (Pointer <Void >, Int32 ), Pointer <Void > Function (Pointer <Void >, int )> ('library_smoke_TypeDefs_primitiveTypeProperty_get' ));
230
236
final _handle = this .handle;
231
237
final __resultHandle = _getFfi (_handle, __lib.LibraryContext .isolateId);
@@ -236,7 +242,7 @@ class TypeDefs$Impl extends __lib.NativeBase implements TypeDefs {
236
242
}
237
243
}
238
244
@override
239
- set primitiveTypeProperty (List <double > value) {
245
+ set primitiveTypeProperty (List <TypeDefs_PrimitiveTypeDef > value) {
240
246
final _setFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Void Function (Pointer <Void >, Int32 , Pointer <Void >), void Function (Pointer <Void >, int , Pointer <Void >)> ('library_smoke_TypeDefs_primitiveTypeProperty_set__ListOf_Double' ));
241
247
final _valueHandle = foobarListofDoubleToFfi (value);
242
248
final _handle = this .handle;
0 commit comments