src/developer/debug/zxdb/expr/resolve_collection.cc
Err GetErrorForInvalidMemberOf(const ExprValue& value) {
  if (!value.type())
    return Err("No type information.");

  if (const Collection* coll = value.type()->AsCollection())
    return GetErrorForInvalidMemberOf(coll);

  // Something other than a collection is the base.
  return Err("Accessing a member of non-struct/class/union '%s'.",
             value.type()->GetFullName().c_str());
}
// Tries to describe the type of the value as best as possible when a member access is invalid.
Tries to describe the type of the value as best as possible when a member access is invalid.
Tries to describe the type of the value as best as possible when a member access is invalid .
Err GetErrorForInvalidMemberOf(const ExprValue& value) {
  if (!value.type())
    return Err("No type information.");
  if (const Collection* coll = value.type()->AsCollection())
    return GetErrorForInvalidMemberOf(coll);
  return Err("Accessing a member of non-struct/class/union '%s'.",
             value.type()->GetFullName().c_str());
}
Err GetErrorForInvalidMemberOf ( const ExprValue & value ) { if ( ! value . type ( ) ) return Err ( " " ) ; if ( const Collection * coll = value . type ( ) -> AsCollection ( ) ) return GetErrorForInvalidMemberOf ( coll ) ; return Err ( " " , value . type ( ) -> GetFullName ( ) . c_str ( ) ) ; }
Tries to describe the type of the value as best as possible when a member access is invalid.
Tries to describe the type of the value as best as possible when a member access is invalid .
// Something other than a collection is the base.