---
title: lineNumber
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctsourcecodelocation/linenumber
---

# lineNumber

An integer that represents a line of code in a source code file.

## Declaration

```swift
var lineNumber: Int { get }
```

## See Also

### Source Location Information

- [fileURL](xctest/xctsourcecodelocation/fileurl.md)
