From 46a30559cade06edd7bf56c7053c776061bda071 Mon Sep 17 00:00:00 2001 From: Ming Li Date: Sat, 5 Aug 2023 00:06:23 +0200 Subject: [PATCH] Add missing DartLambdaDocs.mustache file used by DartFunctionDocs.mustache --- .../templates/dart/DartLambdaDocs.mustache | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 gluecodium/src/main/resources/templates/dart/DartLambdaDocs.mustache diff --git a/gluecodium/src/main/resources/templates/dart/DartLambdaDocs.mustache b/gluecodium/src/main/resources/templates/dart/DartLambdaDocs.mustache new file mode 100644 index 0000000000..93fb92f7a4 --- /dev/null +++ b/gluecodium/src/main/resources/templates/dart/DartLambdaDocs.mustache @@ -0,0 +1,37 @@ +{{!! + ! + ! Copyright (C) 2016-2020 HERE Europe B.V. + ! + ! Licensed under the Apache License, Version 2.0 (the "License"); + ! you may not use this file except in compliance with the License. + ! You may obtain a copy of the License at + ! + ! http://www.apache.org/licenses/LICENSE-2.0 + ! + ! Unless required by applicable law or agreed to in writing, software + ! distributed under the License is distributed on an "AS IS" BASIS, + ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ! See the License for the specific language governing permissions and + ! limitations under the License. + ! + ! SPDX-License-Identifier: Apache-2.0 + ! License-Filename: LICENSE + ! + !}} +{{#resolveName comment}}{{#unless this.isEmpty}}{{prefix this "/// "}} +///{{/unless}}{{/resolveName}}{{!! +}}{{#parameters}}{{#set self=this}}{{#resolveName comment}}{{#unless this.isEmpty}} +/// [{{resolveName self}}] {{prefix this "/// " skipFirstLine=true}} +///{{/unless}}{{/resolveName}}{{/set}}{{/parameters}}{{!! +}}{{#resolveName returnType.comment}}{{#unless this.isEmpty}} +/// Returns [{{resolveName returnType.typeRef}}]. {{prefix this "/// " skipFirstLine=true}} +///{{/unless}}{{/resolveName}}{{!! +}}{{#if thrownType}}{{#resolveName thrownType.comment}}{{#unless this.isEmpty}} +/// Throws [{{resolveName exception}}]. {{prefix this "/// " skipFirstLine=true}} +///{{/unless}}{{/resolveName}}{{/if}}{{!! +}}{{#ifPredicate "needsNoDoc"}} +/// @nodoc{{/ifPredicate}}{{!! +}}{{#if attributes.deprecated}} +@Deprecated("{{#resolveName attributes.deprecated.message}}{{escape this}}{{/resolveName}}") +{{/if}}{{!! +}} \ No newline at end of file