Bug 1859069 - Part 2: Generate JS bindings for the suggest component. r=lina

Depends on D191002

Differential Revision: https://phabricator.services.mozilla.com/D191003
This commit is contained in:
Drew Willcoxon 2023-10-14 00:37:12 +00:00
Родитель a0edb06288
Коммит 2c04bebc2e
13 изменённых файлов: 557 добавлений и 321 удалений

Просмотреть файл

@ -356,7 +356,7 @@ export class RemoteSettings {
throw e;
}
return UniFFIScaffolding.callSync(
23, // remote_settings:uniffi_remote_settings_fn_constructor_remotesettings_new
24, // remote_settings:uniffi_remote_settings_fn_constructor_remotesettings_new
FfiConverterTypeRemoteSettingsConfig.lower(remoteSettingsConfig),
)
}
@ -367,7 +367,7 @@ export class RemoteSettings {
const liftError = (data) => FfiConverterTypeRemoteSettingsError.lift(data);
const functionCall = () => {
return UniFFIScaffolding.callAsync(
24, // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records
25, // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records
FfiConverterTypeRemoteSettings.lower(this),
)
}
@ -391,7 +391,7 @@ export class RemoteSettings {
throw e;
}
return UniFFIScaffolding.callAsync(
25, // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records_since
26, // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records_since
FfiConverterTypeRemoteSettings.lower(this),
FfiConverterU64.lower(timestamp),
)
@ -424,7 +424,7 @@ export class RemoteSettings {
throw e;
}
return UniFFIScaffolding.callAsync(
26, // remote_settings:uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path
27, // remote_settings:uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path
FfiConverterTypeRemoteSettings.lower(this),
FfiConverterString.lower(attachmentId),
FfiConverterString.lower(path),

Просмотреть файл

@ -322,6 +322,25 @@ export class FfiConverterI64 extends FfiConverter {
}
}
// Export the FFIConverter object to make external types work.
export class FfiConverterF64 extends FfiConverter {
static computeSize() {
return 8;
}
static lift(value) {
return value;
}
static lower(value) {
return value;
}
static write(dataStream, value) {
dataStream.writeFloat64(value)
}
static read(dataStream) {
return dataStream.readFloat64()
}
}
// Export the FFIConverter object to make external types work.
export class FfiConverterBool extends FfiConverter {
static computeSize() {
@ -579,7 +598,7 @@ export class FfiConverterTypeSuggestIngestionConstraints extends FfiConverterArr
}
export class SuggestionQuery {
constructor(keyword,includeSponsored,includeNonSponsored) {
constructor(keyword,providers) {
try {
FfiConverterString.checkType(keyword)
} catch (e) {
@ -589,30 +608,20 @@ export class SuggestionQuery {
throw e;
}
try {
FfiConverterBool.checkType(includeSponsored)
FfiConverterSequenceTypeSuggestionProvider.checkType(providers)
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart("includeSponsored");
}
throw e;
}
try {
FfiConverterBool.checkType(includeNonSponsored)
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart("includeNonSponsored");
e.addItemDescriptionPart("providers");
}
throw e;
}
this.keyword = keyword;
this.includeSponsored = includeSponsored;
this.includeNonSponsored = includeNonSponsored;
this.providers = providers;
}
equals(other) {
return (
this.keyword == other.keyword &&
this.includeSponsored == other.includeSponsored &&
this.includeNonSponsored == other.includeNonSponsored
this.providers == other.providers
)
}
}
@ -622,21 +631,18 @@ export class FfiConverterTypeSuggestionQuery extends FfiConverterArrayBuffer {
static read(dataStream) {
return new SuggestionQuery(
FfiConverterString.read(dataStream),
FfiConverterBool.read(dataStream),
FfiConverterBool.read(dataStream)
FfiConverterSequenceTypeSuggestionProvider.read(dataStream)
);
}
static write(dataStream, value) {
FfiConverterString.write(dataStream, value.keyword);
FfiConverterBool.write(dataStream, value.includeSponsored);
FfiConverterBool.write(dataStream, value.includeNonSponsored);
FfiConverterSequenceTypeSuggestionProvider.write(dataStream, value.providers);
}
static computeSize(value) {
let totalSize = 0;
totalSize += FfiConverterString.computeSize(value.keyword);
totalSize += FfiConverterBool.computeSize(value.includeSponsored);
totalSize += FfiConverterBool.computeSize(value.includeNonSponsored);
totalSize += FfiConverterSequenceTypeSuggestionProvider.computeSize(value.providers);
return totalSize
}
@ -651,18 +657,10 @@ export class FfiConverterTypeSuggestionQuery extends FfiConverterArrayBuffer {
throw e;
}
try {
FfiConverterBool.checkType(value.includeSponsored);
FfiConverterSequenceTypeSuggestionProvider.checkType(value.providers);
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart(".includeSponsored");
}
throw e;
}
try {
FfiConverterBool.checkType(value.includeNonSponsored);
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart(".includeNonSponsored");
e.addItemDescriptionPart(".providers");
}
throw e;
}
@ -728,17 +726,20 @@ Suggestion.Amp = class extends Suggestion{
constructor(
title,
url,
rawUrl,
icon,
fullKeyword,
blockId,
advertiser,
iabCategory,
impressionUrl,
clickUrl
clickUrl,
rawClickUrl
) {
super();
this.title = title;
this.url = url;
this.rawUrl = rawUrl;
this.icon = icon;
this.fullKeyword = fullKeyword;
this.blockId = blockId;
@ -746,6 +747,21 @@ Suggestion.Amp = class extends Suggestion{
this.iabCategory = iabCategory;
this.impressionUrl = impressionUrl;
this.clickUrl = clickUrl;
this.rawClickUrl = rawClickUrl;
}
}
Suggestion.Pocket = class extends Suggestion{
constructor(
title,
url,
score,
isTopPick
) {
super();
this.title = title;
this.url = url;
this.score = score;
this.isTopPick = isTopPick;
}
}
Suggestion.Wikipedia = class extends Suggestion{
@ -762,6 +778,28 @@ Suggestion.Wikipedia = class extends Suggestion{
this.fullKeyword = fullKeyword;
}
}
Suggestion.Amo = class extends Suggestion{
constructor(
title,
url,
iconUrl,
description,
rating,
numberOfRatings,
guid,
score
) {
super();
this.title = title;
this.url = url;
this.iconUrl = iconUrl;
this.description = description;
this.rating = rating;
this.numberOfRatings = numberOfRatings;
this.guid = guid;
this.score = score;
}
}
// Export the FFIConverter object to make external types work.
export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
@ -769,6 +807,7 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
switch (dataStream.readInt32()) {
case 1:
return new Suggestion.Amp(
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterOptionalSequenceu8.read(dataStream),
@ -777,15 +816,34 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream)
);
case 2:
return new Suggestion.Pocket(
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterF64.read(dataStream),
FfiConverterBool.read(dataStream)
);
case 3:
return new Suggestion.Wikipedia(
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterOptionalSequenceu8.read(dataStream),
FfiConverterString.read(dataStream)
);
case 4:
return new Suggestion.Amo(
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterOptionalstring.read(dataStream),
FfiConverterI64.read(dataStream),
FfiConverterString.read(dataStream),
FfiConverterF64.read(dataStream)
);
default:
return new Error("Unknown Suggestion variant");
}
@ -796,6 +854,7 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
dataStream.writeInt32(1);
FfiConverterString.write(dataStream, value.title);
FfiConverterString.write(dataStream, value.url);
FfiConverterString.write(dataStream, value.rawUrl);
FfiConverterOptionalSequenceu8.write(dataStream, value.icon);
FfiConverterString.write(dataStream, value.fullKeyword);
FfiConverterI64.write(dataStream, value.blockId);
@ -803,16 +862,37 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
FfiConverterString.write(dataStream, value.iabCategory);
FfiConverterString.write(dataStream, value.impressionUrl);
FfiConverterString.write(dataStream, value.clickUrl);
FfiConverterString.write(dataStream, value.rawClickUrl);
return;
}
if (value instanceof Suggestion.Pocket) {
dataStream.writeInt32(2);
FfiConverterString.write(dataStream, value.title);
FfiConverterString.write(dataStream, value.url);
FfiConverterF64.write(dataStream, value.score);
FfiConverterBool.write(dataStream, value.isTopPick);
return;
}
if (value instanceof Suggestion.Wikipedia) {
dataStream.writeInt32(2);
dataStream.writeInt32(3);
FfiConverterString.write(dataStream, value.title);
FfiConverterString.write(dataStream, value.url);
FfiConverterOptionalSequenceu8.write(dataStream, value.icon);
FfiConverterString.write(dataStream, value.fullKeyword);
return;
}
if (value instanceof Suggestion.Amo) {
dataStream.writeInt32(4);
FfiConverterString.write(dataStream, value.title);
FfiConverterString.write(dataStream, value.url);
FfiConverterString.write(dataStream, value.iconUrl);
FfiConverterString.write(dataStream, value.description);
FfiConverterOptionalstring.write(dataStream, value.rating);
FfiConverterI64.write(dataStream, value.numberOfRatings);
FfiConverterString.write(dataStream, value.guid);
FfiConverterF64.write(dataStream, value.score);
return;
}
return new Error("Unknown Suggestion variant");
}
@ -822,6 +902,7 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
if (value instanceof Suggestion.Amp) {
totalSize += FfiConverterString.computeSize(value.title);
totalSize += FfiConverterString.computeSize(value.url);
totalSize += FfiConverterString.computeSize(value.rawUrl);
totalSize += FfiConverterOptionalSequenceu8.computeSize(value.icon);
totalSize += FfiConverterString.computeSize(value.fullKeyword);
totalSize += FfiConverterI64.computeSize(value.blockId);
@ -829,6 +910,14 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
totalSize += FfiConverterString.computeSize(value.iabCategory);
totalSize += FfiConverterString.computeSize(value.impressionUrl);
totalSize += FfiConverterString.computeSize(value.clickUrl);
totalSize += FfiConverterString.computeSize(value.rawClickUrl);
return totalSize;
}
if (value instanceof Suggestion.Pocket) {
totalSize += FfiConverterString.computeSize(value.title);
totalSize += FfiConverterString.computeSize(value.url);
totalSize += FfiConverterF64.computeSize(value.score);
totalSize += FfiConverterBool.computeSize(value.isTopPick);
return totalSize;
}
if (value instanceof Suggestion.Wikipedia) {
@ -838,6 +927,17 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
totalSize += FfiConverterString.computeSize(value.fullKeyword);
return totalSize;
}
if (value instanceof Suggestion.Amo) {
totalSize += FfiConverterString.computeSize(value.title);
totalSize += FfiConverterString.computeSize(value.url);
totalSize += FfiConverterString.computeSize(value.iconUrl);
totalSize += FfiConverterString.computeSize(value.description);
totalSize += FfiConverterOptionalstring.computeSize(value.rating);
totalSize += FfiConverterI64.computeSize(value.numberOfRatings);
totalSize += FfiConverterString.computeSize(value.guid);
totalSize += FfiConverterF64.computeSize(value.score);
return totalSize;
}
return new Error("Unknown Suggestion variant");
}
@ -852,7 +952,9 @@ export class FfiConverterTypeSuggestion extends FfiConverterArrayBuffer {
export const SuggestionProvider = {
AMP: 1,
WIKIPEDIA: 2,
POCKET: 2,
WIKIPEDIA: 3,
AMO: 4,
};
Object.freeze(SuggestionProvider);
@ -863,7 +965,11 @@ export class FfiConverterTypeSuggestionProvider extends FfiConverterArrayBuffer
case 1:
return SuggestionProvider.AMP
case 2:
return SuggestionProvider.POCKET
case 3:
return SuggestionProvider.WIKIPEDIA
case 4:
return SuggestionProvider.AMO
default:
return new Error("Unknown SuggestionProvider variant");
}
@ -874,10 +980,18 @@ export class FfiConverterTypeSuggestionProvider extends FfiConverterArrayBuffer
dataStream.writeInt32(1);
return;
}
if (value === SuggestionProvider.WIKIPEDIA) {
if (value === SuggestionProvider.POCKET) {
dataStream.writeInt32(2);
return;
}
if (value === SuggestionProvider.WIKIPEDIA) {
dataStream.writeInt32(3);
return;
}
if (value === SuggestionProvider.AMO) {
dataStream.writeInt32(4);
return;
}
return new Error("Unknown SuggestionProvider variant");
}
@ -886,7 +1000,7 @@ export class FfiConverterTypeSuggestionProvider extends FfiConverterArrayBuffer
}
static checkType(value) {
if (!Number.isInteger(value) || value < 1 || value > 2) {
if (!Number.isInteger(value) || value < 1 || value > 4) {
throw new UniFFITypeError(`${value} is not a valid value for SuggestionProvider`);
}
}
@ -930,6 +1044,43 @@ export class FfiConverterOptionalu64 extends FfiConverterArrayBuffer {
}
}
// Export the FFIConverter object to make external types work.
export class FfiConverterOptionalstring extends FfiConverterArrayBuffer {
static checkType(value) {
if (value !== undefined && value !== null) {
FfiConverterString.checkType(value)
}
}
static read(dataStream) {
const code = dataStream.readUint8(0);
switch (code) {
case 0:
return null
case 1:
return FfiConverterString.read(dataStream)
default:
throw UniFFIError(`Unexpected code: ${code}`);
}
}
static write(dataStream, value) {
if (value === null || value === undefined) {
dataStream.writeUint8(0);
return;
}
dataStream.writeUint8(1);
FfiConverterString.write(dataStream, value)
}
static computeSize(value) {
if (value === null || value === undefined) {
return 1;
}
return 1 + FfiConverterString.computeSize(value)
}
}
// Export the FFIConverter object to make external types work.
export class FfiConverterOptionalSequenceu8 extends FfiConverterArrayBuffer {
static checkType(value) {
@ -1092,6 +1243,50 @@ export class FfiConverterSequenceTypeSuggestion extends FfiConverterArrayBuffer
}
}
// Export the FFIConverter object to make external types work.
export class FfiConverterSequenceTypeSuggestionProvider extends FfiConverterArrayBuffer {
static read(dataStream) {
const len = dataStream.readInt32();
const arr = [];
for (let i = 0; i < len; i++) {
arr.push(FfiConverterTypeSuggestionProvider.read(dataStream));
}
return arr;
}
static write(dataStream, value) {
dataStream.writeInt32(value.length);
value.forEach((innerValue) => {
FfiConverterTypeSuggestionProvider.write(dataStream, innerValue);
})
}
static computeSize(value) {
// The size of the length
let size = 4;
for (const innerValue of value) {
size += FfiConverterTypeSuggestionProvider.computeSize(innerValue);
}
return size;
}
static checkType(value) {
if (!Array.isArray(value)) {
throw new UniFFITypeError(`${value} is not an array`);
}
value.forEach((innerValue, idx) => {
try {
FfiConverterTypeSuggestionProvider.checkType(innerValue);
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart(`[${idx}]`);
}
throw e;
}
})
}
}
import {
FfiConverterTypeRemoteSettingsConfig,
RemoteSettingsConfig,
@ -1103,3 +1298,33 @@ export { FfiConverterTypeRemoteSettingsConfig, RemoteSettingsConfig };
export function rawSuggestionUrlMatches(rawUrl,url) {
const liftResult = (result) => FfiConverterBool.lift(result);
const liftError = null;
const functionCall = () => {
try {
FfiConverterString.checkType(rawUrl)
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart("rawUrl");
}
throw e;
}
try {
FfiConverterString.checkType(url)
} catch (e) {
if (e instanceof UniFFITypeError) {
e.addItemDescriptionPart("url");
}
throw e;
}
return UniFFIScaffolding.callSync(
23, // suggest:uniffi_suggest_fn_func_raw_suggestion_url_matches
FfiConverterString.lower(rawUrl),
FfiConverterString.lower(url),
)
}
return handleRustResult(functionCall(), liftResult, liftError);
}

