{#/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */#} {%- call cs::method_throws_annotation(func.throws_type()) %} {%- match func.return_type() -%} {%- when Some with (return_type) %} public static {{ return_type|type_name }} {{ func.name()|fn_name }}({%- call cs::arg_list_decl(func) -%}) { return {{ return_type|lift_fn }}({% call cs::to_ffi_call(func) %}); } {% when None %} public static void {{ func.name()|fn_name }}({% call cs::arg_list_decl(func) %}) { {% call cs::to_ffi_call(func) %}; } {% endmatch %}