Repository: apple/swift-syntax (swift)

Issue:
"Any.Type" in header always outputs as "Any .Type" with an extra space
### Description

![246605376-4701d2cb-b77b-4c23-a427-aa7612a528f1](https://github.com/apple/swift-syntax/assets/101865961/fc7c6eda-9b3e-4ccf-9e00-2b32a8db50bd)
---
"Any.Type" in header always outputs as "Any .Type" with an extra space.

### Steps to Reproduce

_No response_

Pull request description:
Resolves #1815 

Companion PR https://github.com/apple/swift/pull/66799

Patch:
diff --git a/Sources/SwiftBasicFormat/BasicFormat.swift b/Sources/SwiftBasicFormat/BasicFormat.swift
index bf732490310..692a491644a 100644
--- a/Sources/SwiftBasicFormat/BasicFormat.swift
+++ b/Sources/SwiftBasicFormat/BasicFormat.swift
@@ -206,6 +206,7 @@ open class BasicFormat: SyntaxRewriter {
       (.identifier, .leftSquare),  // myArray[1]
       (.identifier, .period),  // a.b
       (.integerLiteral, .period),  // macOS 11.2.1
+      (.keyword(.Any), .period),  // Any.Type
       (.keyword(.`init`), .leftAngle),  // init<T>()
       (.keyword(.`init`), .leftParen),  // init()
       (.keyword(.self), .period),  // self.someProperty


Test patch:
diff --git a/Tests/SwiftSyntaxBuilderTest/VariableTests.swift b/Tests/SwiftSyntaxBuilderTest/VariableTests.swift
index d35a99f1f0f..948045c7d47 100644
--- a/Tests/SwiftSyntaxBuilderTest/VariableTests.swift
+++ b/Tests/SwiftSyntaxBuilderTest/VariableTests.swift
@@ -371,4 +371,17 @@ final class VariableTests: XCTestCase {
       assertBuildResult(builder, expected, line: line)
     }
   }
+
+  // https://github.com/apple/swift-syntax/issues/1815
+  func testSpacingInDictionaryType() throws {
+    let buildable = try VariableDeclSyntax("static var mirror: Dictionary<String, Any.Type>") {}
+
+    assertBuildResult(
+      buildable,
+      """
+      static var mirror: Dictionary<String, Any.Type> {
+      }
+      """
+    )
+  }
 }