MCPcopy Create free account
hub / github.com/apache/thrift / JSONListContext

Class JSONListContext

lib/py/src/protocol/TJSONProtocol.py:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111class JSONListContext(JSONBaseContext):
112
113 def doIO(self, function):
114 if self.first is True:
115 self.first = False
116 else:
117 function(COMMA)
118
119 def write(self):
120 self.doIO(self.protocol.trans.write)
121
122 def read(self):
123 self.doIO(self.protocol.readJSONSyntaxChar)
124
125
126class JSONPairContext(JSONBaseContext):

Callers 2

writeJSONArrayStartMethod · 0.70
readJSONArrayStartMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected