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

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

Issue 189433006: Support for DartBlockBody, DartExpressionBody, DartOmit in java2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 9 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:math' as math;
8 7
9 import 'generated/error.dart'; 8 import 'generated/error.dart';
10 import 'generated/source.dart'; 9 import 'generated/source.dart';
11 10
12 /// The maximum line length when printing extracted source code when converting 11 /// The maximum line length when printing extracted source code when converting
13 /// an [AnalyzerError] to a string. 12 /// an [AnalyzerError] to a string.
14 final _MAX_ERROR_LINE_LENGTH = 120; 13 final _MAX_ERROR_LINE_LENGTH = 120;
15 14
16 /// An error class that collects multiple [AnalyzerError]s that are emitted 15 /// An error class that collects multiple [AnalyzerError]s that are emitted
17 /// during a single analysis. 16 /// during a single analysis.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 95
97 // A content receiver that collects all the content into a string. 96 // A content receiver that collects all the content into a string.
98 class _ContentReceiver implements Source_ContentReceiver { 97 class _ContentReceiver implements Source_ContentReceiver {
99 final _buffer = new StringBuffer(); 98 final _buffer = new StringBuffer();
100 99
101 String get result => _buffer.toString(); 100 String get result => _buffer.toString();
102 101
103 void accept(String contents, _) => 102 void accept(String contents, _) =>
104 _buffer.write(contents.substring(0, contents.length)); 103 _buffer.write(contents.substring(0, contents.length));
105 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698