@@ -205,18 +205,14 @@ func expandFreestandingMacro(
205
205
diagEnginePtr: diagEnginePtr,
206
206
macroSyntax: macroSyntax,
207
207
sourceFilePtr: sourceFilePtr,
208
- discriminator: discriminator,
209
- expandedSourcePointer: expandedSourcePointer,
210
- expandedSourceLength: expandedSourceLength)
208
+ discriminator: discriminator)
211
209
case . Executable:
212
210
expandedSource = expandFreestandingMacroIPC (
213
211
macroPtr: macroPtr,
214
212
diagEnginePtr: diagEnginePtr,
215
213
macroSyntax: macroSyntax,
216
214
sourceFilePtr: sourceFilePtr,
217
- discriminator: discriminator,
218
- expandedSourcePointer: expandedSourcePointer,
219
- expandedSourceLength: expandedSourceLength)
215
+ discriminator: discriminator)
220
216
}
221
217
222
218
guard var expandedSource = expandedSource else {
@@ -243,9 +239,7 @@ func expandFreestandingMacroIPC(
243
239
diagEnginePtr: UnsafeMutablePointer < UInt8 > ,
244
240
macroSyntax: Syntax ,
245
241
sourceFilePtr: UnsafePointer < ExportedSourceFile > ,
246
- discriminator: String ,
247
- expandedSourcePointer: UnsafeMutablePointer < UnsafePointer < UInt8 > ? > ,
248
- expandedSourceLength: UnsafeMutablePointer < Int >
242
+ discriminator: String
249
243
) -> String ? {
250
244
251
245
let macroName : String
@@ -291,9 +285,7 @@ func expandFreestandingMacroInProcess(
291
285
diagEnginePtr: UnsafeMutablePointer < UInt8 > ,
292
286
macroSyntax: Syntax ,
293
287
sourceFilePtr: UnsafePointer < ExportedSourceFile > ,
294
- discriminator: String ,
295
- expandedSourcePointer: UnsafeMutablePointer < UnsafePointer < UInt8 > ? > ,
296
- expandedSourceLength: UnsafeMutablePointer < Int >
288
+ discriminator: String
297
289
) -> String ? {
298
290
299
291
// Create a source manager. This should probably persist and be given to us.
@@ -492,9 +484,7 @@ func expandAttachedMacro(
492
484
declarationSourceFilePtr: declarationSourceFilePtr,
493
485
attachedTo: declarationNode,
494
486
parentDeclSourceFilePtr: parentDeclSourceFilePtr,
495
- parentDeclNode: parentDeclNode,
496
- expandedSourcePointer: expandedSourcePointer,
497
- expandedSourceLength: expandedSourceLength)
487
+ parentDeclNode: parentDeclNode)
498
488
case . InProcess:
499
489
expandedSources = expandAttachedMacroInProcess (
500
490
diagEnginePtr: diagEnginePtr,
@@ -506,9 +496,7 @@ func expandAttachedMacro(
506
496
declarationSourceFilePtr: declarationSourceFilePtr,
507
497
attachedTo: declarationNode,
508
498
parentDeclSourceFilePtr: parentDeclSourceFilePtr,
509
- parentDeclNode: parentDeclNode,
510
- expandedSourcePointer: expandedSourcePointer,
511
- expandedSourceLength: expandedSourceLength)
499
+ parentDeclNode: parentDeclNode)
512
500
}
513
501
514
502
guard let expandedSources = expandedSources else {
@@ -556,9 +544,7 @@ func expandAttachedMacroIPC(
556
544
declarationSourceFilePtr: UnsafePointer < ExportedSourceFile > ,
557
545
attachedTo declarationNode: DeclSyntax ,
558
546
parentDeclSourceFilePtr: UnsafePointer < ExportedSourceFile > ? ,
559
- parentDeclNode: DeclSyntax ? ,
560
- expandedSourcePointer: UnsafeMutablePointer < UnsafePointer < UInt8 > ? > ,
561
- expandedSourceLength: UnsafeMutablePointer < Int >
547
+ parentDeclNode: DeclSyntax ?
562
548
) -> [ String ] ? {
563
549
let macroName : String = customAttrNode. attributeName. description
564
550
let macro = macroPtr. assumingMemoryBound ( to: ExportedExecutableMacro . self) . pointee
@@ -634,9 +620,7 @@ func expandAttachedMacroInProcess(
634
620
declarationSourceFilePtr: UnsafePointer < ExportedSourceFile > ,
635
621
attachedTo declarationNode: DeclSyntax ,
636
622
parentDeclSourceFilePtr: UnsafePointer < ExportedSourceFile > ? ,
637
- parentDeclNode: DeclSyntax ? ,
638
- expandedSourcePointer: UnsafeMutablePointer < UnsafePointer < UInt8 > ? > ,
639
- expandedSourceLength: UnsafeMutablePointer < Int >
623
+ parentDeclNode: DeclSyntax ?
640
624
) -> [ String ] ? {
641
625
// Get the macro.
642
626
let macroPtr = macroPtr. bindMemory ( to: ExportedMacro . self, capacity: 1 )
0 commit comments