> 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/yarn.compiler.fileparseresult..ctor.md).

# FileParseResult(string,IParseTree,CommonTokenStream,IEnumerable\<Diagnostic>)

Constructor in [FileParseResult](/3.1/api/csharp/yarn.compiler/yarn.compiler.fileparseresult.md)

## Summary

Initializes a new instance of the [FileParseResult](/3.1/api/csharp/yarn.compiler/yarn.compiler.fileparseresult.md) struct.

```csharp
public FileParseResult(string name, IParseTree tree, CommonTokenStream tokens, IEnumerable<Diagnostic> diagnostics)
```

## Parameters

| Name                                                                           | Description                                     |
| ------------------------------------------------------------------------------ | ----------------------------------------------- |
| `string` name                                                                  | The name of the file.                           |
| `Antlr4.Runtime.Tree.IParseTree` tree                                          | The parse tree extracted from the file.         |
| `Antlr4.Runtime.CommonTokenStream` tokens                                      | The tokens extracted from the file.             |
| `System.Collections.Generic.IEnumerable<Yarn.Compiler.Diagnostic>` diagnostics | The diagnostics produced from parsing the file. |
