span property

FileSpan? span

The relevant portion of the source code that caused this error. Some AST nodes don't have a span, in that case this error is going to have a null span as well.

Implementation

FileSpan? get span => source?.span;