From 6a23949f07f4eba38086b656e7073ce3bf8cd2fe Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 13 Jun 2025 22:13:00 -0700 Subject: Allow interface methods to have default implementations. (#7439) --- source/slang/slang-ast-expr.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/slang/slang-ast-expr.h') diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h index 950fd6645..177feff15 100644 --- a/source/slang/slang-ast-expr.h +++ b/source/slang/slang-ast-expr.h @@ -734,6 +734,17 @@ class ThisTypeExpr : public Expr Scope* scope = nullptr; }; + +/// A type expression of the form `ThisInterface` +/// +/// Refers to the interface type itself, not the conforming type from an interface decl. +/// +FIDDLE() +class ThisInterfaceExpr : public VarExpr +{ + FIDDLE(...) +}; + /// A type expression of the form `Left & Right`. FIDDLE() class AndTypeExpr : public Expr -- cgit v1.2.3