From b7f8f7abcc3cc1dfa820ebba47a772b78d6a4cfb Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 29 Jan 2019 11:41:54 -0800 Subject: Add support for user defined attributes. --- source/slang/syntax.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/slang/syntax.h') diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 74eda66a5..5db762f11 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -1084,6 +1084,8 @@ namespace Slang RequirementDictionary requirementDictionary; }; + typedef Dictionary> AttributeArgumentValueDict; + // Generate class definition for all syntax classes #define SYNTAX_FIELD(TYPE, NAME) TYPE NAME; #define FIELD(TYPE, NAME) TYPE NAME; @@ -1343,6 +1345,15 @@ namespace Slang RefPtr outerSubst); RefPtr findInnerMostGenericSubstitution(Substitutions* subst); + + enum class UserDefinedAttributeTargets + { + None = 0, + Struct = 1, + Var = 2, + Function = 4, + All = 7 + }; } // namespace Slang #endif -- cgit v1.2.3