Location
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar/
Description
The Swift 6.3 grammar contains:
macro-declaration → macro-head identifier generic-parameter-clause? macro-signature macro-definition? generic-where-clause
The generic-where-clause should be optional, as evidenced by the SwiftSyntax model of MacroDecl:
Child(
name: "genericWhereClause",
kind: .node(kind: .genericWhereClause),
...
isOptional: true
)
Correction
macro-declaration → macro-head identifier generic-parameter-clause? macro-signature macro-definition? generic-where-clause?
Location
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar/
Description
The Swift 6.3 grammar contains:
macro-declaration → macro-head identifier generic-parameter-clause? macro-signature macro-definition? generic-where-clauseThe
generic-where-clauseshould be optional, as evidenced by the SwiftSyntax model of MacroDecl:Correction
macro-declaration → macro-head identifier generic-parameter-clause? macro-signature macro-definition? generic-where-clause?