isVariable property

bool get isVariable

True if this refers to a variable name.

Implementation

bool get isVariable =>
    parent is NameExpression ||
    parent is FunctionNode ||
    parent is VariableDeclarator ||
    parent is CatchClause;