Loads a method from the program. Args: name: The name of the method to load. Returns: The loaded method.
(self, name: str)
| 181 | return set(self._methods.keys()) |
| 182 | |
| 183 | def load_method(self, name: str) -> Optional[Method]: |
| 184 | """Loads a method from the program. |
| 185 | |
| 186 | Args: |
| 187 | name: The name of the method to load. |
| 188 | |
| 189 | Returns: |
| 190 | The loaded method. |
| 191 | """ |
| 192 | |
| 193 | method = self._methods[name] |
| 194 | if method is None: |
| 195 | method = Method(self._program.load_method(name)) |
| 196 | self._methods[name] = method |
| 197 | return method |
| 198 | |
| 199 | def metadata(self, method_name: str) -> MethodMeta: |
| 200 | """Gets the metadata for the specified method without loading it. |