Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/file_system/file_system.dart'; 6 import 'package:analyzer/file_system/file_system.dart';
7 import 'package:analyzer/src/generated/source.dart' show SourceRange; 7 import 'package:analyzer/src/generated/source.dart' show SourceRange;
8 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 8 import 'package:analyzer_plugin/protocol/protocol_common.dart';
9 import 'package:analyzer_plugin/utilities/navigation/navigation.dart'; 9 import 'package:analyzer_plugin/utilities/navigation/navigation.dart';
10 import 'package:analyzer_plugin/utilities/pair.dart'; 10 import 'package:analyzer_plugin/utilities/pair.dart';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 location.startLine, 78 location.startLine,
79 location.startColumn); 79 location.startColumn);
80 targets.add(target); 80 targets.add(target);
81 targetMap[pair] = index; 81 targetMap[pair] = index;
82 } 82 }
83 return index; 83 return index;
84 } 84 }
85 } 85 }
86 86
87 /** 87 /**
88 * A concrete implementation of [NavigationRequest]. 88 * A concrete implementation of [DartNavigationRequest].
89 */ 89 */
90 class NavigationRequestImpl implements NavigationRequest { 90 class NavigationRequestImpl implements DartNavigationRequest {
maxkim 2017/06/22 20:52:56 DartNavigationRequestImpl
Brian Wilkerson 2017/06/22 22:07:01 Done
91 @override 91 @override
92 final ResourceProvider resourceProvider; 92 final ResourceProvider resourceProvider;
93 93
94 @override 94 @override
95 final int length; 95 final int length;
96 96
97 @override 97 @override
98 final int offset; 98 final int offset;
99 99
100 @override 100 @override
101 final ResolveResult result; 101 final ResolveResult result;
102 102
103 /** 103 /**
104 * Initialize a newly create request with the given data. 104 * Initialize a newly create request with the given data.
105 */ 105 */
106 NavigationRequestImpl( 106 NavigationRequestImpl(
107 this.resourceProvider, this.offset, this.length, this.result); 107 this.resourceProvider, this.offset, this.length, this.result);
108
109 @override
110 String get path => result.path;
108 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698