@@ -7,29 +7,29 @@ import 'package:meta/meta.dart';
7
7
/// This is some very useful interface.
8
8
abstract class Comments {
9
9
/// This is some very useful constant.
10
- static final bool veryUseful = true ;
10
+ static final Comments_Usefulness veryUseful = true ;
11
11
/// This is some very useful method that measures the usefulness of its input.
12
12
///
13
13
/// [inputParameter] Very useful input parameter
14
14
///
15
- /// Returns [bool ] . Usefulness of the input
15
+ /// Returns [Comments_Usefulness ] . Usefulness of the input
16
16
///
17
17
/// Throws [Comments_SomethingWrongException] . Sometimes it happens.
18
18
///
19
- bool someMethodWithAllComments (String inputParameter);
19
+ Comments_Usefulness someMethodWithAllComments (String inputParameter);
20
20
/// This is some very useful method that measures the usefulness of its input.
21
21
///
22
22
/// [input] Very useful input parameter
23
23
///
24
- bool someMethodWithInputComments (String input);
24
+ Comments_Usefulness someMethodWithInputComments (String input);
25
25
/// This is some very useful method that measures the usefulness of its input.
26
26
///
27
- /// Returns [bool ] . Usefulness of the input
27
+ /// Returns [Comments_Usefulness ] . Usefulness of the input
28
28
///
29
- bool someMethodWithOutputComments (String input);
29
+ Comments_Usefulness someMethodWithOutputComments (String input);
30
30
/// This is some very useful method that measures the usefulness of its input.
31
31
///
32
- bool someMethodWithNoComments (String input);
32
+ Comments_Usefulness someMethodWithNoComments (String input);
33
33
/// This is some very useful method that does not measure the usefulness of its input.
34
34
///
35
35
/// [input] Very useful input parameter
@@ -40,12 +40,12 @@ abstract class Comments {
40
40
void someMethodWithoutReturnTypeWithNoComments (String input);
41
41
/// This is some very useful method that measures the usefulness of something.
42
42
///
43
- /// Returns [bool ] . Usefulness of the input
43
+ /// Returns [Comments_Usefulness ] . Usefulness of the input
44
44
///
45
- bool someMethodWithoutInputParametersWithAllComments ();
45
+ Comments_Usefulness someMethodWithoutInputParametersWithAllComments ();
46
46
/// This is some very useful method that measures the usefulness of something.
47
47
///
48
- bool someMethodWithoutInputParametersWithNoComments ();
48
+ Comments_Usefulness someMethodWithoutInputParametersWithNoComments ();
49
49
void someMethodWithNothing ();
50
50
/// This is some very useful method that does nothing.
51
51
///
@@ -57,10 +57,12 @@ abstract class Comments {
57
57
///
58
58
String returnCommentOnly (String undocumented);
59
59
/// Gets some very useful property.
60
- bool get isSomeProperty;
60
+ Comments_Usefulness get isSomeProperty;
61
61
/// Sets some very useful property.
62
- set isSomeProperty (bool value);
62
+ set isSomeProperty (Comments_Usefulness value);
63
63
}
64
+ /// This is some very useful typedef.
65
+ typedef Comments_Usefulness = bool ;
64
66
/// This is some very useful enum.
65
67
enum Comments_SomeEnum {
66
68
/// Not quite useful
@@ -128,15 +130,15 @@ class Comments_SomethingWrongException implements Exception {
128
130
class Comments_SomeStruct {
129
131
/// How useful this struct is
130
132
/// remains to be seen
131
- bool someField;
133
+ Comments_Usefulness someField;
132
134
/// Can be `null`
133
135
String ? nullableField;
134
136
/// This is how easy it is to construct.
135
137
/// [someField] How useful this struct is
136
138
/// remains to be seen
137
139
/// [nullableField] Can be `null`
138
140
Comments_SomeStruct ._(this .someField, this .nullableField);
139
- Comments_SomeStruct (bool someField)
141
+ Comments_SomeStruct (Comments_Usefulness someField)
140
142
: someField = someField, nullableField = null ;
141
143
/// This is some struct method that does nothing.
142
144
///
@@ -354,7 +356,7 @@ final _someMethodWithAllCommentsReturnHasError = __lib.catchArgumentError(() =>
354
356
class Comments$Impl extends __lib.NativeBase implements Comments {
355
357
Comments$Impl (Pointer <Void > handle) : super (handle);
356
358
@override
357
- bool someMethodWithAllComments (String inputParameter) {
359
+ Comments_Usefulness someMethodWithAllComments (String inputParameter) {
358
360
final _someMethodWithAllCommentsFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Pointer <Void > Function (Pointer <Void >, Int32 , Pointer <Void >), Pointer <Void > Function (Pointer <Void >, int , Pointer <Void >)> ('library_smoke_Comments_someMethodWithAllComments__String' ));
359
361
final _inputParameterHandle = stringToFfi (inputParameter);
360
362
final _handle = this .handle;
@@ -378,7 +380,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
378
380
}
379
381
}
380
382
@override
381
- bool someMethodWithInputComments (String input) {
383
+ Comments_Usefulness someMethodWithInputComments (String input) {
382
384
final _someMethodWithInputCommentsFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Uint8 Function (Pointer <Void >, Int32 , Pointer <Void >), int Function (Pointer <Void >, int , Pointer <Void >)> ('library_smoke_Comments_someMethodWithInputComments__String' ));
383
385
final _inputHandle = stringToFfi (input);
384
386
final _handle = this .handle;
@@ -391,7 +393,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
391
393
}
392
394
}
393
395
@override
394
- bool someMethodWithOutputComments (String input) {
396
+ Comments_Usefulness someMethodWithOutputComments (String input) {
395
397
final _someMethodWithOutputCommentsFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Uint8 Function (Pointer <Void >, Int32 , Pointer <Void >), int Function (Pointer <Void >, int , Pointer <Void >)> ('library_smoke_Comments_someMethodWithOutputComments__String' ));
396
398
final _inputHandle = stringToFfi (input);
397
399
final _handle = this .handle;
@@ -404,7 +406,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
404
406
}
405
407
}
406
408
@override
407
- bool someMethodWithNoComments (String input) {
409
+ Comments_Usefulness someMethodWithNoComments (String input) {
408
410
final _someMethodWithNoCommentsFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Uint8 Function (Pointer <Void >, Int32 , Pointer <Void >), int Function (Pointer <Void >, int , Pointer <Void >)> ('library_smoke_Comments_someMethodWithNoComments__String' ));
409
411
final _inputHandle = stringToFfi (input);
410
412
final _handle = this .handle;
@@ -433,7 +435,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
433
435
stringReleaseFfiHandle (_inputHandle);
434
436
}
435
437
@override
436
- bool someMethodWithoutInputParametersWithAllComments () {
438
+ Comments_Usefulness someMethodWithoutInputParametersWithAllComments () {
437
439
final _someMethodWithoutInputParametersWithAllCommentsFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Uint8 Function (Pointer <Void >, Int32 ), int Function (Pointer <Void >, int )> ('library_smoke_Comments_someMethodWithoutInputParametersWithAllComments' ));
438
440
final _handle = this .handle;
439
441
final __resultHandle = _someMethodWithoutInputParametersWithAllCommentsFfi (_handle, __lib.LibraryContext .isolateId);
@@ -444,7 +446,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
444
446
}
445
447
}
446
448
@override
447
- bool someMethodWithoutInputParametersWithNoComments () {
449
+ Comments_Usefulness someMethodWithoutInputParametersWithNoComments () {
448
450
final _someMethodWithoutInputParametersWithNoCommentsFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Uint8 Function (Pointer <Void >, Int32 ), int Function (Pointer <Void >, int )> ('library_smoke_Comments_someMethodWithoutInputParametersWithNoComments' ));
449
451
final _handle = this .handle;
450
452
final __resultHandle = _someMethodWithoutInputParametersWithNoCommentsFfi (_handle, __lib.LibraryContext .isolateId);
@@ -495,7 +497,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
495
497
}
496
498
}
497
499
@override
498
- bool get isSomeProperty {
500
+ Comments_Usefulness get isSomeProperty {
499
501
final _getFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Uint8 Function (Pointer <Void >, Int32 ), int Function (Pointer <Void >, int )> ('library_smoke_Comments_isSomeProperty_get' ));
500
502
final _handle = this .handle;
501
503
final __resultHandle = _getFfi (_handle, __lib.LibraryContext .isolateId);
@@ -506,7 +508,7 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
506
508
}
507
509
}
508
510
@override
509
- set isSomeProperty (bool value) {
511
+ set isSomeProperty (Comments_Usefulness value) {
510
512
final _setFfi = __lib.catchArgumentError (() => __lib.nativeLibrary.lookupFunction< Void Function (Pointer <Void >, Int32 , Uint8 ), void Function (Pointer <Void >, int , int )> ('library_smoke_Comments_isSomeProperty_set__Boolean' ));
511
513
final _valueHandle = booleanToFfi (value);
512
514
final _handle = this .handle;
0 commit comments