Skip to content

Commit 8e10a9b

Browse files
committed
[AST] Use consistent naming for bridging functions
Add a `Bridged` prefix to match the name being exposed to Swift, and to match the other bridging functions. Also while here, use `SWIFT_NAME` for some bridging functions that were missing it.
1 parent 4eef3ac commit 8e10a9b

File tree

4 files changed

+414
-393
lines changed

4 files changed

+414
-393
lines changed

SwiftCompilerSources/Sources/AST/DiagnosticEngine.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public struct DiagnosticEngine {
9191
var closure: () -> Void = {
9292
bridgedArgs.withBridgedArrayRef { bridgedArgsRef in
9393
bridgedFixIts.withBridgedArrayRef { bridgedFixItsRef in
94-
DiagnosticEngine_diagnose(bridged, bridgedSourceLoc,
95-
id, bridgedArgsRef,
96-
highlightStart, highlightLength,
97-
bridgedFixItsRef)
94+
bridged.diagnose(at: bridgedSourceLoc, id, bridgedArgsRef,
95+
highlightAt: highlightStart,
96+
highlightLength: highlightLength,
97+
fixIts: bridgedFixItsRef)
9898
}
9999
}
100100
}

0 commit comments

Comments
 (0)