Lines Matching refs:var_spec
27 static VarInstance VarInstanceStubFromSpec(const VarSpec &var_spec) { in VarInstanceStubFromSpec() argument
29 if (var_spec.has_type()) { in VarInstanceStubFromSpec()
30 result.set_type(var_spec.type()); in VarInstanceStubFromSpec()
32 cerr << "VarInstance with no type field: " << var_spec.DebugString(); in VarInstanceStubFromSpec()
35 if (var_spec.has_name()) { in VarInstanceStubFromSpec()
36 result.set_name(var_spec.name()); in VarInstanceStubFromSpec()
38 if (var_spec.has_predefined_type()) { in VarInstanceStubFromSpec()
39 result.set_predefined_type(var_spec.predefined_type()); in VarInstanceStubFromSpec()
44 VarInstance ProtoFuzzerMutator::ArrayRandomGen(const VarSpec &var_spec) { in ArrayRandomGen() argument
45 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in ArrayRandomGen()
46 size_t vector_size = var_spec.vector_size(); in ArrayRandomGen()
49 *result.add_vector_value() = this->RandomGen(var_spec.vector_value(0)); in ArrayRandomGen()
62 VarInstance ProtoFuzzerMutator::EnumRandomGen(const VarSpec &var_spec) { in EnumRandomGen() argument
63 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in EnumRandomGen()
92 VarInstance ProtoFuzzerMutator::ScalarRandomGen(const VarSpec &var_spec) { in ScalarRandomGen() argument
93 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in ScalarRandomGen()
94 result.set_scalar_type(var_spec.scalar_type()); in ScalarRandomGen()
107 VarInstance ProtoFuzzerMutator::StringRandomGen(const VarSpec &var_spec) { in StringRandomGen() argument
108 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in StringRandomGen()
159 VarInstance ProtoFuzzerMutator::StructRandomGen(const VarSpec &var_spec) { in StructRandomGen() argument
160 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in StructRandomGen()
176 VarInstance ProtoFuzzerMutator::UnionRandomGen(const VarSpec &var_spec) { in UnionRandomGen() argument
177 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in UnionRandomGen()
200 VarInstance ProtoFuzzerMutator::VectorRandomGen(const VarSpec &var_spec) { in VectorRandomGen() argument
201 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in VectorRandomGen()
204 *result.add_vector_value() = this->RandomGen(var_spec.vector_value(0)); in VectorRandomGen()