summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-30 14:53:53 -0800
committerGitHub <noreply@github.com>2022-11-30 14:53:53 -0800
commitf51f69d045d9e0b83d9ab1f4623d4319ce1867be (patch)
treea7c9cee36ef168810c8feed64edbe6a593ffb90d /source/slang/slang-check-expr.cpp
parent976f578585a4d4ed24e37d0c45a94a8e6afcff19 (diff)
Fix missing semantic highlighting in attributes and ExtractExitentialValueExpr. (#2541)
* Fix missing semantic highlighting in attributes and ExtractExitentialValueExpr. * Fix regression on partially specialized generic expr highlighting. * Add regression test. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index 4b2d490b7..7297ca282 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -160,6 +160,7 @@ namespace Slang
ExtractExistentialValueExpr* openedValue = m_astBuilder->create<ExtractExistentialValueExpr>();
openedValue->declRef = varDeclRef;
openedValue->type = QualType(openedType);
+ openedValue->originalExpr = expr;
// The result of opening an existential is an l-value
// if the original existential is an l-value.