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

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

Issue 2059883002: Implementation of modified scoping for initializing formals. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review response Created 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/constructors.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 /** 5 /**
6 * The messages in this file should meet the following guide lines: 6 * The messages in this file should meet the following guide lines:
7 * 7 *
8 * 1. The message should be a complete sentence starting with an uppercase 8 * 1. The message should be a complete sentence starting with an uppercase
9 * letter, and ending with a period. 9 * letter, and ending with a period.
10 * 10 *
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 """, 680 """,
681 """ 681 """
682 class C { 682 class C {
683 int x; 683 int x;
684 C(this.x, int x); 684 C(this.x, int x);
685 } 685 }
686 686
687 main() { 687 main() {
688 new C(4, 2); 688 new C(4, 2);
689 } 689 }
690 """,
691 """
692 class C {
693 int x;
694 C(int x, this.x);
695 }
696
697 main() {
698 new C(4, 2);
699 }
700 """,
701 """
702 class C {
703 int x;
704 C(this.x, this.x);
705 }
706
707 main() {
708 new C(4, 2);
709 }
690 """ 710 """
691 ]), 711 ]),
692 712
693 MessageKind.EXISTING_DEFINITION: const MessageTemplate( 713 MessageKind.EXISTING_DEFINITION: const MessageTemplate(
694 MessageKind.EXISTING_DEFINITION, "Existing definition of '#{name}'."), 714 MessageKind.EXISTING_DEFINITION, "Existing definition of '#{name}'."),
695 715
696 MessageKind.DUPLICATE_IMPORT: const MessageTemplate( 716 MessageKind.DUPLICATE_IMPORT: const MessageTemplate(
697 MessageKind.DUPLICATE_IMPORT, "Duplicate import of '#{name}'."), 717 MessageKind.DUPLICATE_IMPORT, "Duplicate import of '#{name}'."),
698 718
699 MessageKind.HIDDEN_IMPORT: const MessageTemplate( 719 MessageKind.HIDDEN_IMPORT: const MessageTemplate(
(...skipping 3061 matching lines...) Expand 10 before | Expand all | Expand 10 after
3761 static String convertToString(value) { 3781 static String convertToString(value) {
3762 if (value is ErrorToken) { 3782 if (value is ErrorToken) {
3763 // Shouldn't happen. 3783 // Shouldn't happen.
3764 return value.assertionMessage; 3784 return value.assertionMessage;
3765 } else if (value is Token) { 3785 } else if (value is Token) {
3766 value = value.value; 3786 value = value.value;
3767 } 3787 }
3768 return '$value'; 3788 return '$value';
3769 } 3789 }
3770 } 3790 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698