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

Method output_file_path

compiler/fory_compiler/generators/swift.py:188–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 return GeneratedFile(path=self.output_file_path(), content=content)
187
188 def output_file_path(self) -> str:
189 file_name = self.module_file_name()
190 if self.schema.package:
191 package_path = self.schema.package.replace(".", "/")
192 return f"{package_path}/{file_name}"
193 return file_name
194
195 def module_file_name(self) -> str:
196 if self.schema.source_file and not self.schema.source_file.startswith("<"):

Callers 1

generate_fileMethod · 0.95

Calls 2

module_file_nameMethod · 0.95
replaceMethod · 0.45

Tested by

no test coverage detected