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

Method get_module_identifier

compiler/fory_compiler/generators/rust.py:178–181  ·  view source on GitHub ↗

Get the sanitized module name for a message's nested-type scope from the cache.

(self, message: Message)

Source from the content-addressed store, hash-verified

176 return self._type_identifier_cache[self._cache_key(type_def)]
177
178 def get_module_identifier(self, message: Message) -> str:
179 """Get the sanitized module name for a message's nested-type scope from the cache."""
180 self._ensure_name_caches(self._schema_for_node(message))
181 return self._module_identifier_cache[self._cache_key(message)]
182
183 def get_field_identifier(self, message: Message, field: Field) -> str:
184 """Get the sanitized field name within one message from the cache."""

Callers 4

get_module_pathMethod · 0.95

Calls 3

_ensure_name_cachesMethod · 0.95
_schema_for_nodeMethod · 0.95
_cache_keyMethod · 0.95

Tested by

no test coverage detected