summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-mangle.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-10-15 14:21:21 -0700
committerGitHub <noreply@github.com>2024-10-15 14:21:21 -0700
commitba26c2d7020b41e0d348c7235f86a4232982ab9e (patch)
tree051f407170d724ba0196b6e174241548b2bd2230 /source/slang/slang-mangle.cpp
parent3e170c732bfcd2aedf78deb047db94e196a1b83a (diff)
Add stdlib documentation for attributes and interfaces. (#5297)
* Add stdlib documentation for attributes and interfaces. * Fix name mangling to avoid collision of functions in different extensions. * Fix doc.
Diffstat (limited to 'source/slang/slang-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index 93b29ccbe..438ab2187 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -444,6 +444,11 @@ namespace Slang
// be treated as equivalent to the type itself.
emit(context, "X");
emitType(context, getTargetType(context->astBuilder, extensionDeclRef));
+ for (auto inheritanceDecl : getMembersOfType<InheritanceDecl>(context->astBuilder, extensionDeclRef))
+ {
+ emit(context, "I");
+ emitType(context, getSup(context->astBuilder, inheritanceDecl));
+ }
return;
}