Populates self.grammar from the file. Applies the self.prefix to operand enums
(self)
| 79 | self.load() |
| 80 | |
| 81 | def load(self): |
| 82 | """ |
| 83 | Populates self.grammar from the file. |
| 84 | Applies the self.prefix to operand enums |
| 85 | """ |
| 86 | with open(self.file) as json_file: |
| 87 | self.grammar = json.loads(json_file.read()) |
| 88 | if len(self.prefix) > 0: |
| 89 | prefix_operand_kind_names(self.prefix, self.grammar) |
| 90 | |
| 91 | |
| 92 | def convert_min_required_version(version): # (version: str | None) -> str |
no test coverage detected