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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library analyzer.task.general;
6
7 import 'package:analyzer/src/generated/error.dart';
8 import 'package:analyzer/src/generated/source.dart';
9 import 'package:analyzer/task/model.dart';
10
11 /**
12 * The analysis errors associated with a target.
13 *
14 * The value combines errors represented by multiple other results.
15 */
16 // TODO(brianwilkerson) If we want to associate errors with targets smaller than
17 // a file, we will need other contribution points to collect them. In which case
18 // we might want to rename this and/or document that it applies to files. For
19 // that matter, we might also want to have one that applies to Dart files and a
20 // different one that applies to HTML files, because the list of errors being
21 // combined is likely to be different.
22 final ContributionPoint<List<AnalysisError>> ANALYSIS_ERRORS =
23 new ContributionPoint<List<AnalysisError>>('ANALYSIS_ERRORS');
24
25 /**
26 * The contents of a single file.
27 */
28 final ResultDescriptor<String> CONTENT =
29 new ResultDescriptor<String>('CONTENT');
30
31 /**
32 * The line information for a single file.
33 */
34 final ResultDescriptor<LineInfo> LINE_INFO =
35 new ResultDescriptor<LineInfo>('LINE_INFO');
36
37 /**
38 * The modification time of a file.
39 */
40 final ResultDescriptor<int> MODIFICATION_TIME =
41 new ResultDescriptor<int>('MODIFICATION_TIME');
42
43 /**
44 * The kind of a [Source].
45 */
46 final ResultDescriptor<SourceKind> SOURCE_KIND =
47 new ResultDescriptor<SourceKind>('SOURCE_KIND');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698