Add support for using template type inside MarshalAs tag value

This commit is contained in:
Wojtek Figat
2024-12-03 13:33:16 +01:00
parent 10caaf4fe9
commit c01824cd09
2 changed files with 38 additions and 2 deletions

View File

@@ -188,6 +188,13 @@ namespace Flax.Build.Bindings
token = context.Tokenizer.NextToken();
if (token.Type == TokenType.Multiply)
tag.Value += token.Value;
else if (token.Type == TokenType.LeftAngleBracket)
{
context.Tokenizer.SkipUntil(TokenType.RightAngleBracket, out var s);
tag.Value += '<';
tag.Value += s;
tag.Value += '>';
}
else
context.Tokenizer.PreviousToken();
parameters.Add(tag);