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

Side by Side Diff: pkg/compiler/lib/src/diagnostics/source_span.dart

Issue 1315483006: Split scannerlib.dart into several libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update try tests Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.diagnostics.source_span; 5 library dart2js.diagnostics.source_span;
6 6
7 import '../scanner/scannerlib.dart' show 7 import '../scanner/token.dart' show
8 Token; 8 Token;
9 import '../tree/tree.dart' show 9 import '../tree/tree.dart' show
10 Node; 10 Node;
11 import 'spannable.dart' show 11 import 'spannable.dart' show
12 Spannable; 12 Spannable;
13 13
14 class SourceSpan implements Spannable { 14 class SourceSpan implements Spannable {
15 final Uri uri; 15 final Uri uri;
16 final int begin; 16 final int begin;
17 final int end; 17 final int end;
(...skipping 24 matching lines...) Expand all
42 bool operator ==(other) { 42 bool operator ==(other) {
43 if (identical(this, other)) return true; 43 if (identical(this, other)) return true;
44 if (other is! SourceSpan) return false; 44 if (other is! SourceSpan) return false;
45 return uri == other.uri && 45 return uri == other.uri &&
46 begin == other.begin && 46 begin == other.begin &&
47 end == other.end; 47 end == other.end;
48 } 48 }
49 49
50 String toString() => 'SourceSpan($uri, $begin, $end)'; 50 String toString() => 'SourceSpan($uri, $begin, $end)';
51 } 51 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698