1
0

Write docs

This commit is contained in:
Jeff 2024-01-30 18:19:05 -05:00
parent 4cbfdde4a3
commit c5241bb0af
2 changed files with 3 additions and 0 deletions

View File

@ -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,

View File

@ -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>,