mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change makes us treat it exactly as we do 'init'. We don't allow renaming the base name,
and don't fail if the basename doesn't match for calls.
Also:
- explicit init calls/references like `MyType.init(42)` are now reported with
'init' as a keywordBase range, rather than nothing.
- cursor info no longer reports rename as available on init/callAsFunction
calls without arguments, as there's nothing to rename in that case.
- Improved detection of when a referenced function is a call (rather than
reference) across syntactic rename, cursor-info, and indexing.
Resolves rdar://problem/60340429
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
source.edit.kind.active:
|
|
95:17-95:18 source.refactoring.range.kind.call-argument-label arg-index=0
|
|
95:18-95:20 source.refactoring.range.kind.call-argument-colon arg-index=0
|
|
source.edit.kind.active:
|
|
96:17-96:21 source.refactoring.range.kind.keyword-basename
|
|
96:22-96:23 source.refactoring.range.kind.call-argument-label arg-index=0
|
|
96:23-96:25 source.refactoring.range.kind.call-argument-colon arg-index=0
|
|
source.edit.kind.unknown:
|
|
source.edit.kind.active:
|
|
97:37-97:38 source.refactoring.range.kind.call-argument-label arg-index=0
|
|
97:38-97:40 source.refactoring.range.kind.call-argument-colon arg-index=0
|
|
source.edit.kind.active:
|
|
97:59-97:60 source.refactoring.range.kind.call-argument-label arg-index=0
|
|
97:60-97:62 source.refactoring.range.kind.call-argument-colon arg-index=0
|
|
source.edit.kind.unknown:
|
|
source.edit.kind.unknown:
|
|
source.edit.kind.unknown:
|
|
source.edit.kind.unknown:
|
|
source.edit.kind.inactive:
|
|
103:17-103:21 source.refactoring.range.kind.keyword-basename
|
|
103:22-103:23 source.refactoring.range.kind.call-argument-label arg-index=0
|
|
103:23-103:25 source.refactoring.range.kind.call-argument-colon arg-index=0
|
|
source.edit.kind.unknown:
|
|
104:17-104:21 source.refactoring.range.kind.keyword-basename
|