Doc-comment public nu-protocol
modules
This commit is contained in:
parent
baeba19b22
commit
897d914458
|
@ -1,3 +1,4 @@
|
||||||
|
//! Types representing parsed Nushell code (the Abstract Syntax Tree)
|
||||||
mod block;
|
mod block;
|
||||||
mod call;
|
mod call;
|
||||||
mod cell_path;
|
mod cell_path;
|
||||||
|
@ -9,7 +10,7 @@ mod match_pattern;
|
||||||
mod operator;
|
mod operator;
|
||||||
mod pipeline;
|
mod pipeline;
|
||||||
mod range;
|
mod range;
|
||||||
pub mod table;
|
mod table;
|
||||||
mod unit;
|
mod unit;
|
||||||
mod value_with_unit;
|
mod value_with_unit;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Module containing the internal representation of user configuration
|
||||||
use self::completer::*;
|
use self::completer::*;
|
||||||
use self::helper::*;
|
use self::helper::*;
|
||||||
use self::hooks::*;
|
use self::hooks::*;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Module containing the trait to instrument the engine for debugging and profiling
|
||||||
pub mod debugger_trait;
|
pub mod debugger_trait;
|
||||||
pub mod profiler;
|
pub mod profiler;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Representation of the engine state and many of the details that implement the scoping
|
||||||
mod cached_file;
|
mod cached_file;
|
||||||
mod call_info;
|
mod call_info;
|
||||||
mod capture_block;
|
mod capture_block;
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
//! This module manages the step of turning error types into printed error messages
|
||||||
|
//!
|
||||||
|
//! Relies on the `miette` crate for pretty layout
|
||||||
use crate::{
|
use crate::{
|
||||||
engine::{EngineState, StateWorkingSet},
|
engine::{EngineState, StateWorkingSet},
|
||||||
ErrorStyle,
|
ErrorStyle,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Foundational [`Eval`] trait allowing dispatch between const-eval and regular evaluation
|
||||||
use crate::{
|
use crate::{
|
||||||
ast::{
|
ast::{
|
||||||
eval_operator, Assignment, Bits, Boolean, Call, Comparison, Expr, Expression,
|
eval_operator, Assignment, Bits, Boolean, Call, Comparison, Expr, Expression,
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
//! Implementation of const-evaluation
|
||||||
|
//!
|
||||||
|
//! This enables you to assign `const`-constants and execute parse-time code dependent on this.
|
||||||
|
//! e.g. `source $my_const`
|
||||||
use crate::{
|
use crate::{
|
||||||
ast::{Assignment, Block, Call, Expr, Expression, ExternalArgument},
|
ast::{Assignment, Block, Call, Expr, Expression, ExternalArgument},
|
||||||
debugger::{DebugContext, WithoutDebug},
|
debugger::{DebugContext, WithoutDebug},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Module managing the streaming of raw bytes between pipeline elements
|
||||||
use crate::{
|
use crate::{
|
||||||
process::{ChildPipe, ChildProcess, ExitStatus},
|
process::{ChildPipe, ChildProcess, ExitStatus},
|
||||||
ErrSpan, IntoSpanned, OutDest, PipelineData, ShellError, Span, Value,
|
ErrSpan, IntoSpanned, OutDest, PipelineData, ShellError, Span, Value,
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
//! Module managing the streaming of individual [`Value`]s as a [`ListStream`] between pipeline
|
||||||
|
//! elements
|
||||||
|
//!
|
||||||
|
//! For more general infos regarding our pipelining model refer to [`PipelineData`]
|
||||||
use crate::{Config, PipelineData, ShellError, Span, Value};
|
use crate::{Config, PipelineData, ShellError, Span, Value};
|
||||||
use std::{
|
use std::{
|
||||||
fmt::Debug,
|
fmt::Debug,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Handling of external subprocesses
|
||||||
mod child;
|
mod child;
|
||||||
mod exit_status;
|
mod exit_status;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! [`Span`] to point to sections of source code and the [`Spanned`] wrapper type
|
||||||
use miette::SourceSpan;
|
use miette::SourceSpan;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Our insertion ordered map-type [`Record`]
|
||||||
use std::{iter::FusedIterator, ops::RangeBounds};
|
use std::{iter::FusedIterator, ops::RangeBounds};
|
||||||
|
|
||||||
use crate::{ShellError, Span, Value};
|
use crate::{ShellError, Span, Value};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user