From c5241bb0af2a6c2141e68eb1611c5c39603621be Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 30 Jan 2024 18:19:05 -0500 Subject: [PATCH] Write docs --- src/abstract_tree/command.rs | 1 + src/abstract_tree/function_call.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/abstract_tree/command.rs b/src/abstract_tree/command.rs index 645a29d..d67e7a0 100644 --- a/src/abstract_tree/command.rs +++ b/src/abstract_tree/command.rs @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize}; use crate::{AbstractTree, Error, Format, Map, Result, Type, Value}; +/// An external program invokation. #[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)] pub struct Command { command_text: String, diff --git a/src/abstract_tree/function_call.rs b/src/abstract_tree/function_call.rs index b743aca..1839882 100644 --- a/src/abstract_tree/function_call.rs +++ b/src/abstract_tree/function_call.rs @@ -5,6 +5,7 @@ use crate::{ SyntaxPosition, Type, Value, }; +/// A function being invoked and the arguments it is being passed. #[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)] pub struct FunctionCall { function_expression: FunctionExpression, @@ -13,6 +14,7 @@ pub struct FunctionCall { } impl FunctionCall { + /// Returns a new FunctionCall. pub fn new( function_expression: FunctionExpression, arguments: Vec,