MCPcopy Create free account
hub / github.com/apache/fory / indent_lines

Method indent_lines

compiler/fory_compiler/generators/rust.py:749–752  ·  view source on GitHub ↗

Indent a list of lines by the given level.

(self, lines: List[str], level: int)

Source from the content-addressed store, hash-verified

747 return type_name
748
749 def indent_lines(self, lines: List[str], level: int) -> List[str]:
750 """Indent a list of lines by the given level."""
751 prefix = self.indent_str * level
752 return [f"{prefix}{line}" if line else line for line in lines]
753
754 def generate_enum(
755 self,

Calls

no outgoing calls

Tested by

no test coverage detected