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

# FileParseResult

Struct in [Yarn.Compiler](/3.1/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 : ISourceInput
```

## 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,IEnumerable)](/3.1/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult..ctor.md) | Initializes a new instance of the [FileParseResult](/3.1/api/csharp/yarn.compiler/yarn.compiler.fileparseresult.md) struct. |

## Methods

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

## Properties

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