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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/source_file_provider.dart

Issue 609783002: Support static field access in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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 | 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 4
5 library source_file_provider; 5 library source_file_provider;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:math' as math; 10 import 'dart:math' as math;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 throw 'Unknown kind: $kind (${kind.ordinal})'; 193 throw 'Unknown kind: $kind (${kind.ordinal})';
194 } 194 }
195 if (!enableColors) { 195 if (!enableColors) {
196 color = (x) => x; 196 color = (x) => x;
197 } 197 }
198 if (uri == null) { 198 if (uri == null) {
199 print('${color(message)}'); 199 print('${color(message)}');
200 } else { 200 } else {
201 SourceFile file = provider.sourceFiles[uri.toString()]; 201 SourceFile file = provider.sourceFiles[uri.toString()];
202 if (file != null) { 202 if (file != null) {
203 print(file.getLocationMessage(color(message), begin, end, true, color)); 203 print(file.getLocationMessage(
204 color(message), begin, end, colorize: color));
204 } else { 205 } else {
205 print('${provider.relativizeUri(uri)}@$begin+${end - begin}:' 206 print('${provider.relativizeUri(uri)}@$begin+${end - begin}:'
206 ' [$kind] ${color(message)}'); 207 ' [$kind] ${color(message)}');
207 } 208 }
208 } 209 }
209 if (fatal && ++fatalCount >= throwOnErrorCount && throwOnError) { 210 if (fatal && ++fatalCount >= throwOnErrorCount && throwOnError) {
210 isAborting = true; 211 isAborting = true;
211 throw new AbortLeg(message); 212 throw new AbortLeg(message);
212 } 213 }
213 } 214 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 var onAdd, onClose; 314 var onAdd, onClose;
314 315
315 EventSinkWrapper(this.onAdd, this.onClose); 316 EventSinkWrapper(this.onAdd, this.onClose);
316 317
317 void add(String data) => onAdd(data); 318 void add(String data) => onAdd(data);
318 319
319 void addError(error, [StackTrace stackTrace]) => throw error; 320 void addError(error, [StackTrace stackTrace]) => throw error;
320 321
321 void close() => onClose(); 322 void close() => onClose();
322 } 323 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/source_file.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698