Type check and coerce arguments to user functions and return values from std Rust functions (#6958)
* Shuffle around function call code Signed-off-by: Nick Cameron <nrc@ncameron.org> * Refactor function calls to share more code Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hack to leave the result of revolve as a singleton rather than array Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -18,15 +18,15 @@ use uuid::Uuid;
|
||||
use crate::{
|
||||
errors::{KclError, KclErrorDetails},
|
||||
execution::{
|
||||
fn_call::{Arg, Args, KwArgs},
|
||||
kcl_value::FunctionSource,
|
||||
types::{NumericType, PrimitiveType, RuntimeType},
|
||||
ExecState, Geometries, Geometry, KclObjectFields, KclValue, Sketch, Solid,
|
||||
},
|
||||
std::{
|
||||
args::{Arg, KwArgs, TyF64},
|
||||
args::TyF64,
|
||||
axis_or_reference::Axis2dOrPoint2d,
|
||||
utils::{point_3d_to_mm, point_to_mm},
|
||||
Args,
|
||||
},
|
||||
ExecutorContext, SourceRange,
|
||||
};
|
||||
|
Reference in New Issue
Block a user