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
Properties
- 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, read / 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, read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
possibleBreakpoints
↔ List<
int> -
Possible breakpoint information for this range, represented as a sorted
list of token positions. Provided only when the when the
PossibleBreakpoint report has been requested and the range has been
compiled.
@optional, read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- 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