OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.src.task.yaml; | 5 library analyzer.src.task.yaml; |
6 | 6 |
| 7 import 'package:analyzer/exception/exception.dart'; |
7 import 'package:analyzer/src/context/cache.dart'; | 8 import 'package:analyzer/src/context/cache.dart'; |
8 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 9 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 10 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:analyzer/src/generated/error.dart'; | 11 import 'package:analyzer/src/generated/error.dart'; |
11 import 'package:analyzer/src/generated/java_engine.dart'; | |
12 import 'package:analyzer/src/generated/source.dart'; | 12 import 'package:analyzer/src/generated/source.dart'; |
13 import 'package:analyzer/src/task/general.dart'; | 13 import 'package:analyzer/src/task/general.dart'; |
14 import 'package:analyzer/task/general.dart'; | 14 import 'package:analyzer/task/general.dart'; |
15 import 'package:analyzer/task/model.dart'; | 15 import 'package:analyzer/task/model.dart'; |
16 import 'package:analyzer/task/yaml.dart'; | 16 import 'package:analyzer/task/yaml.dart'; |
17 import 'package:source_span/source_span.dart'; | 17 import 'package:source_span/source_span.dart'; |
18 import 'package:yaml/yaml.dart'; | 18 import 'package:yaml/yaml.dart'; |
19 | 19 |
20 /** | 20 /** |
21 * A task that scans the content of a YAML file, producing a YAML document. | 21 * A task that scans the content of a YAML file, producing a YAML document. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 */ | 146 */ |
147 const YamlErrorCode(String name, String message, [String correction]) | 147 const YamlErrorCode(String name, String message, [String correction]) |
148 : super(name, message, correction); | 148 : super(name, message, correction); |
149 | 149 |
150 @override | 150 @override |
151 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; | 151 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; |
152 | 152 |
153 @override | 153 @override |
154 ErrorType get type => ErrorType.COMPILE_TIME_ERROR; | 154 ErrorType get type => ErrorType.COMPILE_TIME_ERROR; |
155 } | 155 } |
OLD | NEW |