# NodeDebugInfo

Class in [Yarn.Compiler](https://docs.yarnspinner.dev/api/csharp/yarn.compiler)

Inherits from `System.Object`

## Summary

Contains debug information for a node in a Yarn file.

```csharp
public class NodeDebugInfo
```

## Constructors

| Name                                                                                                                                                 | Description                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [NodeDebugInfo(string?,string)](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo..ctor) | Initialises a new instance of the NodeDebugInfo class. |

## Methods

| Name                                                                                                                                          | Description                                                                                                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetLineInfo(int)](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.getlineinfo) | Gets a [LineInfo](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.lineinfo) object that describes the specified instruction at the index `instructionNumber` . |

## Properties

| Name                                                                                                                                   | Description                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [FileName](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.filename)     | Gets or sets the file that this DebugInfo was produced from.                   |
| [IsImplicit](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.isimplicit) | Gets or sets a value indicating whether this node was created by the compiler. |
| [NodeName](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.nodename)     | Gets or sets the node that this DebugInfo was produced from.                   |
| [Range](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.range)           | The range in the file in which the node appears.                               |

## Structs

| Name                                                                                                                               | Description                                           |
| ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [LineInfo](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.nodedebuginfo/yarn.compiler.nodedebuginfo.lineinfo) | Contains positional information about an instruction. |
