---
title: "init(fileID:filePath:line:column:)"
framework: testing
role: symbol
role_heading: Initializer
path: "testing/sourcelocation/init(fileid:filepath:line:column:)"
---

# init(fileID:filePath:line:column:)

Initialize an instance of this type with the specified location details.

## Declaration

```swift
init(fileID: String, filePath: String, line: Int, column: Int)
```

## Parameters

- `fileID`: The file ID of the source file, using the format described in the documentation for the https://developer.apple.com/documentation/swift/fileID() macro in the Swift standard library.
- `filePath`: The path to the source file.
- `line`: The line in the source file. Must be greater than 0.
- `column`: The column in the source file. Must be greater than 0.

## Discussion

Discussion note: fileID must not be empty and must be formatted as described in the documentation for #fileID. note: line must be greater than 0. note: column must be greater than 0.
