Write docs
This commit is contained in:
parent
4cbfdde4a3
commit
c5241bb0af
@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
use crate::{AbstractTree, Error, Format, Map, Result, Type, Value};
|
use crate::{AbstractTree, Error, Format, Map, Result, Type, Value};
|
||||||
|
|
||||||
|
/// An external program invokation.
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)]
|
||||||
pub struct Command {
|
pub struct Command {
|
||||||
command_text: String,
|
command_text: String,
|
||||||
|
@ -5,6 +5,7 @@ use crate::{
|
|||||||
SyntaxPosition, Type, Value,
|
SyntaxPosition, Type, Value,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// A function being invoked and the arguments it is being passed.
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)]
|
||||||
pub struct FunctionCall {
|
pub struct FunctionCall {
|
||||||
function_expression: FunctionExpression,
|
function_expression: FunctionExpression,
|
||||||
@ -13,6 +14,7 @@ pub struct FunctionCall {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl FunctionCall {
|
impl FunctionCall {
|
||||||
|
/// Returns a new FunctionCall.
|
||||||
pub fn new(
|
pub fn new(
|
||||||
function_expression: FunctionExpression,
|
function_expression: FunctionExpression,
|
||||||
arguments: Vec<Expression>,
|
arguments: Vec<Expression>,
|
||||||
|
Loading…
Reference in New Issue
Block a user