@@ -40,22 +40,22 @@ import Foundation
4040/// - Token value: text="let", kind="keyword(SwiftSyntax.Keyword.let)"
4141/// - Type reference: text="VariableDeclSyntax", kind=nil
4242/// - Literal value: text="42", kind="integerLiteral(42)"
43- package struct StructureValue : Codable , Equatable {
43+ package struct StructureValue : Codable , Equatable , Sendable {
4444 /// The string representation of this value.
4545 /// Contains the actual text content or type name.
46- package let text : String
46+ private let text : String
4747
4848 /// Optional kind information that provides additional context about the value type.
4949 /// Present for tokens to indicate their specific token kind (e.g., "keyword", "identifier").
5050 /// Nil for simple text values and type references.
51- package let kind : String ?
51+ private let kind : String ?
5252
5353 /// Creates a new StructureValue with the specified content.
5454 ///
5555 /// - Parameters:
5656 /// - text: The string representation of the value
5757 /// - kind: Optional kind information for additional context
58- package init ( text: String , kind: String ? = nil ) {
58+ internal init ( text: String , kind: String ? = nil ) {
5959 self . text = text
6060 self . kind = kind
6161 }
@@ -65,8 +65,7 @@ package struct StructureValue: Codable, Equatable {
6565 /// - Parameters:
6666 /// - value: Any value that will be converted to a string
6767 /// - kind: Optional kind information for additional context
68- package init ( value: Any , kind: String ? = nil ) {
69- self . text = " \( value) "
70- self . kind = kind
68+ internal init ( value: Any , kind: String ? = nil ) {
69+ self . init ( text: " \( value) " , kind: kind)
7170 }
7271}
0 commit comments