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

Unified Diff: pkg/analyzer/lib/task/general.dart

Issue 867563004: Improvements to task model (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/task/general.dart
diff --git a/pkg/analyzer/lib/task/general.dart b/pkg/analyzer/lib/task/general.dart
index 76e50b971f585e555aa5ce74e20d4b4734ac5466..791e8e7db14a05d8c3da7a89f80d71faf8d1a456 100644
--- a/pkg/analyzer/lib/task/general.dart
+++ b/pkg/analyzer/lib/task/general.dart
@@ -20,28 +20,30 @@ import 'package:analyzer/task/model.dart';
// different one that applies to HTML files, because the list of errors being
// combined is likely to be different.
final ContributionPoint<List<AnalysisError>> ANALYSIS_ERRORS =
- new ContributionPoint<List<AnalysisError>>('ANALYSIS_ERRORS');
+ new ContributionPoint<List<AnalysisError>>(
+ 'ANALYSIS_ERRORS',
+ AnalysisError.NO_ERRORS);
/**
* The contents of a single file.
*/
final ResultDescriptor<String> CONTENT =
- new ResultDescriptor<String>('CONTENT');
+ new ResultDescriptor<String>('CONTENT', null);
/**
* The line information for a single file.
*/
final ResultDescriptor<LineInfo> LINE_INFO =
- new ResultDescriptor<LineInfo>('LINE_INFO');
+ new ResultDescriptor<LineInfo>('LINE_INFO', null);
/**
* The modification time of a file.
*/
final ResultDescriptor<int> MODIFICATION_TIME =
- new ResultDescriptor<int>('MODIFICATION_TIME');
+ new ResultDescriptor<int>('MODIFICATION_TIME', -1);
/**
* The kind of a [Source].
*/
final ResultDescriptor<SourceKind> SOURCE_KIND =
- new ResultDescriptor<SourceKind>('SOURCE_KIND');
+ new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN);

Powered by Google App Engine
This is Rietveld 408576698