withIssueContext(fileID:filePath:line:column:isolation:operation:)

Sets the context for issues reported for the duration of the asynchronous operation.

WithIssueContext.swift:39
func withIssueContext<R>(fileID: StaticString, filePath: StaticString, line: UInt, column: UInt, isolation: isolated (any Actor)? = #isolation, operation: () async throws -> R) async rethrows -> R

Parameters

fileID

The source #fileID to associate with issues reported during the operation.

filePath

The source #filePath to associate with issues reported during the operation.

line

The source #line to associate with issues reported during the operation.

column

The source #column to associate with issues reported during the operation.

operation

An asynchronous operation.

An asynchronous version of withIssueContext(fileID:filePath:line:column:operation:).