SourceReportRange class Null safety

The SourceReportRange class represents a range of executable code (function, method, constructor, etc) in the running program. It is part of a SourceReport.

Note that SourceReportRange does not extend Response and therefore will not contain a type property.

Constructors

SourceReportRange({int? scriptIndex, int? startPos, int? endPos, bool? compiled, ErrorRef? error, SourceReportCoverage? coverage, List<int>? possibleBreakpoints, SourceReportCoverage? branchCoverage})

Properties

branchCoverage SourceReportCoverage?
Branch coverage information for this range. Provided only when the BranchCoverage report has been requested and the range has been compiled.
optional">@optionalread / write
compiled bool?
Has this range been compiled by the Dart VM?
read / write
coverage SourceReportCoverage?
Code coverage information for this range. Provided only when the Coverage report has been requested and the range has been compiled.
optional">@optionalread / write
endPos int?
The token position at which this range ends. Inclusive.
read / write
error ErrorRef?
The error while attempting to compile this range, if this report was generated with forceCompile=true.
optional">@optionalread / write
hashCode int
The hash code for this object.
read-onlyinherited
possibleBreakpoints List<int>?
Possible breakpoint information for this range, represented as a sorted list of token positions (or line numbers if reportLines was enabled). Provided only when the when the PossibleBreakpoint report has been requested and the range has been compiled.
optional">@optionalread / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scriptIndex int?
An index into the script table of the SourceReport, indicating which script contains this range of code.
read / write
startPos int?
The token position at which this range begins.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Map<String, dynamic>? json) SourceReportRange?