# scope_of

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-language/function-name_scope/

**function** · [`ferroui-designer-language`](/docs/0.5.0/api/ferroui-designer-language/) · v0.5.0

```rust
fn scope_of(document: &ferroui_designer_core::Document, node: ferroui_designer_core::NodeId) -> ferroui_designer_core::NodeId
```

The containing XAML name scope. A template's own declaration belongs to its
parent scope, while nodes inside the template belong to the template scope.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Language/references.rs#L162)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
