summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-json-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-json-parser.cpp')
-rw-r--r--source/compiler-core/slang-json-parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/compiler-core/slang-json-parser.cpp b/source/compiler-core/slang-json-parser.cpp
index fe9a0f580..52e46258a 100644
--- a/source/compiler-core/slang-json-parser.cpp
+++ b/source/compiler-core/slang-json-parser.cpp
@@ -308,6 +308,8 @@ void JSONWriter::endObject(SourceLoc loc)
m_state = m_stack.getLast();
m_stack.removeLast();
+
+ _postValue();
}
void JSONWriter::startArray(SourceLoc loc)
@@ -343,6 +345,8 @@ void JSONWriter::endArray(SourceLoc loc)
m_state = m_stack.getLast();
m_stack.removeLast();
+
+ _postValue();
}
void JSONWriter::addUnquotedKey(const UnownedStringSlice& key, SourceLoc loc)