| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |