diff options
| author | Yong He <yonghe@outlook.com> | 2025-06-13 22:13:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-13 22:13:00 -0700 |
| commit | 6a23949f07f4eba38086b656e7073ce3bf8cd2fe (patch) | |
| tree | 132bbe330b6027d323c74175686d006605e4da6d /source/slang/slang-ast-modifier.h | |
| parent | e72b3325663ab6d4bb791742574b031f0df6328a (diff) | |
Allow interface methods to have default implementations. (#7439)
Diffstat (limited to 'source/slang/slang-ast-modifier.h')
| -rw-r--r-- | source/slang/slang-ast-modifier.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index 10ebc2841..4f6a08e4f 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -731,6 +731,14 @@ class HLSLVolatileModifier : public Modifier FIDDLE(...) }; +// Indicate that an interface method requirement has a default impl. +FIDDLE() +class HasInterfaceDefaultImplModifier : public Modifier +{ + FIDDLE(...) +public: + FIDDLE() Decl* defaultImplDecl = nullptr; +}; FIDDLE() class AttributeTargetModifier : public Modifier |
