mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-14 06:00:39 +00:00
510aed7d3f
JsonEncoder wasn't producing valid JSON for `AstExprTable`s. This PR fixes it. The new output looks like ```json { "type": "AstStatBlock", "location": "0,0 - 6,4", "body": [ { "type": "AstStatLocal", "location": "1,8 - 5,9", "vars": [ { "name": "x", "location": "1,14 - 1,15" } ], "values": [ { "type": "AstExprTable", "location": "3,12 - 5,9", "items": [ { "kind": "record", "key": { "type": "AstExprConstantString", "location": "4,12 - 4,15", "value": "foo" }, "value": { "type": "AstExprConstantNumber", "location": "4,18 - 4,21", "value": 123 } } ] } ] } ] } ``` |
||
---|---|---|
.. | ||
AstQuery.cpp | ||
Autocomplete.cpp | ||
BuiltinDefinitions.cpp | ||
Clone.cpp | ||
Config.cpp | ||
EmbeddedBuiltinDefinitions.cpp | ||
Error.cpp | ||
Frontend.cpp | ||
IostreamHelpers.cpp | ||
JsonEncoder.cpp | ||
Linter.cpp | ||
LValue.cpp | ||
Module.cpp | ||
Quantify.cpp | ||
RequireTracer.cpp | ||
Scope.cpp | ||
Substitution.cpp | ||
Symbol.cpp | ||
ToDot.cpp | ||
TopoSortStatements.cpp | ||
ToString.cpp | ||
Transpiler.cpp | ||
TxnLog.cpp | ||
TypeAttach.cpp | ||
TypedAllocator.cpp | ||
TypeInfer.cpp | ||
TypePack.cpp | ||
TypeUtils.cpp | ||
TypeVar.cpp | ||
Unifiable.cpp | ||
Unifier.cpp |