# FileParseResult

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

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)](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult..ctor) | Initializes a new instance of the [FileParseResult](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult) struct. |

## Methods

| Name                                                                                                                                               | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [Equals(object)](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.equals)     |             |
| [GetHashCode()](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.gethashcode) |             |

## Properties

| Name                                                                                                                                   | Description                             |
| -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| [Name](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.name)     | The name of the file.                   |
| [Tokens](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.tokens) | The tokens extracted from the file.     |
| [Tree](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.compiler/yarn.compiler.fileparseresult/yarn.compiler.fileparseresult.tree)     | The parse tree extracted from the file. |
