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

Side by Side Diff: packages/source_span/lib/src/span.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 source_span.span; 5 library source_span.span;
6 6
7 import 'location.dart'; 7 import 'location.dart';
8 import 'span_mixin.dart'; 8 import 'span_mixin.dart';
9 9
10 /// A class that describes a segment of source text. 10 /// A class that describes a segment of source text.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 throw new ArgumentError("Source URLs \"${start.sourceUrl}\" and " 69 throw new ArgumentError("Source URLs \"${start.sourceUrl}\" and "
70 " \"${end.sourceUrl}\" don't match."); 70 " \"${end.sourceUrl}\" don't match.");
71 } else if (end.offset < start.offset) { 71 } else if (end.offset < start.offset) {
72 throw new ArgumentError('End $end must come after start $start.'); 72 throw new ArgumentError('End $end must come after start $start.');
73 } else if (text.length != start.distance(end)) { 73 } else if (text.length != start.distance(end)) {
74 throw new ArgumentError('Text "$text" must be ${start.distance(end)} ' 74 throw new ArgumentError('Text "$text" must be ${start.distance(end)} '
75 'characters long.'); 75 'characters long.');
76 } 76 }
77 } 77 }
78 } 78 }
OLDNEW
« no previous file with comments | « packages/source_span/lib/src/location_mixin.dart ('k') | packages/source_span/lib/src/span_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698