Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Sources/SwiftSyntax/MemoryLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//
//===----------------------------------------------------------------------===//

#if DEBUG
// See `MemoryLayoutTest.swift`.
@_spi(Testing) public enum SyntaxMemoryLayout {
public struct Value: Equatable {
Expand Down Expand Up @@ -41,4 +40,3 @@
return result
}
}
#endif
2 changes: 0 additions & 2 deletions Sources/SwiftSyntax/Raw/RawSyntax.swift
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,6 @@ extension RawSyntax: Identifiable {
}
}

#if DEBUG
/// See `SyntaxMemoryLayout`.
var RawSyntaxDataMemoryLayouts: [String: SyntaxMemoryLayout.Value] = [
"RawSyntaxData": .init(RawSyntaxData.self),
Expand All @@ -953,4 +952,3 @@ var RawSyntaxDataMemoryLayouts: [String: SyntaxMemoryLayout.Value] = [
"RawSyntaxData.MaterializedToken": .init(RawSyntaxData.MaterializedToken.self),
"RawSyntax?": .init(RawSyntax?.self),
]
#endif
2 changes: 0 additions & 2 deletions Sources/SwiftSyntax/Syntax.swift
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,10 @@ extension Syntax {
@available(*, unavailable, message: "use 'Syntax' instead")
public struct SyntaxNode {}

#if DEBUG
/// See `SyntaxMemoryLayout`.
var SyntaxMemoryLayouts: [String: SyntaxMemoryLayout.Value] = [
"Syntax": .init(Syntax.self),
"Syntax.Info": .init(Syntax.Info.self),
"Syntax.Info.Root": .init(Syntax.Info.Root.self),
"Syntax.Info.NonRoot": .init(Syntax.Info.NonRoot.self),
]
#endif
3 changes: 0 additions & 3 deletions Tests/SwiftSyntaxTest/MemoryLayoutTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@_spi(Testing) import SwiftSyntax
import XCTest

#if DEBUG
final class MemoryLayoutTest: XCTestCase {

func testMemoryLayouts() throws {
Expand Down Expand Up @@ -46,6 +45,4 @@ final class MemoryLayoutTest: XCTestCase {
XCTAssertEqual(actualValue, exp.value, "Matching '\(exp.key)' values")
}
}

}
#endif