Lines Matching refs:flat

328 const coded::Type* TablesGenerator::CompileType(const flat::Type* type) {  in CompileType()
330 case flat::Type::Kind::kArray: { in CompileType()
331 auto array_type = static_cast<const flat::ArrayType*>(type); in CompileType()
345 case flat::Type::Kind::kVector: { in CompileType()
346 auto vector_type = static_cast<const flat::VectorType*>(type); in CompileType()
352 static_cast<const flat::Size&>(vector_type->element_count->Value()).value; in CompileType()
362 case flat::Type::Kind::kString: { in CompileType()
363 auto string_type = static_cast<const flat::StringType*>(type); in CompileType()
368 static_cast<const flat::Size&>(string_type->max_size->Value()).value; in CompileType()
376 case flat::Type::Kind::kHandle: { in CompileType()
377 auto handle_type = static_cast<const flat::HandleType*>(type); in CompileType()
388 case flat::Type::Kind::kRequestHandle: { in CompileType()
389 auto request_type = static_cast<const flat::RequestHandleType*>(type); in CompileType()
400 case flat::Type::Kind::kPrimitive: { in CompileType()
401 auto primitive_type = static_cast<const flat::PrimitiveType*>(type); in CompileType()
408 flat::PrimitiveType::SubtypeSize(primitive_type->subtype)); in CompileType()
413 case flat::Type::Kind::kIdentifier: { in CompileType()
414 auto identifier_type = static_cast<const flat::IdentifierType*>(type); in CompileType()
488 void TablesGenerator::CompileFields(const flat::Decl* decl) { in CompileFields()
490 case flat::Decl::Kind::kInterface: { in CompileFields()
491 auto interface_decl = static_cast<const flat::Interface*>(decl); in CompileFields()
498 auto CompileMessage = [&](const flat::Struct& message) -> void { in CompileFields()
523 case flat::Decl::Kind::kStruct: { in CompileFields()
524 auto struct_decl = static_cast<const flat::Struct*>(decl); in CompileFields()
539 case flat::Decl::Kind::kUnion: { in CompileFields()
540 auto union_decl = static_cast<const flat::Union*>(decl); in CompileFields()
558 case flat::Decl::Kind::kTable: { in CompileFields()
559 auto table_decl = static_cast<const flat::Table*>(decl); in CompileFields()
563 std::map<uint32_t, const flat::Table::Member*> members; in CompileFields()
585 void TablesGenerator::Compile(const flat::Decl* decl) { in Compile()
587 case flat::Decl::Kind::kConst: in Compile()
590 case flat::Decl::Kind::kEnum: { in Compile()
591 auto enum_decl = static_cast<const flat::Enum*>(decl); in Compile()
596 flat::PrimitiveType::SubtypeSize(enum_decl->type->subtype))); in Compile()
599 case flat::Decl::Kind::kInterface: { in Compile()
600 auto interface_decl = static_cast<const flat::Interface*>(decl); in Compile()
609 auto CreateMessage = [&](const flat::Struct& message, in Compile()
630 case flat::Decl::Kind::kTable: { in Compile()
631 auto table_decl = static_cast<const flat::Table*>(decl); in Compile()
641 case flat::Decl::Kind::kStruct: { in Compile()
642 auto struct_decl = static_cast<const flat::Struct*>(decl); in Compile()
654 case flat::Decl::Kind::kUnion: { in Compile()
655 auto union_decl = static_cast<const flat::Union*>(decl); in Compile()