MiValue.isDAssociativeArray

bool isDAssociativeArray() @safe

Returns

true if this value looks like a D associative array.

Detection heuristics (in order):

  1. Tuple with a single ptr/_ptr field and no length/_length.

This matches the raw struct representation of object.MemberInfo* or similar pointer-based AA implementations visible in GDB.

  1. Tuple whose first child contains both key and value fields.

This matches the output of GDB pretty-printers that expand AA entries into [index] = {key = ..., value = ...} tuples.

  1. Stringified summary starting with `{` that contains key = and value =.

This matches the text summary produced by some GDB versions when pretty-printing is enabled but MI structured output is not available.

Returns false for values that do not match any of these patterns. Note that detection depends on GDB version and pretty-printer configuration; callers should handle the case where this method returns false for a valid AA.