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

@ -389,7 +389,7 @@ fn do_stdlib_inner(
fn #boxed_fn_name_ident(
args: crate::std::Args,
) -> std::pin::Pin<
Box<dyn std::future::Future<Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>> + Send>,
Box<dyn std::future::Future<Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>> + Send>,
> {
Box::pin(#fn_name_ident(args))
}

View File

@ -48,7 +48,7 @@ fn boxed_someFn(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_someFn(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -81,7 +81,7 @@ fn boxed_show(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_show(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -82,7 +82,7 @@ fn boxed_my_func(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -82,7 +82,7 @@ fn boxed_line_to(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -81,7 +81,7 @@ fn boxed_min(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_show(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_import(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_import(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_import(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {

View File

@ -48,7 +48,7 @@ fn boxed_show(
) -> std::pin::Pin<
Box<
dyn std::future::Future<
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
Output = anyhow::Result<crate::executor::KclValue, crate::errors::KclError>,
> + Send,
>,
> {