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

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

Issue 1776023002: Add AnalysisContext.onResultInvalidated(descriptor). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/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';
11 show
12 AnalysisEngine,
13 AnalysisErrorInfo,
14 AnalysisErrorInfoImpl,
15 AnalysisOptions,
16 CacheState,
17 InternalAnalysisContext;
18 import 'package:analyzer/src/generated/error.dart'; 11 import 'package:analyzer/src/generated/error.dart';
19 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
20 import 'package:analyzer/src/generated/utilities_collection.dart'; 13 import 'package:analyzer/src/generated/utilities_collection.dart';
21 import 'package:analyzer/src/task/dart.dart'; 14 import 'package:analyzer/src/task/dart.dart';
22 import 'package:analyzer/src/task/html.dart'; 15 import 'package:analyzer/src/task/html.dart';
23 import 'package:analyzer/task/dart.dart'; 16 import 'package:analyzer/task/dart.dart';
24 import 'package:analyzer/task/model.dart'; 17 import 'package:analyzer/task/model.dart';
25 18
26 /** 19 /**
27 * The manager for Dart specific analysis. 20 * The manager for Dart specific analysis.
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 } 466 }
474 } 467 }
475 468
476 bool _shouldErrorsBeComputed(Source source) => 469 bool _shouldErrorsBeComputed(Source source) =>
477 context.shouldErrorsBeAnalyzed(source); 470 context.shouldErrorsBeAnalyzed(source);
478 471
479 static bool _isDartSource(AnalysisTarget target) { 472 static bool _isDartSource(AnalysisTarget target) {
480 return target is Source && AnalysisEngine.isDartFileName(target.fullName); 473 return target is Source && AnalysisEngine.isDartFileName(target.fullName);
481 } 474 }
482 } 475 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698