zircon/tools/fidl/lib/tables_generator.cc
std::string CodedNameForEnvelope(const fidl::coded::Type* type) {
  switch (type->kind) {
    case coded::Type::Kind::kPrimitive: {
      using fidl::types::PrimitiveSubtype;
      // To save space, all primitive types of the same underlying subtype
      // share the same table.
      std::string suffix =
          PrimitiveSubtypeToString(static_cast<const coded::PrimitiveType*>(type)->subtype);
      return "fidl_internal_k" + suffix;
    }
    default:
      return type->coded_name;
  }
}
// When generating coding tables for containers employing envelopes (xunions & tables),
// we need to reference coding tables for primitives, in addition to types that need coding.
// This function handles naming coding tables for both cases.
When generating coding tables for containers employing envelopes (xunions & tables),
we need to reference coding tables for primitives, in addition to types that need coding.
This function handles naming coding tables for both cases.
When generating coding tables for containers employing envelopes ( xunions & tables ) we need to reference coding tables for primitives in addition to types that need coding . This function handles naming coding tables for both cases .
std::string CodedNameForEnvelope(const fidl::coded::Type* type) {
  switch (type->kind) {
    case coded::Type::Kind::kPrimitive: {
      using fidl::types::PrimitiveSubtype;
      std::string suffix =
          PrimitiveSubtypeToString(static_cast<const coded::PrimitiveType*>(type)->subtype);
      return "fidl_internal_k" + suffix;
    }
    default:
      return type->coded_name;
  }
}
std :: string CodedNameForEnvelope ( const fidl :: coded :: Type * type ) { switch ( type -> kind ) { case coded :: Type :: Kind :: kPrimitive : { using fidl :: types :: PrimitiveSubtype ; std :: string suffix = PrimitiveSubtypeToString ( static_cast < const coded :: PrimitiveType * > ( type ) -> subtype ) ; return " " + suffix ; } default : return type -> coded_name ; } }
When generating coding tables for containers employing envelopes (xunions & tables),
we need to reference coding tables for primitives, in addition to types that need coding.
When generating coding tables for containers employing envelopes ( xunions & tables ) we need to reference coding tables for primitives in addition to types that need coding .
// To save space, all primitive types of the same underlying subtype // share the same table.