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

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

Issue 27008003: Handle clash of prefix/non-prefix imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased + updated cf. comments. Created 7 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of dart2js; 5 part of dart2js;
6 6
7 const DONT_KNOW_HOW_TO_FIX = ""; 7 const DONT_KNOW_HOW_TO_FIX = "";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 'future.dart': 247 'future.dart':
248 """ 248 """
249 library future; 249 library future;
250 250
251 class Future {}""", 251 class Future {}""",
252 252
253 'export.dart': 253 'export.dart':
254 """ 254 """
255 library export; 255 library export;
256 256
257 export 'future.dart';"""}]); 257 export 'future.dart';"""},
258
259 const {
260 'main.dart':
261 """
262 import 'future.dart' as prefix;
263 import 'dart:async' as prefix; // This imports a class Future.
264
265 void main() => new prefix.Future();""",
266
267 'future.dart':
268 """
269 library future;
270
271 class Future {}"""}]);
258 272
259 273
260 static const MessageKind HIDDEN_IMPLICIT_IMPORT = const MessageKind( 274 static const MessageKind HIDDEN_IMPLICIT_IMPORT = const MessageKind(
261 "Warning: '#{name}' from library '#{hiddenUri}' is hidden by '#{name}' " 275 "Warning: '#{name}' from library '#{hiddenUri}' is hidden by '#{name}' "
262 "from library '#{hidingUri}'.", 276 "from library '#{hidingUri}'.",
263 howToFix: "Try adding an explicit " 277 howToFix: "Try adding an explicit "
264 "'import \"#{hiddenUri}\" hide #{name}'.", 278 "'import \"#{hiddenUri}\" hide #{name}'.",
265 examples: const [ 279 examples: const [
266 const { 280 const {
267 'main.dart': 281 'main.dart':
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 1418
1405 class CompileTimeConstantError extends Diagnostic { 1419 class CompileTimeConstantError extends Diagnostic {
1406 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1420 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1407 : super(kind, arguments, terse); 1421 : super(kind, arguments, terse);
1408 } 1422 }
1409 1423
1410 class CompilationError extends Diagnostic { 1424 class CompilationError extends Diagnostic {
1411 CompilationError(MessageKind kind, Map arguments, bool terse) 1425 CompilationError(MessageKind kind, Map arguments, bool terse)
1412 : super(kind, arguments, terse); 1426 : super(kind, arguments, terse);
1413 } 1427 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698