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

Side by Side Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 680863002: Remove JavaStringBuilder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.source; 8 library engine.source;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 if (end <= other.offset) { 799 if (end <= other.offset) {
800 return false; 800 return false;
801 } 801 }
802 if (offset >= other.end) { 802 if (offset >= other.end) {
803 return false; 803 return false;
804 } 804 }
805 return true; 805 return true;
806 } 806 }
807 807
808 /** 808 /**
809 * @return `true` if this [SourceRange] starts in <code>otherRange</code>. 809 * Return `true` if this [SourceRange] starts in the [otherRange].
810 */ 810 */
811 bool startsIn(SourceRange otherRange) => otherRange.contains(offset); 811 bool startsIn(SourceRange otherRange) => otherRange.contains(offset);
812 812
813 @override 813 @override
814 String toString() { 814 String toString() => '[offset=$offset, length=$length]';
815 JavaStringBuilder builder = new JavaStringBuilder();
816 builder.append("[offset=");
817 builder.append(offset);
818 builder.append(", length=");
819 builder.append(length);
820 builder.append("]");
821 return builder.toString();
822 }
823 } 815 }
824 816
825 /** 817 /**
826 * The interface `ContentReceiver` defines the behavior of objects that can rece ive the 818 * The interface `ContentReceiver` defines the behavior of objects that can rece ive the
827 * content of a source. 819 * content of a source.
828 */ 820 */
829 abstract class Source_ContentReceiver { 821 abstract class Source_ContentReceiver {
830 /** 822 /**
831 * Accept the contents of a source. 823 * Accept the contents of a source.
832 * 824 *
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 902
911 /** 903 /**
912 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot 904 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot
913 * be computed. 905 * be computed.
914 * 906 *
915 * @param source the source to get URI for 907 * @param source the source to get URI for
916 * @return the absolute URI representing the given source 908 * @return the absolute URI representing the given source
917 */ 909 */
918 Uri restoreAbsolute(Source source) => null; 910 Uri restoreAbsolute(Source source) => null;
919 } 911 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698