<ol>
  {{ #container }}

    {{ #isClassOrEnum }}
      {{ #hasPublicConstructors }}
        <li class="section-title"><a href="{{{ href }}}#constructors">Constructors</a></li>
        {{ #publicConstructorsSorted }}
          <li><a{{ #isDeprecated }} class="deprecated"{{ /isDeprecated }} href="{{{ href }}}">{{ shortName }}</a></li>
        {{ /publicConstructorsSorted }}
      {{ /hasPublicConstructors }}
    {{ /isClassOrEnum }}

    {{ #isEnum }}
      {{ #hasPublicEnumValues }}
        <li class="section-title"><a href="{{{ href }}}#values">Values</a></li>
        {{ #publicEnumValues }}
          <li>{{{ linkedName }}}</li>
        {{ /publicEnumValues }}
      {{ /hasPublicEnumValues }}
    {{ /isEnum }}

    {{!-- Instance members which may or may not be inherited. --}}
    {{ #isClassOrEnum }}
      {{ #hasPublicInstanceFields }}
        <li class="section-title{{ #publicInheritedInstanceFields }} inherited{{ /publicInheritedInstanceFields }}">
          <a href="{{{ href }}}#instance-properties">Properties</a>
        </li>
        {{ #publicInstanceFieldsSorted }}
          <li{{ #isInherited }} class="inherited"{{ /isInherited }}>{{{ linkedName }}}</li>
        {{ /publicInstanceFieldsSorted }}
      {{ /hasPublicInstanceFields }}

      {{ #hasPublicInstanceMethods }}
        <li class="section-title{{ #publicInheritedInstanceMethods }} inherited{{ /publicInheritedInstanceMethods }}"><a href="{{{ href }}}#instance-methods">Methods</a></li>
        {{ #publicInstanceMethodsSorted }}
          <li{{ #isInherited }} class="inherited"{{ /isInherited }}>{{{ linkedName }}}</li>
        {{ /publicInstanceMethodsSorted }}
      {{ /hasPublicInstanceMethods }}

      {{ #hasPublicInstanceOperators }}
        <li class="section-title{{ #publicInheritedInstanceOperators }} inherited{{ /publicInheritedInstanceOperators }}"><a href="{{{ href }}}#operators">Operators</a></li>
        {{ #publicInstanceOperatorsSorted }}
          <li{{ #isInherited }} class="inherited"{{ /isInherited }}>{{{ linkedName }}}</li>
        {{ /publicInstanceOperatorsSorted }}
      {{ /hasPublicInstanceOperators }}
    {{ /isClassOrEnum }}

    {{!-- Instance members with no inheritance concept. --}}
    {{ #isExtension }}
      {{ #hasPublicInstanceFields }}
        <li class="section-title"> <a href="{{{ href }}}#instance-properties">Properties</a></li>
        {{ #publicInstanceFieldsSorted }}
          <li>{{{ linkedName }}}</li>
        {{ /publicInstanceFieldsSorted }}
      {{ /hasPublicInstanceFields }}

      {{ #hasPublicInstanceMethods }}
        <li class="section-title"><a href="{{{ href }}}#instance-methods">Methods</a></li>
        {{ #publicInstanceMethodsSorted }}
          <li>{{{ linkedName }}}</li>
        {{ /publicInstanceMethodsSorted }}
      {{ /hasPublicInstanceMethods }}

      {{ #hasPublicInstanceOperators }}
        <li class="section-title"><a href="{{{ href }}}#operators">Operators</a></li>
        {{ #publicInstanceOperatorsSorted }}
          <li>{{{ linkedName }}}</li>
        {{ /publicInstanceOperatorsSorted }}
      {{ /hasPublicInstanceOperators }}
    {{ /isExtension }}

    {{!-- Static members. --}}
    {{ #isInterfaceOrExtension }}
      {{ #hasPublicVariableStaticFields }}
        <li class="section-title"><a href="{{{ href }}}#static-properties">Static properties</a></li>
        {{ #publicVariableStaticFieldsSorted }}
          <li>{{{ linkedName }}}</li>
        {{ /publicVariableStaticFieldsSorted }}
      {{ /hasPublicVariableStaticFields }}

      {{ #hasPublicStaticMethods }}
        <li class="section-title"><a href="{{{ href }}}#static-methods">Static methods</a></li>
        {{ #publicStaticMethodsSorted }}
          <li>{{{ linkedName }}}</li>
        {{ /publicStaticMethodsSorted }}
      {{ /hasPublicStaticMethods }}

      {{ #hasPublicConstantFields }}
        <li class="section-title"><a href="{{{ href }}}#constants">Constants</a></li>
        {{ #publicConstantFieldsSorted }}
          <li>{{{ linkedName }}}</li>
        {{ /publicConstantFieldsSorted }}
      {{ /hasPublicConstantFields }}
    {{ /isInterfaceOrExtension }}
  {{ /container }}
</ol>
