build(aio): render whether API classes and members are abstract (#22563)

Closes #22537

PR Close #22563
This commit is contained in:
Pete Bacon Darwin
2018-03-02 22:53:50 +00:00
committed by Alex Eagle
parent 3aea8fd5f3
commit b80fd6be58
4 changed files with 12 additions and 11 deletions

View File

@ -28,9 +28,10 @@
{%- macro renderMemberSyntax(member, truncateLines) -%}
{%- if member.accessibility !== 'public' %}{$ member.accessibility $} {% endif -%}
{%- if member.isAbstract %}abstract {% endif -%}
{%- if member.isStatic %}static {% endif -%}
{%- if (member.isGetAccessor or member.isReadonly) and not member.isSetAccessor %}get {% endif -%}
{%- if member.isSetAccessor and not member.isGetAccessor %}set {% endif -%}
{%- if member.isStatic %}static {% endif -%}
{$ member.name $}{$ member.typeParameters | escape $}{% if not member.isGetAccessor %}{$ params.paramList(member.parameters, truncateLines) | trim $}{% endif %}
{%- if member.isOptional %}?{% endif -%}
{$ params.returnType(member.type) | trim | truncateCode(truncateLines) $}