structureName property

  1. @override
String structureName
override

Returns the name relative to the parentStructure-defined hierarchy, if one exists. Otherwise, this is the same as name.

This is useful for finding the name of a signal as an element of a root LogicArray or LogicStructure.

Implementation

@override
String get structureName {
  if (parentStructure != null) {
    if (isArrayMember) {
      return '${parentStructure!.structureName}[${arrayIndex!}]';
    } else {
      return '${parentStructure!.structureName}.$name';
    }
  } else {
    return name;
  }
}