mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
This commit is contained in:
@@ -111,10 +111,11 @@ bool CursorInfoResolver::tryResolve(Stmt *St) {
|
||||
}
|
||||
|
||||
bool CursorInfoResolver::visitSubscriptReference(ValueDecl *D, CharSourceRange Range,
|
||||
bool IsOpenBracket) {
|
||||
Optional<AccessKind> AccKind,
|
||||
bool IsOpenBracket) {
|
||||
// We should treat both open and close brackets equally
|
||||
return visitDeclReference(D, Range, nullptr, nullptr, Type(),
|
||||
ReferenceMetaData(SemaReferenceKind::SubscriptRef, None));
|
||||
ReferenceMetaData(SemaReferenceKind::SubscriptRef, AccKind));
|
||||
}
|
||||
|
||||
ResolvedCursorInfo CursorInfoResolver::resolve(SourceLoc Loc) {
|
||||
|
||||
Reference in New Issue
Block a user