MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / __init__

Method __init__

code2flow/model.py:153–163  ·  view source on GitHub ↗

:param str token: :param str|Call|Node|Group points_to: (str/Call is eventually resolved to Nodes|Groups) :param int|None line_number:

(self, token, points_to, line_number=None)

Source from the content-addressed store, hash-verified

151 Not all variables can be resolved
152 """
153 def __init__(self, token, points_to, line_number=None):
154 """
155 :param str token:
156 :param str|Call|Node|Group points_to: (str/Call is eventually resolved to Nodes|Groups)
157 :param int|None line_number:
158 """
159 assert token
160 assert points_to
161 self.token = token
162 self.points_to = points_to
163 self.line_number = line_number
164
165 def __repr__(self):
166 return f"<Variable token={self.token} points_to={repr(self.points_to)}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected