Sema
- class Sema
Semantic resolver for SysML. This is responsible for linking references and resolving semantic rules in the pipeline.
Members defined in
Sema(2 members)Deprecated Link and resolve semantic rules for
documents. Any documents that have already been resolved will be skipped, inferred bybuild_state >= BuildState.Built. For references to be resolved correctly, they either have to point to elements in unresolveddocuments, or elements indexed inindex. Similarly, semantic rules depend on all the required elements cached bystdlib.Methods
- resolve(documents: Sequence[syside.SharedMutex[syside.Document]], index: syside.StaticIndex, stdlib: syside.Stdlib, reporter: Callable[[syside.Document, syside.Diagnostic], None] = ...) None
Deprecated Link and resolve semantic rules for
documents. Any documents that have already been resolved will be skipped, inferred bybuild_state >= BuildState.Built. For references to be resolved correctly, they either have to point to elements in unresolveddocuments, or elements indexed inindex. Similarly, semantic rules depend on all the required elements cached bystdlib.Deprecated since version 0.11: use the other resolve overload instead
reportercan be used to override default behaviour of how diagnostics are emitted. By default, they are printed to stdout.
- resolve(documents: Sequence[syside.Document], index: syside.StaticIndex, stdlib: syside.Stdlib, reporter: Callable[[syside.Document, syside.Diagnostic], None] = ...) None
Link and resolve semantic rules for
documents. Any documents that have already been resolved will be skipped, inferred bybuild_state >= BuildState.Built. For references to be resolved correctly, they either have to point to elements in unresolveddocuments, or elements indexed inindex. Similarly, semantic rules depend on all the required elements cached bystdlib.reportercan be used to override default behaviour of how diagnostics are emitted. By default, they are printed to stdout.