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 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
8 import 'package:analyzer/file_system/memory_file_system.dart'; | 8 import 'package:analyzer/file_system/memory_file_system.dart'; |
9 import 'package:analyzer/src/dart/analysis/driver.dart'; | 9 import 'package:analyzer/src/dart/analysis/driver.dart'; |
10 import 'package:analyzer_plugin/plugin/kythe_mixin.dart'; | 10 import 'package:analyzer_plugin/plugin/kythe_mixin.dart'; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 PrioritizedSourceChange createChange() { | 77 PrioritizedSourceChange createChange() { |
78 return new PrioritizedSourceChange(0, new SourceChange('')); | 78 return new PrioritizedSourceChange(0, new SourceChange('')); |
79 } | 79 } |
80 | 80 |
81 @override | 81 @override |
82 List<EntryContributor> getEntryContributors(String path) { | 82 List<EntryContributor> getEntryContributors(String path) { |
83 KytheVName vName = new KytheVName('', '', '', '', ''); | 83 KytheVName vName = new KytheVName('', '', '', '', ''); |
84 return <EntryContributor>[ | 84 return <EntryContributor>[ |
85 new _TestEntryContributor(<KytheEntry>[ | 85 new _TestEntryContributor(<KytheEntry>[ |
86 new KytheEntry(vName, '', vName, '', <int>[]), | 86 new KytheEntry(vName, '', target: vName), |
87 new KytheEntry(vName, '', vName, '', <int>[]) | 87 new KytheEntry(vName, '', target: vName) |
88 ]), | 88 ]), |
89 new _TestEntryContributor( | 89 new _TestEntryContributor( |
90 <KytheEntry>[new KytheEntry(vName, '', vName, '', <int>[])]) | 90 <KytheEntry>[new KytheEntry(vName, '', target: vName)]) |
91 ]; | 91 ]; |
92 } | 92 } |
93 | 93 |
94 @override | 94 @override |
95 Future<EntryRequest> getEntryRequest( | 95 Future<EntryRequest> getEntryRequest( |
96 KytheGetKytheEntriesParams parameters) async { | 96 KytheGetKytheEntriesParams parameters) async { |
97 AnalysisResult result = new AnalysisResult( | 97 AnalysisResult result = new AnalysisResult( |
98 null, null, null, null, null, null, null, null, null, null, null); | 98 null, null, null, null, null, null, null, null, null, null, null); |
99 return new DartEntryRequestImpl(resourceProvider, result); | 99 return new DartEntryRequestImpl(resourceProvider, result); |
100 } | 100 } |
101 } | 101 } |
OLD | NEW |