inheritedMembers property

Map<Name, ExecutableElement2> get inheritedMembers

Returns a map of all members that this type inherits from supertypes via extends, with, implements, or on clauses, keyed by the member's Name.

Members declared in this type have no effect on the map. This means that:

  • If this type contains a member named foo, but none of its supertypes contains a member named foo, then there will be no entry for foo in the map.
  • If this type contains a member named foo, and one of its supertypes contains a member named foo, then there will be an entry for foo in this map, pointing to the declaration inherited from the supertype.

This method is potentially expensive, since it needs to consider all possible inherited names. If you only need to look up a certain specific name (or names), use getInheritedMember instead.

Implementation

Map<Name, ExecutableElement2> get inheritedMembers;