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

Side by Side Diff: pkg/front_end/messages.yaml

Issue 2980273002: Random improvements in error reporting. (Closed)
Patch Set: rebased Created 3 years, 5 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
OLDNEW
1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2017, 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 # Each entry in this map corresponds to a diagnostic message. Ideally, each 5 # Each entry in this map corresponds to a diagnostic message. Ideally, each
6 # entry contains three parts: 6 # entry contains three parts:
7 # 7 #
8 # 1. A message template (template). 8 # 1. A message template (template).
9 # 9 #
10 # 2. A suggestion for how to correct the problem (tip). 10 # 2. A suggestion for how to correct the problem (tip).
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 InternalProblemAlreadyInitialized: 623 InternalProblemAlreadyInitialized:
624 template: "Attempt to set initializer on field without initializer." 624 template: "Attempt to set initializer on field without initializer."
625 625
626 InternalProblemBodyOnAbstractMethod: 626 InternalProblemBodyOnAbstractMethod:
627 template: "Attempting to set body on abstract method." 627 template: "Attempting to set body on abstract method."
628 628
629 InternalProblemMissingContext: 629 InternalProblemMissingContext:
630 template: "Compiler cannot run without a compiler context." 630 template: "Compiler cannot run without a compiler context."
631 tip: "Are calls to the compiler wrapped in CompilerContext.runInContext?" 631 tip: "Are calls to the compiler wrapped in CompilerContext.runInContext?"
632 632
633 InternalProblemProvidedBothCompileSdkAndSdkSummary:
634 template: "The compileSdk and sdkSummary options are mutually exclusive"
635
633 InternalVerificationError: 636 InternalVerificationError:
634 template: "Verification of the generated program failed: #string." 637 template: "Verification of the generated program failed: #string."
635 638
636 LocalDefinitionHidesExport: 639 LocalDefinitionHidesExport:
637 template: "Local definition of '#name' hides export from '#uri'." 640 template: "Local definition of '#name' hides export from '#uri'."
638 641
639 LocalDefinitionHidesImport: 642 LocalDefinitionHidesImport:
640 template: "Local definition of '#name' hides import from '#uri'." 643 template: "Local definition of '#name' hides import from '#uri'."
641 644
642 ExportHidesExport: 645 ExportHidesExport:
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 808
806 MissingMain: 809 MissingMain:
807 template: "No 'main' method found." 810 template: "No 'main' method found."
808 tip: "Try adding a method named 'main' to your program." 811 tip: "Try adding a method named 'main' to your program."
809 dart2jsCode: MISSING_MAIN 812 dart2jsCode: MISSING_MAIN
810 813
811 MissingInput: 814 MissingInput:
812 template: "No input file provided to the compiler." 815 template: "No input file provided to the compiler."
813 816
814 InputFileNotFound: 817 InputFileNotFound:
815 template: "Input file not found: #string." 818 template: "Input file not found: #uri."
816 819
817 SdkRootNotFound: 820 SdkRootNotFound:
818 template: "SDK root directory not found: #string." 821 template: "SDK root directory not found: #uri."
819 822
820 SdkSummaryNotFound: 823 SdkSummaryNotFound:
821 template: "SDK summary not found: #string." 824 template: "SDK summary not found: #uri."
822 825
823 ThisAccessInFieldInitializer: 826 ThisAccessInFieldInitializer:
824 template: "Can't access 'this' in a field initializer to read '#name'." 827 template: "Can't access 'this' in a field initializer to read '#name'."
825 828
826 ThisAsIdentifier: 829 ThisAsIdentifier:
827 template: "Expected identifier, but got 'this'." 830 template: "Expected identifier, but got 'this'."
828 831
829 SuperAsIdentifier: 832 SuperAsIdentifier:
830 template: "Expected identifier, but got 'super'." 833 template: "Expected identifier, but got 'super'."
831 834
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 889
887 CantInferPackagesFromPackageUri: 890 CantInferPackagesFromPackageUri:
888 template: "Can't infer a .packages file from an input 'package:*' URI." 891 template: "Can't infer a .packages file from an input 'package:*' URI."
889 tip: "Try specifying the file explicitly with the --packages option." 892 tip: "Try specifying the file explicitly with the --packages option."
890 893
891 PackageNotFound: 894 PackageNotFound:
892 template: "Could not resolve the package '#name' in '#uri'." 895 template: "Could not resolve the package '#name' in '#uri'."
893 896
894 InvalidPackageUri: 897 InvalidPackageUri:
895 template: "Invalid package Uri '#uri':\n #string." 898 template: "Invalid package Uri '#uri':\n #string."
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/problems.dart ('k') | pkg/front_end/test/kernel_generator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698