summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-decl.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-06-13 22:13:00 -0700
committerGitHub <noreply@github.com>2025-06-13 22:13:00 -0700
commit6a23949f07f4eba38086b656e7073ce3bf8cd2fe (patch)
tree132bbe330b6027d323c74175686d006605e4da6d /source/slang/slang-ast-decl.h
parente72b3325663ab6d4bb791742574b031f0df6328a (diff)
Allow interface methods to have default implementations. (#7439)
Diffstat (limited to 'source/slang/slang-ast-decl.h')
-rw-r--r--source/slang/slang-ast-decl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ast-decl.h b/source/slang/slang-ast-decl.h
index 3410806dc..c46878945 100644
--- a/source/slang/slang-ast-decl.h
+++ b/source/slang/slang-ast-decl.h
@@ -823,6 +823,14 @@ class GenericDecl : public ContainerDecl
FIDDLE() Decl* inner = nullptr;
};
+FIDDLE()
+class InterfaceDefaultImplDecl : public GenericDecl
+{
+ FIDDLE(...)
+ FIDDLE() GenericTypeParamDecl* thisTypeDecl;
+ FIDDLE() GenericTypeConstraintDecl* thisTypeConstraintDecl;
+};
+
FIDDLE(abstract)
class GenericTypeParamDeclBase : public SimpleTypeDecl
{