{{!
    Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
    See https://llvm.org/LICENSE.txt for license information.
    SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
    
    This file defines templates for generating comments
}}
{{#BriefComments}}
<div>
{{#.}}
    <p>{{TextComment}}</p>
{{/.}}
</div>
{{/BriefComments}}
{{#ParagraphComments}}
<div>
{{#.}}
    <p>{{TextComment}}</p>
{{/.}}
</div>
{{/ParagraphComments}}
{{#ParagraphComment}}
{{#Children}}
{{TextComment}}
{{/Children}}
{{/ParagraphComment}}
{{#HasParamComments}}
<h3>Parameters</h3>
{{#ParamComments}}
<div>
    <b>{{ParamName}}</b> {{#Explicit}}{{Direction}}{{/Explicit}} {{#Children}}{{TextComment}}{{/Children}}
</div> 
{{/ParamComments}}
{{/HasParamComments}}
{{#HasReturnComments}}
<h3>Returns</h3>
{{#ReturnComments}}
{{#.}}
<p>{{TextComment}}</p>
{{/.}}
{{/ReturnComments}}
{{/HasReturnComments}}
{{#HasCodeComments}}
<h3>Code</h3> 
{{#CodeComments}}
<div>
    <pre class="code-block">
        <code>
        {{#.}}
            {{.}}
        {{/.}}
        </code>
    </pre>
</div>
{{/CodeComments}}
{{/HasCodeComments}}
{{#HasThrowsComments}}
<h3>Throws</h3>
{{#ThrowsComments}}
<div>
    <b>{{Exception}}</b> {{#Children}}{{TextComment}}{{/Children}}
</div>
{{/ThrowsComments}}
{{/HasThrowsComments}}
{{#BlockCommandComment}}
    <div class="block-command-comment__command">
        <div class="block-command-command">
            {{Command}}
        </div>
        <div>
            {{#Children}}
                {{>Comments}}
            {{/Children}}
        </div>
    </div>
{{/BlockCommandComment}}
