From 8102e5ee81db177372bb90188c65d003a4907aa4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 6 Dec 2023 15:52:02 -0800 Subject: Change default visibility of interface members and update docs. (#3381) * Update behavior around interfaces and docs. * Update toc --------- Co-authored-by: Yong He --- source/slang/slang-syntax.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-syntax.cpp') diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp index 678d9ec26..6350a7e4d 100644 --- a/source/slang/slang-syntax.cpp +++ b/source/slang/slang-syntax.cpp @@ -2,7 +2,7 @@ #include "slang-compiler.h" #include "slang-visitor.h" - +#include "slang-ast-print.h" #include #include @@ -55,6 +55,13 @@ void printDiagnosticArg(StringBuilder& sb, QualType const& type) sb << ""; } +void printDiagnosticArg(StringBuilder& sb, QualifiedDeclPath path) +{ + ASTPrinter printer(getCurrentASTBuilder()); + printer.addDeclPath(path.declRef); + sb << printer.getString(); +} + SourceLoc getDiagnosticPos(SyntaxNode const* syntax) { if (!syntax) -- cgit v1.2.3