Просмотреть файл

@ -13,6 +13,7 @@ main = [
[suggest.receiver_thread]
default = "worker"
main = [
"raw_suggestion_url_matches",
"SuggestStore",
"SuggestStore.interrupt",
]

Просмотреть файл

@ -377,7 +377,7 @@ export function add(a,b) {
throw e;
}
return UniFFIScaffolding.callAsync(
29, // arithmetic:uniffi_arithmetic_fn_func_add
30, // arithmetic:uniffi_arithmetic_fn_func_add
FfiConverterU64.lower(a),
FfiConverterU64.lower(b),
)
@ -411,7 +411,7 @@ export function sub(a,b) {
throw e;
}
return UniFFIScaffolding.callAsync(
30, // arithmetic:uniffi_arithmetic_fn_func_sub
31, // arithmetic:uniffi_arithmetic_fn_func_sub
FfiConverterU64.lower(a),
FfiConverterU64.lower(b),
)
@ -445,7 +445,7 @@ export function div(dividend,divisor) {
throw e;
}
return UniFFIScaffolding.callAsync(
31, // arithmetic:uniffi_arithmetic_fn_func_div
32, // arithmetic:uniffi_arithmetic_fn_func_div
FfiConverterU64.lower(dividend),
FfiConverterU64.lower(divisor),
)
@ -479,7 +479,7 @@ export function equal(a,b) {
throw e;
}
return UniFFIScaffolding.callAsync(
32, // arithmetic:uniffi_arithmetic_fn_func_equal
33, // arithmetic:uniffi_arithmetic_fn_func_equal
FfiConverterU64.lower(a),
FfiConverterU64.lower(b),
)

Просмотреть файл

@ -452,7 +452,7 @@ export function getCustomTypesDemo(demo) {
throw e;
}
return UniFFIScaffolding.callAsync(
116, // custom_types:uniffi_custom_types_fn_func_get_custom_types_demo
117, // custom_types:uniffi_custom_types_fn_func_get_custom_types_demo
FfiConverterOptionalTypeCustomTypesDemo.lower(demo),
)
}

