Add TypeId const member to structs.

This commit is contained in:
Kuba Ober 2019-09-18 14:00:30 -04:00
parent 64203d1638
commit 056a5101ff
2 changed files with 165 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -71,6 +71,8 @@
.AddConstraintClauses(MakeTypeParameterConstraints(def).ToArray());
}
topDecl = topDecl.AddMembers(CommonSnippetGen.MakeTypeIdConst(def.Id, _names));
if (def.UnionInfo != null)
{
topDecl = topDecl.AddMembers(_commonGen.MakeUnionSelectorEnum(def));