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

Side by Side Diff: pkg/analyzer/lib/src/task/dart_work_manager.dart

Issue 2627093010: Report errors like IMPORT_OF_NON_LIBRARY with the new analysis driver. (Closed)
Patch Set: Created 3 years, 11 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.task.dart_work_manager; 5 library analyzer.src.task.dart_work_manager;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/error/error.dart'; 9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/src/context/cache.dart'; 10 import 'package:analyzer/src/context/cache.dart';
(...skipping 22 matching lines...) Expand all
33 ]; 33 ];
34 34
35 /** 35 /**
36 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. 36 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s.
37 */ 37 */
38 static final List<ResultDescriptor<List<AnalysisError>>> _UNIT_ERRORS = 38 static final List<ResultDescriptor<List<AnalysisError>>> _UNIT_ERRORS =
39 <ResultDescriptor<List<AnalysisError>>>[ 39 <ResultDescriptor<List<AnalysisError>>>[
40 HINTS, 40 HINTS,
41 LINTS, 41 LINTS,
42 LIBRARY_UNIT_ERRORS, 42 LIBRARY_UNIT_ERRORS,
43 RESOLVE_DIRECTIVES_ERRORS,
43 RESOLVE_TYPE_NAMES_ERRORS, 44 RESOLVE_TYPE_NAMES_ERRORS,
44 RESOLVE_TYPE_BOUNDS_ERRORS, 45 RESOLVE_TYPE_BOUNDS_ERRORS,
45 RESOLVE_UNIT_ERRORS, 46 RESOLVE_UNIT_ERRORS,
46 STRONG_MODE_ERRORS, 47 STRONG_MODE_ERRORS,
47 VARIABLE_REFERENCE_ERRORS, 48 VARIABLE_REFERENCE_ERRORS,
48 VERIFY_ERRORS 49 VERIFY_ERRORS
49 ]; 50 ];
50 51
51 final InternalAnalysisContext context; 52 final InternalAnalysisContext context;
52 53
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 } 492 }
492 } 493 }
493 494
494 bool _shouldErrorsBeComputed(Source source) => 495 bool _shouldErrorsBeComputed(Source source) =>
495 context.shouldErrorsBeAnalyzed(source); 496 context.shouldErrorsBeAnalyzed(source);
496 497
497 static bool _isDartSource(AnalysisTarget target) { 498 static bool _isDartSource(AnalysisTarget target) {
498 return target is Source && AnalysisEngine.isDartFileName(target.fullName); 499 return target is Source && AnalysisEngine.isDartFileName(target.fullName);
499 } 500 }
500 } 501 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698