| 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 = "Computer says no!"; | 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; |
| 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 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1610 // can't have a 'top level' package URI | 1610 // can't have a 'top level' package URI |
| 1611 import 'package:foo.dart'; | 1611 import 'package:foo.dart'; |
| 1612 | 1612 |
| 1613 main() {} | 1613 main() {} |
| 1614 """, """ | 1614 """, """ |
| 1615 // can't have 2 slashes | 1615 // can't have 2 slashes |
| 1616 import 'package://foo/foo.dart'; | 1616 import 'package://foo/foo.dart'; |
| 1617 | 1617 |
| 1618 main() {} | 1618 main() {} |
| 1619 """, """ | 1619 """, """ |
| 1620 // package name must be a valid identifier | 1620 // package name must be valid |
| 1621 import 'package:not-valid/foo.dart'; | 1621 import 'package:not\valid/foo.dart'; |
| 1622 | 1622 |
| 1623 main() {} | 1623 main() {} |
| 1624 """]); | 1624 """]); |
| 1625 | 1625 |
| 1626 static const MessageKind READ_SCRIPT_ERROR = const MessageKind( | 1626 static const MessageKind READ_SCRIPT_ERROR = const MessageKind( |
| 1627 "Can't read '#{uri}' (#{exception}).", | 1627 "Can't read '#{uri}' (#{exception}).", |
| 1628 // Don't know how to fix since the underlying error is unknown. | 1628 // Don't know how to fix since the underlying error is unknown. |
| 1629 howToFix: DONT_KNOW_HOW_TO_FIX, | 1629 howToFix: DONT_KNOW_HOW_TO_FIX, |
| 1630 examples: const [ | 1630 examples: const [ |
| 1631 """ | 1631 """ |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2612 static String convertToString(value) { | 2612 static String convertToString(value) { |
| 2613 if (value is ErrorToken) { | 2613 if (value is ErrorToken) { |
| 2614 // Shouldn't happen. | 2614 // Shouldn't happen. |
| 2615 return value.assertionMessage; | 2615 return value.assertionMessage; |
| 2616 } else if (value is Token) { | 2616 } else if (value is Token) { |
| 2617 value = value.value; | 2617 value = value.value; |
| 2618 } | 2618 } |
| 2619 return '$value'; | 2619 return '$value'; |
| 2620 } | 2620 } |
| 2621 } | 2621 } |
| OLD | NEW |