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

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

Issue 2140673004: Generalize the first argument in an assert to be an expression (issue 26865) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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/analyzer/lib/src/generated/parser.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.src.generated.error; 5 library analyzer.src.generated.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode;
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 // 2887 //
2888 // parser.dart: 2888 // parser.dart:
2889 // 2889 //
2890 ParserErrorCode.ABSTRACT_CLASS_MEMBER, 2890 ParserErrorCode.ABSTRACT_CLASS_MEMBER,
2891 ParserErrorCode.ABSTRACT_ENUM, 2891 ParserErrorCode.ABSTRACT_ENUM,
2892 ParserErrorCode.ABSTRACT_STATIC_METHOD, 2892 ParserErrorCode.ABSTRACT_STATIC_METHOD,
2893 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION, 2893 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION,
2894 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE, 2894 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE,
2895 ParserErrorCode.ABSTRACT_TYPEDEF, 2895 ParserErrorCode.ABSTRACT_TYPEDEF,
2896 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT, 2896 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT,
2897 ParserErrorCode.ASSERT_DOES_NOT_TAKE_ASSIGNMENT,
2898 ParserErrorCode.ASSERT_DOES_NOT_TAKE_CASCADE,
2899 ParserErrorCode.ASSERT_DOES_NOT_TAKE_THROW,
2900 ParserErrorCode.ASSERT_DOES_NOT_TAKE_RETHROW,
2901 ParserErrorCode.ASYNC_KEYWORD_USED_AS_IDENTIFIER, 2897 ParserErrorCode.ASYNC_KEYWORD_USED_AS_IDENTIFIER,
2902 ParserErrorCode.ASYNC_NOT_SUPPORTED, 2898 ParserErrorCode.ASYNC_NOT_SUPPORTED,
2903 ParserErrorCode.BREAK_OUTSIDE_OF_LOOP, 2899 ParserErrorCode.BREAK_OUTSIDE_OF_LOOP,
2904 ParserErrorCode.CLASS_IN_CLASS, 2900 ParserErrorCode.CLASS_IN_CLASS,
2905 ParserErrorCode.COLON_IN_PLACE_OF_IN, 2901 ParserErrorCode.COLON_IN_PLACE_OF_IN,
2906 ParserErrorCode.CONST_AND_FINAL, 2902 ParserErrorCode.CONST_AND_FINAL,
2907 ParserErrorCode.CONST_AND_VAR, 2903 ParserErrorCode.CONST_AND_VAR,
2908 ParserErrorCode.CONST_CLASS, 2904 ParserErrorCode.CONST_CLASS,
2909 ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY, 2905 ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY,
2910 ParserErrorCode.CONST_ENUM, 2906 ParserErrorCode.CONST_ENUM,
(...skipping 3179 matching lines...) Expand 10 before | Expand all | Expand 10 after
6090 * Initialize a newly created error code to have the given [name]. 6086 * Initialize a newly created error code to have the given [name].
6091 */ 6087 */
6092 const TodoCode(String name) : super(name, "{0}"); 6088 const TodoCode(String name) : super(name, "{0}");
6093 6089
6094 @override 6090 @override
6095 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 6091 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
6096 6092
6097 @override 6093 @override
6098 ErrorType get type => ErrorType.TODO; 6094 ErrorType get type => ErrorType.TODO;
6099 } 6095 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698