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

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

Issue 3003363002: Report compile time errors when assert initializers fail. (Closed)
Patch Set: Created 3 years, 3 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/dart/analysis/driver.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/error/listener.dart'; 9 import 'package:analyzer/error/listener.dart';
10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 CompileTimeErrorCode.CONFLICTING_GETTER_AND_METHOD, 75 CompileTimeErrorCode.CONFLICTING_GETTER_AND_METHOD,
76 CompileTimeErrorCode.CONFLICTING_METHOD_AND_GETTER, 76 CompileTimeErrorCode.CONFLICTING_METHOD_AND_GETTER,
77 CompileTimeErrorCode.CONFLICTING_TYPE_VARIABLE_AND_CLASS, 77 CompileTimeErrorCode.CONFLICTING_TYPE_VARIABLE_AND_CLASS,
78 CompileTimeErrorCode.CONFLICTING_TYPE_VARIABLE_AND_MEMBER, 78 CompileTimeErrorCode.CONFLICTING_TYPE_VARIABLE_AND_MEMBER,
79 CompileTimeErrorCode.CONST_CONSTRUCTOR_THROWS_EXCEPTION, 79 CompileTimeErrorCode.CONST_CONSTRUCTOR_THROWS_EXCEPTION,
80 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_FIELD_INITIALIZED_BY_NON_CONST, 80 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_FIELD_INITIALIZED_BY_NON_CONST,
81 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_MIXIN, 81 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_MIXIN,
82 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER, 82 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER,
83 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, 83 CompileTimeErrorCode.CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD,
84 CompileTimeErrorCode.CONST_DEFERRED_CLASS, 84 CompileTimeErrorCode.CONST_DEFERRED_CLASS,
85 CompileTimeErrorCode.CONST_EVAL_THROWS_ASSERT_FALSE,
86 CompileTimeErrorCode.CONST_EVAL_THROWS_ASSERT_NOT_BOOL,
85 CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION, 87 CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
86 CompileTimeErrorCode.CONST_EVAL_THROWS_IDBZE, 88 CompileTimeErrorCode.CONST_EVAL_THROWS_IDBZE,
87 CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL, 89 CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL,
88 CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL_NUM_STRING, 90 CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL_NUM_STRING,
89 CompileTimeErrorCode.CONST_EVAL_TYPE_INT, 91 CompileTimeErrorCode.CONST_EVAL_TYPE_INT,
90 CompileTimeErrorCode.CONST_EVAL_TYPE_NUM, 92 CompileTimeErrorCode.CONST_EVAL_TYPE_NUM,
91 CompileTimeErrorCode.CONST_FORMAL_PARAMETER, 93 CompileTimeErrorCode.CONST_FORMAL_PARAMETER,
92 CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE, 94 CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
93 CompileTimeErrorCode 95 CompileTimeErrorCode
94 .CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY, 96 .CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY,
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 * a single list of errors. 851 * a single list of errors.
850 */ 852 */
851 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 853 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
852 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 854 Set<AnalysisError> errors = new HashSet<AnalysisError>();
853 for (List<AnalysisError> errorList in errorLists) { 855 for (List<AnalysisError> errorList in errorLists) {
854 errors.addAll(errorList); 856 errors.addAll(errorList);
855 } 857 }
856 return errors.toList(); 858 return errors.toList();
857 } 859 }
858 } 860 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698