Просмотреть файл

@ -344,7 +344,7 @@ export function gradient(value) {
throw e;
}
return UniFFIScaffolding.callAsync(
117, // external_types:uniffi_external_types_fn_func_gradient
118, // external_types:uniffi_external_types_fn_func_gradient
FfiConverterOptionalTypeLine.lower(value),
)
}

Просмотреть файл

@ -596,7 +596,7 @@ export function logEvenNumbers(logger,items) {
throw e;
}
return UniFFIScaffolding.callAsync(
114, // fixture_callbacks:uniffi_fixture_callbacks_fn_func_log_even_numbers
115, // fixture_callbacks:uniffi_fixture_callbacks_fn_func_log_even_numbers
FfiConverterCallbackInterfaceLogger.lower(logger),
FfiConverterSequencei32.lower(items),
)
@ -630,7 +630,7 @@ export function logEvenNumbersMainThread(logger,items) {
throw e;
}
return UniFFIScaffolding.callSync(
115, // fixture_callbacks:uniffi_fixture_callbacks_fn_func_log_even_numbers_main_thread
116, // fixture_callbacks:uniffi_fixture_callbacks_fn_func_log_even_numbers_main_thread
FfiConverterCallbackInterfaceLogger.lower(logger),
FfiConverterSequencei32.lower(items),
)

