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

Unified Diff: pkg/analysis_server/lib/src/services/correction/source_range.dart

Issue 1370793003: Issue 24442. Fix for renaming library names with spaces. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/refactoring/rename_library_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/source_range.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/source_range.dart b/pkg/analysis_server/lib/src/services/correction/source_range.dart
index 9ee7078a9767aacc1ae20f7277834d7af760cd5b..779dde7d76d5bd023166f9c5aef1ad4b9b9b2c28 100644
--- a/pkg/analysis_server/lib/src/services/correction/source_range.dart
+++ b/pkg/analysis_server/lib/src/services/correction/source_range.dart
@@ -11,7 +11,7 @@ import 'package:analyzer/src/generated/scanner.dart';
import 'package:analyzer/src/generated/source.dart';
SourceRange rangeElementName(Element element) {
- return new SourceRange(element.nameOffset, element.displayName.length);
+ return new SourceRange(element.nameOffset, element.nameLength);
}
SourceRange rangeEndEnd(a, b) {
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/refactoring/rename_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698