> 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.fileparseresult.md).

# FileParseResult

Struct in [Yarn.Compiler](/api/csharp/yarn.compiler.md)

Inherits from `System.ValueType`

## Summary

Contains the result of parsing a single file of source code.

```csharp
public struct FileParseResult
```

## Remarks

This class provides only syntactic information about a parse - that is, it provides access to the parse tree, and the stream of tokens used to produce that parse tree.

## Constructors

| Name                                                                                                                                                   | Description                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| [FileParseResult(string,IParseTree,CommonTokenStream)](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult..ctor.md) | Initializes a new instance of the [FileParseResult](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult.md) struct. |

## Methods

| Name                                                                                                                  | Description |
| --------------------------------------------------------------------------------------------------------------------- | ----------- |
| [Equals(object)](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.equals.md)     |             |
| [GetHashCode()](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.gethashcode.md) |             |

## Properties

| Name                                                                                                      | Description                             |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| [Name](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.name.md)     | The name of the file.                   |
| [Tokens](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.tokens.md) | The tokens extracted from the file.     |
| [Tree](/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.tree.md)     | The parse tree extracted from the file. |
