// We expect a WavyItem to be a WavyObject private dynamic expect_wobject(WItem item) { ASSERT_ERR(!(item is WObject), CoreErrorType.UNEXPECTED_TYPE, "Expected WavyObject, but got: " + item.GetType()); return(item); }
// We expect a WavyItem to be an int private dynamic expect_int(WItem item) { ASSERT_ERR(item is Wint, CoreErrorType.UNEXPECTED_TYPE, "Expected int, but got: " + item.GetType()); return((Wint)item); }
// We expect a WavyItem to be a WavyFunction private dynamic expect_wfunc(WItem item) { ASSERT_ERR(!(item is WFunction), CoreErrorType.UNEXPECTED_TYPE, "Expected WavyFunction, but got: " + item.GetType()); return(item); }
// We expect a WavyItem to be a numeric private dynamic expect_numeric(WItem item) { ASSERT_ERR(!(item is Wint) && !(item is Wdouble), CoreErrorType.UNEXPECTED_TYPE, "Expected numeric, but got: " + item.GetType()); return(item); }