Lines Matching refs:schema
69 const reflection::Object* TypeForName(const reflection::Schema* schema, in TypeForName() argument
71 for (const reflection::Object* object : *schema->objects()) { in TypeForName()
79 Optional<int> TypeIdForObject(const reflection::Schema* schema, in TypeIdForObject() argument
81 for (int i = 0; i < schema->objects()->size(); i++) { in TypeIdForObject()
82 if (schema->objects()->Get(i) == type) { in TypeIdForObject()
89 Optional<int> TypeIdForName(const reflection::Schema* schema, in TypeIdForName() argument
91 for (int i = 0; i < schema->objects()->size(); i++) { in TypeIdForName()
92 if (type_name.Equals(schema->objects()->Get(i)->name()->str())) { in TypeIdForName()
99 bool SwapFieldNamesForOffsetsInPath(const reflection::Schema* schema, in SwapFieldNamesForOffsetsInPath() argument
101 if (schema == nullptr || !schema->root_table()) { in SwapFieldNamesForOffsetsInPath()
106 reflection::Object const* type = schema->root_table(); in SwapFieldNamesForOffsetsInPath()
123 type = schema->objects()->Get(field->type()->index()); in SwapFieldNamesForOffsetsInPath()
129 Variant ParseEnumValue(const reflection::Schema* schema, in ParseEnumValue() argument
132 TC3_CHECK_NE(schema->enums(), nullptr); in ParseEnumValue()
133 const auto* enum_values = schema->enums()->Get(type->index())->values(); in ParseEnumValue()