blob: 0b4249fb1185669ed293db526d878c3487534b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{%- call kt::docstring_value(interface_docstring, 0) %}
public interface {{ interface_name }} {
{% for meth in methods.iter() -%}
{%- call kt::docstring(meth, 4) %}
{% if meth.is_async() -%}suspend {% endif -%}
fun {{ meth.name()|fn_name }}({% call kt::arg_list(meth, true) %})
{%- match meth.return_type() -%}
{%- when Some with (return_type) %}: {{ return_type|type_name(ci) -}}
{%- else -%}
{%- endmatch %}
{% endfor %}
companion object
}
|