MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / get_next_frid

Method get_next_frid

plain_modules.py:330–344  ·  view source on GitHub ↗
(self, frid: str, module_name: str)

Source from the content-addressed store, hash-verified

328 raise ModuleDoesNotExistError(f"Module {module_name} does not exist")
329
330 def get_next_frid(self, frid: str, module_name: str) -> tuple[str, PlainModule]:
331 if module_name != self.module_name:
332 module = self.get_required_module_by_name(module_name)
333 else:
334 module = self
335
336 next_frid = plain_spec.get_next_frid(module.plain_source, frid)
337
338 if next_frid is None:
339 next_module = self.get_next_module(module_name)
340 if next_module is None:
341 next_module = self
342 return plain_spec.get_first_frid(next_module.plain_source), next_module
343
344 return next_frid, module
345
346 def is_module_fully_rendered(self) -> bool:
347 frids = list(plain_spec.get_frids(self.plain_source))

Callers 5

_resume_render_choiceFunction · 0.45
has_next_fridMethod · 0.45
print_dry_run_outputFunction · 0.45

Calls 2

get_next_moduleMethod · 0.95

Tested by

no test coverage detected