Files
swift-mirror/test/SourceKit/DocumentStructure/Inputs/raw-identifiers.swift
Hamish Knight 55ef1bcaf0 [SourceKit] Print backticks if needed in printDisplayName
Ensure we print raw identifier names with backticks for e.g the
document structure request.

rdar://152524780
2025-06-25 15:15:17 +01:00

14 lines
246 B
Swift

struct `A.B` {
func `foo bar`(`a b`: Int, c: Int, `$`: String) {}
func `3four`() {}
func `baz`(`x`: Int) {}
}
extension `A.B` {}
struct Outer {
struct Inner {}
}
extension Outer.Inner {}
func + (lhs: `A.B`, rhs: `A.B`) -> `A.B` { lhs }