Rename MemoryItem to KclValue (#3378)

As @jon points out, "It's not only used in ProgramMemory. It's also
used as the return value of functions and as what gets substituted in
for the pipe substitution symbol %"
This commit is contained in:
Adam Chalmers
2024-08-12 16:53:24 -05:00
committed by GitHub
parent 13986fcfd7
commit 3dabab2c74
37 changed files with 335 additions and 335 deletions

View File

@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
use crate::{
errors::{KclError, KclErrorDetails},
executor::{ExtrudeGroup, MemoryItem},
executor::{ExtrudeGroup, KclValue},
std::{sketch::FaceTag, Args},
};
@ -24,11 +24,11 @@ pub struct ShellData {
}
/// Create a shell.
pub async fn shell(args: Args) -> Result<MemoryItem, KclError> {
pub async fn shell(args: Args) -> Result<KclValue, KclError> {
let (data, extrude_group): (ShellData, Box<ExtrudeGroup>) = args.get_data_and_extrude_group()?;
let extrude_group = inner_shell(data, extrude_group, args).await?;
Ok(MemoryItem::ExtrudeGroup(extrude_group))
Ok(KclValue::ExtrudeGroup(extrude_group))
}
/// Remove volume from a 3-dimensional shape such that a wall of the