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

Method parse_file

compiler/fory_compiler/frontend/base.py:47–49  ·  view source on GitHub ↗

Parse a file and return a Fory IR schema.

(self, path: Path)

Source from the content-addressed store, hash-verified

45 """Parse source and return a Fory IR schema."""
46
47 def parse_file(self, path: Path) -> Schema:
48 """Parse a file and return a Fory IR schema."""
49 return self.parse(path.read_text(), str(path))
50
51 def supports_file(self, path: Path) -> bool:
52 """Return True if this frontend handles the file extension."""

Callers 1

parse_idl_fileFunction · 0.80

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected