MCPcopy Create free account
hub / github.com/MikePopoloski/slang / eval

Method eval

source/ast/builtins/ArrayMethods.cpp:537–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535 true) {}
536
537 ConstantValue eval(EvalContext& context, const Args& args, SourceRange,
538 const CallExpression::SystemCallInfo&) const final {
539 auto val = args[0]->eval(context);
540 if (!val)
541 return nullptr;
542
543 return SVInt(32, val.size(), true);
544 }
545};
546
547class DynArrayDeleteMethod : public SimpleSystemSubroutine {

Callers

nothing calls this directly

Calls 3

SVIntFunction · 0.85
evalMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected