MCPcopy Create free account
hub / github.com/cdgriffith/Box / take_lines

Function take_lines

box/comments.py:139–143  ·  view source on GitHub ↗
(tokens)

Source from the content-addressed store, hash-verified

137 return model["keys"].setdefault(path, {"before": [], "eol": None})
138
139 def take_lines(tokens):
140 for token in tokens or []:
141 if token is not None and id(token) not in seen:
142 seen.add(id(token))
143 pending.extend(_token_lines(token.value)[:-1])
144
145 def handle(token, path):
146 if token is None or id(token) in seen:

Callers 1

walkFunction · 0.85

Calls 2

_token_linesFunction · 0.85
extendMethod · 0.80

Tested by

no test coverage detected