# SourceContext

Artifact: [androidx.compose.ui:ui-tooling-data](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/tooling/data/SlotTree.jvmAndAndroid.kt+class:androidx.compose.ui.tooling.data.SourceContext) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)


```
@UiToolingDataApi
interface SourceContext
```

<br />

*** ** * ** ***

Context with data for creating group nodes.

See the factory argument of `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/package-summary#(androidx.compose.runtime.tooling.CompositionData).mapTree(kotlin.Function3,androidx.compose.ui.tooling.data.ContextCache)`.

## Summary

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceContext#bounds()` The bounds of the Composable if known. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceContext#depth()` The current depth into the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup` tree. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceContext#isInline()` The source context is for a call to an inline composable function |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceLocation?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceContext#location()` The `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceLocation` of where the Composable was called. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceContext#name()` The name of the Composable or null if not applicable. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/ParameterInformation>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceContext#parameters()` The parameters of the Composable. |

## Public properties

### bounds

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val bounds: IntRect
```

The bounds of the Composable if known.

### depth

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val depth: Int
```

The current depth into the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup` tree.

### isInline

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.4.0)

```
open val isInline: Boolean
```

The source context is for a call to an inline composable function

### location

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val location: SourceLocation?
```

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/data/SourceLocation` of where the Composable was called.

### name

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val name: String?
```

The name of the Composable or null if not applicable.

### parameters

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val parameters: List<ParameterInformation>
```

The parameters of the Composable.