Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Issue 1298093002: Support external implementations of FileSpan. (Closed)

Created:
5 years, 4 months ago by nweiz
Modified:
5 years, 4 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/source_span@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -17 lines) Patch
M CHANGELOG.md View 1 chunk +7 lines, -0 lines 0 comments Download
M lib/src/file.dart View 1 2 3 9 chunks +35 lines, -16 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (1 generated)
nweiz
5 years, 4 months ago (2015-08-18 02:04:24 UTC) #2
Siggi Cherem (dart-lang)
https://codereview.chromium.org/1298093002/diff/1/lib/src/file.dart File lib/src/file.dart (right): https://codereview.chromium.org/1298093002/diff/1/lib/src/file.dart#newcode221 lib/src/file.dart:221: if (other.runtimeType != FileSpan) return super.compareTo(other); Could we instead ...
5 years, 4 months ago (2015-08-18 18:01:59 UTC) #3
nweiz
https://codereview.chromium.org/1298093002/diff/1/lib/src/file.dart File lib/src/file.dart (right): https://codereview.chromium.org/1298093002/diff/1/lib/src/file.dart#newcode221 lib/src/file.dart:221: if (other.runtimeType != FileSpan) return super.compareTo(other); On 2015/08/18 18:01:59, ...
5 years, 4 months ago (2015-08-18 20:28:51 UTC) #4
nweiz
Code review changes
5 years, 4 months ago (2015-08-18 20:29:02 UTC) #5
nweiz
Code review changes
5 years, 4 months ago (2015-08-18 20:29:58 UTC) #6
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1298093002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/1298093002/diff/40001/CHANGELOG.md#newcode6 CHANGELOG.md:6: * `FileSpan.hashCode` now fully agrees with `FileSpan.==`. I ...
5 years, 4 months ago (2015-08-18 21:38:36 UTC) #7
nweiz
Code review changes
5 years, 4 months ago (2015-08-18 22:01:17 UTC) #8
nweiz
https://codereview.chromium.org/1298093002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/1298093002/diff/40001/CHANGELOG.md#newcode6 CHANGELOG.md:6: * `FileSpan.hashCode` now fully agrees with `FileSpan.==`. On 2015/08/18 ...
5 years, 4 months ago (2015-08-18 22:01:25 UTC) #9
nweiz
5 years, 4 months ago (2015-08-18 22:01:38 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
80c947f98cc290b4d95a46c829d3efbbb9560746 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698