Skip to content

Commit

Permalink
regen tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen Arteca committed Sep 17, 2024
1 parent d8c04d6 commit c0de7cb
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class DataProvider internal constructor (
val handle = returnVal
val returnOpaque = DataProvider(handle, selfEdges)
CLEANER.register(returnOpaque, DataProvider.DataProviderCleaner(handle, DataProvider.lib));

return returnOpaque
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class FixedDecimal internal constructor (
val handle = returnVal
val returnOpaque = FixedDecimal(handle, selfEdges)
CLEANER.register(returnOpaque, FixedDecimal.FixedDecimalCleaner(handle, FixedDecimal.lib));

return returnOpaque
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class FixedDecimalFormatter internal constructor (
val handle = returnVal.union.ok
val returnOpaque = FixedDecimalFormatter(handle, selfEdges)
CLEANER.register(returnOpaque, FixedDecimalFormatter.FixedDecimalFormatterCleaner(handle, FixedDecimalFormatter.lib));

return returnOpaque.ok()
} else {
return Err(Unit)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tool/templates/kotlin/OpaqueReturn.kt.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ val returnOpaque = {{return_type_name}}(handle, selfEdges{%- if !borrows.is_empt
{%- if is_owned %}
{%- if !use_finalizers_not_cleaners %}
CLEANER.register(returnOpaque, {{return_type_name}}.{{return_type_name}}Cleaner(handle, {{return_type_name}}.lib));
{% endif -%}
{% else -%}
{% endif -%}
{% for cleanup in cleanups -%}
{%- endif %}
{%- else -%}
{%- endif %}
{%- for cleanup in cleanups %}
{{cleanup|indent(4)}}
{% endfor -%}
{%- endfor %}
return returnOpaque{{return_type_modifier}}
4 changes: 2 additions & 2 deletions tool/templates/kotlin/StructReturn.kt.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ listOf()
{%- endif %}
{%- endfor %}
val returnStruct = {{return_type_name}}({{val_name}}{% if !borrows.is_empty() %}{%- for borrow in borrows %}, {{borrow.lt}}Edges{%- endfor %}{% endif -%})
{% for cleanup in cleanups -%}
{%- for cleanup in cleanups %}
{{cleanup|indent(4)}}
{% endfor -%}
{%- endfor %}
return returnStruct{{return_type_modifier}}

0 comments on commit c0de7cb

Please sign in to comment.