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

Side by Side Diff: pkg/analyzer/lib/error/error.dart

Issue 2411633002: Add `=` as default-value separator for named parameters. (Closed)
Patch Set: Add co19 issue number Created 4 years, 2 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 | « docs/language/dartLangSpec.tex ('k') | pkg/analyzer/lib/src/dart/error/syntactic_errors.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library analyzer.error.error; 5 library analyzer.error.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/error/listener.dart'; 10 import 'package:analyzer/error/listener.dart';
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 ParserErrorCode.STATIC_SETTER_WITHOUT_BODY, 791 ParserErrorCode.STATIC_SETTER_WITHOUT_BODY,
792 ParserErrorCode.STATIC_TOP_LEVEL_DECLARATION, 792 ParserErrorCode.STATIC_TOP_LEVEL_DECLARATION,
793 ParserErrorCode.SWITCH_HAS_CASE_AFTER_DEFAULT_CASE, 793 ParserErrorCode.SWITCH_HAS_CASE_AFTER_DEFAULT_CASE,
794 ParserErrorCode.SWITCH_HAS_MULTIPLE_DEFAULT_CASES, 794 ParserErrorCode.SWITCH_HAS_MULTIPLE_DEFAULT_CASES,
795 ParserErrorCode.TOP_LEVEL_OPERATOR, 795 ParserErrorCode.TOP_LEVEL_OPERATOR,
796 ParserErrorCode.TYPEDEF_IN_CLASS, 796 ParserErrorCode.TYPEDEF_IN_CLASS,
797 ParserErrorCode.UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP, 797 ParserErrorCode.UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP,
798 ParserErrorCode.UNEXPECTED_TOKEN, 798 ParserErrorCode.UNEXPECTED_TOKEN,
799 ParserErrorCode.WITH_BEFORE_EXTENDS, 799 ParserErrorCode.WITH_BEFORE_EXTENDS,
800 ParserErrorCode.WITH_WITHOUT_EXTENDS, 800 ParserErrorCode.WITH_WITHOUT_EXTENDS,
801 ParserErrorCode.WRONG_SEPARATOR_FOR_NAMED_PARAMETER,
802 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, 801 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER,
803 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP, 802 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP,
804 ParserErrorCode.VAR_AND_TYPE, 803 ParserErrorCode.VAR_AND_TYPE,
805 ParserErrorCode.VAR_AS_TYPE_NAME, 804 ParserErrorCode.VAR_AS_TYPE_NAME,
806 ParserErrorCode.VAR_CLASS, 805 ParserErrorCode.VAR_CLASS,
807 ParserErrorCode.VAR_ENUM, 806 ParserErrorCode.VAR_ENUM,
808 ParserErrorCode.VAR_RETURN_TYPE, 807 ParserErrorCode.VAR_RETURN_TYPE,
809 ParserErrorCode.VAR_TYPEDEF, 808 ParserErrorCode.VAR_TYPEDEF,
810 ParserErrorCode.VOID_PARAMETER, 809 ParserErrorCode.VOID_PARAMETER,
811 ParserErrorCode.VOID_VARIABLE, 810 ParserErrorCode.VOID_VARIABLE,
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 1109
1111 @override 1110 @override
1112 int get hashCode => ordinal; 1111 int get hashCode => ordinal;
1113 1112
1114 @override 1113 @override
1115 int compareTo(ErrorType other) => ordinal - other.ordinal; 1114 int compareTo(ErrorType other) => ordinal - other.ordinal;
1116 1115
1117 @override 1116 @override
1118 String toString() => name; 1117 String toString() => name;
1119 } 1118 }
OLDNEW
« no previous file with comments | « docs/language/dartLangSpec.tex ('k') | pkg/analyzer/lib/src/dart/error/syntactic_errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698