Module engine

Source
Expand description

Representation of the engine state and many of the details that implement the scoping

Structs§

ArgumentStack
Stores the argument context for calls in IR evaluation.
CachedFile
Unit of cached source code
Call
This is a HACK to help Command support both the old AST evaluator and the new IR evaluator at the same time. It should be removed once we are satisfied with the new evaluator.
Closure
EngineState
The core global engine state. This includes all global definitions as well as any global state that will persist for the whole session.
ErrorHandler
Describes an error handler stored during IR evaluation.
ErrorHandlerStack
Keeps track of error handlers pushed during evaluation of an IR block.
FileStack
Files being evaluated, arranged as a stack.
IsDebugging
OverlayFrame
ReplState
ScopeFrame
Sequence
Implements an atomically incrementing sequential series of numbers
Stack
A runtime value stack used during evaluation
StackCallArgGuard
StackCollectValueGuard
StackIoGuard
StateDelta
A delta (or change set) between the current global state and a possible future global state. Deltas can be applied to the global state to update it to contain both previous state and the state held within the delta.
StateWorkingSet
A temporary extension to the global state. This handles bridging between the global state and the additional declarations and scope changes that are not yet part of the global scope.
UnevaluatedCallInfo
Variable
Visibility
Tells whether a decl is visible or not

Enums§

Argument
Represents a fully evaluated argument to a call.
CallImpl
CommandType
Redirection
VirtualPath

Constants§

ENV_VARIABLE_ID
IN_VARIABLE_ID
NU_VARIABLE_ID
UNKNOWN_SPAN_ID

Statics§

DEFAULT_OVERLAY_NAME

Traits§

Command
CommandClone
Matcher

Type Aliases§

EnvVars
Environment variables per overlay