Просмотреть файл

@ -468,7 +468,7 @@ export function gradient(ln) {
throw e;
}
return UniFFIScaffolding.callAsync(
27, // geometry:uniffi_geometry_fn_func_gradient
28, // geometry:uniffi_geometry_fn_func_gradient
FfiConverterTypeLine.lower(ln),
)
}
@ -501,7 +501,7 @@ export function intersection(ln1,ln2) {
throw e;
}
return UniFFIScaffolding.callAsync(
28, // geometry:uniffi_geometry_fn_func_intersection
29, // geometry:uniffi_geometry_fn_func_intersection
FfiConverterTypeLine.lower(ln1),
FfiConverterTypeLine.lower(ln2),
)

Просмотреть файл

@ -620,7 +620,7 @@ export class Optionneur {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
62, // rondpoint:uniffi_rondpoint_fn_constructor_optionneur_new
63, // rondpoint:uniffi_rondpoint_fn_constructor_optionneur_new
)
}
try {
@ -642,7 +642,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
63, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_boolean
64, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_boolean
FfiConverterTypeOptionneur.lower(this),
FfiConverterBool.lower(value),
)
@ -667,7 +667,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
64, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_string
65, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_string
FfiConverterTypeOptionneur.lower(this),
FfiConverterString.lower(value),
)
@ -692,7 +692,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
65, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_sequence
66, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_sequence
FfiConverterTypeOptionneur.lower(this),
FfiConverterSequencestring.lower(value),
)
@ -717,7 +717,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
66, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_null
67, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_null
FfiConverterTypeOptionneur.lower(this),
FfiConverterOptionalstring.lower(value),
)
@ -742,7 +742,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
67, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_zero
68, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_zero
FfiConverterTypeOptionneur.lower(this),
FfiConverterOptionali32.lower(value),
)
@ -767,7 +767,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
68, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u8_dec
69, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u8_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterU8.lower(value),
)
@ -792,7 +792,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
69, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i8_dec
70, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i8_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterI8.lower(value),
)
@ -817,7 +817,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
70, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u16_dec
71, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u16_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterU16.lower(value),
)
@ -842,7 +842,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
71, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i16_dec
72, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i16_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterI16.lower(value),
)
@ -867,7 +867,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
72, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u32_dec
73, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u32_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterU32.lower(value),
)
@ -892,7 +892,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
73, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i32_dec
74, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i32_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterI32.lower(value),
)
@ -917,7 +917,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
74, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u64_dec
75, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u64_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterU64.lower(value),
)
@ -942,7 +942,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
75, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i64_dec
76, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i64_dec
FfiConverterTypeOptionneur.lower(this),
FfiConverterI64.lower(value),
)
@ -967,7 +967,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
76, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u8_hex
77, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u8_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterU8.lower(value),
)
@ -992,7 +992,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
77, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i8_hex
78, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i8_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterI8.lower(value),
)
@ -1017,7 +1017,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
78, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u16_hex
79, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u16_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterU16.lower(value),
)
@ -1042,7 +1042,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
79, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i16_hex
80, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i16_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterI16.lower(value),
)
@ -1067,7 +1067,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
80, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u32_hex
81, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u32_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterU32.lower(value),
)
@ -1092,7 +1092,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
81, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i32_hex
82, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i32_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterI32.lower(value),
)
@ -1117,7 +1117,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
82, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u64_hex
83, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u64_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterU64.lower(value),
)
@ -1142,7 +1142,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
83, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i64_hex
84, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_i64_hex
FfiConverterTypeOptionneur.lower(this),
FfiConverterI64.lower(value),
)
@ -1167,7 +1167,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
84, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u32_oct
85, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_u32_oct
FfiConverterTypeOptionneur.lower(this),
FfiConverterU32.lower(value),
)
@ -1192,7 +1192,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
85, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_f32
86, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_f32
FfiConverterTypeOptionneur.lower(this),
FfiConverterF32.lower(value),
)
@ -1217,7 +1217,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
86, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_f64
87, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_f64
FfiConverterTypeOptionneur.lower(this),
FfiConverterF64.lower(value),
)
@ -1242,7 +1242,7 @@ export class Optionneur {
throw e;
}
return UniFFIScaffolding.callAsync(
87, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_enum
88, // rondpoint:uniffi_rondpoint_fn_method_optionneur_sinon_enum
FfiConverterTypeOptionneur.lower(this),
FfiConverterTypeEnumeration.lower(value),
)
@ -1305,7 +1305,7 @@ export class Retourneur {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
33, // rondpoint:uniffi_rondpoint_fn_constructor_retourneur_new
34, // rondpoint:uniffi_rondpoint_fn_constructor_retourneur_new
)
}
try {
@ -1327,7 +1327,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
34, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i8
35, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i8
FfiConverterTypeRetourneur.lower(this),
FfiConverterI8.lower(value),
)
@ -1352,7 +1352,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
35, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u8
36, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u8
FfiConverterTypeRetourneur.lower(this),
FfiConverterU8.lower(value),
)
@ -1377,7 +1377,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
36, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i16
37, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i16
FfiConverterTypeRetourneur.lower(this),
FfiConverterI16.lower(value),
)
@ -1402,7 +1402,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
37, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u16
38, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u16
FfiConverterTypeRetourneur.lower(this),
FfiConverterU16.lower(value),
)
@ -1427,7 +1427,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
38, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i32
39, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i32
FfiConverterTypeRetourneur.lower(this),
FfiConverterI32.lower(value),
)
@ -1452,7 +1452,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
39, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u32
40, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u32
FfiConverterTypeRetourneur.lower(this),
FfiConverterU32.lower(value),
)
@ -1477,7 +1477,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
40, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i64
41, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_i64
FfiConverterTypeRetourneur.lower(this),
FfiConverterI64.lower(value),
)
@ -1502,7 +1502,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
41, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u64
42, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_u64
FfiConverterTypeRetourneur.lower(this),
FfiConverterU64.lower(value),
)
@ -1527,7 +1527,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
42, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_float
43, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_float
FfiConverterTypeRetourneur.lower(this),
FfiConverterF32.lower(value),
)
@ -1552,7 +1552,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
43, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_double
44, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_double
FfiConverterTypeRetourneur.lower(this),
FfiConverterF64.lower(value),
)
@ -1577,7 +1577,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
44, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_boolean
45, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_boolean
FfiConverterTypeRetourneur.lower(this),
FfiConverterBool.lower(value),
)
@ -1602,7 +1602,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
45, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_string
46, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_string
FfiConverterTypeRetourneur.lower(this),
FfiConverterString.lower(value),
)
@ -1627,7 +1627,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
46, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_nombres_signes
47, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_nombres_signes
FfiConverterTypeRetourneur.lower(this),
FfiConverterTypeDictionnaireNombresSignes.lower(value),
)
@ -1652,7 +1652,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
47, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_nombres
48, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_nombres
FfiConverterTypeRetourneur.lower(this),
FfiConverterTypeDictionnaireNombres.lower(value),
)
@ -1677,7 +1677,7 @@ export class Retourneur {
throw e;
}
return UniFFIScaffolding.callAsync(
48, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_optionneur_dictionnaire
49, // rondpoint:uniffi_rondpoint_fn_method_retourneur_identique_optionneur_dictionnaire
FfiConverterTypeRetourneur.lower(this),
FfiConverterTypeOptionneurDictionnaire.lower(value),
)
@ -1740,7 +1740,7 @@ export class Stringifier {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
49, // rondpoint:uniffi_rondpoint_fn_constructor_stringifier_new
50, // rondpoint:uniffi_rondpoint_fn_constructor_stringifier_new
)
}
try {
@ -1762,7 +1762,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
50, // rondpoint:uniffi_rondpoint_fn_method_stringifier_well_known_string
51, // rondpoint:uniffi_rondpoint_fn_method_stringifier_well_known_string
FfiConverterTypeStringifier.lower(this),
FfiConverterString.lower(value),
)
@ -1787,7 +1787,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
51, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i8
52, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i8
FfiConverterTypeStringifier.lower(this),
FfiConverterI8.lower(value),
)
@ -1812,7 +1812,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
52, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u8
53, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u8
FfiConverterTypeStringifier.lower(this),
FfiConverterU8.lower(value),
)
@ -1837,7 +1837,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
53, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i16
54, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i16
FfiConverterTypeStringifier.lower(this),
FfiConverterI16.lower(value),
)
@ -1862,7 +1862,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
54, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u16
55, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u16
FfiConverterTypeStringifier.lower(this),
FfiConverterU16.lower(value),
)
@ -1887,7 +1887,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
55, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i32
56, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i32
FfiConverterTypeStringifier.lower(this),
FfiConverterI32.lower(value),
)
@ -1912,7 +1912,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
56, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u32
57, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u32
FfiConverterTypeStringifier.lower(this),
FfiConverterU32.lower(value),
)
@ -1937,7 +1937,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
57, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i64
58, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_i64
FfiConverterTypeStringifier.lower(this),
FfiConverterI64.lower(value),
)
@ -1962,7 +1962,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
58, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u64
59, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_u64
FfiConverterTypeStringifier.lower(this),
FfiConverterU64.lower(value),
)
@ -1987,7 +1987,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
59, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_float
60, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_float
FfiConverterTypeStringifier.lower(this),
FfiConverterF32.lower(value),
)
@ -2012,7 +2012,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
60, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_double
61, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_double
FfiConverterTypeStringifier.lower(this),
FfiConverterF64.lower(value),
)
@ -2037,7 +2037,7 @@ export class Stringifier {
throw e;
}
return UniFFIScaffolding.callAsync(
61, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_boolean
62, // rondpoint:uniffi_rondpoint_fn_method_stringifier_to_string_boolean
FfiConverterTypeStringifier.lower(this),
FfiConverterBool.lower(value),
)
@ -3257,7 +3257,7 @@ export function copieDictionnaire(d) {
throw e;
}
return UniFFIScaffolding.callAsync(
88, // rondpoint:uniffi_rondpoint_fn_func_copie_dictionnaire
89, // rondpoint:uniffi_rondpoint_fn_func_copie_dictionnaire
FfiConverterTypeDictionnaire.lower(d),
)
}
@ -3282,7 +3282,7 @@ export function copieEnumeration(e) {
throw e;
}
return UniFFIScaffolding.callAsync(
89, // rondpoint:uniffi_rondpoint_fn_func_copie_enumeration
90, // rondpoint:uniffi_rondpoint_fn_func_copie_enumeration
FfiConverterTypeEnumeration.lower(e),
)
}
@ -3307,7 +3307,7 @@ export function copieEnumerations(e) {
throw e;
}
return UniFFIScaffolding.callAsync(
90, // rondpoint:uniffi_rondpoint_fn_func_copie_enumerations
91, // rondpoint:uniffi_rondpoint_fn_func_copie_enumerations
FfiConverterSequenceTypeEnumeration.lower(e),
)
}
@ -3332,7 +3332,7 @@ export function copieCarte(c) {
throw e;
}
return UniFFIScaffolding.callAsync(
91, // rondpoint:uniffi_rondpoint_fn_func_copie_carte
92, // rondpoint:uniffi_rondpoint_fn_func_copie_carte
FfiConverterMapStringTypeEnumerationAvecDonnees.lower(c),
)
}
@ -3357,7 +3357,7 @@ export function switcheroo(b) {
throw e;
}
return UniFFIScaffolding.callAsync(
92, // rondpoint:uniffi_rondpoint_fn_func_switcheroo
93, // rondpoint:uniffi_rondpoint_fn_func_switcheroo
FfiConverterBool.lower(b),
)
}

