diff options
| author | Yong He <yonghe@outlook.com> | 2023-12-06 15:52:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-06 15:52:02 -0800 |
| commit | 8102e5ee81db177372bb90188c65d003a4907aa4 (patch) | |
| tree | 2ea145d7a58abe395e1765009bc943d97933104b /source/slang/slang-syntax.cpp | |
| parent | 11111e5733b189127dc2c4934d67693b9bc6e764 (diff) | |
Change default visibility of interface members and update docs. (#3381)
* Update behavior around interfaces and docs.
* Update toc
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-syntax.cpp')
| -rw-r--r-- | source/slang/slang-syntax.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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 <typeinfo> #include <assert.h> @@ -55,6 +55,13 @@ void printDiagnosticArg(StringBuilder& sb, QualType const& type) sb << "<null>"; } +void printDiagnosticArg(StringBuilder& sb, QualifiedDeclPath path) +{ + ASTPrinter printer(getCurrentASTBuilder()); + printer.addDeclPath(path.declRef); + sb << printer.getString(); +} + SourceLoc getDiagnosticPos(SyntaxNode const* syntax) { if (!syntax) |
