structureName property
String
get
structureName
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
String get structureName {
if (parentStructure != null) {
if (parentStructure is LogicArray) {
return '${parentStructure!.structureName}[${arrayIndex!}]';
} else {
return '${parentStructure!.structureName}.$name';
}
} else {
return name;
}
}