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

# FileParseResult

Struct in [Yarn.Compiler](/2.4/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)](/2.4/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult..ctor.md) | Initializes a new instance of the [FileParseResult](/2.4/api/csharp/yarn.compiler/yarn.compiler.fileparseresult.md) struct. |

## Methods

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

## Properties

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