diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-20 23:13:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 23:13:29 -0800 |
| commit | 2e2c7943da89b0100db3bba4b11267b5a857ca92 (patch) | |
| tree | 8cbf8010e964cdbb7381fa15b1062b2c43cbd870 /source/slang/slang-ast-iterator.h | |
| parent | 2ee05c1257c916e5c804a6b565a2a6aa362050e0 (diff) | |
Language server robustness fix. (#3607)
* Language server robustness fix.
* Allow parameter name to be the same as its type.
* fix
* Fix test.
Diffstat (limited to 'source/slang/slang-ast-iterator.h')
| -rw-r--r-- | source/slang/slang-ast-iterator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-ast-iterator.h b/source/slang/slang-ast-iterator.h index fc6f321e3..2b6a2d3e2 100644 --- a/source/slang/slang-ast-iterator.h +++ b/source/slang/slang-ast-iterator.h @@ -479,6 +479,8 @@ void ASTIterator<CallbackFunc, FilterFunc>::visitDecl(DeclBase* decl) { visitDecl(member); } + if (auto aggTypeDecl = as<AggTypeDecl>(decl)) + visitExpr(aggTypeDecl->wrappedType.exp); } for (auto modifier : decl->modifiers) { |
