Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const {{ decl_type_name }} = (() => {
*/
readonly [variantOrdinalSymbol] = {{ loop.index }};

public readonly tag = {{ type_name__Tags }}.{{ variant|variant_name }};
readonly tag = {{ type_name__Tags }}.{{ variant|variant_name }};

constructor(message: string) {
super("{{ type_name }}", "{{ variant_name }}", message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ export class {{ impl_class_name }} extends UniffiAbstractObject implements {{ pr
{%- call private_ctor() %}

// Async primary constructor declared for this class.
{%- call ts::method_decl("public static", obj_factory, cons, 4) %}
{%- call ts::method_decl("static", obj_factory, cons, 4) %}
{%- endif %}
{%- when None %}
// No primary constructor declared for this class.
{%- call private_ctor() %}
{%- endmatch %}

{% for cons in obj.alternate_constructors() %}
{%- call ts::method_decl("public static", obj_factory, cons, 4) %}
{%- call ts::method_decl("static", obj_factory, cons, 4) %}
{% endfor %}

{% for meth in obj.methods() -%}
{%- call ts::method_decl("public", obj_factory, meth, 4) %}
{%- call ts::method_decl("", obj_factory, meth, 4) %}
{% endfor %}

{%- for tm in obj.uniffi_traits() %}
Expand Down