summaryrefslogtreecommitdiffstats
path: root/tools/slang-reflection-test
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-05-31 15:15:36 -0400
committerGitHub <noreply@github.com>2023-05-31 15:15:36 -0400
commit57f0ab410766374b155fa546c31812d593480048 (patch)
treef04dd0420e07800e2c6eb7eebb62c3313480ac26 /tools/slang-reflection-test
parentc3e36444c53f592e1105783df73f67c169cfe7b9 (diff)
Confirm reflection output is valid JSON (#2910)
* #include an absolute path didn't work - because paths were taken to always be relative. * Small fixes and improvements around reflection tool. * Make PrettyWriter printing a class. * Confirm reflection output is valid JSON. * Fix issue with diagnostic tests.
Diffstat (limited to 'tools/slang-reflection-test')
-rw-r--r--tools/slang-reflection-test/slang-reflection-test-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/slang-reflection-test/slang-reflection-test-main.cpp b/tools/slang-reflection-test/slang-reflection-test-main.cpp
index 9dd69a6d1..94062cf2b 100644
--- a/tools/slang-reflection-test/slang-reflection-test-main.cpp
+++ b/tools/slang-reflection-test/slang-reflection-test-main.cpp
@@ -1123,7 +1123,7 @@ static void emitReflectionTypeParamJSON(
writer.indent();
emitReflectionNameInfoJSON(writer, typeParam->getName());
writer << ",\n";
- writer << "constraints: \n";
+ writer << "\"constraints\": \n";
writer << "[\n";
writer.indent();
auto constraintCount = typeParam->getConstraintCount();