---
title: location
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctsourcecodesymbolinfo/location
---

# location

A representation of a location in source code where a test issue occurred.

## Declaration

```swift
var location: XCTSourceCodeLocation? { get }
```

## See Also

### Symbol Information

- [imageName](xctest/xctsourcecodesymbolinfo/imagename.md)
- [symbolName](xctest/xctsourcecodesymbolinfo/symbolname.md)
