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

Function csharp_output_paths

compiler/fory_compiler/generators/csharp.py:170–183  ·  view source on GitHub ↗
(
    schema: Schema, include_services: bool = False
)

Source from the content-addressed store, hash-verified

168
169
170def csharp_output_paths(
171 schema: Schema, include_services: bool = False
172) -> List[Tuple[str, str]]:
173 namespace_name = csharp_namespace_for_schema(schema)
174 namespace_path = namespace_name.replace(".", "/") if namespace_name else ""
175 model_file = csharp_module_file_name(schema)
176 model_path = f"{namespace_path}/{model_file}" if namespace_path else model_file
177 outputs = [(model_path, f"schema module {csharp_module_class_name(schema)}")]
178 if include_services:
179 for service in schema.services:
180 file_name = f"{service.name}Grpc.cs"
181 path = f"{namespace_path}/{file_name}" if namespace_path else file_name
182 outputs.append((path, f"service {service.name}"))
183 return outputs
184
185
186def csharp_top_level_symbols(

Callers 1

Calls 5

csharp_module_file_nameFunction · 0.85
csharp_module_class_nameFunction · 0.85
replaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected