Files
swift-mirror/test/SourceKit/CursorInfo/rdar_36305791.swift
Ben Barham 3ea9bed415 [SourceKit/CursorInfo] Add constructor to call results
Cursor info for a constructor would previously give the cursor info for
the containing type only. It now also adds cursor info for the
constructor itself in a "secondary_symbols" field.

Refactor `passCursorInfoForDecl` to use a single allocator rather than
keeping track of positions in a buffer and assigning everything at the
end of the function.

Refactor the various available refactoring gathering functions to take a
SmallVectorImpl and to not copy strings where they don't need to.

Resolves rdar://75385556
2021-03-30 13:23:59 +10:00

10 lines
285 B
Swift

public class Observable<Element> {
public typealias E = Element
}
Observable.create { }
// Check that cursor info on create doesn't crash
// RUN: %sourcekitd-test -req=cursor -cursor-action -pos=4:12 -length 10 %s -- %s | %FileCheck %s
// CHECK: ACTIONS BEGIN
// CHECK: ACTIONS END