MCPcopy Create free account
hub / github.com/blocksecteam/rustle / _name2index

Function _name2index

utils/core.py:130–135  ·  view source on GitHub ↗

Convert var name to index

(name, results)

Source from the content-addressed store, hash-verified

128
129
130def _name2index(name, results) -> int:
131 """Convert var name to index"""
132 for i in range(len(results)):
133 if results[i]["name"] == name:
134 return i
135 return -1
136
137
138def lineToStruct(line, impls) -> dict:

Callers 1

findFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected