DescriptionSupport external implementations of FileSpan.
Previously, several FileSpan methods assumed that all FileSpans were
implementations of this package's FileSpan class. However, this may not
always be true. It can be useful to create FileSpans without first
creating a SourceFile when efficient representations of line/column
information are already available, and the user doesn't want to eagerly
do the parsing necessary to create a full SourceFile.
This also fixes an inconsistency between FileSpan.== and
FileSpan.hashCode.
R=sigmund@google.com
Committed: https://github.com/dart-lang/source_span/commit/80c947f98cc290b4d95a46c829d3efbbb9560746
Patch Set 1 #
Total comments: 6
Patch Set 2 : Code review changes #Patch Set 3 : Code review changes #
Total comments: 4
Patch Set 4 : Code review changes #
Messages
Total messages: 10 (1 generated)
|