Doc-comment public nu-protocol modules

This commit is contained in:
sholderbach 2024-05-19 23:05:11 +02:00
parent baeba19b22
commit 897d914458
12 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,4 @@
//! Types representing parsed Nushell code (the Abstract Syntax Tree)
mod block;
mod call;
mod cell_path;
@ -9,7 +10,7 @@ mod match_pattern;
mod operator;
mod pipeline;
mod range;
pub mod table;
mod table;
mod unit;
mod value_with_unit;

View File

@ -1,3 +1,4 @@
//! Module containing the internal representation of user configuration
use self::completer::*;
use self::helper::*;
use self::hooks::*;

View File

@ -1,3 +1,4 @@
//! Module containing the trait to instrument the engine for debugging and profiling
pub mod debugger_trait;
pub mod profiler;

View File

@ -1,3 +1,4 @@
//! Representation of the engine state and many of the details that implement the scoping
mod cached_file;
mod call_info;
mod capture_block;

View File

@ -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::{
engine::{EngineState, StateWorkingSet},
ErrorStyle,

View File

@ -1,3 +1,4 @@
//! Foundational [`Eval`] trait allowing dispatch between const-eval and regular evaluation
use crate::{
ast::{
eval_operator, Assignment, Bits, Boolean, Call, Comparison, Expr, Expression,

View File

@ -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::{
ast::{Assignment, Block, Call, Expr, Expression, ExternalArgument},
debugger::{DebugContext, WithoutDebug},

View File

@ -1,3 +1,4 @@
//! Module managing the streaming of raw bytes between pipeline elements
use crate::{
process::{ChildPipe, ChildProcess, ExitStatus},
ErrSpan, IntoSpanned, OutDest, PipelineData, ShellError, Span, Value,

View File

@ -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 std::{
fmt::Debug,

View File

@ -1,3 +1,4 @@
//! Handling of external subprocesses
mod child;
mod exit_status;

View File

@ -1,3 +1,4 @@
//! [`Span`] to point to sections of source code and the [`Spanned`] wrapper type
use miette::SourceSpan;
use serde::{Deserialize, Serialize};
use std::ops::Deref;

View File

@ -1,3 +1,4 @@
//! Our insertion ordered map-type [`Record`]
use std::{iter::FusedIterator, ops::RangeBounds};
use crate::{ShellError, Span, Value};