hasSlicing property
Whether this reference includes slicing.
Returns true if both sliceUpperIndex and sliceLowerIndex are
defined, indicating this is a slice like [7:0] rather than just an array
index like [3].
Implementation
bool get hasSlicing => sliceUpperIndex != null && sliceLowerIndex != null;