Slava Pestov
e7feb5a59c
TypeReconstruction: Remove unused entry point
2018-01-11 15:53:45 -07:00
Argyrios Kyrtzidis
14116f84a1
[sourcekitd] Fix cursor resolving when pointing inside string interpolations of return statements
...
rdar://36336648
2018-01-09 11:46:15 -08:00
Nathan Hawes
c326ec46c7
[Refactoring] Fix subscript rename
...
Adds support for renaming subscripts with external names, e.g.
subscript(x y: Int), and introduces a noncollapsible parameter name range for
subscript parameters, since these shouldn't be collapsed with an argument label
of the same name as function parameter names are.
2017-11-28 19:45:29 -08:00
Slava Pestov
a70a1f0d36
IDE: Fix bug in SourceEntityWalker subscript handling
...
We weren't passing the lvalue access kind to the subscript.
This was causing a test to fail with the next patch.
2017-11-13 22:19:25 -08:00
Slava Pestov
0715eaeaed
AST: Move SourceEntityWalker to IDE
2017-11-13 22:10:41 -08:00
Alex Hoppen
746bfc6d59
[Refactoring] Add refactoring action to move type members to extension ( #12795 )
...
This implements SR-6297.
2017-11-09 11:08:34 -08:00
Rintaro Ishizaki
53e514518b
[IDE] Add SourceFile property to ResolvedCursorInfo
2017-10-16 00:24:30 -07:00
Kacper Harasim
8cd677eb1f
[Refactoring] SR-6051 Expansion of switch statement missing cases ( #12281 )
2017-10-13 09:37:58 -07:00
Kacper Harasim
1bec63d911
[IDE] Remove convenience function added to SourceEditConsumer
2017-09-28 10:21:00 -07:00
Xi Ge
4e4f5ae6cf
IDE: add a utility stream class to SourceEditorConsumer. NFC ( #12069 )
2017-09-22 16:37:05 -07:00
Xi Ge
7f29b362d6
SourceKitd: Rename SemaToken to ResolvedCursorInfo. NFC ( #11680 )
2017-08-29 15:34:15 -07:00
Argyrios Kyrtzidis
60a91bb736
[refactoring] Upstreaming the implementation for Swift local refactoring ( #11568 )
...
[refactoring] Upstreaming the implementation for Swift local refactoring
2017-08-22 16:50:16 -07:00
Xi Ge
7595ed353e
[RangeInfo] Address Argyrios' code review comments. NFC ( #11114 )
2017-07-21 18:10:52 -07:00
Xi Ge
ac348b597a
[RangeInfo] Using the underlying token array reference to represent the content of a range under selection. ( #11106 )
...
Comparing to CharSourceRange, token stream is a better way because we can preserve comment information at the start of the range.
Needed for rdar://33437855
2017-07-21 16:19:25 -07:00
Xi Ge
e1a4bf32dd
[SourceKit] When Cursor infor resolves to the start of an expression, we always get the outermost expression. ( #10738 )
...
The reason is that for clients, getting the offspring of an expression is
much easier that getting parents.
2017-06-30 17:57:36 -07:00
Xi Ge
1ea4d9ff98
CursorInfo: Teach SemaLocResolver to recognize the start of an expression, if the location cannot be further refined to other kind, e.g. a reference. rdar://32749670
2017-06-19 13:28:36 -07:00
Xi Ge
673d04f240
Range-info: when checking if a decl reference is contained in the selected range, consider only the start location. rdar://32415952 ( #10207 )
2017-06-12 13:52:28 -07:00
Xi Ge
03d4eb9ece
IDE: Add IsValid field to decl name viewer. NFC ( #10125 )
2017-06-05 17:27:14 -07:00
Xi Ge
d6b4c3e77b
RangeInfo: unbox switch statement to ensure all branches agree on return information. rdar://32289109 ( #9788 )
2017-05-19 14:36:56 -07:00
Xi Ge
83183abc38
RangeInfo: Add a new range info kind that describes part of a parent expression. rdar://32039874 ( #9707 )
2017-05-17 14:21:47 -07:00
Xi Ge
9c6e3bd398
RangeInfo: Use CharSourceRange to represent the selected range, NFC. rdar://32225277 ( #9660 )
2017-05-16 15:45:30 -07:00
Xi Ge
65b9043eb1
migrator: handle function hoist API changes and several its varieties. rdar://31234806 ( #9544 )
2017-05-12 21:34:06 -07:00
Xi Ge
166d388de0
RangeInfo: stuff a bit about whether the selected range exits. ( #9389 )
2017-05-08 13:28:32 -07:00
Xi Ge
a14953809a
[SourceKit] When cursor points to an external argument name in a function-like decl, we should return the information about the function-like decl instead of being empty. rdar://32018814 ( #9356 )
2017-05-05 17:12:34 -07:00
Xi Ge
7163a40ffb
[Migrator] Support framework API function renames. rdar://31766131 ( #9013 )
2017-04-25 15:50:40 -07:00
Xi Ge
cbd62cb721
IDE: Expose a utility to collect argument label ranges from either tuple or paren exprs. ( #8982 )
2017-04-24 17:26:32 -07:00
Xi Ge
00b4d518bf
IDE: Rename Edit*Consumer to SourceEdit*Consumer. NFC ( #8732 )
2017-04-12 16:56:39 -07:00
Xi Ge
cc29886987
IDE/Utils: Move edit consumers to IDE utilities to allow broader audience. NFC
2017-04-12 13:05:57 -07:00
practicalswift
00ba5dc248
[gardening] Fix typos
2017-04-02 16:23:45 +02:00
Xi Ge
1827fb1436
RangeInfo: Report RValue type if a decl reference is of read-only LValue type. ( #8300 )
2017-03-23 15:52:54 -07:00
Xi Ge
ed56e493f1
RangeInfo: disallow expressions with non-void type at the start or the end of multi-statement selections. ( #8092 )
2017-03-14 16:59:28 -07:00
practicalswift
98d2254073
[gardening] Fix a-vs-an typos
2017-02-24 09:38:00 +01:00
practicalswift
33a5601ad1
[gardening] Fix typos
2017-02-23 22:46:40 +01:00
Xi Ge
c62ec0c116
SourceKit: Introduce a new enum class to describe the kind of resolved sema token kind. NFC ( #7657 )
2017-02-20 23:18:54 -08:00
Xi Ge
3afb5572c0
[RangeInfo] Add a field in ResolvedRangeInfo to indicate whether the range throws uncatched errors. rdar://30586209 ( #7574 )
2017-02-17 17:49:00 -08:00
Xi Ge
2bfe5418a0
[IDE] Utils: Allow indexed access to DelayedStringRetriever. ( #7567 )
2017-02-17 11:34:29 -08:00
Xi Ge
b1c5c995a1
[IDE][Utils] Add an IDE stream utility. ( #7546 )
...
This provides a stream utility for writing to a underlying string buffer multiple string pieces and retrieve them later as StringRef when the underlying buffer is stable.
2017-02-16 17:29:42 -08:00
Xi Ge
6b699d8855
SourceEntityWalker: keep track of type reference in extension declarations' openings. ( #7192 )
...
This is necessary when we want to differentiate between type reference
on extension declaration's start, e.g "extension A {}", and other
references of "A". NFC on existing functionality.
2017-02-01 17:09:01 -08:00
Xi Ge
602235ed52
[RangeInfo] Report the case when a continue/break statement is in the given range however the containing target is not. ( #7157 )
2017-01-31 11:37:24 -08:00
Xi Ge
e7a16bf246
[RangeInfo] Include a boolean value in the resolved range info to indicate whether the given range has more than one entry point. ( #7150 )
...
A classic multi-entry range is several case statements.
2017-01-30 13:42:34 -08:00
practicalswift
30a88d38e6
[gardening] Fix recently introduced typos
2017-01-06 21:16:02 +01:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Xi Ge
46eb3971f5
[RangeInfo] Some enrichment on reported range info. ( #6475 )
...
* [RangeInfo] Perform complete walk on the last node in a given range to avoid missing information due to early abort.
* [RangeInfo] For declared decls in a given range, report whether they are referenced outside of the range.
* [RangeInfo] Report the contained (topmost) ASTNodes inside a selected range.
2017-01-03 16:33:39 -08:00
Xi Ge
94851e25d7
[RangeInfo] Report the innermost decl context for the range under selection. ( #6448 )
2016-12-21 16:50:39 -08:00
Xi Ge
14f968a5ed
SourceEntityWalker: Add a parameter to visitDeclReference() describing the kind of the reference under visit. NFC
2016-12-20 14:30:02 -08:00
Xi Ge
ba930deff2
[RangeInfo] When reporting referenced decls, also report the types of these references.
2016-12-19 17:16:17 -08:00
Xi Ge
eb80cdd8ce
[RangeInfo] Report declared and referenced decls in a given range.
2016-12-19 13:27:20 -08:00
Xi Ge
3b68ca2936
[IDE][Utils] Elevate a decl name viewer utility from swift-api-digester.
...
This utility parses a given StringRef to a base name and several argument
names and provides a convenient view on them.
2016-12-01 16:29:08 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Xi Ge
5e8d8da380
[Test] Add range-info test driver to swift-ide-test. NFC
2016-11-15 13:48:15 -08:00