fix(report): consistent caption casing
This commit is contained in:
@@ -9,5 +9,5 @@
|
||||
|
||||
#figure(
|
||||
code(midas-typer-members-code),
|
||||
caption: [Midas Typer Members]
|
||||
caption: [Midas typer members]
|
||||
) <fig:midas-typer-members>
|
||||
@@ -141,7 +141,7 @@ Although not types, predicates will also be represented by similar dataclasses i
|
||||
body: m.Expr
|
||||
alias: bool
|
||||
```,
|
||||
caption: [Predicate Dataclass]
|
||||
caption: [Predicate dataclass]
|
||||
) <fig:types-predicate>
|
||||
|
||||
This class holds three properties of predicates:
|
||||
|
||||
@@ -26,7 +26,7 @@ With structures to represent our types, we now need to implement the registry wh
|
||||
def lookup_member(self, type: Type, member_name: str) -> Optional[Type]: ...
|
||||
def lookup_predicate(self, name: str) -> Optional[Predicate]: ...
|
||||
```,
|
||||
caption: [Minimal Registry Contract]
|
||||
caption: [Minimal registry contract]
|
||||
) <fig:registry-contract>
|
||||
|
||||
The `define_*` and `lookup_*`/`get_*` methods are quite straightforward, inserting and querying an internal dictionary with some added safeguards and errors to prevent redefining an entity or handle undefined references. Additionally, `define_member` handles overriding methods by wrapping multiple method definitions with the same member name inside an `OverloadedFunction` type. This process is detailed in @sec:define_member hereafter. The complete implementation of `TypesRegistry` is available in the repository in #code-ref(<types-registry>, "midas/checker/registry.py")
|
||||
|
||||
Reference in New Issue
Block a user