diff options
| author | Yong He <yonghe@outlook.com> | 2019-01-29 15:18:15 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-29 15:18:15 -0800 |
| commit | 685a811e3d4405c4619e974e3610902d621efee7 (patch) | |
| tree | 40bcf976326a303373d53dae0ff11ef6a5518b3e /source/slang/syntax.h | |
| parent | f8b8ea0055ad877551198e1e295d33860b504672 (diff) | |
| parent | c1761283e7bb6b5cfcedf910e76fd4f939395b1d (diff) | |
Merge pull request #812 from csyonghe/attribute
Add support for user defined attributes
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 11 |
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 |
