let sourceFile = Parser.parse( source: """ let numbers = [1, 2, 3, 4, 5] #assert(numbers[2] == 4) """ ) let macros: [String: any Macro.Type] = [ "assert": PowerAssertMacro.self, ] let context = BasicMacroExpansionContext( sourceFiles: [sourceFile: .init(moduleName: testModuleName, fullFilePath: testFileName)] ) let expanded = "\(sourceFile.expand(macros: macros, in: context))" ...