---
title: "init(callStack:location:)"
framework: xctest
role: symbol
role_heading: Initializer
path: "xctest/xctsourcecodecontext/init(callstack:location:)"
---

# init(callStack:location:)

Initializes a new instance with a provided call stack and source code location.

## Declaration

```swift
init(callStack: [XCTSourceCodeFrame], location: XCTSourceCodeLocation?)
```

## Parameters

- `callStack`: An array of source code frames that describe the call stack.
- `location`: A representation of a location in source code.

## See Also

### Initializers

- [init(callStackAddresses:location:)](xctest/xctsourcecodecontext/init(callstackaddresses:location:).md)
- [init(location:)](xctest/xctsourcecodecontext/init(location:).md)
- [init()](xctest/xctsourcecodecontext/init().md)
