| Index: pkg/analyzer/lib/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/task/dart.dart b/pkg/analyzer/lib/task/dart.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8d783ad0da51d0686e7d32212d3632e94c392599
|
| --- /dev/null
|
| +++ b/pkg/analyzer/lib/task/dart.dart
|
| @@ -0,0 +1,90 @@
|
| +// 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.dart;
|
| +
|
| +import 'package:analyzer/src/generated/ast.dart';
|
| +import 'package:analyzer/src/generated/error.dart';
|
| +import 'package:analyzer/src/generated/scanner.dart';
|
| +import 'package:analyzer/src/generated/source.dart';
|
| +import 'package:analyzer/task/general.dart';
|
| +import 'package:analyzer/task/model.dart';
|
| +
|
| +/**
|
| + * The sources of the libraries that are exported from a library.
|
| + *
|
| + * The list will be empty if there are no exported libraries, but will not be
|
| + * `null`.
|
| + *
|
| + * The result is only available for targets representing a Dart library.
|
| + */
|
| +final ResultDescriptor<List<Source>> EXPORTED_LIBRARIES =
|
| + new ResultDescriptor<List<Source>>('EXPORTED_LIBRARIES');
|
| +
|
| +/**
|
| + * The sources of the libraries that are imported into a library.
|
| + *
|
| + * The list will be empty if there are no imported libraries, but will not be
|
| + * `null`.
|
| + *
|
| + * The result is only available for targets representing a Dart library.
|
| + */
|
| +final ResultDescriptor<List<Source>> IMPORTED_LIBRARIES =
|
| + new ResultDescriptor<List<Source>>('IMPORTED_LIBRARIES');
|
| +
|
| +/**
|
| + * The sources of the parts that are included in a library.
|
| + *
|
| + * The list will be empty if there are no parts, but will not be `null`. The
|
| + * list does *not* include the source for the defining compilation unit.
|
| + *
|
| + * The result is only available for targets representing a Dart library.
|
| + */
|
| +final ResultDescriptor<List<Source>> INCLUDED_PARTS =
|
| + new ResultDescriptor<List<Source>>('INCLUDED_PARTS');
|
| +
|
| +/**
|
| + * The errors produced while parsing a compilation unit.
|
| + *
|
| + * The list will be empty if there were no errors, but will not be `null`.
|
| + *
|
| + * The result is only available for targets representing a Dart compilation unit.
|
| + */
|
| +final ResultDescriptor<List<AnalysisError>> PARSE_ERRORS =
|
| + new ResultDescriptor<List<AnalysisError>>(
|
| + 'PARSE_ERRORS',
|
| + contributesTo: ANALYSIS_ERRORS);
|
| +
|
| +/**
|
| + * The compilation unit AST produced while parsing a compilation unit.
|
| + *
|
| + * The AST structure will not have resolution information associated with it.
|
| + *
|
| + * The result is only available for targets representing a Dart compilation unit.
|
| + */
|
| +final ResultDescriptor<CompilationUnit> PARSED_UNIT =
|
| + new ResultDescriptor<CompilationUnit>('PARSED_UNIT');
|
| +
|
| +/**
|
| + * The errors produced while scanning a compilation unit.
|
| + *
|
| + * The list will be empty if there were no errors, but will not be `null`.
|
| + *
|
| + * The result is only available for targets representing a Dart compilation unit.
|
| + */
|
| +final ResultDescriptor<List<AnalysisError>> SCAN_ERRORS =
|
| + new ResultDescriptor<List<AnalysisError>>(
|
| + 'SCAN_ERRORS',
|
| + contributesTo: ANALYSIS_ERRORS);
|
| +
|
| +/**
|
| + * The token stream produced while scanning a compilation unit.
|
| + *
|
| + * The value is the first token in the file, or the special end-of-file marker
|
| + * at the end of the stream if the file does not contain any tokens.
|
| + *
|
| + * The result is only available for targets representing a Dart compilation unit.
|
| + */
|
| +final ResultDescriptor<Token> TOKEN_STREAM =
|
| + new ResultDescriptor<Token>('TOKEN_STREAM');
|
|
|