OLD | NEW |
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.task.html; | 5 library analyzer.task.html; |
6 | 6 |
7 import 'package:analyzer/src/generated/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
8 import 'package:analyzer/src/generated/source.dart'; | 8 import 'package:analyzer/src/generated/source.dart'; |
9 import 'package:analyzer/task/model.dart'; | 9 import 'package:analyzer/task/model.dart'; |
10 import 'package:html/dom.dart'; | 10 import 'package:html/dom.dart'; |
11 | 11 |
12 /** | 12 /** |
13 * The result of parsing an HTML file. | 13 * The result of parsing an HTML file. |
14 */ | 14 */ |
15 final ResultDescriptor<Document> HTML_DOCUMENT = | 15 final ResultDescriptor<Document> HTML_DOCUMENT = |
16 new ResultDescriptor<Document>('HTML_DOCUMENT', null); | 16 new ResultDescriptor<Document>('HTML_DOCUMENT', null); |
17 | 17 |
18 /** | 18 /** |
19 * The analysis errors associated with a [Source] representing an HTML file. | 19 * The analysis errors associated with a [Source] representing an HTML file. |
20 */ | 20 */ |
21 final ListResultDescriptor<AnalysisError> HTML_ERRORS = | 21 final ListResultDescriptor<AnalysisError> HTML_ERRORS = |
22 new ListResultDescriptor<AnalysisError>( | 22 new ListResultDescriptor<AnalysisError>( |
23 'HTML_ERRORS', AnalysisError.NO_ERRORS); | 23 'HTML_ERRORS', AnalysisError.NO_ERRORS); |
24 | 24 |
25 /** | 25 /** |
26 * The sources of the Dart libraries referenced by an HTML file. | 26 * The sources of the Dart libraries referenced by an HTML file. |
27 */ | 27 */ |
28 final ListResultDescriptor<Source> REFERENCED_LIBRARIES = | 28 final ListResultDescriptor<Source> REFERENCED_LIBRARIES = |
29 new ListResultDescriptor<Source>('REFERENCED_LIBRARIES', Source.EMPTY_LIST); | 29 new ListResultDescriptor<Source>('REFERENCED_LIBRARIES', Source.EMPTY_LIST); |
OLD | NEW |