Added: cs_obsolete token
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Madpwnhammer 2024-07-31 17:01:07 +03:00
parent e8ce1df2ad
commit 6630a1a3ee
3 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,7 @@ function supported_tokens() : array
'cs_propget_interface',
'cs_propset_interface',
'cs_propgetset_interface',
'cs_obsolete',
//TODO:
//'i18n'
];

View File

@ -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 -%}

View File

@ -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}}]