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

Side by Side Diff: pkg/compiler/lib/src/diagnostics/messages.dart

Issue 2897903003: Support loading binary data in dart2js (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/io/source_file.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// The messages in this file should follow the [Guide for Writing 5 /// The messages in this file should follow the [Guide for Writing
6 /// Diagnostics](../../../../front_end/lib/src/fasta/diagnostics.md). 6 /// Diagnostics](../../../../front_end/lib/src/fasta/diagnostics.md).
7 /// 7 ///
8 /// Other things to keep in mind: 8 /// Other things to keep in mind:
9 /// 9 ///
10 /// An INFO message should always be preceded by a non-INFO message, and the 10 /// An INFO message should always be preceded by a non-INFO message, and the
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 POSITIONAL_PARAMETER_WITH_EQUALS, 342 POSITIONAL_PARAMETER_WITH_EQUALS,
343 POTENTIAL_MUTATION, 343 POTENTIAL_MUTATION,
344 POTENTIAL_MUTATION_HERE, 344 POTENTIAL_MUTATION_HERE,
345 POTENTIAL_MUTATION_IN_CLOSURE, 345 POTENTIAL_MUTATION_IN_CLOSURE,
346 POTENTIAL_MUTATION_IN_CLOSURE_HERE, 346 POTENTIAL_MUTATION_IN_CLOSURE_HERE,
347 PREAMBLE, 347 PREAMBLE,
348 PREFIX_AS_EXPRESSION, 348 PREFIX_AS_EXPRESSION,
349 PRIVATE_ACCESS, 349 PRIVATE_ACCESS,
350 PRIVATE_IDENTIFIER, 350 PRIVATE_IDENTIFIER,
351 PRIVATE_NAMED_PARAMETER, 351 PRIVATE_NAMED_PARAMETER,
352 READ_SCRIPT_ERROR, 352 READ_URI_ERROR,
353 READ_SELF_ERROR, 353 READ_SELF_ERROR,
354 REDIRECTING_CONSTRUCTOR_CYCLE, 354 REDIRECTING_CONSTRUCTOR_CYCLE,
355 REDIRECTING_CONSTRUCTOR_HAS_BODY, 355 REDIRECTING_CONSTRUCTOR_HAS_BODY,
356 REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER, 356 REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER,
357 REDIRECTING_FACTORY_WITH_DEFAULT, 357 REDIRECTING_FACTORY_WITH_DEFAULT,
358 REFERENCE_IN_INITIALIZATION, 358 REFERENCE_IN_INITIALIZATION,
359 REQUIRED_PARAMETER_WITH_DEFAULT, 359 REQUIRED_PARAMETER_WITH_DEFAULT,
360 RETURN_IN_GENERATOR, 360 RETURN_IN_GENERATOR,
361 RETURN_NOTHING, 361 RETURN_NOTHING,
362 RETURN_VALUE_IN_VOID, 362 RETURN_VALUE_IN_VOID,
(...skipping 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2598 main() {} 2598 main() {}
2599 """, 2599 """,
2600 """ 2600 """
2601 // package name must be valid 2601 // package name must be valid
2602 import 'package:not\valid/foo.dart'; 2602 import 'package:not\valid/foo.dart';
2603 2603
2604 main() {} 2604 main() {}
2605 """ 2605 """
2606 ]), 2606 ]),
2607 2607
2608 MessageKind.READ_SCRIPT_ERROR: const MessageTemplate( 2608 MessageKind.READ_URI_ERROR: const MessageTemplate(
2609 MessageKind.READ_SCRIPT_ERROR, "Can't read '#{uri}' (#{exception}).", 2609 MessageKind.READ_URI_ERROR, "Can't read '#{uri}' (#{exception}).",
2610 // Don't know how to fix since the underlying error is unknown. 2610 // Don't know how to fix since the underlying error is unknown.
2611 howToFix: DONT_KNOW_HOW_TO_FIX, 2611 howToFix: DONT_KNOW_HOW_TO_FIX,
2612 examples: const [ 2612 examples: const [
2613 """ 2613 """
2614 // 'foo.dart' does not exist. 2614 // 'foo.dart' does not exist.
2615 import 'foo.dart'; 2615 import 'foo.dart';
2616 2616
2617 main() {} 2617 main() {}
2618 """ 2618 """
2619 ]), 2619 ]),
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3792 static String convertToString(value) { 3792 static String convertToString(value) {
3793 if (value is ErrorToken) { 3793 if (value is ErrorToken) {
3794 // Shouldn't happen. 3794 // Shouldn't happen.
3795 return value.assertionMessage; 3795 return value.assertionMessage;
3796 } else if (value is Token) { 3796 } else if (value is Token) {
3797 value = value.lexeme; 3797 value = value.lexeme;
3798 } 3798 }
3799 return '$value'; 3799 return '$value';
3800 } 3800 }
3801 } 3801 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/io/source_file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698