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

Side by Side Diff: pkg/analysis_services/lib/src/correction/fix.dart

Issue 426793002: Test for the 'importing a package library' fix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_services/test/correction/fix_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library services.src.correction.fix; 8 library services.src.correction.fix;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 } 882 }
883 if (element is PropertyAccessorElement) { 883 if (element is PropertyAccessorElement) {
884 element = (element as PropertyAccessorElement).variable; 884 element = (element as PropertyAccessorElement).variable;
885 } 885 }
886 if (element.kind != kind) { 886 if (element.kind != kind) {
887 continue; 887 continue;
888 } 888 }
889 // prepare "library" file 889 // prepare "library" file
890 String libraryFile = librarySource.fullName; 890 String libraryFile = librarySource.fullName;
891 // may be "package:" URI 891 // may be "package:" URI
892 // TODO(scheglov) this code does not have a test
893 { 892 {
894 String libraryPackageUri = _findPackageUri(context, libraryFile); 893 String libraryPackageUri = _findPackageUri(context, libraryFile);
895 if (libraryPackageUri != null) { 894 if (libraryPackageUri != null) {
896 _addFix_importLibrary( 895 _addFix_importLibrary(
897 FixKind.IMPORT_LIBRARY_PROJECT, 896 FixKind.IMPORT_LIBRARY_PROJECT,
898 libraryPackageUri); 897 libraryPackageUri);
899 continue; 898 continue;
900 } 899 }
901 } 900 }
902 // relative URI 901 // relative URI
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 /** 1965 /**
1967 * Describes the location for a newly created [ConstructorDeclaration]. 1966 * Describes the location for a newly created [ConstructorDeclaration].
1968 */ 1967 */
1969 class _ConstructorLocation { 1968 class _ConstructorLocation {
1970 final String _prefix; 1969 final String _prefix;
1971 final int _offset; 1970 final int _offset;
1972 final String _suffix; 1971 final String _suffix;
1973 1972
1974 _ConstructorLocation(this._prefix, this._offset, this._suffix); 1973 _ConstructorLocation(this._prefix, this._offset, this._suffix);
1975 } 1974 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_services/test/correction/fix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698