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

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

Issue 1396273004: Strong mode checker integration (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge Created 5 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 | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.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) 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/src/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/generated/engine.dart' 10 import 'package:analyzer/src/generated/engine.dart'
(...skipping 28 matching lines...) Expand all
39 39
40 /** 40 /**
41 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. 41 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s.
42 */ 42 */
43 static final List<ResultDescriptor> _UNIT_ERRORS = <ResultDescriptor>[ 43 static final List<ResultDescriptor> _UNIT_ERRORS = <ResultDescriptor>[
44 HINTS, 44 HINTS,
45 LINTS, 45 LINTS,
46 LIBRARY_UNIT_ERRORS, 46 LIBRARY_UNIT_ERRORS,
47 RESOLVE_TYPE_NAMES_ERRORS, 47 RESOLVE_TYPE_NAMES_ERRORS,
48 RESOLVE_UNIT_ERRORS, 48 RESOLVE_UNIT_ERRORS,
49 STRONG_MODE_ERRORS,
49 VARIABLE_REFERENCE_ERRORS, 50 VARIABLE_REFERENCE_ERRORS,
50 VERIFY_ERRORS 51 VERIFY_ERRORS
51 ]; 52 ];
52 53
53 final InternalAnalysisContext context; 54 final InternalAnalysisContext context;
54 55
55 /** 56 /**
56 * The [TargetedResult]s that should be computed with priority. 57 * The [TargetedResult]s that should be computed with priority.
57 */ 58 */
58 final LinkedHashSet<TargetedResult> priorityResultQueue = 59 final LinkedHashSet<TargetedResult> priorityResultQueue =
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 450 }
450 } 451 }
451 452
452 bool _shouldErrorsBeComputed(Source source) => 453 bool _shouldErrorsBeComputed(Source source) =>
453 context.shouldErrorsBeAnalyzed(source, null); 454 context.shouldErrorsBeAnalyzed(source, null);
454 455
455 static bool _isDartSource(AnalysisTarget target) { 456 static bool _isDartSource(AnalysisTarget target) {
456 return target is Source && AnalysisEngine.isDartFileName(target.fullName); 457 return target is Source && AnalysisEngine.isDartFileName(target.fullName);
457 } 458 }
458 } 459 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698