> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.compiler/yarn.compiler.basicblock/yarn.compiler.basicblock.ancestors.md).

# Ancestors

Property in [BasicBlock](/2.4/api/csharp/yarn.compiler/yarn.compiler.basicblock.md)

## Summary

Get the ancestors of this block - that is, blocks that may run immediately before this block.

```csharp
public IEnumerable<BasicBlock> Ancestors { get };
```
