From f51f69d045d9e0b83d9ab1f4623d4319ce1867be Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 30 Nov 2022 14:53:53 -0800 Subject: 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 --- source/slang/slang-check-expr.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-check-expr.cpp') 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(); 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. -- cgit v1.2.3