summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorYong He <yonghe@google.com>2019-01-29 11:41:54 -0800
committerYong He <yonghe@google.com>2019-01-29 11:41:54 -0800
commitb7f8f7abcc3cc1dfa820ebba47a772b78d6a4cfb (patch)
tree26d81dec1162ee9d26b811f0b7621e74ade9e06f /source/slang/syntax.h
parentf8b8ea0055ad877551198e1e295d33860b504672 (diff)
Add support for user defined attributes.
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h11
1 files changed, 11 insertions, 0 deletions
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<unsigned int, RefPtr<RefObject>> 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<Substitutions> outerSubst);
RefPtr<GenericSubstitution> findInnerMostGenericSubstitution(Substitutions* subst);
+
+ enum class UserDefinedAttributeTargets
+ {
+ None = 0,
+ Struct = 1,
+ Var = 2,
+ Function = 4,
+ All = 7
+ };
} // namespace Slang
#endif