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

Side by Side Diff: pkg/analyzer_experimental/lib/src/error.dart

Issue 16059002: Manual fixes for Dart^2 analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library error; 4 library error;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'generated/error.dart'; 10 import 'generated/error.dart';
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return builder.toString(); 91 return builder.toString();
92 } 92 }
93 } 93 }
94 94
95 // A content receiver that collects all the content into a string. 95 // A content receiver that collects all the content into a string.
96 class _ContentReceiver implements Source_ContentReceiver { 96 class _ContentReceiver implements Source_ContentReceiver {
97 final _buffer = new StringBuffer(); 97 final _buffer = new StringBuffer();
98 98
99 String get result => _buffer.toString(); 99 String get result => _buffer.toString();
100 100
101 void accept1(CharBuffer contents, _) => 101 void accept(CharBuffer contents, _) =>
102 _buffer.write(contents.subSequence(0, contents.length)); 102 _buffer.write(contents.subSequence(0, contents.length()));
103 103
104 void accept2(String contents, _) => _buffer.write(contents); 104 void accept2(String contents, _) => _buffer.write(contents);
105 } 105 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/example/resolver_driver.dart ('k') | pkg/analyzer_experimental/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698