OLD | NEW |
---|---|
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer/dart/analysis/results.dart'; | 5 import 'package:analyzer/dart/analysis/results.dart'; |
6 import 'package:analyzer/error/error.dart'; | 6 import 'package:analyzer/error/error.dart'; |
7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
8 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; | 8 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
9 import 'package:analyzer_plugin/utilities/analyzer_converter.dart'; | 9 import 'package:analyzer_plugin/utilities/analyzer_converter.dart'; |
10 import 'package:analyzer_plugin/utilities/fixes/fixes.dart'; | 10 import 'package:analyzer_plugin/utilities/fixes/fixes.dart'; |
(...skipping 21 matching lines...) Expand all Loading... | |
32 return fixes; | 32 return fixes; |
33 } | 33 } |
34 | 34 |
35 @override | 35 @override |
36 void addFix(AnalysisError error, PrioritizedSourceChange change) { | 36 void addFix(AnalysisError error, PrioritizedSourceChange change) { |
37 fixMap.putIfAbsent(error, () => <PrioritizedSourceChange>[]).add(change); | 37 fixMap.putIfAbsent(error, () => <PrioritizedSourceChange>[]).add(change); |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 /** | 41 /** |
42 * A concrete implementation of [FixesRequest]. | 42 * A concrete implementation of [DartFixesRequest]. |
43 */ | 43 */ |
44 class FixesRequestImpl implements FixesRequest { | 44 class FixesRequestImpl implements DartFixesRequest { |
maxkim
2017/06/22 20:52:56
Rename this to DartFixesRequestImpl?
Brian Wilkerson
2017/06/22 22:07:01
Done
| |
45 @override | 45 @override |
46 AnalysisError error; | 46 AnalysisError error; |
47 | 47 |
48 @override | 48 @override |
49 final ResourceProvider resourceProvider; | 49 final ResourceProvider resourceProvider; |
50 | 50 |
51 @override | 51 @override |
52 final int offset; | 52 final int offset; |
53 | 53 |
54 @override | 54 @override |
55 final ResolveResult result; | 55 final ResolveResult result; |
56 | 56 |
57 /** | 57 /** |
58 * Initialize a newly create request with the given data. | 58 * Initialize a newly create request with the given data. |
59 */ | 59 */ |
60 FixesRequestImpl(this.resourceProvider, this.offset, this.result); | 60 FixesRequestImpl(this.resourceProvider, this.offset, this.result); |
61 } | 61 } |
OLD | NEW |