Sha256: 5595d5e8d8f83d103c45c7378dcab69c15e2c79e333302024a2b7cfe23a8eeea
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
#include <cstdint> #include <cstddef> #include <string> #include <ostream> #include <sstream> #include <stack> #include <ruby.pb.h> namespace ruby_fuzzer { class protoConverter { public: protoConverter() { m_numLiveVars = 1; m_numVarsPerScope.push(m_numLiveVars); } protoConverter(protoConverter const& x) { m_numLiveVars = x.m_numLiveVars; m_numVarsPerScope = x.m_numVarsPerScope; } ~protoConverter() {} std::string FunctionToString(Function const& _input); private: void visit(ArrType const&); void visit(Array const&); void visit(AssignmentStatement const&); void visit(BinaryOp const&); void visit(BuiltinFuncs const&); void visit(Const const&); void visit(Function const&); void visit(HashType const&); void visit(IfElse const&); void visit(KVPair const&); void visit(MathConst const&); void visit(MathOps const&); void visit(MathType const&); void visit(ObjectSpace const&); void visit(Rvalue const&); void visit(Statement const&); void visit(StatementSeq const&); void visit(StringExtNoArg const&); void visit(Ternary const&); void visit(Time const&); void visit(VarRef const&); template <class T> void visit(google::protobuf::RepeatedPtrField<T> const& _repeated_field); std::string removeSpecial(const std::string &x); std::ostringstream m_output; std::stack<uint8_t> m_numVarsPerScope; int32_t m_numLiveVars; }; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
script_core-0.3.2 | ext/enterprise_script_service/mruby/oss-fuzz/proto_to_ruby.h |
script_core-0.3.0 | ext/enterprise_script_service/mruby/oss-fuzz/proto_to_ruby.h |