Skip to content

Commit a96541b

Browse files
author
Dan Rubel
committed
fix call to get current source - fixes #24509
R=scheglov@google.com Review URL: https://codereview.chromium.org/1385213002 .
1 parent 90e975b commit a96541b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analysis_server/lib/src/services/completion/local_reference_contributor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class _LocalVisitor extends LocalDeclarationVisitor {
356356
_LocalVisitor(this.request, int offset, this.optype) : super(offset) {
357357
includeLocalInheritedTypes = !optype.inStaticMethodBody;
358358
if (request.replacementLength > 0) {
359-
var contents = request.source.contents;
359+
var contents = request.context.getContents(request.source);
360360
if (contents != null &&
361361
contents.data != null &&
362362
contents.data.startsWith('_', request.replacementOffset)) {

0 commit comments

Comments
 (0)