MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / getUsingFor

Function getUsingFor

src/antlr4helper/SolidityParser.py:126–134  ·  view source on GitHub ↗
(i, stream, max_length)

Source from the content-addressed store, hash-verified

124
125
126def getUsingFor(i, stream, max_length):
127 content = 'using'
128 if i+1 < max_length:
129 id, content_temp, loc = parseToken(str(stream[i+1]))
130 if id is not None:
131 if id == VARIABLE_NAME_ID:
132 content += content_temp
133 return i+1, content, loc
134 return i, content, None
135
136def getSubcontract(i, stream, max_length, subcontract_id, start):
137 left_bracket_count = 0

Callers 1

getSubcontractFunction · 0.85

Calls 1

parseTokenFunction · 0.85

Tested by

no test coverage detected