       }
     }
     VariableDecl(
-      modifiers: [TokenSyntax.static.withLeadingTrivia(.newlines(1) + .docLineComment("/// The `eof` token") + .newlines(1))],
+      leadingTrivia: .newlines(1) + .docLineComment("/// The `eof` token") + .newlines(1),
+      modifiers: [TokenSyntax.static],
       letOrVarKeyword: .var
     ) {
       // We need to use `CodeBlock` here to ensure there is braces around.

      createTokenSyntaxPatternBinding("eof", accessor: body)
    }
    VariableDecl(
      modifiers: [TokenSyntax.static.withLeadingTrivia(.newlines(1) + .docLineComment("/// The `open` contextual token") + .newlines(1))],
      letOrVarKeyword: .var
    ) {
      // We need to use `CodeBlock` here to ensure there is braces around.

import SwiftSyntaxBuilder

let tokensFile = SourceFile {
  ImportDecl(
    leadingTrivia: .docLineComment(copyrightHeader),
    path: "SwiftSyntax"
  )

  ExtensionDecl(
    leadingTrivia: .newlines(1) + .docLineComment("/// Namespace for commonly used tokens with default trivia.") + .newlines(1),
    modifiers: [TokenSyntax.public],
    extendedType: "TokenSyntax"
  ) {
    for token in SYNTAX_TOKENS {
      if token.isKeyword {
        VariableDecl(
          leadingTrivia: token.text.map { .newlines(1) + .docLineComment("/// The `\($0)` keyword") + .newlines(1) } ?? [],
          modifiers: [TokenSyntax.static],
          letOrVarKeyword: .var
        ) {
          // We need to use `CodeBlock` here to ensure there is braces around.
