summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-dump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-dump.cpp')
-rw-r--r--source/slang/slang-ast-dump.cpp28
1 files changed, 26 insertions, 2 deletions
diff --git a/source/slang/slang-ast-dump.cpp b/source/slang/slang-ast-dump.cpp
index 7f6f7796c..b07714bf9 100644
--- a/source/slang/slang-ast-dump.cpp
+++ b/source/slang/slang-ast-dump.cpp
@@ -555,8 +555,6 @@ struct ASTDumpContext
}
void dump(const ExpandedSpecializationArg& arg) { dump(arg.witness); }
- void dump(const TransparentMemberInfo& memInfo) { dump(memInfo.decl); }
-
void dumpRemaining()
{
// Have to keep checking count, as dumping objects can add objects
@@ -570,6 +568,32 @@ struct ASTDumpContext
}
}
+ void dump(ContainerDeclDirectMemberDecls const& decls)
+ {
+ m_writer->emit(" { \n");
+ m_writer->indent();
+ bool first = true;
+ for (auto decl : decls.getDecls())
+ {
+ if (!first)
+ {
+ m_writer->emit(",\n");
+ }
+ first = false;
+
+ if (decl)
+ {
+ dump(decl);
+ }
+ else
+ {
+ m_writer->emit("null");
+ }
+ }
+ m_writer->dedent();
+ m_writer->emit("}");
+ }
+
void dump(ContainerDecl* decl)
{
if (auto moduleDecl = dynamicCast<ModuleDecl>(decl))