| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |