Add a sort to the parser context.
(self, sort: Any)
| 1133 | self._decls: dict[str, Any] = {} |
| 1134 | |
| 1135 | def add_sort(self, sort: Any) -> None: |
| 1136 | """Add a sort to the parser context.""" |
| 1137 | if hasattr(sort, "name"): |
| 1138 | self._sorts[sort.name()] = sort |
| 1139 | |
| 1140 | def add_decl(self, decl: Any) -> None: |
| 1141 | """Add a declaration to the parser context.""" |