Avatar
Kishikawa Katsumi 12/8/2022 9:16 PM
The MacroExpansionContext isn't going to directly touch the file system---it's going to ask the compiler/SourceKit (whomever it is talking to) to give it the contents of the file as a buffer.
ファイルシステムにマクロ処理系がアクセスするのではなくて、構文木と同様にシステム(コンパイラ?)からバッファとして渡されるほうがよさそう、ということらしい。確かにそのほうがスマートかも。