modelrt

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package modelrt builds execution runtimes over a workspace's documents, so the workspace model itself never links the runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detacher

type Detacher interface {
	Detach() (*model.Detached, error)
}

Detacher is what a runtime is built from: a model.Workspace, or a model.Reading under its lock.

type Runtime

type Runtime struct {
	*model.Detached
	// contains filtered or unexported fields
}

Runtime is a runtime model over the workspace's documents as they stood when it was built, on an index of its own that later edits do not touch.

func New

func New(origin Detacher) (*Runtime, error)

New builds a runtime over origin's current documents on a detached index.

func (*Runtime) Model

func (r *Runtime) Model() *runtime.Model

Model is the runtime model executions are built over with runtime.NewContext.

func (*Runtime) RequirementVerdicts

func (r *Runtime) RequirementVerdicts() view.Verdicts

RequirementVerdicts is the verdict overlay of the workspace r was built from: a requirement, the declaration of its document and span, answers the verdicts of the cases r's documents declare verifying it, run in one context over r.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL