diff options
| author | Yong He <yonghe@outlook.com> | 2024-09-19 15:44:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-19 15:44:32 -0700 |
| commit | 26ca9c5b0657489f82a221c62903cbc802aaa6a0 (patch) | |
| tree | a63a66e5794df44f2391d1f4a0a80d29ed08c40e /source/slang/slang-parser.cpp | |
| parent | dd3d80e61b316390a468a142de2be2fb85b73d0d (diff) | |
Synthesize conformance for generic requirements. (#5111)
* Synthesize conformance for generic requirements.
* Fix.
* Fix build error.
* address code review.
Diffstat (limited to 'source/slang/slang-parser.cpp')
| -rw-r--r-- | source/slang/slang-parser.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index 5729adb29..926b3c1d9 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -1765,6 +1765,27 @@ namespace Slang expr->baseExpression->accept(this, nullptr); expr->scope = scope; } + void visitAppExprBase(AppExprBase* expr) + { + expr->functionExpr->accept(this, nullptr); + for (auto arg : expr->arguments) + arg->accept(this, nullptr); + } + void visitIsTypeExpr(IsTypeExpr* expr) + { + if (expr->typeExpr.exp) + expr->typeExpr.exp->accept(this, nullptr); + } + void visitAsTypeExpr(AsTypeExpr* expr) + { + if (expr->typeExpr) + expr->typeExpr->accept(this, nullptr); + } + void visiSizeOfLikeExpr(SizeOfLikeExpr* expr) + { + if (expr->value) + expr->value->accept(this, nullptr); + } void visitExpr(Expr* /*expr*/) {} }; |