Просмотреть файл

@ -325,7 +325,7 @@ export class Sprite {
throw e;
}
return UniFFIScaffolding.callAsync(
93, // sprites:uniffi_sprites_fn_constructor_sprite_new
94, // sprites:uniffi_sprites_fn_constructor_sprite_new
FfiConverterOptionalTypePoint.lower(initialPosition),
)
}
@ -361,7 +361,7 @@ export class Sprite {
throw e;
}
return UniFFIScaffolding.callAsync(
94, // sprites:uniffi_sprites_fn_constructor_sprite_new_relative_to
95, // sprites:uniffi_sprites_fn_constructor_sprite_new_relative_to
FfiConverterTypePoint.lower(reference),
FfiConverterTypeVector.lower(direction),
)
@ -377,7 +377,7 @@ export class Sprite {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
95, // sprites:uniffi_sprites_fn_method_sprite_get_position
96, // sprites:uniffi_sprites_fn_method_sprite_get_position
FfiConverterTypeSprite.lower(this),
)
}
@ -401,7 +401,7 @@ export class Sprite {
throw e;
}
return UniFFIScaffolding.callAsync(
96, // sprites:uniffi_sprites_fn_method_sprite_move_to
97, // sprites:uniffi_sprites_fn_method_sprite_move_to
FfiConverterTypeSprite.lower(this),
FfiConverterTypePoint.lower(position),
)
@ -426,7 +426,7 @@ export class Sprite {
throw e;
}
return UniFFIScaffolding.callAsync(
97, // sprites:uniffi_sprites_fn_method_sprite_move_by
98, // sprites:uniffi_sprites_fn_method_sprite_move_by
FfiConverterTypeSprite.lower(this),
FfiConverterTypeVector.lower(direction),
)
@ -668,7 +668,7 @@ export function translate(position,direction) {
throw e;
}
return UniFFIScaffolding.callAsync(
98, // sprites:uniffi_sprites_fn_func_translate
99, // sprites:uniffi_sprites_fn_func_translate
FfiConverterTypePoint.lower(position),
FfiConverterTypeVector.lower(direction),
)

