@@ -1767,13 +1767,15 @@ module JSON {
17671767 final override string getAPrimaryQlClass ( ) { result = "ReservedWord" }
17681768 }
17691769
1770+ class UnderscoreValue extends @json_underscore_value, AstNode { }
1771+
17701772 /** A class representing `array` nodes. */
17711773 class Array extends @json_array, AstNode {
17721774 /** Gets the name of the primary QL class for this element. */
17731775 final override string getAPrimaryQlClass ( ) { result = "Array" }
17741776
17751777 /** Gets the `i`th child of this node. */
1776- final Value getChild ( int i ) { json_array_child ( this , i , result ) }
1778+ final UnderscoreValue getChild ( int i ) { json_array_child ( this , i , result ) }
17771779
17781780 /** Gets a field or child node of this node. */
17791781 final override AstNode getAFieldOrChild ( ) { json_array_child ( this , _, result ) }
@@ -1791,12 +1793,18 @@ module JSON {
17911793 final override string getAPrimaryQlClass ( ) { result = "Document" }
17921794
17931795 /** Gets the `i`th child of this node. */
1794- final Value getChild ( int i ) { json_document_child ( this , i , result ) }
1796+ final UnderscoreValue getChild ( int i ) { json_document_child ( this , i , result ) }
17951797
17961798 /** Gets a field or child node of this node. */
17971799 final override AstNode getAFieldOrChild ( ) { json_document_child ( this , _, result ) }
17981800 }
17991801
1802+ /** A class representing `escape_sequence` tokens. */
1803+ class EscapeSequence extends @json_token_escape_sequence, Token {
1804+ /** Gets the name of the primary QL class for this element. */
1805+ final override string getAPrimaryQlClass ( ) { result = "EscapeSequence" }
1806+ }
1807+
18001808 /** A class representing `false` tokens. */
18011809 class False extends @json_token_false, Token {
18021810 /** Gets the name of the primary QL class for this element. */
@@ -1833,10 +1841,10 @@ module JSON {
18331841 final override string getAPrimaryQlClass ( ) { result = "Pair" }
18341842
18351843 /** Gets the node corresponding to the field `key`. */
1836- final AstNode getKey ( ) { json_pair_def ( this , result , _) }
1844+ final String getKey ( ) { json_pair_def ( this , result , _) }
18371845
18381846 /** Gets the node corresponding to the field `value`. */
1839- final Value getValue ( ) { json_pair_def ( this , _, result ) }
1847+ final UnderscoreValue getValue ( ) { json_pair_def ( this , _, result ) }
18401848
18411849 /** Gets a field or child node of this node. */
18421850 final override AstNode getAFieldOrChild ( ) {
@@ -1849,11 +1857,11 @@ module JSON {
18491857 /** Gets the name of the primary QL class for this element. */
18501858 final override string getAPrimaryQlClass ( ) { result = "String" }
18511859
1852- /** Gets the child of this node. */
1853- final StringContent getChild ( ) { json_string_child ( this , result ) }
1860+ /** Gets the `i`th child of this node. */
1861+ final AstNode getChild ( int i ) { json_string_child ( this , i , result ) }
18541862
18551863 /** Gets a field or child node of this node. */
1856- final override AstNode getAFieldOrChild ( ) { json_string_child ( this , result ) }
1864+ final override AstNode getAFieldOrChild ( ) { json_string_child ( this , _ , result ) }
18571865 }
18581866
18591867 /** A class representing `string_content` tokens. */
@@ -1867,6 +1875,4 @@ module JSON {
18671875 /** Gets the name of the primary QL class for this element. */
18681876 final override string getAPrimaryQlClass ( ) { result = "True" }
18691877 }
1870-
1871- class Value extends @json_value, AstNode { }
18721878}
0 commit comments