Closed
Description
Description
It doesn't seem possible to write tests for macros that visit InfixOperatorExprSyntax
. This includes the "add blocker" example from swift-macro-examples.
Steps to Reproduce
- Try to write a macro test for: https://github.com/DougGregor/swift-macro-examples/blob/66ded9b2774c06c5a51254b0640a456ef1055a68/MacroExamplesPlugin/AddBlocker.swift
- The
AddVisitor
never visits the node because the node doesn't exist in the test run.