mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
Update the JSON ASTs.
This commit is contained in:
parent
c02f56da1a
commit
8936bede79
20
test/fixtures/json/corpus/array.parseA.txt
vendored
20
test/fixtures/json/corpus/array.parseA.txt
vendored
@ -1,6 +1,14 @@
|
||||
(Array
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(Number "1"))
|
||||
(Value
|
||||
(Number "3"))
|
||||
(Value
|
||||
(Number "3"))
|
||||
(Value
|
||||
(Number "5"))
|
||||
(Value
|
||||
(Number "7")) ])))
|
||||
|
20
test/fixtures/json/corpus/array.parseB.txt
vendored
20
test/fixtures/json/corpus/array.parseB.txt
vendored
@ -1,6 +1,14 @@
|
||||
(Array
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(Number "2"))
|
||||
(Value
|
||||
(Number "3"))
|
||||
(Value
|
||||
(Number "4"))
|
||||
(Value
|
||||
(Number "5"))
|
||||
(Value
|
||||
(Number "6")) ])))
|
||||
|
8
test/fixtures/json/corpus/boolean.parseA.txt
vendored
8
test/fixtures/json/corpus/boolean.parseA.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Array
|
||||
(Boolean))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(True "true")) ])))
|
||||
|
8
test/fixtures/json/corpus/boolean.parseB.txt
vendored
8
test/fixtures/json/corpus/boolean.parseB.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Array
|
||||
(Boolean))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(False "false")) ])))
|
||||
|
41
test/fixtures/json/corpus/hash.parseA.txt
vendored
41
test/fixtures/json/corpus/hash.parseA.txt
vendored
@ -1,13 +1,28 @@
|
||||
(Hash
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float)))
|
||||
(Document
|
||||
(Value
|
||||
(Object
|
||||
[
|
||||
(Pair
|
||||
(Value
|
||||
(Number "1"))
|
||||
(String
|
||||
[
|
||||
(StringContent "a") ]))
|
||||
(Pair
|
||||
(Value
|
||||
(Number "2"))
|
||||
(String
|
||||
[
|
||||
(StringContent "b") ]))
|
||||
(Pair
|
||||
(Value
|
||||
(Number "3"))
|
||||
(String
|
||||
[
|
||||
(StringContent "c") ]))
|
||||
(Pair
|
||||
(Value
|
||||
(Number "4"))
|
||||
(String
|
||||
[
|
||||
(StringContent "d") ])) ])))
|
||||
|
41
test/fixtures/json/corpus/hash.parseB.txt
vendored
41
test/fixtures/json/corpus/hash.parseB.txt
vendored
@ -1,13 +1,28 @@
|
||||
(Hash
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Float)))
|
||||
(Document
|
||||
(Value
|
||||
(Object
|
||||
[
|
||||
(Pair
|
||||
(Value
|
||||
(Number "2"))
|
||||
(String
|
||||
[
|
||||
(StringContent "b") ]))
|
||||
(Pair
|
||||
(Value
|
||||
(Number "3"))
|
||||
(String
|
||||
[
|
||||
(StringContent "c'") ]))
|
||||
(Pair
|
||||
(Value
|
||||
(Number "5"))
|
||||
(String
|
||||
[
|
||||
(StringContent "d") ]))
|
||||
(Pair
|
||||
(Value
|
||||
(Number "5"))
|
||||
(String
|
||||
[
|
||||
(StringContent "e") ])) ])))
|
||||
|
8
test/fixtures/json/corpus/null.parseA.txt
vendored
8
test/fixtures/json/corpus/null.parseA.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Array
|
||||
(Null))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(Null "null")) ])))
|
||||
|
8
test/fixtures/json/corpus/null.parseB.txt
vendored
8
test/fixtures/json/corpus/null.parseB.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Array
|
||||
(Null))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(Null "null")) ])))
|
||||
|
8
test/fixtures/json/corpus/number.parseA.txt
vendored
8
test/fixtures/json/corpus/number.parseA.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Array
|
||||
(Float))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(Number "1")) ])))
|
||||
|
8
test/fixtures/json/corpus/number.parseB.txt
vendored
8
test/fixtures/json/corpus/number.parseB.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Array
|
||||
(Float))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(Number "-1")) ])))
|
||||
|
10
test/fixtures/json/corpus/string.parseA.txt
vendored
10
test/fixtures/json/corpus/string.parseA.txt
vendored
@ -1,2 +1,8 @@
|
||||
(Array
|
||||
(TextElement))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(String
|
||||
[
|
||||
(StringContent "hello") ])) ])))
|
||||
|
10
test/fixtures/json/corpus/string.parseB.txt
vendored
10
test/fixtures/json/corpus/string.parseB.txt
vendored
@ -1,2 +1,8 @@
|
||||
(Array
|
||||
(TextElement))
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
[
|
||||
(Value
|
||||
(String
|
||||
[
|
||||
(StringContent "world") ])) ])))
|
||||
|
Loading…
Reference in New Issue
Block a user