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

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

Issue 812733004: Initial task support (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
new file mode 100644
index 0000000000000000000000000000000000000000..76e50b971f585e555aa5ce74e20d4b4734ac5466
--- /dev/null
+++ b/pkg/analyzer/lib/task/general.dart
@@ -0,0 +1,47 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library analyzer.task.general;
+
+import 'package:analyzer/src/generated/error.dart';
+import 'package:analyzer/src/generated/source.dart';
+import 'package:analyzer/task/model.dart';
+
+/**
+ * The analysis errors associated with a target.
+ *
+ * The value combines errors represented by multiple other results.
+ */
+// TODO(brianwilkerson) If we want to associate errors with targets smaller than
+// a file, we will need other contribution points to collect them. In which case
+// we might want to rename this and/or document that it applies to files. For
+// that matter, we might also want to have one that applies to Dart files and a
+// 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');
+
+/**
+ * The contents of a single file.
+ */
+final ResultDescriptor<String> CONTENT =
+ new ResultDescriptor<String>('CONTENT');
+
+/**
+ * The line information for a single file.
+ */
+final ResultDescriptor<LineInfo> LINE_INFO =
+ new ResultDescriptor<LineInfo>('LINE_INFO');
+
+/**
+ * The modification time of a file.
+ */
+final ResultDescriptor<int> MODIFICATION_TIME =
+ new ResultDescriptor<int>('MODIFICATION_TIME');
+
+/**
+ * The kind of a [Source].
+ */
+final ResultDescriptor<SourceKind> SOURCE_KIND =
+ new ResultDescriptor<SourceKind>('SOURCE_KIND');

Powered by Google App Engine
This is Rietveld 408576698