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

# location

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

## Declaration

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

## See Also

### Context Information

- [callStack](xctest/xctsourcecodecontext/callstack.md)
