isLabel property

bool get isLabel

True if this refers to a label name.

Implementation

bool get isLabel =>
    parent is BreakStatement ||
    parent is ContinueStatement ||
    parent is LabeledStatement;