Просмотреть файл

@ -298,7 +298,7 @@ export class TodoList {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
99, // todolist:uniffi_todolist_fn_constructor_todolist_new
100, // todolist:uniffi_todolist_fn_constructor_todolist_new
)
}
try {
@ -320,7 +320,7 @@ export class TodoList {
throw e;
}
return UniFFIScaffolding.callAsync(
100, // todolist:uniffi_todolist_fn_method_todolist_add_item
101, // todolist:uniffi_todolist_fn_method_todolist_add_item
FfiConverterTypeTodoList.lower(this),
FfiConverterString.lower(todo),
)
@ -345,7 +345,7 @@ export class TodoList {
throw e;
}
return UniFFIScaffolding.callAsync(
101, // todolist:uniffi_todolist_fn_method_todolist_add_entry
102, // todolist:uniffi_todolist_fn_method_todolist_add_entry
FfiConverterTypeTodoList.lower(this),
FfiConverterTypeTodoEntry.lower(entry),
)
@ -362,7 +362,7 @@ export class TodoList {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
102, // todolist:uniffi_todolist_fn_method_todolist_get_entries
103, // todolist:uniffi_todolist_fn_method_todolist_get_entries
FfiConverterTypeTodoList.lower(this),
)
}
@ -378,7 +378,7 @@ export class TodoList {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
103, // todolist:uniffi_todolist_fn_method_todolist_get_items
104, // todolist:uniffi_todolist_fn_method_todolist_get_items
FfiConverterTypeTodoList.lower(this),
)
}
@ -402,7 +402,7 @@ export class TodoList {
throw e;
}
return UniFFIScaffolding.callAsync(
104, // todolist:uniffi_todolist_fn_method_todolist_add_entries
105, // todolist:uniffi_todolist_fn_method_todolist_add_entries
FfiConverterTypeTodoList.lower(this),
FfiConverterSequenceTypeTodoEntry.lower(entries),
)
@ -427,7 +427,7 @@ export class TodoList {
throw e;
}
return UniFFIScaffolding.callAsync(
105, // todolist:uniffi_todolist_fn_method_todolist_add_items
106, // todolist:uniffi_todolist_fn_method_todolist_add_items
FfiConverterTypeTodoList.lower(this),
FfiConverterSequencestring.lower(items),
)
@ -444,7 +444,7 @@ export class TodoList {
const liftError = (data) => FfiConverterTypeTodoError.lift(data);
const functionCall = () => {
return UniFFIScaffolding.callAsync(
106, // todolist:uniffi_todolist_fn_method_todolist_get_last_entry
107, // todolist:uniffi_todolist_fn_method_todolist_get_last_entry
FfiConverterTypeTodoList.lower(this),
)
}
@ -460,7 +460,7 @@ export class TodoList {
const liftError = (data) => FfiConverterTypeTodoError.lift(data);
const functionCall = () => {
return UniFFIScaffolding.callAsync(
107, // todolist:uniffi_todolist_fn_method_todolist_get_last
108, // todolist:uniffi_todolist_fn_method_todolist_get_last
FfiConverterTypeTodoList.lower(this),
)
}
@ -476,7 +476,7 @@ export class TodoList {
const liftError = (data) => FfiConverterTypeTodoError.lift(data);
const functionCall = () => {
return UniFFIScaffolding.callAsync(
108, // todolist:uniffi_todolist_fn_method_todolist_get_first
109, // todolist:uniffi_todolist_fn_method_todolist_get_first
FfiConverterTypeTodoList.lower(this),
)
}
@ -500,7 +500,7 @@ export class TodoList {
throw e;
}
return UniFFIScaffolding.callAsync(
109, // todolist:uniffi_todolist_fn_method_todolist_clear_item
110, // todolist:uniffi_todolist_fn_method_todolist_clear_item
FfiConverterTypeTodoList.lower(this),
FfiConverterString.lower(todo),
)
@ -517,7 +517,7 @@ export class TodoList {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
110, // todolist:uniffi_todolist_fn_method_todolist_make_default
111, // todolist:uniffi_todolist_fn_method_todolist_make_default
FfiConverterTypeTodoList.lower(this),
)
}
@ -865,7 +865,7 @@ export function getDefaultList() {
const liftError = null;
const functionCall = () => {
return UniFFIScaffolding.callAsync(
111, // todolist:uniffi_todolist_fn_func_get_default_list
112, // todolist:uniffi_todolist_fn_func_get_default_list
)
}
try {
@ -889,7 +889,7 @@ export function setDefaultList(list) {
throw e;
}
return UniFFIScaffolding.callAsync(
112, // todolist:uniffi_todolist_fn_func_set_default_list
113, // todolist:uniffi_todolist_fn_func_set_default_list
FfiConverterTypeTodoList.lower(list),
)
}
@ -914,7 +914,7 @@ export function createEntryWith(todo) {
throw e;
}
return UniFFIScaffolding.callAsync(
113, // todolist:uniffi_todolist_fn_func_create_entry_with
114, // todolist:uniffi_todolist_fn_func_create_entry_with
FfiConverterString.lower(todo),
)
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -50,6 +50,7 @@ extern "C" {
void uniffi_suggest_fn_method_suggeststore_interrupt(void *, RustCallStatus*);
void uniffi_suggest_fn_method_suggeststore_ingest(void *, RustBuffer, RustCallStatus*);
void uniffi_suggest_fn_method_suggeststore_clear(void *, RustCallStatus*);
int8_t uniffi_suggest_fn_func_raw_suggestion_url_matches(RustBuffer, RustBuffer, RustCallStatus*);
void uniffi_remote_settings_fn_free_remotesettings(void *, RustCallStatus*);
void * uniffi_remote_settings_fn_constructor_remotesettings_new(RustBuffer, RustCallStatus*);
RustBuffer uniffi_remote_settings_fn_method_remotesettings_get_records(void *, RustCallStatus*);
@ -180,19 +181,23 @@ Maybe<already_AddRefed<Promise>> UniFFICallAsync(const GlobalObject& aGlobal, ui
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kSuggestSuggestStorePointerType>>;
return Some(CallHandler::CallAsync(uniffi_suggest_fn_method_suggeststore_clear, aGlobal, aArgs, "uniffi_suggest_fn_method_suggeststore_clear: "_ns, aError));
}
case 23: { // remote_settings:uniffi_remote_settings_fn_constructor_remotesettings_new
case 23: { // suggest:uniffi_suggest_fn_func_raw_suggestion_url_matches
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<int8_t>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(uniffi_suggest_fn_func_raw_suggestion_url_matches, aGlobal, aArgs, "uniffi_suggest_fn_func_raw_suggestion_url_matches: "_ns, aError));
}
case 24: { // remote_settings:uniffi_remote_settings_fn_constructor_remotesettings_new
using CallHandler = ScaffoldingCallHandler<ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(uniffi_remote_settings_fn_constructor_remotesettings_new, aGlobal, aArgs, "uniffi_remote_settings_fn_constructor_remotesettings_new: "_ns, aError));
}
case 24: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records
case 25: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>>;
return Some(CallHandler::CallAsync(uniffi_remote_settings_fn_method_remotesettings_get_records, aGlobal, aArgs, "uniffi_remote_settings_fn_method_remotesettings_get_records: "_ns, aError));
}
case 25: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records_since
case 26: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records_since
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>, ScaffoldingConverter<uint64_t>>;
return Some(CallHandler::CallAsync(uniffi_remote_settings_fn_method_remotesettings_get_records_since, aGlobal, aArgs, "uniffi_remote_settings_fn_method_remotesettings_get_records_since: "_ns, aError));
}
case 26: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path
case 27: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path, aGlobal, aArgs, "uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path: "_ns, aError));
}
@ -317,22 +322,27 @@ bool UniFFICallSync(const GlobalObject& aGlobal, uint64_t aId, const Sequence<Sc
CallHandler::CallSync(uniffi_suggest_fn_method_suggeststore_clear, aGlobal, aArgs, aReturnValue, "uniffi_suggest_fn_method_suggeststore_clear: "_ns, aError);
return true;
}
case 23: { // remote_settings:uniffi_remote_settings_fn_constructor_remotesettings_new
case 23: { // suggest:uniffi_suggest_fn_func_raw_suggestion_url_matches
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<int8_t>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(uniffi_suggest_fn_func_raw_suggestion_url_matches, aGlobal, aArgs, aReturnValue, "uniffi_suggest_fn_func_raw_suggestion_url_matches: "_ns, aError);
return true;
}
case 24: { // remote_settings:uniffi_remote_settings_fn_constructor_remotesettings_new
using CallHandler = ScaffoldingCallHandler<ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(uniffi_remote_settings_fn_constructor_remotesettings_new, aGlobal, aArgs, aReturnValue, "uniffi_remote_settings_fn_constructor_remotesettings_new: "_ns, aError);
return true;
}
case 24: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records
case 25: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>>;
CallHandler::CallSync(uniffi_remote_settings_fn_method_remotesettings_get_records, aGlobal, aArgs, aReturnValue, "uniffi_remote_settings_fn_method_remotesettings_get_records: "_ns, aError);
return true;
}
case 25: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records_since
case 26: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_get_records_since
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>, ScaffoldingConverter<uint64_t>>;
CallHandler::CallSync(uniffi_remote_settings_fn_method_remotesettings_get_records_since, aGlobal, aArgs, aReturnValue, "uniffi_remote_settings_fn_method_remotesettings_get_records_since: "_ns, aError);
return true;
}
case 26: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path
case 27: { // remote_settings:uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kRemoteSettingsRemoteSettingsPointerType>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path, aGlobal, aArgs, aReturnValue, "uniffi_remote_settings_fn_method_remotesettings_download_attachment_to_path: "_ns, aError);
return true;