diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
index 27248dfed7..c49c8d4104 100644
--- a/.idea/kotlinc.xml
+++ b/.idea/kotlinc.xml
@@ -7,4 +7,7 @@
+
+
+
\ No newline at end of file
diff --git a/functional-tests/functional/input/lime/StructsWithMethods.lime b/functional-tests/functional/input/lime/StructsWithMethods.lime
index f06ab90c68..9cb57437a5 100644
--- a/functional-tests/functional/input/lime/StructsWithMethods.lime
+++ b/functional-tests/functional/input/lime/StructsWithMethods.lime
@@ -81,6 +81,20 @@ class StructsWithMethodsInterface {
) throws ValidationUtils.Validation
}
+ struct Vector4 {
+ x: Double = 2.0
+ @Dart(Default)
+ constructor create(
+ ) throws ValidationUtils.Validation
+ }
+
+ struct Vector5 {
+ y: Double = 7.0
+ @Dart(Default)
+ constructor create(
+ ) throws ValidationUtils.Validation
+ }
+
struct StructWithStaticMethodsOnly {
static fun doStuff()
}
diff --git a/functional-tests/functional/input/src/cpp/StructsWithMethods.cpp b/functional-tests/functional/input/src/cpp/StructsWithMethods.cpp
index ef8235d12c..9135ebc5d0 100644
--- a/functional-tests/functional/input/src/cpp/StructsWithMethods.cpp
+++ b/functional-tests/functional/input/src/cpp/StructsWithMethods.cpp
@@ -102,6 +102,20 @@ StructsWithMethodsInterface::Vector3::create( const StructsWithMethodsInterface:
);
}
+lorem_ipsum::test::Return< StructsWithMethodsInterface::Vector4, std::error_code >
+StructsWithMethodsInterface::Vector4::create( )
+{
+ return lorem_ipsum::test::Return< StructsWithMethodsInterface::Vector4, std::error_code >(
+ StructsWithMethodsInterface::Vector4( ) );
+}
+
+lorem_ipsum::test::Return< StructsWithMethodsInterface::Vector5, std::error_code >
+StructsWithMethodsInterface::Vector5::create( )
+{
+ return lorem_ipsum::test::Return< StructsWithMethodsInterface::Vector5, std::error_code >(
+ StructsWithMethodsInterface::Vector5( ) );
+}
+
void
StructsWithMethodsInterface::StructWithStaticMethodsOnly::do_stuff( )
{
diff --git a/gluecodium/src/main/resources/templates/dart/DartFunctionBody.mustache b/gluecodium/src/main/resources/templates/dart/DartFunctionBody.mustache
index 56f32ab816..96f40ea0fe 100644
--- a/gluecodium/src/main/resources/templates/dart/DartFunctionBody.mustache
+++ b/gluecodium/src/main/resources/templates/dart/DartFunctionBody.mustache
@@ -36,9 +36,9 @@
{{#resolveName}}{{#setJoin "varName" "_" this "Handle" delimiter=""}}{{>dart/DartFfiReleaseHandle}}{{/setJoin}}{{/resolveName}}
{{/parameters}}
{{#if this.thrownType}}
- if (_{{resolveName}}ReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _{{resolveName}}ReturnGetError(__callResultHandle);
- _{{resolveName}}ReturnReleaseHandle(__callResultHandle);
+ if (_{{resolveName}}{{resolveName "Ffi"}}ReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _{{resolveName}}{{resolveName "Ffi"}}ReturnGetError(__callResultHandle);
+ _{{resolveName}}{{resolveName "Ffi"}}ReturnReleaseHandle(__callResultHandle);
try {
throw {{resolveName exception}}({{#set call="FromFfi" typeRef=exception.errorType}}{{>dart/DartFfiConversionCall}}{{/set}}(__errorHandle));
} finally {
@@ -46,9 +46,9 @@
}
}
{{#unless returnType.isVoid}}
- final __resultHandle = _{{resolveName}}ReturnGetResult(__callResultHandle);
+ final __resultHandle = _{{resolveName}}{{resolveName "Ffi"}}ReturnGetResult(__callResultHandle);
{{/unless}}
- _{{resolveName}}ReturnReleaseHandle(__callResultHandle);
+ _{{resolveName}}{{resolveName "Ffi"}}ReturnReleaseHandle(__callResultHandle);
{{/if}}
{{#if isConstructor}}{{#if isStruct}}{{>ffiReturnConversion}}{{/if}}{{!!
}}{{#unless isStruct}} return __resultHandle;{{/unless}}{{/if}}{{!!
diff --git a/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache b/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache
index eaadc086f6..2b019e302e 100644
--- a/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache
+++ b/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache
@@ -19,21 +19,21 @@
!
!}}
{{#if thrownType}}{{#unless attributes.async}}
-final _{{resolveName}}ReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _{{resolveName}}{{resolveName "Ffi"}}ReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('{{>dart/DartFunctionFfiName}}_return_release_handle'));
{{#unless returnType.isVoid}}
-final _{{resolveName}}ReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _{{resolveName}}{{resolveName "Ffi"}}ReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
{{resolveName returnType.typeRef "FfiApiTypes"}} Function(Pointer),
{{resolveName returnType.typeRef "FfiDartTypes"}} Function(Pointer)
>('{{>dart/DartFunctionFfiName}}_return_get_result'));
{{/unless}}
-final _{{resolveName}}ReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _{{resolveName}}{{resolveName "Ffi"}}ReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
{{resolveName exception.errorType "FfiApiTypes"}} Function(Pointer),
{{resolveName exception.errorType "FfiDartTypes"}} Function(Pointer)
>('{{>dart/DartFunctionFfiName}}_return_get_error'));
-final _{{resolveName}}ReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _{{resolveName}}{{resolveName "Ffi"}}ReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('{{>dart/DartFunctionFfiName}}_return_has_error'));
diff --git a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments.dart b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments.dart
index 761f9578d1..e8d3915655 100644
--- a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments.dart
+++ b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments.dart
@@ -335,19 +335,19 @@ final _smokeCommentsReleaseHandle = __lib.catchArgumentError(() => __lib.nativeL
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Comments_release_handle'));
-final _someMethodWithAllCommentsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Comments_someMethodWithAllComments__String_return_release_handle'));
-final _someMethodWithAllCommentsReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Comments_someMethodWithAllComments__String_return_get_result'));
-final _someMethodWithAllCommentsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_Comments_someMethodWithAllComments__String_return_get_error'));
-final _someMethodWithAllCommentsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Comments_someMethodWithAllComments__String_return_has_error'));
@@ -360,17 +360,17 @@ class Comments$Impl extends __lib.NativeBase implements Comments {
final _handle = this.handle;
final __callResultHandle = _someMethodWithAllCommentsFfi(_handle, __lib.LibraryContext.isolateId, _inputParameterHandle);
stringReleaseFfiHandle(_inputParameterHandle);
- if (_someMethodWithAllCommentsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _someMethodWithAllCommentsReturnGetError(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ if (_someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnGetError(__callResultHandle);
+ _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
throw Comments_SomethingWrongException(smokeCommentsSomeenumFromFfi(__errorHandle));
} finally {
smokeCommentsSomeenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _someMethodWithAllCommentsReturnGetResult(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnGetResult(__callResultHandle);
+ _someMethodWithAllCommentssmokeCommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
return booleanFromFfi(__resultHandle);
} finally {
@@ -534,4 +534,4 @@ Comments? smokeCommentsFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeCommentsFromFfi(handle) : null;
void smokeCommentsReleaseFfiHandleNullable(Pointer handle) =>
_smokeCommentsReleaseHandle(handle);
-// End of Comments "private" section.
+// End of Comments "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments_links.dart b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments_links.dart
index a1a16c1bbd..2d3c83a185 100644
--- a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments_links.dart
+++ b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/comments_links.dart
@@ -139,19 +139,19 @@ final _smokeCommentslinksReleaseHandle = __lib.catchArgumentError(() => __lib.na
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_CommentsLinks_release_handle'));
-final _randomMethodReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _randomMethodsmokeCommentslinksRandommethodSomeenumReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_CommentsLinks_randomMethod__SomeEnum_return_release_handle'));
-final _randomMethodReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _randomMethodsmokeCommentslinksRandommethodSomeenumReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_CommentsLinks_randomMethod__SomeEnum_return_get_result'));
-final _randomMethodReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _randomMethodsmokeCommentslinksRandommethodSomeenumReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_CommentsLinks_randomMethod__SomeEnum_return_get_error'));
-final _randomMethodReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _randomMethodsmokeCommentslinksRandommethodSomeenumReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_CommentsLinks_randomMethod__SomeEnum_return_has_error'));
@@ -164,17 +164,17 @@ class CommentsLinks$Impl extends __lib.NativeBase implements CommentsLinks {
final _handle = this.handle;
final __callResultHandle = _randomMethodFfi(_handle, __lib.LibraryContext.isolateId, _inputParameterHandle);
smokeCommentsSomeenumReleaseFfiHandle(_inputParameterHandle);
- if (_randomMethodReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _randomMethodReturnGetError(__callResultHandle);
- _randomMethodReturnReleaseHandle(__callResultHandle);
+ if (_randomMethodsmokeCommentslinksRandommethodSomeenumReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _randomMethodsmokeCommentslinksRandommethodSomeenumReturnGetError(__callResultHandle);
+ _randomMethodsmokeCommentslinksRandommethodSomeenumReturnReleaseHandle(__callResultHandle);
try {
throw Comments_SomethingWrongException(smokeCommentsSomeenumFromFfi(__errorHandle));
} finally {
smokeCommentsSomeenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _randomMethodReturnGetResult(__callResultHandle);
- _randomMethodReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _randomMethodsmokeCommentslinksRandommethodSomeenumReturnGetResult(__callResultHandle);
+ _randomMethodsmokeCommentslinksRandommethodSomeenumReturnReleaseHandle(__callResultHandle);
try {
return smokeCommentsSomeenumFromFfi(__resultHandle);
} finally {
@@ -212,4 +212,4 @@ CommentsLinks? smokeCommentslinksFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeCommentslinksFromFfi(handle) : null;
void smokeCommentslinksReleaseFfiHandleNullable(Pointer handle) =>
_smokeCommentslinksReleaseHandle(handle);
-// End of CommentsLinks "private" section.
+// End of CommentsLinks "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments.dart b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments.dart
index fbb01533a8..d399e64c05 100644
--- a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments.dart
+++ b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments.dart
@@ -6,7 +6,6 @@ import 'package:library/src/builtin_types__conversion.dart';
/// This is some very useful class.
/// @nodoc
abstract class ExcludedComments {
-
/// This is some very useful constant.
/// @nodoc
static final bool veryUseful = true;
@@ -268,25 +267,24 @@ final _smokeExcludedcommentsReleaseHandle = __lib.catchArgumentError(() => __lib
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ExcludedComments_release_handle'));
-final _someMethodWithAllCommentsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ExcludedComments_someMethodWithAllComments__String_return_release_handle'));
-final _someMethodWithAllCommentsReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ExcludedComments_someMethodWithAllComments__String_return_get_result'));
-final _someMethodWithAllCommentsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_ExcludedComments_someMethodWithAllComments__String_return_get_error'));
-final _someMethodWithAllCommentsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ExcludedComments_someMethodWithAllComments__String_return_has_error'));
class ExcludedComments$Impl extends __lib.NativeBase implements ExcludedComments {
ExcludedComments$Impl(Pointer handle) : super(handle);
-
@override
bool someMethodWithAllComments(String inputParameter) {
final _someMethodWithAllCommentsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Pointer, Int32, Pointer), Pointer Function(Pointer, int, Pointer)>('library_smoke_ExcludedComments_someMethodWithAllComments__String'));
@@ -294,17 +292,17 @@ class ExcludedComments$Impl extends __lib.NativeBase implements ExcludedComments
final _handle = this.handle;
final __callResultHandle = _someMethodWithAllCommentsFfi(_handle, __lib.LibraryContext.isolateId, _inputParameterHandle);
stringReleaseFfiHandle(_inputParameterHandle);
- if (_someMethodWithAllCommentsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _someMethodWithAllCommentsReturnGetError(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ if (_someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnGetError(__callResultHandle);
+ _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
throw ExcludedComments_SomethingWrongException(smokeExcludedcommentsSomeenumFromFfi(__errorHandle));
} finally {
smokeExcludedcommentsSomeenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _someMethodWithAllCommentsReturnGetResult(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnGetResult(__callResultHandle);
+ _someMethodWithAllCommentssmokeExcludedcommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
return booleanFromFfi(__resultHandle);
} finally {
@@ -357,4 +355,4 @@ ExcludedComments? smokeExcludedcommentsFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeExcludedcommentsFromFfi(handle) : null;
void smokeExcludedcommentsReleaseFfiHandleNullable(Pointer handle) =>
_smokeExcludedcommentsReleaseHandle(handle);
-// End of ExcludedComments "private" section.
+// End of ExcludedComments "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments_only.dart b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments_only.dart
index a0bd10301f..e80ab304e8 100644
--- a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments_only.dart
+++ b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/excluded_comments_only.dart
@@ -5,7 +5,6 @@ import 'package:library/src/_token_cache.dart' as __lib;
import 'package:library/src/builtin_types__conversion.dart';
/// @nodoc
abstract class ExcludedCommentsOnly {
-
/// @nodoc
static final bool veryUseful = true;
/// @nodoc
@@ -244,25 +243,24 @@ final _smokeExcludedcommentsonlyReleaseHandle = __lib.catchArgumentError(() => _
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ExcludedCommentsOnly_release_handle'));
-final _someMethodWithAllCommentsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ExcludedCommentsOnly_someMethodWithAllComments__String_return_release_handle'));
-final _someMethodWithAllCommentsReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ExcludedCommentsOnly_someMethodWithAllComments__String_return_get_result'));
-final _someMethodWithAllCommentsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_ExcludedCommentsOnly_someMethodWithAllComments__String_return_get_error'));
-final _someMethodWithAllCommentsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ExcludedCommentsOnly_someMethodWithAllComments__String_return_has_error'));
class ExcludedCommentsOnly$Impl extends __lib.NativeBase implements ExcludedCommentsOnly {
ExcludedCommentsOnly$Impl(Pointer handle) : super(handle);
-
@override
bool someMethodWithAllComments(String inputParameter) {
final _someMethodWithAllCommentsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Pointer, Int32, Pointer), Pointer Function(Pointer, int, Pointer)>('library_smoke_ExcludedCommentsOnly_someMethodWithAllComments__String'));
@@ -270,17 +268,17 @@ class ExcludedCommentsOnly$Impl extends __lib.NativeBase implements ExcludedComm
final _handle = this.handle;
final __callResultHandle = _someMethodWithAllCommentsFfi(_handle, __lib.LibraryContext.isolateId, _inputParameterHandle);
stringReleaseFfiHandle(_inputParameterHandle);
- if (_someMethodWithAllCommentsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _someMethodWithAllCommentsReturnGetError(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ if (_someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnGetError(__callResultHandle);
+ _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
throw ExcludedCommentsOnly_SomethingWrongException(smokeExcludedcommentsonlySomeenumFromFfi(__errorHandle));
} finally {
smokeExcludedcommentsonlySomeenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _someMethodWithAllCommentsReturnGetResult(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnGetResult(__callResultHandle);
+ _someMethodWithAllCommentssmokeExcludedcommentsonlySomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
return booleanFromFfi(__resultHandle);
} finally {
@@ -333,4 +331,4 @@ ExcludedCommentsOnly? smokeExcludedcommentsonlyFromFfiNullable(Pointer han
handle.address != 0 ? smokeExcludedcommentsonlyFromFfi(handle) : null;
void smokeExcludedcommentsonlyReleaseFfiHandleNullable(Pointer handle) =>
_smokeExcludedcommentsonlyReleaseHandle(handle);
-// End of ExcludedCommentsOnly "private" section.
+// End of ExcludedCommentsOnly "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/platform_comments.dart b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/platform_comments.dart
index ea865a3b53..1cfd035e81 100644
--- a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/platform_comments.dart
+++ b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/platform_comments.dart
@@ -4,7 +4,6 @@ import 'package:library/src/_native_base.dart' as __lib;
import 'package:library/src/_token_cache.dart' as __lib;
import 'package:library/src/builtin_types__conversion.dart';
abstract class PlatformComments {
-
/// This is some very useless method that cannot have overloads.
///
void doNothing();
@@ -161,25 +160,24 @@ final _smokePlatformcommentsReleaseHandle = __lib.catchArgumentError(() => __lib
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_PlatformComments_release_handle'));
-final _someMethodWithAllCommentsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_PlatformComments_someMethodWithAllComments__String_return_release_handle'));
-final _someMethodWithAllCommentsReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_PlatformComments_someMethodWithAllComments__String_return_get_result'));
-final _someMethodWithAllCommentsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_PlatformComments_someMethodWithAllComments__String_return_get_error'));
-final _someMethodWithAllCommentsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_PlatformComments_someMethodWithAllComments__String_return_has_error'));
class PlatformComments$Impl extends __lib.NativeBase implements PlatformComments {
PlatformComments$Impl(Pointer handle) : super(handle);
-
@override
void doNothing() {
final _doNothingFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction, Int32), void Function(Pointer, int)>('library_smoke_PlatformComments_doNothing'));
@@ -199,17 +197,17 @@ class PlatformComments$Impl extends __lib.NativeBase implements PlatformComments
final _handle = this.handle;
final __callResultHandle = _someMethodWithAllCommentsFfi(_handle, __lib.LibraryContext.isolateId, _inputHandle);
stringReleaseFfiHandle(_inputHandle);
- if (_someMethodWithAllCommentsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _someMethodWithAllCommentsReturnGetError(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ if (_someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnGetError(__callResultHandle);
+ _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
throw PlatformComments_SomethingWrongException(smokePlatformcommentsSomeenumFromFfi(__errorHandle));
} finally {
smokePlatformcommentsSomeenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _someMethodWithAllCommentsReturnGetResult(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnGetResult(__callResultHandle);
+ _someMethodWithAllCommentssmokePlatformcommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
return booleanFromFfi(__resultHandle);
} finally {
@@ -243,4 +241,4 @@ PlatformComments? smokePlatformcommentsFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokePlatformcommentsFromFfi(handle) : null;
void smokePlatformcommentsReleaseFfiHandleNullable(Pointer handle) =>
_smokePlatformcommentsReleaseHandle(handle);
-// End of PlatformComments "private" section.
+// End of PlatformComments "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/unicode_comments.dart b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/unicode_comments.dart
index f433e7f7a1..50d85beba3 100644
--- a/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/unicode_comments.dart
+++ b/gluecodium/src/test/resources/smoke/comments/output/dart/lib/src/smoke/unicode_comments.dart
@@ -5,7 +5,6 @@ import 'package:library/src/_token_cache.dart' as __lib;
import 'package:library/src/builtin_types__conversion.dart';
import 'package:library/src/smoke/comments.dart';
abstract class UnicodeComments {
-
/// Süßölgefäß
///
/// [input] שלום
@@ -29,25 +28,24 @@ final _smokeUnicodecommentsReleaseHandle = __lib.catchArgumentError(() => __lib.
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_UnicodeComments_release_handle'));
-final _someMethodWithAllCommentsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_UnicodeComments_someMethodWithAllComments__String_return_release_handle'));
-final _someMethodWithAllCommentsReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_UnicodeComments_someMethodWithAllComments__String_return_get_result'));
-final _someMethodWithAllCommentsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_UnicodeComments_someMethodWithAllComments__String_return_get_error'));
-final _someMethodWithAllCommentsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_UnicodeComments_someMethodWithAllComments__String_return_has_error'));
class UnicodeComments$Impl extends __lib.NativeBase implements UnicodeComments {
UnicodeComments$Impl(Pointer handle) : super(handle);
-
@override
bool someMethodWithAllComments(String input) {
final _someMethodWithAllCommentsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Pointer, Int32, Pointer), Pointer Function(Pointer, int, Pointer)>('library_smoke_UnicodeComments_someMethodWithAllComments__String'));
@@ -55,17 +53,17 @@ class UnicodeComments$Impl extends __lib.NativeBase implements UnicodeComments {
final _handle = this.handle;
final __callResultHandle = _someMethodWithAllCommentsFfi(_handle, __lib.LibraryContext.isolateId, _inputHandle);
stringReleaseFfiHandle(_inputHandle);
- if (_someMethodWithAllCommentsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _someMethodWithAllCommentsReturnGetError(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ if (_someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnGetError(__callResultHandle);
+ _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
throw Comments_SomethingWrongException(smokeCommentsSomeenumFromFfi(__errorHandle));
} finally {
smokeCommentsSomeenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _someMethodWithAllCommentsReturnGetResult(__callResultHandle);
- _someMethodWithAllCommentsReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnGetResult(__callResultHandle);
+ _someMethodWithAllCommentssmokeUnicodecommentsSomemethodwithallcommentsStringReturnReleaseHandle(__callResultHandle);
try {
return booleanFromFfi(__resultHandle);
} finally {
@@ -93,4 +91,4 @@ UnicodeComments? smokeUnicodecommentsFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeUnicodecommentsFromFfi(handle) : null;
void smokeUnicodecommentsReleaseFfiHandleNullable(Pointer handle) =>
_smokeUnicodecommentsReleaseHandle(handle);
-// End of UnicodeComments "private" section.
+// End of UnicodeComments "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/constructors/output/dart/lib/src/smoke/constructors.dart b/gluecodium/src/test/resources/smoke/constructors/output/dart/lib/src/smoke/constructors.dart
index f44bd833c5..bd0f9047c8 100644
--- a/gluecodium/src/test/resources/smoke/constructors/output/dart/lib/src/smoke/constructors.dart
+++ b/gluecodium/src/test/resources/smoke/constructors/output/dart/lib/src/smoke/constructors.dart
@@ -13,7 +13,6 @@ abstract class Constructors {
factory Constructors.fromString(String input) => $prototype.fromString(input);
factory Constructors.fromList(List input) => $prototype.fromList(input);
factory Constructors.create(int input) => $prototype.create(input);
-
/// @nodoc
@visibleForTesting
static dynamic $prototype = Constructors$Impl(Pointer.fromAddress(0));
@@ -94,19 +93,19 @@ final _smokeConstructorsGetTypeId = __lib.catchArgumentError(() => __lib.nativeL
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_Constructors_get_type_id'));
-final _fromStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _fromStringsmokeConstructorsCreateStringReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Constructors_create__String_return_release_handle'));
-final _fromStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _fromStringsmokeConstructorsCreateStringReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_Constructors_create__String_return_get_result'));
-final _fromStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _fromStringsmokeConstructorsCreateStringReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_Constructors_create__String_return_get_error'));
-final _fromStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _fromStringsmokeConstructorsCreateStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Constructors_create__String_return_has_error'));
@@ -114,7 +113,6 @@ final _fromStringReturnHasError = __lib.catchArgumentError(() => __lib.nativeLib
@visibleForTesting
class Constructors$Impl extends __lib.NativeBase implements Constructors {
Constructors$Impl(Pointer handle) : super(handle);
-
Constructors $init() {
final _result_handle = _$init();
final _result = Constructors$Impl(_result_handle);
@@ -182,17 +180,17 @@ class Constructors$Impl extends __lib.NativeBase implements Constructors {
final _inputHandle = stringToFfi(input);
final __callResultHandle = _fromStringFfi(__lib.LibraryContext.isolateId, _inputHandle);
stringReleaseFfiHandle(_inputHandle);
- if (_fromStringReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _fromStringReturnGetError(__callResultHandle);
- _fromStringReturnReleaseHandle(__callResultHandle);
+ if (_fromStringsmokeConstructorsCreateStringReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _fromStringsmokeConstructorsCreateStringReturnGetError(__callResultHandle);
+ _fromStringsmokeConstructorsCreateStringReturnReleaseHandle(__callResultHandle);
try {
throw Constructors_ConstructorExplodedException(smokeConstructorsErrorenumFromFfi(__errorHandle));
} finally {
smokeConstructorsErrorenumReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _fromStringReturnGetResult(__callResultHandle);
- _fromStringReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _fromStringsmokeConstructorsCreateStringReturnGetResult(__callResultHandle);
+ _fromStringsmokeConstructorsCreateStringReturnReleaseHandle(__callResultHandle);
return __resultHandle;
}
static Pointer _fromList(List input) {
@@ -234,4 +232,4 @@ Constructors? smokeConstructorsFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeConstructorsFromFfi(handle) : null;
void smokeConstructorsReleaseFfiHandleNullable(Pointer handle) =>
_smokeConstructorsReleaseHandle(handle);
-// End of Constructors "private" section.
+// End of Constructors "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors.dart b/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors.dart
index 6cc65befd9..94da01baca 100644
--- a/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors.dart
+++ b/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors.dart
@@ -7,7 +7,6 @@ import 'package:library/src/smoke/payload.dart';
import 'package:library/src/smoke/with_payload_exception.dart';
import 'package:meta/meta.dart';
abstract class Errors {
-
static void methodWithErrors() => $prototype.methodWithErrors();
static void methodWithExternalErrors() => $prototype.methodWithExternalErrors();
static String methodWithErrorsAndReturnValue() => $prototype.methodWithErrorsAndReturnValue();
@@ -153,71 +152,71 @@ final _smokeErrorsReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLib
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Errors_release_handle'));
-final _methodWithErrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorssmokeErrorsMethodwitherrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Errors_methodWithErrors_return_release_handle'));
-final _methodWithErrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorssmokeErrorsMethodwitherrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithErrors_return_get_error'));
-final _methodWithErrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorssmokeErrorsMethodwitherrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithErrors_return_has_error'));
-final _methodWithExternalErrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Errors_methodWithExternalErrors_return_release_handle'));
-final _methodWithExternalErrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithExternalErrors_return_get_error'));
-final _methodWithExternalErrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithExternalErrors_return_has_error'));
-final _methodWithErrorsAndReturnValueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Errors_methodWithErrorsAndReturnValue_return_release_handle'));
-final _methodWithErrorsAndReturnValueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_Errors_methodWithErrorsAndReturnValue_return_get_result'));
-final _methodWithErrorsAndReturnValueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithErrorsAndReturnValue_return_get_error'));
-final _methodWithErrorsAndReturnValueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithErrorsAndReturnValue_return_has_error'));
-final _methodWithPayloadErrorReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Errors_methodWithPayloadError_return_release_handle'));
-final _methodWithPayloadErrorReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_Errors_methodWithPayloadError_return_get_error'));
-final _methodWithPayloadErrorReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithPayloadError_return_has_error'));
-final _methodWithPayloadErrorAndReturnValueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_Errors_methodWithPayloadErrorAndReturnValue_return_release_handle'));
-final _methodWithPayloadErrorAndReturnValueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_Errors_methodWithPayloadErrorAndReturnValue_return_get_result'));
-final _methodWithPayloadErrorAndReturnValueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_Errors_methodWithPayloadErrorAndReturnValue_return_get_error'));
-final _methodWithPayloadErrorAndReturnValueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_Errors_methodWithPayloadErrorAndReturnValue_return_has_error'));
@@ -225,49 +224,48 @@ final _methodWithPayloadErrorAndReturnValueReturnHasError = __lib.catchArgumentE
@visibleForTesting
class Errors$Impl extends __lib.NativeBase implements Errors {
Errors$Impl(Pointer handle) : super(handle);
-
void methodWithErrors() {
final _methodWithErrorsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_Errors_methodWithErrors'));
final __callResultHandle = _methodWithErrorsFfi(__lib.LibraryContext.isolateId);
- if (_methodWithErrorsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithErrorsReturnGetError(__callResultHandle);
- _methodWithErrorsReturnReleaseHandle(__callResultHandle);
+ if (_methodWithErrorssmokeErrorsMethodwitherrorsReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithErrorssmokeErrorsMethodwitherrorsReturnGetError(__callResultHandle);
+ _methodWithErrorssmokeErrorsMethodwitherrorsReturnReleaseHandle(__callResultHandle);
try {
throw Errors_InternalException(smokeErrorsInternalerrorcodeFromFfi(__errorHandle));
} finally {
smokeErrorsInternalerrorcodeReleaseFfiHandle(__errorHandle);
}
}
- _methodWithErrorsReturnReleaseHandle(__callResultHandle);
+ _methodWithErrorssmokeErrorsMethodwitherrorsReturnReleaseHandle(__callResultHandle);
}
void methodWithExternalErrors() {
final _methodWithExternalErrorsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_Errors_methodWithExternalErrors'));
final __callResultHandle = _methodWithExternalErrorsFfi(__lib.LibraryContext.isolateId);
- if (_methodWithExternalErrorsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithExternalErrorsReturnGetError(__callResultHandle);
- _methodWithExternalErrorsReturnReleaseHandle(__callResultHandle);
+ if (_methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnGetError(__callResultHandle);
+ _methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnReleaseHandle(__callResultHandle);
try {
throw Errors_ExternalException(smokeErrorsExternalerrorsFromFfi(__errorHandle));
} finally {
smokeErrorsExternalerrorsReleaseFfiHandle(__errorHandle);
}
}
- _methodWithExternalErrorsReturnReleaseHandle(__callResultHandle);
+ _methodWithExternalErrorssmokeErrorsMethodwithexternalerrorsReturnReleaseHandle(__callResultHandle);
}
String methodWithErrorsAndReturnValue() {
final _methodWithErrorsAndReturnValueFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_Errors_methodWithErrorsAndReturnValue'));
final __callResultHandle = _methodWithErrorsAndReturnValueFfi(__lib.LibraryContext.isolateId);
- if (_methodWithErrorsAndReturnValueReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithErrorsAndReturnValueReturnGetError(__callResultHandle);
- _methodWithErrorsAndReturnValueReturnReleaseHandle(__callResultHandle);
+ if (_methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnGetError(__callResultHandle);
+ _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
throw Errors_InternalException(smokeErrorsInternalerrorcodeFromFfi(__errorHandle));
} finally {
smokeErrorsInternalerrorcodeReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _methodWithErrorsAndReturnValueReturnGetResult(__callResultHandle);
- _methodWithErrorsAndReturnValueReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnGetResult(__callResultHandle);
+ _methodWithErrorsAndReturnValuesmokeErrorsMethodwitherrorsandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
return stringFromFfi(__resultHandle);
} finally {
@@ -277,31 +275,31 @@ class Errors$Impl extends __lib.NativeBase implements Errors {
void methodWithPayloadError() {
final _methodWithPayloadErrorFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_Errors_methodWithPayloadError'));
final __callResultHandle = _methodWithPayloadErrorFfi(__lib.LibraryContext.isolateId);
- if (_methodWithPayloadErrorReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithPayloadErrorReturnGetError(__callResultHandle);
- _methodWithPayloadErrorReturnReleaseHandle(__callResultHandle);
+ if (_methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnGetError(__callResultHandle);
+ _methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnReleaseHandle(__callResultHandle);
try {
throw WithPayloadException(smokePayloadFromFfi(__errorHandle));
} finally {
smokePayloadReleaseFfiHandle(__errorHandle);
}
}
- _methodWithPayloadErrorReturnReleaseHandle(__callResultHandle);
+ _methodWithPayloadErrorsmokeErrorsMethodwithpayloaderrorReturnReleaseHandle(__callResultHandle);
}
String methodWithPayloadErrorAndReturnValue() {
final _methodWithPayloadErrorAndReturnValueFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_Errors_methodWithPayloadErrorAndReturnValue'));
final __callResultHandle = _methodWithPayloadErrorAndReturnValueFfi(__lib.LibraryContext.isolateId);
- if (_methodWithPayloadErrorAndReturnValueReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithPayloadErrorAndReturnValueReturnGetError(__callResultHandle);
- _methodWithPayloadErrorAndReturnValueReturnReleaseHandle(__callResultHandle);
+ if (_methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnGetError(__callResultHandle);
+ _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
throw WithPayloadException(smokePayloadFromFfi(__errorHandle));
} finally {
smokePayloadReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _methodWithPayloadErrorAndReturnValueReturnGetResult(__callResultHandle);
- _methodWithPayloadErrorAndReturnValueReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnGetResult(__callResultHandle);
+ _methodWithPayloadErrorAndReturnValuesmokeErrorsMethodwithpayloaderrorandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
return stringFromFfi(__resultHandle);
} finally {
@@ -329,4 +327,4 @@ Errors? smokeErrorsFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeErrorsFromFfi(handle) : null;
void smokeErrorsReleaseFfiHandleNullable(Pointer handle) =>
_smokeErrorsReleaseHandle(handle);
-// End of Errors "private" section.
+// End of Errors "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors_interface.dart b/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors_interface.dart
index 0eea2ae681..06ed1c05cf 100644
--- a/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors_interface.dart
+++ b/gluecodium/src/test/resources/smoke/errors/output/dart/lib/src/smoke/errors_interface.dart
@@ -17,7 +17,6 @@ abstract class ErrorsInterface {
methodWithExternalErrorsLambda,
methodWithErrorsAndReturnValueLambda,
);
-
void methodWithErrors();
void methodWithExternalErrors();
String methodWithErrorsAndReturnValue();
@@ -171,71 +170,71 @@ final _smokeErrorsinterfaceGetTypeId = __lib.catchArgumentError(() => __lib.nati
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_ErrorsInterface_get_type_id'));
-final _methodWithErrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrors_return_release_handle'));
-final _methodWithErrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrors_return_get_error'));
-final _methodWithErrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrors_return_has_error'));
-final _methodWithExternalErrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithExternalErrors_return_release_handle'));
-final _methodWithExternalErrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithExternalErrors_return_get_error'));
-final _methodWithExternalErrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithExternalErrors_return_has_error'));
-final _methodWithErrorsAndReturnValueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrorsAndReturnValue_return_release_handle'));
-final _methodWithErrorsAndReturnValueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrorsAndReturnValue_return_get_result'));
-final _methodWithErrorsAndReturnValueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint32 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrorsAndReturnValue_return_get_error'));
-final _methodWithErrorsAndReturnValueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithErrorsAndReturnValue_return_has_error'));
-final _methodWithPayloadErrorReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadError_return_release_handle'));
-final _methodWithPayloadErrorReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadError_return_get_error'));
-final _methodWithPayloadErrorReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadError_return_has_error'));
-final _methodWithPayloadErrorAndReturnValueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadErrorAndReturnValue_return_release_handle'));
-final _methodWithPayloadErrorAndReturnValueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadErrorAndReturnValue_return_get_result'));
-final _methodWithPayloadErrorAndReturnValueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnGetError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadErrorAndReturnValue_return_get_error'));
-final _methodWithPayloadErrorAndReturnValueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnHasError = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer),
int Function(Pointer)
>('library_smoke_ErrorsInterface_methodWithPayloadErrorAndReturnValue_return_has_error'));
@@ -248,7 +247,6 @@ class ErrorsInterface$Lambdas implements ErrorsInterface {
this.methodWithExternalErrorsLambda,
this.methodWithErrorsAndReturnValueLambda,
);
-
@override
void methodWithErrors() =>
methodWithErrorsLambda();
@@ -263,55 +261,54 @@ class ErrorsInterface$Lambdas implements ErrorsInterface {
@visibleForTesting
class ErrorsInterface$Impl extends __lib.NativeBase implements ErrorsInterface {
ErrorsInterface$Impl(Pointer handle) : super(handle);
-
@override
void methodWithErrors() {
final _methodWithErrorsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Pointer, Int32), Pointer Function(Pointer, int)>('library_smoke_ErrorsInterface_methodWithErrors'));
final _handle = this.handle;
final __callResultHandle = _methodWithErrorsFfi(_handle, __lib.LibraryContext.isolateId);
- if (_methodWithErrorsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithErrorsReturnGetError(__callResultHandle);
- _methodWithErrorsReturnReleaseHandle(__callResultHandle);
+ if (_methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnGetError(__callResultHandle);
+ _methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnReleaseHandle(__callResultHandle);
try {
throw ErrorsInterface_InternalException(smokeErrorsinterfaceInternalerrorFromFfi(__errorHandle));
} finally {
smokeErrorsinterfaceInternalerrorReleaseFfiHandle(__errorHandle);
}
}
- _methodWithErrorsReturnReleaseHandle(__callResultHandle);
+ _methodWithErrorssmokeErrorsinterfaceMethodwitherrorsReturnReleaseHandle(__callResultHandle);
}
@override
void methodWithExternalErrors() {
final _methodWithExternalErrorsFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Pointer, Int32), Pointer Function(Pointer, int)>('library_smoke_ErrorsInterface_methodWithExternalErrors'));
final _handle = this.handle;
final __callResultHandle = _methodWithExternalErrorsFfi(_handle, __lib.LibraryContext.isolateId);
- if (_methodWithExternalErrorsReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithExternalErrorsReturnGetError(__callResultHandle);
- _methodWithExternalErrorsReturnReleaseHandle(__callResultHandle);
+ if (_methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnGetError(__callResultHandle);
+ _methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnReleaseHandle(__callResultHandle);
try {
throw ErrorsInterface_ExternalException(smokeErrorsinterfaceExternalerrorsFromFfi(__errorHandle));
} finally {
smokeErrorsinterfaceExternalerrorsReleaseFfiHandle(__errorHandle);
}
}
- _methodWithExternalErrorsReturnReleaseHandle(__callResultHandle);
+ _methodWithExternalErrorssmokeErrorsinterfaceMethodwithexternalerrorsReturnReleaseHandle(__callResultHandle);
}
@override
String methodWithErrorsAndReturnValue() {
final _methodWithErrorsAndReturnValueFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Pointer, Int32), Pointer Function(Pointer, int)>('library_smoke_ErrorsInterface_methodWithErrorsAndReturnValue'));
final _handle = this.handle;
final __callResultHandle = _methodWithErrorsAndReturnValueFfi(_handle, __lib.LibraryContext.isolateId);
- if (_methodWithErrorsAndReturnValueReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithErrorsAndReturnValueReturnGetError(__callResultHandle);
- _methodWithErrorsAndReturnValueReturnReleaseHandle(__callResultHandle);
+ if (_methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnGetError(__callResultHandle);
+ _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
throw ErrorsInterface_InternalException(smokeErrorsinterfaceInternalerrorFromFfi(__errorHandle));
} finally {
smokeErrorsinterfaceInternalerrorReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _methodWithErrorsAndReturnValueReturnGetResult(__callResultHandle);
- _methodWithErrorsAndReturnValueReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnGetResult(__callResultHandle);
+ _methodWithErrorsAndReturnValuesmokeErrorsinterfaceMethodwitherrorsandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
return stringFromFfi(__resultHandle);
} finally {
@@ -321,31 +318,31 @@ class ErrorsInterface$Impl extends __lib.NativeBase implements ErrorsInterface {
void methodWithPayloadError() {
final _methodWithPayloadErrorFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_ErrorsInterface_methodWithPayloadError'));
final __callResultHandle = _methodWithPayloadErrorFfi(__lib.LibraryContext.isolateId);
- if (_methodWithPayloadErrorReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithPayloadErrorReturnGetError(__callResultHandle);
- _methodWithPayloadErrorReturnReleaseHandle(__callResultHandle);
+ if (_methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnGetError(__callResultHandle);
+ _methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnReleaseHandle(__callResultHandle);
try {
throw WithPayloadException(smokePayloadFromFfi(__errorHandle));
} finally {
smokePayloadReleaseFfiHandle(__errorHandle);
}
}
- _methodWithPayloadErrorReturnReleaseHandle(__callResultHandle);
+ _methodWithPayloadErrorsmokeErrorsinterfaceMethodwithpayloaderrorReturnReleaseHandle(__callResultHandle);
}
String methodWithPayloadErrorAndReturnValue() {
final _methodWithPayloadErrorAndReturnValueFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction Function(Int32), Pointer Function(int)>('library_smoke_ErrorsInterface_methodWithPayloadErrorAndReturnValue'));
final __callResultHandle = _methodWithPayloadErrorAndReturnValueFfi(__lib.LibraryContext.isolateId);
- if (_methodWithPayloadErrorAndReturnValueReturnHasError(__callResultHandle) != 0) {
- final __errorHandle = _methodWithPayloadErrorAndReturnValueReturnGetError(__callResultHandle);
- _methodWithPayloadErrorAndReturnValueReturnReleaseHandle(__callResultHandle);
+ if (_methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnHasError(__callResultHandle) != 0) {
+ final __errorHandle = _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnGetError(__callResultHandle);
+ _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
throw WithPayloadException(smokePayloadFromFfi(__errorHandle));
} finally {
smokePayloadReleaseFfiHandle(__errorHandle);
}
}
- final __resultHandle = _methodWithPayloadErrorAndReturnValueReturnGetResult(__callResultHandle);
- _methodWithPayloadErrorAndReturnValueReturnReleaseHandle(__callResultHandle);
+ final __resultHandle = _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnGetResult(__callResultHandle);
+ _methodWithPayloadErrorAndReturnValuesmokeErrorsinterfaceMethodwithpayloaderrorandreturnvalueReturnReleaseHandle(__callResultHandle);
try {
return stringFromFfi(__resultHandle);
} finally {
@@ -426,4 +423,4 @@ ErrorsInterface? smokeErrorsinterfaceFromFfiNullable(Pointer handle) =>
handle.address != 0 ? smokeErrorsinterfaceFromFfi(handle) : null;
void smokeErrorsinterfaceReleaseFfiHandleNullable(Pointer handle) =>
_smokeErrorsinterfaceReleaseHandle(handle);
-// End of ErrorsInterface "private" section.
+// End of ErrorsInterface "private" section.
\ No newline at end of file
diff --git a/gluecodium/src/test/resources/smoke/escaped_names/output/dart/lib/src/package/class.dart b/gluecodium/src/test/resources/smoke/escaped_names/output/dart/lib/src/package/class.dart
index fbe858aaad..8e16822452 100644
--- a/gluecodium/src/test/resources/smoke/escaped_names/output/dart/lib/src/package/class.dart
+++ b/gluecodium/src/test/resources/smoke/escaped_names/output/dart/lib/src/package/class.dart
@@ -34,19 +34,19 @@ final _packageClassGetTypeId = __lib.catchArgumentError(() => __lib.nativeLibrar
Pointer Function(Pointer),
Pointer Function(Pointer)
>('library_package_Class_get_type_id'));
-final _funReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _funpackageClassFunListofPackageTypesStructReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Void Function(Pointer),
void Function(Pointer)
>('library_package_Class_fun__ListOf_package_Types_Struct_return_release_handle'));
-final _funReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
+final _funpackageClassFunListofPackageTypesStructReturnGetResult = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer Function(Pointer