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
18
test/fixtures/json/corpus/array.parseA.txt
vendored
18
test/fixtures/json/corpus/array.parseA.txt
vendored
@ -1,6 +1,14 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float))
|
||||
[
|
||||
(Value
|
||||
(Number "1"))
|
||||
(Value
|
||||
(Number "3"))
|
||||
(Value
|
||||
(Number "3"))
|
||||
(Value
|
||||
(Number "5"))
|
||||
(Value
|
||||
(Number "7")) ])))
|
||||
|
18
test/fixtures/json/corpus/array.parseB.txt
vendored
18
test/fixtures/json/corpus/array.parseB.txt
vendored
@ -1,6 +1,14 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float)
|
||||
(Float))
|
||||
[
|
||||
(Value
|
||||
(Number "2"))
|
||||
(Value
|
||||
(Number "3"))
|
||||
(Value
|
||||
(Number "4"))
|
||||
(Value
|
||||
(Number "5"))
|
||||
(Value
|
||||
(Number "6")) ])))
|
||||
|
6
test/fixtures/json/corpus/boolean.parseA.txt
vendored
6
test/fixtures/json/corpus/boolean.parseA.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Boolean))
|
||||
[
|
||||
(Value
|
||||
(True "true")) ])))
|
||||
|
6
test/fixtures/json/corpus/boolean.parseB.txt
vendored
6
test/fixtures/json/corpus/boolean.parseB.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Boolean))
|
||||
[
|
||||
(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") ])) ])))
|
||||
|
6
test/fixtures/json/corpus/null.parseA.txt
vendored
6
test/fixtures/json/corpus/null.parseA.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Null))
|
||||
[
|
||||
(Value
|
||||
(Null "null")) ])))
|
||||
|
6
test/fixtures/json/corpus/null.parseB.txt
vendored
6
test/fixtures/json/corpus/null.parseB.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Null))
|
||||
[
|
||||
(Value
|
||||
(Null "null")) ])))
|
||||
|
6
test/fixtures/json/corpus/number.parseA.txt
vendored
6
test/fixtures/json/corpus/number.parseA.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Float))
|
||||
[
|
||||
(Value
|
||||
(Number "1")) ])))
|
||||
|
6
test/fixtures/json/corpus/number.parseB.txt
vendored
6
test/fixtures/json/corpus/number.parseB.txt
vendored
@ -1,2 +1,6 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(Float))
|
||||
[
|
||||
(Value
|
||||
(Number "-1")) ])))
|
||||
|
8
test/fixtures/json/corpus/string.parseA.txt
vendored
8
test/fixtures/json/corpus/string.parseA.txt
vendored
@ -1,2 +1,8 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(TextElement))
|
||||
[
|
||||
(Value
|
||||
(String
|
||||
[
|
||||
(StringContent "hello") ])) ])))
|
||||
|
8
test/fixtures/json/corpus/string.parseB.txt
vendored
8
test/fixtures/json/corpus/string.parseB.txt
vendored
@ -1,2 +1,8 @@
|
||||
(Document
|
||||
(Value
|
||||
(Array
|
||||
(TextElement))
|
||||
[
|
||||
(Value
|
||||
(String
|
||||
[
|
||||
(StringContent "world") ])) ])))
|
||||
|
Loading…
Reference in New Issue
Block a user