SourceReportRange class

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.
getter/setter pair
compiled bool?
Has this range been compiled by the Dart VM?
getter/setter pair
coverage SourceReportCoverage?
Code coverage information for this range. Provided only when the Coverage report has been requested and the range has been compiled.
getter/setter pair
endPos int?
The token position at which this range ends. Inclusive.
getter/setter pair
error ErrorRef?
The error while attempting to compile this range, if this report was generated with forceCompile=true.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scriptIndex int?
An index into the script table of the SourceReport, indicating which script contains this range of code.
getter/setter pair
startPos int?
The token position at which this range begins.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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?