MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / Noop_AST_Node

Class Noop_AST_Node

include/chaiscript/language/chaiscript_eval.hpp:1253–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1251
1252 template<typename T>
1253 struct Noop_AST_Node final : AST_Node_Impl<T> {
1254 Noop_AST_Node() :
1255 AST_Node_Impl<T>("", AST_Node_Type::Noop, Parse_Location())
1256 { }
1257
1258 Boxed_Value eval_internal(const chaiscript::detail::Dispatch_State &) const override{
1259 // It's a no-op, that evaluates to "void"
1260 return val;
1261 }
1262
1263 Boxed_Value val = void_var();
1264 };
1265
1266 template<typename T>
1267 struct Map_Pair_AST_Node final : AST_Node_Impl<T> {

Callers

nothing calls this directly

Calls 1

void_varFunction · 0.85

Tested by

no test coverage detected