build(aio): improve accessor rendering (#19637)

Includes an update to `dgeni-packages@0.22.0` which provides more info
about accessors if required.

PR Close #19637
This commit is contained in:
Peter Bacon Darwin
2017-10-10 13:25:26 +01:00
committed by Chuck Jazdzewski
parent 46992b4bda
commit dbe6cdad7e
4 changed files with 7 additions and 7 deletions

View File

@ -18,8 +18,8 @@
{%- macro renderMember(member, truncateLines) -%}
{%- if member.accessibility !== 'public' %}{$ member.accessibility $} {% endif -%}
{%- if member.isGetAccessor or member.isReadonly %}get {% endif -%}
{%- if member.isSetAccessor %}set {% 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 -%}