> 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/api/csharp/yarn.compiler/yarn.compiler.compilationresult/yarn.compiler.compilationresult.getlabelsfornode.md).

# GetLabelsForNode(string)

Method in [CompilationResult](/api/csharp/yarn.compiler/yarn.compiler.compilationresult.md)

## Summary

Gets the mapping of instruction indices to named labels found in the node.

```csharp
public IReadOnlyDictionary<int, string> GetLabelsForNode(string node)
```

## Parameters

| Name          | Description           |
| ------------- | --------------------- |
| `string` node | The name of the node. |

## Returns

The instruction label mapping.
