summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-03-01 15:37:46 -0500
committerGitHub <noreply@github.com>2021-03-01 15:37:46 -0500
commit837a155b3d33035ee0739858f4ab25c65048ad6c (patch)
tree7abc4859a6669c9b8e0bcdaad6eb7b37471679ba /source/slang/slang-check-expr.cpp
parentb3501add6c4dda798acf7b84b71b638d8d0b7898 (diff)
Doc improvements (#1729)
* #include an absolute path didn't work - because paths were taken to always be relative. * Split out AST 'printing'. * Replace listener with List<Section> * Section -> Part. * Kind -> Type Flags -> Kind for ASTPrinter::Part * Improve comments around ASTPrinter. * toString -> toText on Val derived types. toText appends to a StringBuilder. * Added toSlice free function. Added operator<< for Val derived types. Use << where appropriate in doing toText. * More work at mark down output. * Fill in sourceloc for enum case. Add more sophisticated location determination for EnumCase. Refactored documentation output into DocMarkdownWriter. * Improvements for sig output.
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index 736eee6fb..5c00cb64b 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -13,6 +13,8 @@
#include "slang-lookup.h"
+#include "slang-ast-print.h"
+
namespace Slang
{
DeclRefType* SemanticsVisitor::getExprDeclRefType(Expr * expr)
@@ -518,7 +520,7 @@ namespace Slang
for(auto item : lookupResult.items)
{
- String declString = getDeclSignatureString(item);
+ String declString = ASTPrinter::getDeclSignatureString(item, m_astBuilder);
getSink()->diagnose(item.declRef, Diagnostics::overloadCandidate, declString);
}
}