Added: cs_obsolete token
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
e8ce1df2ad
commit
6630a1a3ee
|
@ -55,6 +55,7 @@ function supported_tokens() : array
|
|||
'cs_propget_interface',
|
||||
'cs_propset_interface',
|
||||
'cs_propgetset_interface',
|
||||
'cs_obsolete',
|
||||
//TODO:
|
||||
//'i18n'
|
||||
];
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//THIS FILE IS GENERATED AUTOMATICALLY, DO NOT TOUCH IT!
|
||||
using System.Collections.Generic;
|
||||
using metagen;
|
||||
using System;
|
||||
|
||||
{%- import "macro.twig" as macro -%}
|
||||
|
||||
|
|
|
@ -188,6 +188,12 @@ ResetFieldMask();
|
|||
{% endmacro %}
|
||||
|
||||
{%- macro attributes(o) %}
|
||||
{% if has_token(o, "cs_obsolete") %}
|
||||
/// <summary>
|
||||
/// {{token(o, "cs_obsolete")}}
|
||||
/// </summary>
|
||||
[Obsolete]
|
||||
{% endif %}
|
||||
{%- if has_token(o, 'cs_attributes') -%}
|
||||
{%- for attr in token(o, 'cs_attributes')|split(',') -%}
|
||||
[{{attr}}]
|
||||
|
|
Loading…
Reference in New Issue