From ba26c2d7020b41e0d348c7235f86a4232982ab9e Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 15 Oct 2024 14:21:21 -0700 Subject: 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. --- source/slang/slang-mangle.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/slang-mangle.cpp') 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(context->astBuilder, extensionDeclRef)) + { + emit(context, "I"); + emitType(context, getSup(context->astBuilder, inheritanceDecl)); + } return; } -- cgit v1.2.3