Skip to content

Commit c6ea6ea

Browse files
authored
Merge pull request swiftlang#168 from benlangmuir/docpub
Make DocumentSymbol fields public
2 parents 6c46fcc + 77d7b44 commit c6ea6ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/LanguageServerProtocol/DocumentSymbol.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,32 @@ public struct DocumentSymbol: Hashable, Codable, ResponseType {
4343

4444
/// The name of this symbol. Will be displayed in the user interface and therefore must not be
4545
/// an empty string or a string only consisting of white spaces.
46-
var name: String
46+
public var name: String
4747

4848
/// More detail for this symbol, e.g the signature of a function.
49-
var detail: String?
49+
public var detail: String?
5050

5151
/// The kind of this symbol.
52-
var kind: SymbolKind
52+
public var kind: SymbolKind
5353

5454
/// Indicates if this symbol is deprecated.
55-
var deprecated: Bool?
55+
public var deprecated: Bool?
5656

5757
/// The range enclosing this symbol not including leading/trailing whitespace but everything else
5858
/// like comments. This information is typically used to determine if the clients cursor is
5959
/// inside the symbol to reveal in the symbol in the UI.
6060
@CustomCodable<PositionRange>
61-
var range: Range<Position>
61+
public var range: Range<Position>
6262

6363
/// The range that should be selected and revealed when this symbol is being picked,
6464
/// e.g the name of a function.
6565
///
6666
/// Must be contained by the `range`.
6767
@CustomCodable<PositionRange>
68-
var selectionRange: Range<Position>
68+
public var selectionRange: Range<Position>
6969

7070
/// Children of this symbol, e.g. properties of a class.
71-
var children: [DocumentSymbol]?
71+
public var children: [DocumentSymbol]?
7272

7373
public init(
7474
name: String,

0 commit comments

Comments
 (0)