Commit Graph

7 Commits

Author SHA1 Message Date
Hamish Knight
43abe7f8b8 [test] Re-enable an index test
This no longer crashes the compiler
2024-07-06 23:42:10 +01:00
Ben Barham
8889daedce [SourceKit] Add whether a property is dynamic
Properties can also be specified in a protocol/overridden by subclasses,
so they should also be classed as "dynamic" in these cases.

Removed receiver USRs when *not* dynamic, since it's not used for
anything in that case and should be equivalent to the container anyway.

Resolves rdar://92882348.
2022-05-13 15:13:49 -07:00
Hamish Knight
68719743cb [test] Add indexing test for overloaded @dynamicMemberLookup
Source compat suite uncovered a crash here with my
IUO refactoring, make sure we cover this case in
the test suite.
2021-09-17 10:52:44 +01:00
Nathan Hawes
1f01103cc1 [Index] Add regression test case for @dynamicMemberLookup on a protocol. 2020-06-03 13:39:11 -07:00
Ben Langmuir
2ee24ac437 Update index_keypath_member_lookup for change to implicit subscript location
The implicit subscript is not located at the "." instead of the
identifier, so update the index test.
2019-04-17 09:35:41 -07:00
Ben Langmuir
6af24d083c [index] Fix dynamicMemberLookup subscript reference implicit role
When building the implicit subscript expression, set the "implicit" bit
correctly and pass it through in the indexer so that we get implicit
refernces to the subscript. This would be useful for e.g. searching for
all uses of the dynamic subscript.
2019-04-16 15:37:32 -07:00
Ben Langmuir
0224d40551 [index] Add indexing of references in keypath member lookup expressions
Currently includes both the implicit references to the
subscript(dynamicMember:) and the explicit references to the underlying
property/subscript declarations.

rdar://49028783
2019-04-16 15:37:32 -07:00