Skip to content

Commit 5dae901

Browse files
committed
Supress some internal Kotlin functions
I've been seeing these in the generated docs and it's slightly confusing.
1 parent a4cbb09 commit 5dae901

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

uniffi_bindgen/src/bindings/kotlin/templates/ObjectTemplate.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,17 @@ open class {{ impl_class_name }}: Disposable, AutoCloseable, {{ interface_name }
121121
{%- endif %}
122122

123123
@Suppress("UNUSED_PARAMETER")
124+
/**
125+
* @suppress
126+
*/
124127
constructor(withHandle: UniffiWithHandle, handle: Long) {
125128
this.handle = handle
126129
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(handle))
127130
}
128131

129132
/**
133+
* @suppress
134+
*
130135
* This constructor can be used to instantiate a fake object. Only used for tests. Any
131136
* attempt to actually use an object constructed this way will fail as there is no
132137
* connected Rust object.
@@ -208,6 +213,9 @@ open class {{ impl_class_name }}: Disposable, AutoCloseable, {{ interface_name }
208213
}
209214
}
210215

216+
/**
217+
* @suppress
218+
*/
211219
fun uniffiCloneHandle(): Long {
212220
if (handle == 0.toLong()) {
213221
throw InternalException("uniffiCloneHandle() called on NoHandle object");
@@ -242,6 +250,9 @@ open class {{ impl_class_name }}: Disposable, AutoCloseable, {{ interface_name }
242250
}
243251
}
244252
{% else %}
253+
/**
254+
* @suppress
255+
*/
245256
companion object
246257
{% endif %}
247258
}

0 commit comments

Comments
 (0)