summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-modifier.cpp
diff options
context:
space:
mode:
authorRonan <ro.cailleau@gmail.com>2025-04-26 21:04:01 +0200
committerGitHub <noreply@github.com>2025-04-26 12:04:01 -0700
commita5efbb1b775afb2f6b29b37d39947c41744bb005 (patch)
treeae5c1e11544d2411816ee6fcfb29b2820d41fcb0 /source/slang/slang-check-modifier.cpp
parentd84aeeffdba388aec7a781c35973bf404d37fe80 (diff)
Added getCanonicalGenericConstraints2 (sorts constraints and allows more generic expressions) (#6787)
Diffstat (limited to 'source/slang/slang-check-modifier.cpp')
-rw-r--r--source/slang/slang-check-modifier.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp
index e0b203fb6..cebcbe540 100644
--- a/source/slang/slang-check-modifier.cpp
+++ b/source/slang/slang-check-modifier.cpp
@@ -285,8 +285,7 @@ AttributeDecl* SemanticsVisitor::lookUpAttributeDecl(Name* attributeName, Scope*
paramDecl->loc = member->loc;
paramDecl->setCheckState(DeclCheckState::DefinitionChecked);
- paramDecl->parentDecl = attrDecl;
- attrDecl->members.add(paramDecl);
+ attrDecl->addMember(paramDecl);
}
}
@@ -297,8 +296,7 @@ AttributeDecl* SemanticsVisitor::lookUpAttributeDecl(Name* attributeName, Scope*
//
// TODO: handle the case where `parentDecl` is generic?
//
- attrDecl->parentDecl = parentDecl;
- parentDecl->members.add(attrDecl);
+ parentDecl->addMember(attrDecl);
SLANG_ASSERT(!parentDecl->isMemberDictionaryValid());