src/developer/debug/zxdb/expr/resolve_collection.cc
Err GetMemberType(const fxl::RefPtr<EvalContext>& context, const Collection* coll,
                  const DataMember* member, fxl::RefPtr<Type>* member_type, uint32_t* member_size) {
  if (!member)
    return GetErrorForInvalidMemberOf(coll);

  *member_type = RefPtrTo(member->type().Get()->AsType());
  if (!*member_type) {
    return Err("Bad type information for '%s.%s'.", coll->GetFullName().c_str(),
               member->GetAssignedName().c_str());
  }

  return Err();
}
// Validates the input member (it will null check) and extracts the type and size for the member.
// The size is returned separately because the member_type might be a forward declaration and
// we can't return a concrete type without breaking CV qualifiers.
Validates the input member (it will null check) and extracts the type and size for the member.
The size is returned separately because the member_type might be a forward declaration and
we can't return a concrete type without breaking CV qualifiers.
Validates the input member ( it will null check ) and extracts the type and size for the member . The size is returned separately because the member_type might be a forward declaration and we can ' t return a concrete type without breaking CV qualifiers .
Err GetMemberType(const fxl::RefPtr<EvalContext>& context, const Collection* coll,
                  const DataMember* member, fxl::RefPtr<Type>* member_type, uint32_t* member_size) {
  if (!member)
    return GetErrorForInvalidMemberOf(coll);
  *member_type = RefPtrTo(member->type().Get()->AsType());
  if (!*member_type) {
    return Err("Bad type information for '%s.%s'.", coll->GetFullName().c_str(),
               member->GetAssignedName().c_str());
  }
  return Err();
}
Err GetMemberType ( const fxl :: RefPtr < EvalContext > & context , const Collection * coll , const DataMember * member , fxl :: RefPtr < Type > * member_type , uint32_t * member_size ) { if ( ! member ) return GetErrorForInvalidMemberOf ( coll ) ; * member_type = RefPtrTo ( member -> type ( ) . Get ( ) -> AsType ( ) ) ; if ( ! * member_type ) { return Err ( " " , coll -> GetFullName ( ) . c_str ( ) , member -> GetAssignedName ( ) . c_str ( ) ) ; } return Err ( ) ; }
Validates the input member (it will null check) and extracts the type and size for the member.
Validates the input member ( it will null check ) and extracts the type and size for the member .