isSynthetic property

  1. @override
bool isSynthetic
override

Return true if this node is a synthetic node.

A synthetic node is a node that was introduced by the parser in order to recover from an error in the code. Synthetic nodes always have a length of zero (0).

Implementation

@override
bool get isSynthetic =>
    _expression.isSynthetic && (semicolon == null || semicolon!.isSynthetic);