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-expr.h | |
| parent | e72b3325663ab6d4bb791742574b031f0df6328a (diff) | |
Allow interface methods to have default implementations. (#7439)
Diffstat (limited to 'source/slang/slang-ast-expr.h')
| -rw-r--r-- | source/slang/slang-ast-expr.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
