# fantomas ## Docs ### [Fantomas](https://fsprojects.github.io/fantomas/docs/index.md) Fantomas F# source code formatter, inspired by scalariform for Scala, ocp-indent for OCaml and PythonTidy for Python. Purpose This project aims at formatting F# source files based on a given configuration. Fantomas will ensure correct indentation and consistent spacing between elements in the source files. We assume that the source files are parsable by F# compiler before feeding into the tool. Fantomas follows two F# style guides: the F# code formatting guidelines from Microsoft by default and the G-Research F# code formatting guidelines via various settings. Contributing Guidelines See the Contribution Guidelines. Credits We would like to gratefully thank the following persons for their contributions. License The library and tool are available under Apache 2.0 license. For more information see the License file. ### [Getting started](https://fsprojects.github.io/fantomas/docs/contributors/Getting Started.md) Getting started Fantomas has a fairly straightforward setup. Recommended workflow We recommend the following overall workflow when developing for this repository: Fork this repository Always work in your fork Always keep your fork up to date Before updating your fork, run this command: git remote add upstream https://github.com/fsprojects/fantomas.git This will make management of multiple forks and your own work easier over time. Updating your fork We recommend the following commands to update your fork: git checkout main git clean -xdf git fetch upstream git rebase upstream/main git push Or more succinctly: git checkout main && git clean -xdf && git fetch upstream && git rebase upstream/main && git push This will update your fork with the latest from fsprojects/fantomas on your machine and push those updates to your remote fork. dotnet SDK Please download the correct dotnet SDK, according to our global.json file. Initial build After cloning the repository, you should restore the local dotnet tools and the solution: dotnet tool restore dotnet restore The restore of project Fantomas.FCS (via the solution restore) will download the F# compiler source code. Afterwards, you can run the default build script. This will build the solution, run all unit tests and do everything that the CI build does. dotnet fsi build.fsx Alternately, you can also run some other pipelines using -p. Examples: dotnet fsi build.fsx -p FormatChanged will format all modified files detected by git. dotnet fsi build.fsx -p Docs will serve the documentation website locally. dotnet fsi build.fsx -p EnsureRepoConfig sets up some git repo-level configuration to ensure that formatting of new code is consistent before it is pushed up to a remote repository. ### [How can I contribute?](https://fsprojects.github.io/fantomas/docs/contributors/How Can I Contribute.md) How can I contribute? There are many ways to contribute to an open-source project. From liking a tweet to show some interest to solving a heavy handed coding problem. The most obvious thing where we can use some help is fixing bugs, but there are a lot of other things that most certainly would be welcome. Bug fixes The most welcome additions to the project are bug fixes. The philosophy behind this is that everyone should be able to fix their own bug. If we can achieve this as a community, we can share the workload and all benefit together. The project can move at a faster pace and improve as a whole. We strongly encourage people to embrace the reward of solving their own problems. We'll ask for a regression test when you fix a bug, to guarantee that you won't encounter the bug again. bug (soundness) Our goal is for Fantomas to be able to format all files out of the box without breaking correctness. It's very important to us that a new user's experience is smooth and at the very least results in correct code. Bugs labelled bug (soundness) all indicate places where a new user might bounce off Fantomas because it actually broke their code. We want to make sure users get a chance to explore the settings and tweak the style. If you can help us out by fixing a soundness bug, you can really help the project move forward. bug (stylistic) Besides breaking correctness another kind of bug is that the style of the output might not be what you expect. Bugs like this are labelled as bug (stylistic). This includes cases where Fantomas breaks one of its own formatting rules or fails to respect one of its settings. Again, here: scratch your own itch. If something bothers you, the best cure is to try a take a stab at it yourself. Good first issues If you wish to solve an issue, but don't know where to start, you can take a look that good first issue list. These issues are typically easier to pick up and might only require a few small changes to solve them. In case you want to solve any issue and would like some more guidance to start, you can also just ask this on the GitHub issue. The maintainer can give you additional pointers to get you on your way. Adoption The dream is that every F# developer can use Fantomas at any time. This aspiration is an odyssey that might never be complete, but any step in that direction is most welcome. Try introducing automatic formatting in your project, at work, or in an open-source project. This tool will only improve by adoption. fsprojects As Fantomas is part of the F# Community Project Incubation Space, it would be nice to see all the sibling projects formatted as well. We've put a lot of emphasis on continued formatting using the --check flag. Having that CI setup in place really brings it home. Big fish For marketing purposes, it is also very interesting if a larger or well-known project is using Fantomas. We can put these on our landing page and that really sends a strong message. Any fish really Regardless of size or type of project. Any project that checks Fantomas in their CI system is most welcome. Sponsoring Fantomas grew significantly as a result of its first sponsorship deal with G-Research. It would still be in the dark ages if it weren't for this support. For that we will forever be grateful. If you want to help increase adoption by providing financial support, you can reach out to sponsoring@fantomas.io. Keeping the grass green There are also some smaller deeds that can benefit the codebase. Eliminate dead code Here and there, there are parts of code that are no longer being used. Ranging from unused parameters to complete functions. A PR that cleans up these things would be appreciated as well. Linting Using F# Lint or other editor tooling, sometimes small improvements can be detected. Redundant parenthesis for example. Tweaks like this are nice. Understand how things work One other thing that changes your perception of code all together is knowing how Fantomas does what it does. Having a sense of the inner workings of Fantomas can be beneficial in understanding how the output was achieved. It broadens your horizon in general, as it touched a lot of interesting concepts, and you start looking differently at your F# code. Your sentiment on what you think matters might change, once you realized the level of complexity it involves. Documentation Found a typo? Still confused about something? Do you have some knowledge that should totally be documented? Let us know! We really value any contribution to our documentation. The more knowledge is here, the brighter the future of the project. Please do no hesitate here 😊. You can find some instructions on running the documentation locally in the .README.md file in the docs folder. The only prerequisite to run the docs, is having a recent local dotnet sdk. New releases Testing out new releases is also a huge way to help us. Spotting regressions early really helps to fix them early. Move to the latest Always try and stay on the latest version of Fantomas for your day-to-day projects. Updating to the newer version that might only have a couple of fixes might seem insignificant, but it really helps. Try alphas and betas Please give an alpha a spin if you are interested in submitting feedback for new development. Try both versions if you want to make sure everything still works for you. Don't feel obliged to use an alpha/beta in your day-to-day flow, just try them to see if the potential next stable version will still work. We have over 2000 unit tests, that still doesn't tell us if the next release will break your code or not. Improve the Syntax Tree Fantomas uses the parser from the F# compiler to construct the untyped syntax tree. This tree is later used to reconstruct the code. The better the tree, the better Fantomas can operate on it. The tree can be improved over at dotnet/fsharp when a valid use-case appears. Trivia nodes Trivia nodes in the syntax tree are nodes the compiler doesn't need to compile the code. However, for Fantomas they can be the missing link to perfectly restore the code. For example, in issue #2360, the information about the and keyword is missing in the syntax tree. If this information was available in SynTypeDefnTrivia, the bug could be fixed. Better representation Sometimes the existing shape of the syntax tree doesn't quite cover the syntax perfectly. For example, in issue #2264, the measure was represented as Code: [] type herth = / second Old AST: Types ([SynTypeDefn (SynComponentInfo ([{ Attributes = [ ... ], None, [], [herth], PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), false, None, tmp.fsx (1,17--1,22)), Simple (TypeAbbrev (Ok, Tuple (false, [(true, StaticConstant (Int32 1, tmp.fsx (1,25--1,33))); (false, LongIdent (SynLongIdent ([second], [], [None])))], ...] Notice StaticConstant (Int32 1, ...), the source code doesn't contain any 1 at all. After dotnet/fsharp#13440, New AST: Types ([SynTypeDefn (SynComponentInfo ([{ Attributes = [{ TypeName = SynLongIdent ([Measure], [], [None]) ArgExpr = Const (Unit, tmp.fsx (1,2--1,9)) Target = None AppliesToGetterAndSetter = false Range = tmp.fsx (1,2--1,9) }] Range = tmp.fsx (1,0--1,11) }], None, [], [herth], PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), false, None, tmp.fsx (1,17--1,22)), Simple (TypeAbbrev (Ok, Tuple (false, [Slash tmp.fsx (1,25--1,26); Type (LongIdent (SynLongIdent ([second], [], [None])))], tmp.fsx (1,25--1,33)), tmp.fsx (1,25--1,33)), ... ] This update to the tree made it very straightforward to fix the original bug in Fantomas. Another example of code that could benefit from a better representation is extern. ### [History](https://fsprojects.github.io/fantomas/docs/contributors/History.md) History This page provides architectural history and context for key decisions in the Fantomas project. Understanding why things are the way they are can help new contributors navigate the codebase. The FCS coupling problem Fantomas relies on the F# compiler's parser to construct an Untyped Abstract Syntax Tree (AST). Historically, Fantomas consumed the parser through the FSharp.Compiler.Service (FCS) NuGet package. This created a painful coupling. The FCS release cycle was tied to .NET SDK releases, so it could take months before a PR that improved the syntax tree could be utilized in Fantomas. To improve the core of Fantomas, we often needed to submit PRs to the F# compiler itself. These improvements would then sit unreleased for a long time, blocking progress. Decoupling from editors (v4.6) The 4.6 release introduced daemon mode, which decoupled Fantomas from the editors. Instead of editors consuming Fantomas.Core as a DLL (which forced alignment of FCS versions between Fantomas and editor tooling), editors now interact with the fantomas command line tool via the Fantomas.Client library. This meant end-users could bring their own version of Fantomas. Editors no longer needed to bundle a specific FCS version, which freed Fantomas from having to use the public FCS packages on NuGet. Creating Fantomas.FCS (v5) With the editor coupling removed, Fantomas 5 took the next step: creating a custom, lightweight fork of the F# compiler parser. How it works Fantomas.FCS takes only the source files necessary to compile the F# lexer and parser from the dotnet/fsharp repository, at a specific git commit. This is done via custom code in a Fun.Build pipeline. Key properties of this approach: We only expose the lexer and parser (early compiler phases), significantly reducing the dependency footprint compared to the full FCS NuGet package. We can move forward as soon as a relevant PR is merged to the dotnet/fsharp main branch, without waiting for an official NuGet release. The AST returned by Fantomas.FCS looks identical to what the official F# compiler returns, but is not binary compatible. Fantomas typically contains a newer version of the syntax tree than the official compiler. Why not just build the classic FCS from source? Building the full FCS from source produces a local FCS NuGet that depends on a local FSharp.Core NuGet. This is not ideal for shipping Fantomas.Core as a library. Why not use the nightly FCS feed? The nightly feed is outside of our control and has caused problems in the past. The custom FSharp.Core version dependency remains an issue there as well. Future outlook At some point, the F# compiler may contain all the Fantomas-related improvements, making the custom FCS unnecessary. If that day comes, we could revert to using the official FCS NuGet package. Another possibility is that Fantomas could eventually be absorbed into the FCS itself, becoming part of the exposed API in the F# ecosystem. In practice, Fantomas will likely continue moving forward with the latest compiler changes, while the official FCS moves at its own release cadence. ### [Releases](https://fsprojects.github.io/fantomas/docs/contributors/Releases.md) Releases Releases in Fantomas are automated via GitHub Actions. When a new release entry is added to the CHANGELOG.md and pushed to the main branch, the release workflow will automatically: Build and test the project Create NuGet packages Publish packages to NuGet Create a GitHub release with release notes Preparation The CHANGELOG.md needs a new header with an official release tag: ## [5.1.0] - 2022-11-04 For prerelease versions, include the prerelease suffix: ## [8.0.0-alpha-001] - 2024-12-12 Verify that all recent PRs and closed issues are listed in the changelog. Normally, this should be ok as we require a changelog entry before we merge a PR. Once the changelog entry is merged into main, the release workflow will automatically trigger and handle the release process. Testing Releases Locally You can test the release process locally using the --dry-run flag. This will perform all validation and generate release notes without actually publishing to NuGet or creating a GitHub release: dotnet fsi build.fsx -- -p Release --dry-run This is useful for: - Verifying the release notes before publishing - Checking that the changelog is parsed correctly - Testing author attribution - Ensuring the release pipeline works as expected Automated Release Process The release pipeline (build.fsx -p Release) performs the following steps: Parses the changelog to find the current and last release Checks if the release already exists on GitHub (skips if already published) Builds and tests the project Creates NuGet packages for all projects (except Fantomas.Client) Publishes packages to NuGet Generates release notes including: Changelog sections (Added, Changed, Fixed, etc.) Contributor attribution (from PR commits merged since the last release) Link to NuGet package Creates GitHub release: Draft releases for stable minor/major versions (patch = 0) Published releases for revisions (patch > 0) and all prereleases Includes --prerelease flag for alpha/beta versions Release Types Stable minor/major (e.g., 7.0.0, 8.0.0): Created as draft releases, requiring manual publish Stable revisions (e.g., 7.0.5, 8.1.2): Published immediately Prereleases (e.g., 8.0.0-alpha-001, 8.0.0-beta-001): Always published immediately Author Attribution The release notes automatically include contributor attribution by: - Querying PRs merged since the last release - Extracting authors from all commits in those PRs - Filtering out bots (e.g., dependabot[bot]) - Generating a "Special thanks to..." message Manual Steps The only manual step required is for minor and major releases: Adding Release Nicknames Minor and major releases are created as draft releases on GitHub. This allows maintainers to add a cool nickname to the release title before publishing. The nickname is typically a song name from the band Ghost. For example: - # 5.1.0 Kaisarion - 11/2022 - # 7.0.0 Year Zero - 01/2025 To add a nickname: 1. Go to the draft release on GitHub 2. Edit the release title to add the nickname in a tag 3. Review the release notes (they're already generated automatically) 4. Publish the release Note: Fantomas.Client requires a separate pipeline (build.fsx -p PushClient) and is not included in the automated release. Spread the word Share the newly created release in the #fantomas channel on the F# Discord. Optionally share (minor or major) releases on other social media. ### [Glossary](https://fsprojects.github.io/fantomas/docs/contributors/Glossary.md) Glossary AST The Abstract Syntax Tree (AST) is a tree data structure representing a piece of source code. FCS FSharp.Compiler.Service (FCS) is a collection of APIs and Services derived from the F# compiler source code. PR A Pull Request (PR) is a unit of proposed changes to a version control repository. See here for Fantomas-specific rules. Range A data structure modeling the exact place and size of a node or language construct in the source code. A range has a start and end position. A position is composed of a line number and a column number. Style Guide The F# Style Guide. The set of formatting rules Fantomas implements. Syntax Node A node in the AST. A node can represent different types of syntax, e.g. a Record or a Lambda. Trivia Trivia has two meanings, depending on the context it is used in. Fantomas Used to label items (blank lines, code comments, conditional directives) that are not fully captured by the F# compiler in the AST. FSharp.Compiler.Service Additional information captured in the syntax tree, which the compiler does not need to compile the source code. Trivia Node A trivia node can contain trivia, either as content before or content after. A trivia node is a generalized type that serves as a common denominator for all AST node types. Trivia nodes are used to construct a hierarchical tree-like structure in which every node can have multiple child nodes and each node has one parent node. Typed Syntax Tree The AST from the FCS carrying typed information about the processed source code. It is contructed from the Untyped Syntax Tree. Fantomas does not use this AST to format the source code. Untyped Syntax Tree The AST from the FCS used by Fantomas. It represents the source code as it was processed by the F# compiler. The Untyped Syntax Tree doesn't carry any information regarding the validity of the source code or semantics. In a later compilation stage, the Untyped Syntax Tree is transformed into the Typed Syntax Tree. ### [Updating the compiler sources](https://fsprojects.github.io/fantomas/docs/contributors/Updating the compiler.md) Updating the compiler sources From time to time we want to update the sources of the F# compiler we use for our own parser (Fantomas.FCS). Reasons can be bugfixes or new features we want to use. Examples are range fixes or newly added information in the AST we want to make use of. To do this, first remove the old compiler sources by running: git clean -xdf Make sure, that this removes your .deps folder. Next update the hash of the source version to use. Edit the FCSCommitHash value in the Directory.Build.props file. Run dotnet fsi .\build.fsx -p Init to download the new sources into the .deps folder. Make sure there's one directory in .deps named like the configured hash afterwards. You can now run a build to see if there is any obvious breakage: dotnet build If not, you can run the Fantomas.Core tests next dotnet test ./src/Fantomas.Core.SnapshotTests dotnet test ./src/Fantomas.Core.Tests Even if the tests are all green you should take a look at all the changes made to the SyntaxTree and make sure these changes don't need further adjustments in Fantomas. Think about tests to catch any regressions caused by the update and it's effects on Fantomas. ### [Writer Events and the EventList](https://fsprojects.github.io/fantomas/docs/contributors/EventList Architecture.md) Writer Events and the EventList Overview Fantomas formats code in two phases: Event generation: The code printer traverses the Oak tree and appends WriterEvent values to an EventList β€” a mutable doubly-linked list. During this phase, only lightweight metadata is tracked (line count, column, indent level). No strings are built. String materialization: The dump function walks the EventList head-to-tail with a StringBuilder, producing the final formatted string. EventList EventList (EventList.fs) is a mutable doubly-linked list of EventNode values. Each node holds a WriterEvent and pointers to Prev/Next. Key operations: Operation Complexity Used for Append O(1) Adding events during formatting InsertBefore / InsertAfter O(1) Splicing indent/unindent before trivia Remove O(1) Removing events (e.g. trailing newline in addFinalNewline) CreateBackupPoint O(1) Saving the tail position before speculative formatting RollbackTo O(1) Discarding events appended after a backup point ToSeq / ToRevSeq O(n) Iterating forward/backward for inspection CurrentLineContent O(k) Walking backward to collect text on the current line EventNode uses [] instead of option for Prev/Next links because this is a hot path β€” every formatting operation appends nodes. WriterEvent cases Event Purpose Write Append literal code text WriteTrivia Append trivia text (comments, directives, XML docs). Same as Write in output, but allows the engine to distinguish trivia from code without string-prefix checks WriteLine End current line, start new line at current indentation WriteLineBecauseOfTrivia Newline introduced by trivia. Distinguished from WriteLine so multiline detection can ignore trivia-induced newlines WriteLineInsideStringConst Raw newline inside a multiline string β€” no indentation applied WriteLineInsideTrivia Raw newline inside a trivia block (e.g. block comment) WriteBeforeNewline Queue text to appear just before the next newline (trailing line comments) IndentBy / UnIndentBy Adjust indentation level. Takes effect on the next newline SetIndent / RestoreIndent Absolute indent control SetAtColumn / RestoreAtColumn Indentation floor (atCurrentColumn) Start / Placeholder Position markers for future colWithNlnWhenItemIsMultiline rework Speculative formatting Several functions try a short layout and fall back to a long one: CreateBackupPoint RollbackTo expressionFitsOnRestOfLine / isShortExpression: Uses ShortExpression mode to detect overflow expressionExceedsPageWidth: Same, with LongExpressionLayout DU for the long path colWithNlnWhenItemIsMultiline: Optimistic blank-line separator, rolls back if both items are single-line WithDummy: Encapsulates probe functions β€” creates backup, runs probe, reads metadata, rolls back automatically Trivia-aware indentation indentSepNlnUnindent is the most common formatting pattern (66+ call sites). It indents, adds a newline, runs the content, then unindents: indent +> sepNln +> content +> unindent Both sides are trivia-aware: *indentSepNlnWithTriviaAwareness*: If trailing trivia exists before the indent point, splices IndentBy before the trivia block so the comment appears at the indented level. The trivia's own newline replaces sepNln. *unindentWithTriviaAwareness*: If trailing trivia exists after the content, splices UnIndentBy before the trailing trivia newline so the newline uses the reduced indent level. Both use findTrailingTriviaNewline which walks backward from the DLL tail, skipping RestoreIndent/RestoreAtColumn/UnIndentBy/IndentBy/WriteLine events, then verifies a WriteLineBecauseOfTrivia preceded by WriteTrivia. LongExpressionLayout The LongExpressionLayout DU describes how to lay out an expression that doesn't fit on one line: type LongExpressionLayout = | IndentAndUnindent // indent +> sepNln +> expr +> unindent | DoubleIndentAndUnindent // indent +> indent +> sepNln +> expr +> unindent +> unindent | NewlineOnly // sepNln +> expr expressionExceedsPageWidthWithLayout translates the DU to before/after functions, with unindentWithTriviaAwareness on the trailing side for indent layouts. The wrapper functions autoIndentAndNlnIfExpressionExceedsPageWidth, sepSpaceOrIndentAndNlnIfExpressionExceedsPageWidth, etc. all delegate to this. WriterModel WriterModel tracks formatting metadata without building strings: { LineCount: int // number of lines produced Column: int // current position on the line Indent: int // current indentation level AtColumn: int // indentation floor (from atCurrentColumn) WriteBeforeNewline: string Mode: WriteModelMode } // Standard, Dummy, or ShortExpression WriterModel.update processes each event and updates these fields. The same function is used both during normal formatting and when splicing events (to keep the model in sync after an InsertBefore). ### [Fantomas.Core overview (1)](https://fsprojects.github.io/fantomas/docs/contributors/Transforming.md) Fantomas.Core overview (1) In its simplest form, Fantomas.Core works in two major phases: transform the raw source code to a custom tree model and traverse that custom tree to print the formatted code. graph TD A[Transform source code to Oak] --> B B[Traverse Oak to get formatted code] --> C[Formatted code] style A stroke:#338CBB,stroke-width:2px Unfortunately, both phases are not always very straight forward. But once you get hang of the first phase, you can easily understand the second phase. Processing the raw source To have an understanding of what the raw source code means we parse the code using the parser of the F# compiler. We can parse the source code into an untyped syntax tree. This tree isn't really perfect for our use-case, so we map it to an Oak. An Oak is the toplevel root node of the Fantomas tree. We use a custom tree because it better suites our needs to reconstruct the output code. graph TD A[Parse AST] --> B B[Transfrom untyped AST to OAK] --> C C[Enrich the Oak with Trivia] Parse AST Parsing the AST is straightforward. We use the parseFile function from Fantomas.FCS and get back a syntax tree and diagnostic information. The diagnostic information is used to report errors and warnings. When we have errors, we stop processing the file. Fantomas requires a valid source code to format. If your code has errors, the parser cannot return a complete AST which is a strict requirement to run the remaining phases. let a = Returns a parsing error Incomplete structured construct at or before this point in binding. This has FSharpDiagnosticSeverity.Error and Fantomas will not process any code that has those. When there are only warnings, Fantomas will still try to process the file but will always yield a result. parseFile takes three parameters: - isSignature: bool The Syntax tree for a signature is a little different than a regular source file. The parser needs to know this and throughout the rest of the process, signature ASTs are treated differently. sourceText: ISourceText The input source code string is converted to an ISourceText) internally. defines: string list Conditional compilation defines are passed to the parser. These can have an influence on the parsing process, resulting in different ASTs. let a = #if DEBUG 0 #else 1 #endif Depending on the defines [] or ["DEBUG"], the AST will be different. The tree will also be created based on a single code path. You can use your locally installed F# compiler to parse a file and view the AST via: # Tip: figure out the location of your installed sdk whereis dotnet # Invoke the parser dotnet '/Users/nojaf/Library/Application Support/dnvm/dn/sdk/10.0.100/FSharp/fsc.dll' --parseonly --ast foo.fs Transform untyped AST to Oak The untyped syntax tree from the F# compiler is used as an intermediate representation of source code in the process of transforming a text file to binary. The AST is optimized for the use-case of generating binary. What we try to do in Fantomas is stop at the first AST level and go back to source text. The F# compiler was never designed with our use-case in mind and yet it has served us very well for years. In the past we did not have our own tree and were able to pull of formatting by traversing the compiler tree. This of course had its limitations and we had to overcome these with some hacks. Alas, some things in the AST aren't shaped the way we would like them to be. Sometimes, there is too much information, other times to little. To stream line our entire process, we've decided to map the untyped tree to our own custom object model. This introduces a lot of flexibility and simplifies our story. I thought Fangorn was dangerous - Gimli, son of GlΓ³in In ASTTransformer.fs we map the AST to our tree model. Some of the benefits we get out of this: The Oak model does not differentiate between implementation files and signature files. We use one tree model which allows for optimal code re-use in CodePrinter.fs. We don't map all possible combinations of AST into our model. Sometimes valid AST code can in theory be created, but will in practise never exist. For example SynTypeDefnRepr.Exception. It is defined in SyntaxTree.fs yet the parser (pars.fs) will never create it. The F# compiler uses this later in the typed tree. We will throw an exception when encountering this during the mapping as we have the foresight of what the parser doesn't create. Recursive types are all considered as toplevel types. This is not the case in the AST but we map it as such. Some nodes are combined into one, for example a toplevel attribute will always be linked to its sibling do expression. The ranges of some nodes are being calculated when they lead to a more accurate result. Collect Trivia A syntax tree contains almost all the information we need to format the code. However, there are three items that are either missing all together or require further processing: Blank lines Code comments Conditional directives These three items are labelled as Trivia in Fantomas. We need to restore them because the source code originally had them, but cannot do so purely on the AST. Detecting trivia Trivia can however be easily detected in Fantomas. Both code comments and conditional directives are present in the AST. These are stored on the file level (in ParsedImplFileInput and ParsedSigFileInput in the trivia node). In both ParsedImplFileInputTrivia and ParsedSigFileInputTrivia we can see comments and conditional directives. let a = // comment b c roughly translates to ImplFile (ParsedImplFileInput ("tmp.fsx", true, QualifiedNameOfFile Tmp$fsx, [], [], [SynModuleOrNamespace ([Tmp], false, AnonModule, [Let (false, [SynBinding(...)], tmp.fsx (1,0--3,4))], PreXmlDocEmpty, [], None, tmp.fsx (1,0--3,4), { ModuleKeyword = None NamespaceKeyword = None })], (false, false), { ConditionalDirectives = [] CodeComments = [LineComment tmp.fsx (2,3--2,15)] })) The AST does contain a node for the line comment, but we cannot restore it when we are processing the let binding. There is no link between the line comment and the let binding. All trivia face this problem, so we need to process them separately. We do this in Trivia.collectTrivia. Note: blank lines are detected differently, we go over all the lines via the ISourceText. Inserting trivia Once we have the trivia, we can insert them to a Node they belong to. This is one of the key reasons why we work with our own tree. We can add the trivia information to the best suitable child node in the Oak. Every Node can have ContentBefore and ContentAfter, this is how we try to reconstruct everything. graph TD A[Capture all trivia from AST and ISourceText] --> B B[Insert trivia into nodes] ### [Trivia Assignment](https://fsprojects.github.io/fantomas/docs/contributors/Trivia Assignment.md) Trivia Assignment Trivia (comments, blank lines, compiler directives) is assigned to Oak nodes before the code printer runs. This page describes how the assignment works and how to debug it. How assignment works assignTriviaToTriviaInstruction (Trivia.fs) receives a container node and a trivia item, then decides which child gets it as ContentBefore or ContentAfter. It finds two candidates: - nodeAfter: first child starting after the trivia's line - nodeBefore: for indented single-line comments (column > 0), the deepest preceding node at the same column via findNodeBeforeWithMatchingColumn Decision rules 1. Successor at different column β€” predecessor wins let x = try foo() with _ -> () // comment here (column 8) let y = 1 (column 4, different) The comment matches the try-with at column 8. Since let y is at a different column, the comment becomes ContentAfter on the try-with. 2. Same column, successor is a closing delimiter β€” predecessor wins let list = [ someItem // comment ] ] is in the closingDelimiters set (], }, |}, ), |)). The comment becomes ContentAfter on someItem. 3. Same column, both are content β€” successor wins let a = 1 // comment let b = 2 Both bindings are at column 0. The comment becomes ContentBefore on let b. Blank lines before comments A blank line (Newline trivia at column 0) followed by an indented comment (CommentOnSingleLine at column > 0) would normally be assigned to different nodes β€” the newline has no column info for matching. promoteNewlinesBeforeComments pre-processes the trivia sequence: adjacent Newline items followed by a CommentOnSingleLine are combined into CommentOnSingleLineWithLeadingNewlines(count, comment). This single trivia item uses the comment's range for assignment, keeping both on the same node. The adjacency check ensures only consecutive newlines on adjacent lines are combined β€” distant blank lines (separated by code) are flushed independently. Debugging Oak tree with trivia markers dotnet fsi scripts/oak.fsx The output uses arrows to show trivia placement: - β–Ό = ContentBefore - β–² = ContentAfter Example: ExprArrayOrListNode((1,11--4,1) SingleTextNode((1,11--1,12), "[") SingleTextNode((2,4--2,12), "someItem") SingleTextNode((4,0--4,1), "]") ) Writer events dotnet fsi scripts/writer-events.fsx [--editorconfig ] Shows the sequence of WriterEvent values produced during formatting. Use --editorconfig to pass settings like fsharp_multiline_bracket_style=stroustrup. Per-define Oak dotnet fsi scripts/oak.fsx --define SOMETHING Shows the Oak for a specific define combination, useful for debugging trivia assignment with #if/#else/#endif blocks. Known limitations Hash directive boundaries findNodeBeforeWithMatchingColumn does not account for #if/#else/#endif directives between the candidate node and the comment. A comment after #endif at the same column as an item inside #if can be incorrectly assigned across the directive boundary. // Input: let list = [ someItem #if something item1 #else item2 #endif // comment <-- column 4, matches item1/item2 across directive boundary ] With something defined, the Oak shows: SingleTextNode "item1" SingleTextNode "]" The comment (line 8) is emitted before #else (line 5), reversing source order. Trailing trivia inflating width Comments assigned as ContentAfter make the owning expression appear wider or multiline in speculative formatting checks. This can cause expressions that fit on one line to be forced into multiline layout: // Input: Html.a [ prop.className "navbar-item" ] (* block comment *) // After trivia reassignment, the comment is ContentAfter on Html.a [...]. // The speculative check sees the trivia events and decides it's "multiline": Html.a [ prop.className "navbar-item" ] (* block comment *) The formatted output is valid and idempotent but more verbose than necessary. ### [F#](https://fsprojects.github.io/fantomas/docs/contributors/FSharp.md) F# New to F#? If you are truly brand-new to the F# language, you might want to start by reading the F# documentation of Microsoft. Some other great resources (in no particular order) are: Essential F# F# for Fun and Profit F# Fundamentals Tutorial | Learn Functional Programming | Step-by-Step Guide F# Foundation Slack F# on Discord Used F# features F# has a lot of nice language features, although not all of them are used in Fantomas. We wish to highlight the most important ones that we use before continuing: Partial active patterns, these are heavily used in SourceParser.fs. In short, we use the Untyped Abstract Syntax Tree created by the F# parser, we don't use all the information in that tree to restore the source code. For example SynExpr.For, the definition looks like: type SynExpr = ... /// F# syntax: expr; expr /// /// isTrueSeq: false indicates "let v = a in b; v" | Sequential of debugPoint: DebugPointAtSequential * isTrueSeq: bool * expr1: SynExpr * expr2: SynExpr * range: range However, in Fantomas we have a partial active pattern that we use to easily grab the information we need from the AST. These partial actives are mostly used and defined in ASTTransformer.fs. let (|Sequentials|_|) e = let rec visit (e: SynExpr) (finalContinuation: SynExpr list -> SynExpr list) : SynExpr list = match e with | SynExpr.Sequential(_, _, e1, e2, _) -> visit e2 (fun xs -> e1 :: xs |> finalContinuation) | e -> finalContinuation [ e ] match e with | SynExpr.Sequential(_, _, e1, e2, _) -> let xs = visit e2 id Some(e1 :: xs) | _ -> None Notice the underscores, we don't use the DebugPointAtSequential info and range, so we drop that information in the result of the partial active pattern. Custom operators. In F# there are some special operators like |> and >>. Note that these are just functions themselves as well. Instead of specifying all the arguments after the function name, (infix) operators let you specify an argument before the operator and after. In F#, you are able to create your own operators as well. In Fantomas, the most notable are !- and +>. We will cover them later, but if you peek in CodePrinter.fs, they are heavily used there. Signature files. In Fantomas we use signature files to define the module boundaries. Everything that is both defined in the implementation file (the *.fs file) and in the signature file (the *.fsi file) is considered to be visible to other modules. If a signature file is present, there is no need to specify private in a function you don't want to be visible to other modules. Just don't add a val entry to the signature file and it will be private automatically. You can look at a signature file to get a glimpse of what the module really does. Type extensions. In contrast to partial active patterns, where we want to hide some AST information, it can occur that we need to extend the type of an AST node. We do this by adding a new type member to an existing Syntax tree type. Example in Trivia.fs: type CommentTrivia with member x.Range = match x with | CommentTrivia.BlockComment m | CommentTrivia.LineComment m -> m The type SynMemberFlags does not expose any range information, but we can extend it to do so. The .FullRange naming convention is used to indicate that we are not satisfied by the original range or it is lacking all together. Don't worry just yet about this implementation, so keep in mind that with this feature we can later use memberFlags.FullRange on a SynMemberFlags instance. Function Values This is well-known concept in F# and for completion sake we do mention this. In F#, you can pass a function as an argument to another function. Fantomas is full of this kind of functions, so be sure to grasp this concept before continuing. Tail recursion There are places in the code base where we use some more advanced recursion techniques. ASTTransformer.fs is one of them. A very good explanation of what happens here can be found in this blogpost. Event Sourcing We use event sourcing to capture the instructions on how to write the new code. Instead of writing the new code directly to for example a StringBuilder, we write it to a list of events. That list of events will contain instructions like Write "let", IndentBy 4, WriteLine etc. So it is useful to have some notion of event sourcing. Although, it really is an implementation detail in Context.fs, think of it as writing a letter with a pen and a paper. We first rehearse what we want to say, then we write the letter. Not write evey word as we are making up the letter, but write the letter as a whole once we know the content. These events are used to achieve this. ### [Solution structure](https://fsprojects.github.io/fantomas/docs/contributors/Solution Structure.md) Solution structure Fantomas has a modular project structure. The parser (Fantomas.FCS), the core library (Fantomas.Core) and the command line application (fantomas) are the main components of the solution. graph TD A[Fantomas.FCS] --> B B[Fantomas.Core] --> J[Fantomas.EditorConfig] B --> C[Fantomas] J --> C B --> D[Fantomas.Benchmarks] B --> E[Fantomas.Core.Tests] B --> I[Fantomas.Core.SnapshotTests] J --> I C --> F[Fantomas.Tests] G[Fantomas.Client] --> H[Fantomas.Client.Tests] Fantomas.FCS This is a very custom fork of the F# compiler. We only expose a single parse function to construct the untyped syntax tree. We achieve this by taking the files necessary to compile the F# parser from source (via custom code in a Fun.Build pipeline). This limits the dependency footprint that our compiler has, compared to the official F# compiler NuGet package. Note that the AST returned by Fantomas.FCS looks identical to what the official F# compiler returns. However, the AST is not binary compatible. It is most likely that Fantomas contains a newer version of the Syntax tree than the official F# compiler. Fantomas.Core The heart of Fantomas is the core library. It contains the core logic reconstructing source code from the AST. Fantomas can be used as a library, see CodeFormatter.fsi to learn what APIs are exposed. Fantomas The command line application is the main entry point of the solution. It exposes the core functionality and also takes care of .editorconfig and .fantomasignore files. Fantomas.EditorConfig Reading Fantomas's settings from .editorconfig properties, and writing them back. It is a project of its own so that the snapshot cases read their settings with the same code as the tool. It is not a package: it ships inside the fantomas tool. Finding the .editorconfig files that apply to a file stays in Fantomas. Fantomas.Benchmarks A BenchmarkDotNet project used to measure the performance of the core library. We format a fixed revision of CodePrinter.fs as part of our CI process, to detect potential regressions. Fantomas.Client A standalone library project that editors can use to interact with the fantomas commandline application. Editors do not use Fantomas.Core, instead they use the Fantomas.Client library to connect to a fantomas dotnet tool. This allows end-users to bring their "own version" of Fantomas. This selected version could then later be re-used to verify if all files were formatted in a CI scenario. Fantomas.Core.SnapshotTests The formatting tests of Fantomas.Core, as files: every input under cases/ sits beside the result formatting gives for it. Its README says how to write a case. Fantomas.Core.Tests Unit tests of the internals of Fantomas.Core, and of what a snapshot case cannot show, such as formatting a syntax tree without its source. Fantomas.Tests A suite of end-to-end tests that run the actual fantomas command line application. Fantomas.Client.Tests A suite of end-to-end tests that will verify the Fantomas.Client code against released versions of fantomas. ### [Formatting Conditional Compilation Directives](https://fsprojects.github.io/fantomas/docs/contributors/Conditional Compilation Directives.md) Formatting Conditional Compilation Directives Fantomas is able to format code that contains conditional compiler directives. In order to achieve this, Fantomas will actually format the code multiple times and merge all results afterwards. Compilation directives and the syntax tree The F# parser will construct a different syntax tree based on the provided compilation directives. Consider the following piece of code: let a = #if DEBUG 0 #else 1 #endif When parsing this code without any directives, the #else branch will be considered the active code path. The AST would be: ImplFile (ParsedImplFileInput ("tmp.fsx", true, QualifiedNameOfFile Tmp$fsx, [], [], [SynModuleOrNamespace ([Tmp], false, AnonModule, [Let (false, [SynBinding (None, Normal, false, false, [], PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), SynValData (None, SynValInfo ([], SynArgInfo ([], false, None)), None), Named (SynIdent (a, None), false, None, tmp.fsx (1,4--1,5)), None, Const (Int32 1, tmp.fsx (5,4--5,5)), tmp.fsx (1,4--1,5), Yes tmp.fsx (1,0--5,5), { LetKeyword = Some tmp.fsx (1,0--1,3) EqualsRange = Some tmp.fsx (1,6--1,7) })], tmp.fsx (1,0--5,5))], PreXmlDocEmpty, [], None, tmp.fsx (1,0--6,10), { ModuleKeyword = None NamespaceKeyword = None })], (false, false), { ConditionalDirectives = [If (Ident "DEBUG", tmp.fsx (2,4--2,13)); Else tmp.fsx (4,4--4,9); EndIf tmp.fsx (6,4--6,10)] CodeComments = [] })) Notice that the right hand expression of binding a is Const (Int32 1, ...). There is no mention of 0 as that code was not active and thus is not a part of the syntax tree. Passing [ "DEBUG" ] to the parser will influence the lexer. The lexer will tokenize the other code branch and take the #if DEBUG path this time. Leading to ImplFile (ParsedImplFileInput ("tmp.fsx", true, QualifiedNameOfFile Tmp$fsx, [], [], [SynModuleOrNamespace ([Tmp], false, AnonModule, [Let (false, [SynBinding (None, Normal, false, false, [], PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), SynValData (None, SynValInfo ([], SynArgInfo ([], false, None)), None), Named (SynIdent (a, None), false, None, tmp.fsx (1,4--1,5)), None, Const (Int32 0, tmp.fsx (3,4--3,5)), tmp.fsx (1,4--1,5), Yes tmp.fsx (1,0--3,5), { LetKeyword = Some tmp.fsx (1,0--1,3) EqualsRange = Some tmp.fsx (1,6--1,7) })], tmp.fsx (1,0--3,5))], PreXmlDocEmpty, [], None, tmp.fsx (1,0--6,10), { ModuleKeyword = None NamespaceKeyword = None })], (false, false), { ConditionalDirectives = [If (Ident "DEBUG", tmp.fsx (2,4--2,13)); Else tmp.fsx (4,4--4,9); EndIf tmp.fsx (6,4--6,10)] CodeComments = [] })) This tree is almost identical but the constant value is now Const (Int32 0, ...). Multiple trees As the combination of directives has an influence on the tree, Fantomas first parses the tree without any directives. This base tree is then being inspected for ConditionalDirectiveTrivia. We determine the different combinations in the Defines module. graph TD A["Parse base tree"] --> B B["Figure out all compiler define combinations"] --> C B --> D C["Format tree []"] D["Format tree ['DEBUG']"] C --> E D --> E E["Merge results"] As trivia is being restored in each tree, they all will have gaps in them. The first result will look like: let a = #if DEBUG #else 1 #endif and the second: let a = #if DEBUG 0 #else #endif Merging the trees Once every tree is formatted, we chop each file into fragments. A fragment is everything between a conditional directive #if | #else | #endif or an actual directive. This means fragments can also be empty strings. Each result should have the same amount of fragments before we can merge them together. If this is not the case, it means that somewhere a trivia was not properly restored. If the number of fragments add up in each tree, then we merge two trees by reducing both lists and comparing each fragment. We always take the longest fragment and thus picking the active code. // fragments of [] [ "let a ="; "#if DEBUG"; ""; "#else"; "1"; "#endif" ] // fragments of [ "DEBUG" ] [ "let a ="; "#if DEBUG"; "0"; "#else"; ""; "#endif" ] After merging: [ "let a ="; "#if DEBUG"; "0"; "#else"; "1"; "#endif" ] ### [Contributors](https://fsprojects.github.io/fantomas/docs/contributors/Index.md) Contributors β€œIt's a dangerous business, Frodo, going out of your door," he used to say. "You step into the Road, and if you don't keep your feet, there is no knowing where you might be swept off to. ― J.R.R. Tolkien, The Fellowship of the Ring Fantomas is a project that has its roots deeply nested in the F# compiler. This can be an overwhelming experience at first, and it might even make you nervous about contributing in the first place. Fear not: once you get the hang of it, things are less complicated than they seem. In short, Fantomas is a source-code-to-source-code compiler. It will transform the text in the source code to an intermediate format and transform that again to source code. It uses the F# Compiler to do this. The parser from the F# compiler will be used to create an UnTyped Abstract Syntax tree (or "AST"). The AST is then reprinted in CodePrinter.fs: once the whole tree is traversed, the formatted code can be constructed. In this section of our documentation, we wish to teach you everything you need to know to contribute to Fantomas. Every F# developer should be able to understand the project, even the ones new to the language. The best is yet to come! PS: Don't hesitate to open an issue if you have any questions. Or if something isn't all that clear. Our goal is to make this documentation as complete as possibleπŸŽ‰! ### [Fantomas.Core overview (2)](https://fsprojects.github.io/fantomas/docs/contributors/Traverse.md) Fantomas.Core overview (2) Once the Oak is populated with all the found trivia, we can traverse the Oak to capture all the WriterEvents. graph TD A[Transform source code to tree] --> B B[Traverse Oak to get formatted code] --> C[Formatted code] style B stroke:#338CBB,stroke-width:2px We enter the module of CodePrinter and try and reconstruct the code based on the given configuration. WriterEvents and WriterModel In previous versions of Fantomas, Context had a TextWriter that was used to write the output. This is a more advanced version of a StringBuilder and we wrote the formatted code directly to the buffer. The key problem with this approach was that we couldn't easily revert code that was written to the buffer. For example, if the formatted code was crossing the max_line_length, we couldn't easily revert the code and try an alternative. That is why we first capture a collection of WriterEvents in a mutable doubly-linked list (EventList) and then reconstruct the formatted code. If the code is too long, we roll back to a saved backup point and try an alternative. See EventList Architecture for details. WriterModel When we capture new events we also want to track the current state of the formatting. This happens in the WriterModel record. It tracks lightweight metadata β€” line count, column position, indentation level β€” without building strings. By doing this, we can check whether the output exceeds the page width or is multiline, and decide on layout. When solving a bug, you typically need to change the collected series of events by using a different helper function inside CodePrinter. CodePrinter In CodePrinter the syntax tree is being traversed with the help of various (partial) active patterns. These active patterns are defined in SourceParser and typically are used to present the information we are interested in, in a different shape. CodePrinter exposes one function genParsedInput. val genFile: oak: Oak -> (Context -> Context) This takes an Oak and it returns a function that takes a Context and returns a new Context. We will eventually call this function with an initial Context. This initial Context will have our default config. In this function, all events are captured and stored in the WriterEvents and WriterModel. While we are traversing the syntax tree, we will compose the Context -> Context function based on the content. Context.dump then eventually takes the Context and returns a string of formatted code. This may seem a bit complicated, but you typically can see this as an implementation detail and can abstract this when working in CodePrinter. Creating WriterEvents There are various helper functions in CodePrinter that create WriterEvents. In CodePrinter we will typically never construct a WriterEvent directly. Instead we can use various helper functions that take the Context as parameter and return an updated Context with additional events. Please take a moment to debug the unit tests in CodePrinterHelperFunctionsTests.fs. This will give you a better understanding of how we capture events in CodePrinter. Debugging CodePrinter One thing that is a bit harder to grasp initially, is what is happening when you put a breakpoint in CodePrinter.fs. In CodePrinter.fs we compose a format function that takes a Context and returns a Context. We do this by traversing the syntax tree, and when you put a breakpoint in genTypeDefn for example: we are still in the process of composing the format function. The Context has not been going through our format function yet! If we want to debug when the Context is traveling through the format function, we can easily, temporarily, insert an additional function to inspect the Context content: You can use the writer events script to inspect the event stream: dotnet fsi scripts/writer-events.fsx . The Oak script shows the tree with trivia markers: dotnet fsi scripts/oak.fsx . ### [Fantomas.Core overview (3)](https://fsprojects.github.io/fantomas/docs/contributors/Formatted Code.md) Fantomas.Core overview (3) After the Context travelled through the composed CodePrinter function, all events are captured. These can be converted to a string of formatted code. graph TD A[Transform source code to tree] --> B B[Traverse Oak to get formatted code] --> C[Formatted code] style C stroke:#338CBB,stroke-width:2px Post processing As a final step in the process, we validate the result of the code generation. We do this by parsing the existing code and investigating the fsharp diagnostics. When there are any warnings or errors, we will throw an exception. Some warnings are are allowed as they indicate problems that were most likely already present in the input code. See Validation.fs for more details. ### [Pull request ground rules](https://fsprojects.github.io/fantomas/docs/contributors/Pull request ground rules.md) Pull request ground rules We expect some things from code changes. In general, changes should be made as consistent to the current code base as possible. Don't introduce unnecessary new concepts and try and change as little code as possible to achieve your goal. Always start with the mindset that you are going to introduce a change that might have an impact on how the tool behaves. Capture this change first in a test. Set your expectations before touching anything. This project is very well suited for Test-driven development and that should be the goal. A formatting test is a snapshot case: a file in src/Fantomas.Core.SnapshotTests/cases/ with the input, and its settings, if any, in a comment on top: (*--- fsharp_space_before_colon = true ---*) let myInput:int = 42 Beside it, name.gold.fs holds what formatting gives: let myInput : int = 42 Put the case in the folder of the node it is about, or of the setting it shows, and start its name with the issue number when there is one, as in this example path: cases/oak/Expr/Chain/trivia/2844-directive-in-parenthesis-argument.fs. A case about comments, blank lines or directives goes in the trivia/ folder of its node. Let the test write its gold, and read it: it is what your change pins down. FANTOMAS_UPDATE_SNAPSHOTS=1 dotnet test src/Fantomas.Core.SnapshotTests --filter "Name~2844-directive-in-parenthesis-argument" The snapshot tests' README has the rest: where a case goes, what every case checks, how to keep an input formatting must leave alone, and how to write the case for a bug that is not fixed yet. Fantomas.Core.Tests is for what a case cannot show: unit tests of internals. When developing a new feature, add new tests to cover all code paths. If you come across an issue, which can't be reproduced with the latest version of Fantomas but is still open, please submit a regression test. That way, we can ensure the issue stays fixed after closing it. Guidelines Target branch Please always rebase your code on the targeted branch. To keep your fork up to date, run this command: git remote add upstream https://github.com/fsprojects/fantomas.git Updating your fork: git checkout main && git fetch upstream && git rebase upstream/main && git push Test names A case is named in lower case words joined by dashes. When it is linked to a GitHub issue, the number comes first, as in 1073-comment-after-closing-list-bracket.fs. The tests check this. You don't need to repeat this number for cases that are deviations from the original report problem. A unit test name in Fantomas.Core.Tests starts with a lowercase letter. Verify signature files Verify if the change you are making should also apply to signature files (*.fsi). Verify slight variations Check if you need additional tests to cope with a different combination of settings. Check if you need additional tests to cope with a different combination of defines (#if DEBUG, ...). Changing the Oak The public types in SyntaxOak.fs may change in any release, a patch release included. Add, remove or reorder the constructor parameters and members of a node whenever a fix needs it, and do not keep an old overload around for compatibility. The Oak is versioned for formatting alone: code generation built on it is told to expect breaking changes, see Updates in Generating source code. Leave Oak changes out of the upgrade guide: it shows how to compare SyntaxOak.fs between two releases instead. Documentation Write/update documentation when necessary. You can find instructions on how to run the documentation locally in the docs/.README.md file. Pull request title Give your PR a meaningful title. Make sure it covers the change you are introducing in Fantomas. For example: "Fix bug 1404" is a poor title as it does not tell the maintainers what changed in the codebase. "Don't double unindent when record has an access modifier" is better as it informs us what exactly has changed. Add a link to the issue you are solving by using a keyword in the PR description. "Fixes #1404" does the trick quite well. GitHub will automatically close the issue if you used the correct wording. Please verify your issue is linked. (GitHub documentation) Not mandatory, but when fixing a bug consider using fix- as the git branch name. For example, git checkout -b fix-1404. Format your changes Code should be formatted to our standard style, using either dotnet fsi build.fsx -p FormatAll which works on all files, or dotnet fsi build.fsx -p FormatChanged to just change the files in git. If you forget, there's a git pre-commit script that will run this for you, make sure to run dotnet fsi build.fsx -p EnsureRepoConfig to set that hook up. Changelog Add an entry to the CHANGELOG.md in the Unreleased section based on what kind of change your change is. Follow the guidelines at KeepAChangelog to make your message relevant to future readers. If you're not sure what Changelog section your change belongs to, start with Changed and ask for clarification in your Pull Request If there's not an Unreleased section in the CHANGELOG.md, create one at the top above the most recent version like so: ## [Unreleased] ### Changed * Your new feature goes here ## [4.7.4] - 2022-02-10 ### Added * Awesome feature number one - When fixing a `bug (soundness)`, add a line in the following format to `Fixed`: `* [#issue-number](https://github.com/fsprojects/fantomas/issues/issue-number)`. For example, `* Spaces are lost in multi range expression. [#2071](https://github.com/fsprojects/fantomas/issues/2071)`. Do the same, if you fixed a `bug (stylistic)` that is not related to any style guide. - When fixing a `bug (stylistic)`, add a line in the following format to `Changed` `Update style of xyz. [#issue-number](https://github.com/fsprojects/fantomas/issues/issue-number)` - For example, `* Update style of lambda argument. [#1871](https://github.com/fsprojects/fantomas/issues/1871)`. Run a local build Finally, make sure to run dotnet fsi build.fsx. Among other things, this will check the format of the code and will tell you, if your changes caused any tests to fail. Small steps It is better to create a draft pull request with some initial small changes, and engage conversation, than to spend a lot of effort on a large pull request that was never discussed. Someone might be able to warn you in advance that your change will have wide implications for the rest of Fantomas, or might be able to point you in the right direction. However, this can only happen if you discuss your proposed changes early and often. It's often better to check before contributing that you're setting off on the right path. Coding conventions For consistency sake we have a few coding conventions. Please respect those to keep everything as streamlined as possible. Member declaration Use x as the the self-identifier if you need it. type Foo() = member _.Children = [] // βœ”οΈ OK member x.Length = x.Children.Length // ❌ Not preferred, we use `x` member this.WrongLength = this.Children.Length - 1 Use _ when you don't need the self-identifier. Use member val when possible. type Foo(v: Value) = // βœ”οΈ OK member val Value = v // ❌ Not preferred. member _.WrongValue = v Fixing style guide inconsistencies Fantomas tries to keep up with the style guides, but as these are living documents, it can occur that something is listed in the style that Fantomas is not respecting. In this case, please create an issue using our online tool. Copy the code snippet from the guide and add a link to the section of the guide that is not being respected. The maintainers will then add the bug (stylistic) to confirm the bug is fixable in Fantomas. In most cases, it may seem obvious that the case can be fixed. However, in the past there have been changes to the style guide that Fantomas could not implement for technical reasons: Fantomas can only implement rules based on information entirely contained within the untyped syntax tree. Target the next minor or major branch When fixing a stylistic issue, please ask the maintainers what branch should be targeted. The rule of thumb is that the main branch is used for fixing bug (soundness) and will be used for revision releases. Strive to ensure that end users can always update to the latest patch revision of their current minor or major without fear. A user should only need to deal with style changes when they have explicitly chosen to upgrade to a new minor or major version. In case no major or minor branch was created yet, please reach out to the maintainers. The maintainers will frequently rebase this branch on top of the main branch and release alpha/beta packages accordingly. ### [Formatting Conventions](https://fsprojects.github.io/fantomas/docs/contributors/Formatting Conventions.md) Formatting Conventions This document is a historical reference. It was the precursor to the Microsoft F# formatting style guide, which is now the authoritative source for F# formatting conventions. We preserve it here for its legacy value to the project. This article is written mostly based on "F# Coding Guidelines" (offline version) from Don Syme. There are certain bits of the original document that need to be updated when F# has changed a lot in last few years. Therefore, I attempt to reintroduce F# Formatting Conventions here and add some relevant information from other sources as well. Another purpose of the article is to recognize requirements for an F# source code formatter I would like to create. Table of Contents General rules for indentation Using spaces Offside rule Formatting rules for syntactic constructs Type definitions Value declarations Tuples Records Lists and arrays Discriminated unions Conditional expressions Multiple branches Single branches Pattern matching constructs Function applications Infix operators Pipeline operators Modules Object expressions and interfaces Whitespaces Blank lines Comments Conclusions References General rules for indentation Using spaces When indentation is required, you must use spaces, not tabs. At least one space is required. Your organization can create coding standards to specify the number of spaces to use for indentation; two, three or four spaces of indentation at each level where indentation occurs is typical. That said, indentation of programs is a subjective matter. Variations are OK, but the first rule you should follow is consistency of indentation: Choose a generally accepted style of indentation, then use it systematically throughout the whole application. You can configure Visual Studio to match your organization's indentation standards by changing the options in the Options dialog box, which is available from the Tools menu. In the Text Editor node, expand F# and then click Tabs. For a description of the available options, see Options, Text Editor, All Languages, Tabs. In general, when the compiler parses your code, it maintains an internal stack that indicates the current level of nesting. When code is indented, a new level of nesting is created, or pushed onto this internal stack. When a construct ends, the level is popped. Indentation is one way to signal the end of a level and pop the internal stack, but certain tokens also cause the level to be popped, such as the end keyword, or a closing brace or parenthesis. Offside rule A page is often 80 columns wide. Code in a multiline construct, such as a type definition, function definition, try...with construct, and looping constructs, must be indented relative to the opening line of the construct. The first indented line establishes a column position for subsequent code in the same construct. The indentation level is called a context. The column position sets a minimum column, referred to as an offside line, for subsequent lines of code that are in the same context. When a line of code is encountered that is indented less than this established column position, the compiler assumes that the context has ended and that you are now coding at the next level up, in the previous context. The term offside is used to describe the condition in which a line of code triggers the end of a construct because it is not indented far enough. In other words, code to the left of an offside line is offside. In correctly indented code, you take advantage of the offside rule in order to delineate the end of constructs. If you use indentation improperly, an offside condition can cause the compiler to issue a warning or can lead to the incorrect interpretation of your code. Offside lines are determined as follows. - An = token associated with a let introduces an offside line at the column of the first token after the = sign. - In an if...then...else expression, the column position of the first token after the then keyword or the else keyword introduces an offside line. - In a try...with expression, the first token after try introduces an offside line. - In a match expression, the first token after with and the first token after each -> introduce offside lines. - The first token after with in a type extension introduces an offside line. - The first token after an opening brace or parenthesis, or after the begin keyword, introduces an offside line. - The first character in the keywords let, if, and module introduce offside lines. Formatting rules for syntactic constructs Keep in mind that code is read much more often than it is written. This section introduces a set of recommendations to improve the readability of code. Consistency with the recommendations is important. However, sometimes these formatting conventions do not apply. It is a good reason to break a particular rule, if applying it would make the code less readable. In this section, code fragments without comments are of good styles. Bad coding styles will be explicitly specified by corresponding comments. Although I also use 4 spaces as the indentation standard, all the rules are equally applied for 2, 3 spaces, etc. Type definitions Indent | in type definition by 4 spaces: // OK type Volume = | Liter of float | USPint of float | ImperialPint of float // Not OK type Volume = | Liter of float | USPint of float | ImperialPint of float Value declarations Tuples A tuple is parenthesized and the commas therein (delimiters) are each followed by a space e.g. (1, 2), (x, y, z). A commonly accepted exception is to omit parentheses in pattern matching of tuples. The justification is to match multiple values, not construct new tuples. let x, y = z match x, y with | 1, _ -> 0 | x, 1 -> 0 | x, y -> 1 Records Short records can be written in one line: let point = { X = 1.0; Y = 0.0 } Opening token for records starts in a new line. Closing token is normally on the end of line of last construct: let rainbow = { boss = "Jeffrey" lackeys = ["Zippy"; "George"; "Bungle"] } Not everyone likes this style, and variation is ok. For large constructs (> 6 lines) the closing token can be on a fresh line: let rainbow = { boss1 = "Jeffrey" boss2 = "Jeffrey" boss3 = "Jeffrey" boss4 = "Jeffrey" boss5 = "Jeffrey" boss6 = "Jeffrey" boss7 = "Jeffrey" boss8 = "Jeffrey" lackeys = ["Zippy"; "George"; "Bungle"] } Assume that all fields are aligned at the same column, the trailing ; right before each line break is optional. You can also optionally include a trailing ; for the last entry. The same rule applies for list and array elements. Lists and arrays Write x :: l with spaces around the :: operator (:: is an infix operator, hence surrounded by spaces) and [1; 2; 3] (; is a delimiter, hence followed by a space). Always use at least one space between two distinct parenthetical operators (e.g. leave a space between a [ and a {). // OK [ { IngredientName = "Green beans"; Quantity = 250 } { IngredientName = "Pine nuts"; Quantity = 250 } { IngredientName = "Feta cheese"; Quantity = 250 } { IngredientName = "Olive oil"; Quantity = 10 } { IngredientName = "Lemon"; Quantity = 1 } ] // Not OK [{ IngredientName = "Green beans"; Quantity = 250 } { IngredientName = "Pine nuts"; Quantity = 250 } { IngredientName = "Feta cheese"; Quantity = 250 } { IngredientName = "Olive oil"; Quantity = 10 } { IngredientName = "Lemon"; Quantity = 1 }] Lists and arrays that split across multiple lines follow a similar rule as records do: let pascalsTriangle = [| [|1|] [|1; 1|] [|1; 2; 1|] [|1; 3; 3; 1|] [|1; 4; 6; 4; 1|] [|1; 5; 10; 10; 5; 1|] [|1; 6; 15; 20; 15; 6; 1|] [|1; 7; 21; 35; 35; 21; 7; 1|] [|1; 8; 28; 56; 70; 56; 28; 8; 1|] |] Discriminated unions DUs that split across multiple lines follow a similar rule: let tree1 = BinaryNode (BinaryNode(BinaryValue 1, BinaryValue 2), BinaryNode(BinaryValue 3, BinaryValue 4)) However, the following way is also acceptable: let tree1 = BinaryNode( BinaryNode(BinaryValue 1, BinaryValue 2), BinaryNode(BinaryValue 3, BinaryValue 4) ) Conditional expressions Multiple branches Multiple conditionals open each line counting from the second one by the keyword else or elif: if cond1 then e1 elif cond2 then e2 elif cond3 then e3 else e4 Single branches Indentation of conditionals depends on the sizes of the expressions which make them up. If cond, e1 and e2 are small, simply write them on one line: if cond then e1 else e2 If e1 and cond are small, but e2 is large: if cond then e1 else e2 If e1 and cond are large and e2 is small: if cond then e1 else e2 If all the expressions are large: if cond then e1 else e2 Pattern matching constructs Rules of a with in a try/with can be optionally 4-space indented e.g. try if System.DateTime.Now.Second % 3 = 0 then raise (new System.Exception()) else raise (new System.ApplicationException()) with | :? System.ApplicationException -> printfn "A second that was not a multiple of 3" | _ -> printfn "A second that was a multiple of 3" but this is also OK: try if System.DateTime.Now.Second % 3 = 0 then raise (new System.Exception()) else raise (new System.ApplicationException()) with | :? System.ApplicationException -> printfn "A second that was not a multiple of 3" | _ -> printfn "A second that was a multiple of 3" Use a | for each clause of a match (strictly speaking it is optional for the first), except when the match is all on one line. // OK match l with | { him = x; her = "Posh" } :: tail -> x | _ :: tail -> findDavid tail | [] -> failwith "Couldn't find David" // Not OK match l with | { him = x; her = "Posh" } :: tail -> x | _ :: tail -> findDavid tail | [] -> failwith "Couldn't find David" // OK match l with [] -> false | _ :: _ -> true If the expression on the right of the pattern matching arrow is too large, cut the line after the arrow. match lam with | Abs(x, body) -> 1 + sizeLambda body | App(lam1, lam2) -> sizeLambda lam1 + sizeLambda lam2 | Var v -> 1 Some programmers apply this rule systematically to any clause of any pattern matching. This does not add any good to readability hence is not recommended. // Not OK let rec fib = function | 0 -> 1 | 1 -> 1 | n -> fib (n - 1) + fib (n - 2) Pattern matching of anonymous functions, starting by function, are indented with respect to the function keyword: List.map (function | Abs(x, body) -> 1 + sizeLambda 0 body | App(lam1, lam2) -> sizeLambda (sizeLambda 0 lam1) lam2 | Var v -> 1) lambdaList Pattern matching in functions defined by let or let rec are indented 4 spaces after starting of let although function keyword may be used: let rec sizeLambda acc = function | Abs(x, body) -> sizeLambda (succ acc) body | App(lam1, lam2) -> sizeLambda (sizeLambda acc lam1) lam2 | Var v -> succ acc Careful alignment of the arrows of a pattern matching is considered bad practice, as exemplify in the following fragment: // Not OK let f = function | C1 -> 1 | LongName _ -> 2 | _ -> 3 The justification is that it is harder to maintain the program. Adding a new case may screw up indentation and we often give up alignment at that time. Function applications Arguments are always indented from functions: // OK Printf.sprintf "\t%s - %i\n\r" x.IngredientName x.Quantity // OK Printf.sprintf "\t%s - %i\n\r" x.IngredientName x.Quantity // OK let printVolumes x = Printf.printf "Volume in liters = %f, in us pints = %f, in imperial = %f" (convertVolumeToLiter x) (convertVolumeUSPint x) (convertVolumeImperialPint x) // Not OK let printVolumes x = Printf.printf "Volume in liters = %f, in us pints = %f, in imperial = %f" (convertVolumeToLiter x) (convertVolumeUSPint x) (convertVolumeImperialPint x) // Not OK Printf.sprintf "\t%s - %i\n\r" x.IngredientName x.Quantity Anonymous function arguments can be either on next line or with a dangling fun on the argument line: // OK let printListWithOffset a list1 = List.iter (fun elem -> printfn "%d" (a + elem)) list1 // Tolerable let printListWithOffset a list1 = List.iter ( fun elem -> printfn "%d" (a + elem)) list1 Infix operators Be careful to keep operator symbols well separated by spaces; not only will your formulas be more readable, but you will avoid confusion with multi-character operators. Obvious exceptions to this rule are the ! and . symbols. They are not separated from their arguments. Moreover, infix expressions are OK to lineup on same column: acc + (Printf.sprintf "\t%s - %i\n\r" x.IngredientName x.Quantity) let function1 arg1 arg2 arg3 arg4 = arg1 + arg2 + arg3 + arg4 Pipeline operators Pipeline |> should go at the start of a line immediately under the expression being operated on: // OK let methods2 = System.AppDomain.CurrentDomain.GetAssemblies() |> List.ofArray |> List.map (fun assm -> assm.GetTypes()) |> Array.concat |> List.ofArray |> List.map (fun t -> t.GetMethods()) |> Array.concat // OK let methods2 = System.AppDomain.CurrentDomain.GetAssemblies() |> List.ofArray |> List.map (fun assm -> assm.GetTypes()) |> Array.concat |> List.ofArray |> List.map (fun t -> t.GetMethods()) |> Array.concat // Not OK let methods2 = System.AppDomain.CurrentDomain.GetAssemblies() |> List.ofArray |> List.map (fun assm -> assm.GetTypes()) |> Array.concat |> List.ofArray |> List.map (fun t -> t.GetMethods()) |> Array.concat Modules Code in a local module must be indented relative to the module, but code in a top-level module does not have to be indented. Namespace elements do not have to be indented. The following code examples illustrate this. // A is a top-level module. module A let function1 a b = a - b * b // A1 and A2 are local modules. module A1 = let function1 a b = a*a + b*b module A2 = let function2 a b = a*a - b*b Object expressions and interfaces Object expressions and interfaces are aligned in the same way with member being indented after 4 spaces. For example, this is recommended: let comparer = { new IComparer with member x.Compare(s1, s2) = let rev (s : String) = new String (Array.rev (s.ToCharArray())) let reversed = rev s1 i reversed.CompareTo (rev s2) } but this is not advocated: // Not OK let comparer = { new IComparer with member x.Compare(s1, s2) = let rev (s : String) = new String (Array.rev (s.ToCharArray())) in let reversed = rev s1 in reversed.CompareTo (rev s2) } Bodies of modules, classes, interfaces, and structures delimited by begin...end, {...}, class...end, or interface...end. This allows for a style in which the opening keyword of a type definition can be on the same line as the type name without forcing the whole body to be indented further than the opening keyword. type IMyInterface = interface abstract Function1 : int -> int end Whitespaces Avoid extraneous whitespace in the following situations: Immediately inside parentheses and brackets. fsharp // OK spam (ham.[1]) // Not OK spam ( ham.[ 1 ] ) - Immediately before a comma and semicolon. - Around the = sign when used to indicate a named argument. fsharp // OK let makeStreamReader x = new System.IO.StreamReader(path=x) // Not OK let makeStreamReader x = new System.IO.StreamReader(path = x) Blank lines Separate top-level function and class definitions with two blank lines. Method definitions inside a class are separated by a single blank line. Extra blank lines may be used (sparingly) to separate groups of related functions. Blank lines may be omitted between a bunch of related one-liners (e.g. a set of dummy implementations). Use blank lines in functions, sparingly, to indicate logical sections. 2020 Revision Blank lines are introduces around any multiline code constructs: let a = 9 if someCondition then printfn "meh" () let b = 10 let c = 10 The SynExpr.IfThenElse expression is multiline so a blank line between let a and if someCondition and between if someCondition and let b is fitting. Single line statements are combined without any additional blank lines, see let b and let c. Comments Block comments generally apply to some (or all) code that follows them, and are indented to the same level as that code. Each line of a block comment starts with a (* or // and a single space (unless it is indented text inside the comment). Paragraphs inside a block comment are separated by a line containing a single * or //. Use inline comments sparingly. An inline comment is a comment on the same line as a statement. Inline comments should be separated by at least two spaces from the statement. They should start with a // and a single space. Conclusions This guideline is still far from complete. Many syntactic constructs have not had any defined rule yet. In those cases, please keep in mind consistency of indentation rule and extrapolate from rules of similar constructs. Although I tried to keep a neutral position, there are mistakes and inconsistencies here and there. Feedbacks and suggestions for improving the article are always welcome. References This document is structured upon "F# Coding Guidelines" (offline version). General rules for indentation are referenced at "Code Formatting Guidelines (F#)". A few conventions for syntactic constructs are adapted from "Caml Programming Guidelines". Other whitespace-significant rules are taken from "PEP 8 -- Style Guide for Python Code". ### [Fantomas is trying to format the input multiple times due to the detection of multiple defines](https://fsprojects.github.io/fantomas/docs/contributors/Multiple Times.md) Fantomas is trying to format the input multiple times due to the detection of multiple defines As explained in Formatting Conditional Compilation Directives, Fantomas will try to format the input multiple times if it detects multiple defines. The amount of conditional directives should be exactly the same in each pass. This is a requirement in order for Fantomas to merge the results into one. Unfortunately, this is not always the case and an exception will be thrown if the bookkeeping doesn't add up. As a case-study, we will look at issue #2844 and see how we troubleshoot these types of issues. System.FormatException: Fantomas is trying to format the input multiple times due to the detection of multiple defines. There is a problem with merging all the code back together. [] has 7 fragments [IOS] has 9 fragments Isolate each define combination The first step is to look at each define combination on its own. Doing this will simplify the debugging process. Put the input in a snapshot case, in the folder of the node it is about, named after the issue: src/Fantomas.Core.SnapshotTests/cases/oak/Expr/Chain/trivia/2844-directive-in-parenthesis-argument.fs. That path is where the case would go, not one in the repository: create the file, and the trivia/ folder it sits in, to follow along. The snapshot tests' README says where a case goes. program.SyncAction ( #if IOS // iOS animates by default layout changes, we don't want that fun () -> v #else fn #endif ) scripts/format.fsx formats one combination at a time when it is given --define, and prints the result for that combination before the merge. no-defines is the combination without any. dotnet build src/Fantomas.Core.SnapshotTests dotnet fsi scripts/format.fsx --define no-defines src/Fantomas.Core.SnapshotTests/cases/oak/Expr/Chain/trivia/2844-directive-in-parenthesis-argument.fs dotnet fsi scripts/format.fsx --define IOS src/Fantomas.Core.SnapshotTests/cases/oak/Expr/Chain/trivia/2844-directive-in-parenthesis-argument.fs Each result should reflect only the active code branches. IOS is not defined in the first, so no code is expected between #if IOS and #else: program.SyncAction( #if IOS #else fn #endif ) With IOS defined, the code between #else and #endif is gone instead: program.SyncAction( #if IOS // iOS animates by default layout changes, we don't want that fun () -> v #else #endif ) A directive is printed where the code around it puts it, which is why some are indented here; the merge moves every one of them to the start of its line. What the merge needs is that every combination has its directives on lines of their own, as many of them, in the same order. It splits each result at its directives and stitches the pieces back together, so a combination that puts code on the line of a directive, or moves code across one, is the one to fix. If we do this for each combination, we can narrow the problem down to find the troublesome combination. Bringing it all together Once every combination gives its directives that way, the merge succeeds and the case can get its golds: FANTOMAS_UPDATE_SNAPSHOTS=1 dotnet test src/Fantomas.Core.SnapshotTests --filter "Name~2844-directive-in-parenthesis-argument" That writes a gold per combination, 2844-directive-in-parenthesis-argument.no-defines.gold.fs and 2844-directive-in-parenthesis-argument.IOS.gold.fs, which hold the results above, and 2844-directive-in-parenthesis-argument.gold.fs, the merged result users get: program.SyncAction( #if IOS // iOS animates by default layout changes, we don't want that fun () -> v #else fn #endif ) Read all of them: they are what the fix pins down. ### [The Missing Comment](https://fsprojects.github.io/fantomas/docs/contributors/The Missing Comment.md) The Missing Comment Code comments can literally exist between every single F# token. I'm looking at you block comment (* ... *). As explained in Detecting trivia, we need to do quite some processing to restore code comments. In this guide, we would like to give you seven tips to restore a missing comment! Breathe We understand it very well that losing a code comment after formatting can be extremely frustrating. There is no easy fix that will solve all the missing comments overnight. Each case is very individual and can be complex to solve. May these steps help towards fixing your problem! Isolate the problem Before we can commence our murder mystery, it is best to narrow down our problem space. Example (#2490): let (* this comment disappears after formatting *) a = [] type A = { X : int ... } while true do () Using the online tool, we can remove any code that isn't relevant. The type and while code can be trimmed and the problem still exists. Check the syntax tree Every code comment should be present on the root level of the syntax tree. ParsedImplFileInputTrivia or ParsedSigFileInputTrivia should contain the comment. ImplFile (ParsedImplFileInput ("tmp.fsx", true, QualifiedNameOfFile Tmp$fsx, [], [], [ ... ], (false, false), { ConditionalDirectives = [] CodeComments = [BlockComment tmp.fsx (1,4--1,50)] })) If the comment is not there this means the F# lexer and parser didn't pick up the comment. In the unlikely event this happened, this should be fixed first over at dotnet/fsharp. Was the comment detected as TriviaNode? Fantomas grabs the comments straight from the syntax tree, and transforms them as TriviaNode. These TriviaNode are inserted into our custom Oak tree. This is a fairly straightforward process, and you can easily visually inspect this using the online tool. If your comment does not show up there, it means there is a problem between getting the information from the syntax tree and constructing the Trivia in Trivia.fs. You can put a breakpoint on addToTree tree trivia to see if all Trivia are constructed as expected. Was the TriviaNode inserted into a Node? The TriviaNode needs to be inserted into a Node inside the Oak. Choosing the best suitable node can be quite tricky, there are different strategies for different TriviaContent. In this example MultipleTextsNode (let keyword) and IdentListNode (a identifier) are good candidates as they appear right before and after the comment. We insert the TriviaNode into the best suitable Node using the AddBefore or AddAfter methods. In this example, at the time of writing, the block comment was added as ContentAfter for the Node representing the let keyword. Was the TriviaNode inserted into the best possible Node? Sometimes the selected Node isn't really the best possible candidate. In #640, the Directive trivia should be inserted into the internal node. In order to do this, we need to know the range of that internal keyword. The F# parser should capture this in order for us to be able to transform it into a Node. This was done in dotnet/fsharp#14503. Before that change in the syntax tree, another Node was selected and that lead to imperfect results. Printing the TriviaNode The last piece of the puzzle is printing the actual TriviaNode in CodePrinter. If everything up to this point went well, and the comment is still missing after formatting, it means it was not printed. Every Node potentially has ContentBefore and/or ContentAfter. We need to process this using the generic genNode function. let genTrivia (trivia: TriviaNode) (ctx: Context) = // process the TriviaContent let enterNode<'n when 'n :> Node> (n: 'n) = col sepNone n.ContentBefore genTrivia let leaveNode<'n when 'n :> Node> (n: 'n) = col sepNone n.ContentAfter genTrivia let genNode<'n when 'n :> Node> (n: 'n) (f: Context -> Context) = enterNode n +> f +> leaveNode n // Pipe `!- node.Text` (`f`) into `genNode` let genSingleTextNode (node: SingleTextNode) = !-node.Text |> genNode node enterNode and leaveNode will print the TriviaNodes using genTrivia. ### [Reporting a bug](https://fsprojects.github.io/fantomas/docs/end-users/ReportingBugs.md) Reporting a bug Fantomas should never break your code. When it does, when it throws, or when formatting its own result changes it again, we would like to hear about it. The online tool We prefer bugs to be reported through the online tool. Paste the code, pick the settings you use, and press Looks wrong? Create an issue!. It formats with the latest main branch and opens a GitHub issue with everything a maintainer needs to reproduce it. Keep the code as small as you can. Isolate the part that goes wrong: a report of five lines gets fixed much sooner than a file of five hundred. It also has to fit in a link, and GitHub refuses a link to a new issue once it grows past a few thousand characters. Not sure which settings apply to a file? dotnet fantomas doctor lists every setting your .editorconfig sets for it, see Diagnosing one file. Please report a new issue even when one looks the same. Bugs that look alike often have different causes, and the maintainers can tell. With a coding agent If you work with a coding agent, the fantomas-report skill does the same, starting from the file Fantomas failed on: npx skills add fsprojects/fantomas --skill fantomas-report -g Then ask your agent to report the file Fantomas could not format. The skill: shrinks the code to a minimal sample, and notes which variations make a difference; tries it against released versions, to tell a regression from an old bug, and a bug that is already fixed from one that is not; recognizes code Fantomas cannot format by design, such as the nesting that depends on a define, and proposes a change to your code instead; checks the sample against the latest main branch, the same way the online tool does; opens the new issue form in your browser, filled in the way the online tool fills it. It never submits the issue: you read it and decide. It needs the .NET 10 SDK, and Bun or Node.js 22.18 or later. It asks before it clones the Fantomas repository, which makes shrinking a sample much faster. ### [JetBrains Rider](https://fsprojects.github.io/fantomas/docs/end-users/Rider.md) JetBrains Rider The resharper-fsharp uses Fantomas under the hood to format the source code. No need for any additional plugins. From Rider 2022.2 onwards, Rider can detect your dotnet Fantomas installation, either globally or locally. Install Fantomas locally with: dotnet tool install fantomas Prior to Rider 2022.3 it did not respect the default settings of Fantomas. If you are stuck on version 2022.2 (or earlier) consider adding the default settings of Fantomas to your .editorconfig file. ### [Getting Started](https://fsprojects.github.io/fantomas/docs/end-users/GettingStarted.md) Getting Started Fantomas should be installed as a .NET tool. It is recommended to install it as a local tool and stick to a certain version per repository. Installation Create a .NET tool manifest to install tools locally. You can skip this step if you wish to install Fantomas globally. dotnet new tool-manifest Install the command line tool with: dotnet tool install fantomas or install the tool globally with dotnet tool install -g fantomas Usage For the overview how to use the tool, you can type the command dotnet fantomas --help Fantomas is an opinionated source code formatter for F#. (8.1.1+2136021f6) Usage: dotnet fantomas [command] [...flags] [...paths] Examples: dotnet fantomas . Format every F# file below the current folder dotnet fantomas src/App.fs Format a single file in place dotnet fantomas check . Report what needs formatting, write nothing dotnet fantomas --out build src Copy the formatted files to another folder Commands: check Report which files need formatting and write nothing. Exits 0 when every file is already formatted, 99 when some file needs formatting, and 1 when an error occurred. profile Report how long each file takes to format, slowest first. Formats one file at a time so the timings can be compared, and writes nothing. doctor Walk one file through everything Fantomas does to it and report what happened at each step: whether it is a file Fantomas formats, which .fantomasignore governs it and which line of it decided, which settings apply and where each came from, what formatting produced, whether Fantomas accepts its own output, and whether formatting that output again leaves it alone. Takes one file rather than a folder, and writes nothing. daemon Run an LSP-like server that editor tooling can talk to. Takes no paths or other flags, apart from --verbosity. Flags: --out Write the result to this file or folder instead of formatting in place. Takes a single input path. --force Write the output even when it is not valid F# code. For debugging purposes only. --json Report what the run did as one JSON document on standard out, naming what it looked at and positioning what went wrong. The usual messages are not printed; warnings go to standard error. The shape is for reading, not for parsing against: it carries no version and may change in any release. The exit code is the part that is promised. -v, --verbosity How much to print: normal or detailed. Defaults to normal. n and d are accepted as well. --version Print the version and exit -h, --help Display this menu and exit --check The older spelling of the check command above. Both do the same thing, and this one keeps working. --daemon The older spelling of the daemon command above. Both do the same thing, and this one keeps working, which is what lets editor tooling built against an earlier Fantomas start this one. Paths: A path is a folder, which is searched recursively, or a file ending in .fs, .fsi, .fsx, .ml or .mli. Naming none means the current folder. Formatting settings are read from .editorconfig, and files matched by the nearest .fantomasignore at or above them are skipped. Learn more about Fantomas: https://fsprojects.github.io/fantomas/docs Configure Fantomas: https://fsprojects.github.io/fantomas/docs/end-users/Configuration.html Join the F# Discord: https://discord.com/channels/196693847965696000/1493226271767924747 Docs for your LLM: https://fsprojects.github.io/fantomas/llms.txt https://fsprojects.github.io/fantomas/llms-full.txt You have to specify an input path and optionally an output path. The output path is prompted by --out e.g. dotnet fantomas ./input/array.fs --out ./output/array.fs Both paths have to be files or folders at the same time. If they are folders, the structure of input folder will be reflected in the output one. The tool will explore the input folder recursively. If you omit the output path, Fantomas will overwrite the input files unless the content did not change. JSON output starting version 8.0 --json writes one JSON document to standard out describing what the run did, instead of the usual messages. It is meant for a script or an agent that has to act on the result rather than read it: dotnet fantomas --json ./src { "command": "format", "workingDirectory": "/home/you/my-project", "exitCode": 0, "error": null, "files": [ { "path": "./src/App.fs", "status": "formatted" }, { "path": "./src/Library.fs", "status": "unchanged" } ] } Standard out carries the document and nothing else, so it can be piped straight into a parser. Warnings, such as an .editorconfig setting Fantomas does not know, still go to standard error. The exit code is unchanged from a run without the flag, and is in the document as well, so a caller that captured the output has it either way. files is every file the run looked at. status is one of formatted, unchanged, needs-formatting, timed or error, and which of them can appear depends on command, which is format, check or profile: a check writes nothing, so it reports needs-formatting where a format run reports formatted, and only a profile run reports timed. A file that a .fantomasignore matched is not listed and is not counted anywhere either. There is no honest number for it: a pattern that names a file can be counted, and one that names a folder cannot, because the folder is never opened and what is inside it is as unknown as what is inside a folder that is not there. fantomas doctor is what answers that question about a path you name, and it answers it exactly. A file's path is the one you gave, so it is usually relative. workingDirectory is what it is relative to, and the absolute path is the two joined. They are apart rather than resolved per file so that a run over a thousand files does not repeat the same prefix a thousand times. A file with status error carries two more keys, and no other file does. A run where one file could not be parsed reports the whole thing like this: { "command": "format", "workingDirectory": "/home/you/my-project", "exitCode": 1, "error": null, "files": [ { "path": "./src/App.fs", "status": "formatted" }, { "path": "./src/Broken.fs", "status": "error", "message": "./src/Broken.fs could not be parsed by Fantomas", "diagnostics": [ { "severity": "error", "code": "FS0583", "message": "Unmatched '('", "range": { "startLine": 3, "startColumn": 9, "endLine": 3, "endColumn": 10 } } ] } ] } Lines and columns are both one based, the way the F# compiler prints them. Note that the top level error is still null here: it is not where a file's failure is reported, but what stopped the run before it reached any file at all, such as an input path that does not exist. The other files are formatted as usual, and the run ends with exit code 1. The document carries no version, and that is the promise rather than an omission. A version number says a shape is a contract somebody is maintaining, and this one is not: it exists so that a machine reading a run can see what happened, which is a job that tolerates the shape moving. What is written here may change in any release. The exit code is the part that is promised. --json cannot be combined with --daemon, where standard out already carries the JSON-RPC protocol. Diagnosing one file starting version 8.0 doctor walks one file through everything Fantomas does to it and reports what happened at each step. It writes nothing, so it is safe against a working tree you have not committed, and it is what to reach for when Fantomas did something to a file you did not expect, or did nothing to a file you expected it to touch. dotnet fantomas doctor src/App.fs Fantomas 8.0.0+8f4c2b1a9 on /home/you/my-project/src/App.fs + File Found on disk: an implementation file of 214 lines. + Ignore Governed by /home/you/my-project/.fantomasignore, and no pattern in it matches. + Settings 2 of 36 settings come from /home/you/my-project/.editorconfig and /home/you/my-project/src/.editorconfig, the rest are Fantomas defaults. max_line_length = 100 /home/you/my-project/.editorconfig fsharp_multiline_bracket_style = stroustrup /home/you/my-project/src/.editorconfig end_of_line = lf the Fantomas default indent_size = 4 the Fantomas default insert_final_newline = true the Fantomas default ... ! Format Not formatted: the first change is at line 37. + Valid Fantomas accepts what it produced. + Idempotent Formatting the result again changes nothing. The opening line carries the whole version, commit hash and all, where every other page trims it to the short form. This report is what gets pasted into a bug report, and the build that produced it is the first thing whoever reads it has to know. The steps are the ones Fantomas takes, in the order it takes them, and each one gates the next: File β€” is there a file at that path at all, and is it one Fantomas formats? A .fsx is named as a script and a .fsi as a signature file, since which of the three it is decides how Fantomas parses it. A file under a folder a compiler or a package manager wrote, such as obj, is named as such: a run over the tree above it never opens that folder, so the file is invisible to it however the ignore file is written. Ignore β€” which .fantomasignore governs the file, and which line of it decided, quoted with its line number. Only the nearest one at or above the file applies; unlike .gitignore, Fantomas does not merge in the ones above it. A file an ignore file matches stops the walk here, because that is where Fantomas stops with it too. Settings β€” every setting the file will be formatted with, and for each one that an .editorconfig set, which file set it. What an .editorconfig decided comes first, then a blank line, then everything left at its Fantomas default. The line above them names the files that set something, which is not always every file in the chain. Anything Fantomas could not use out of the chain is reported here too, below both. Format β€” whether the file would be rewritten, and where it first parts from the result. That is decided the way a format run decides it, by comparing the text as it is, so a file whose line endings are the only thing out of step is reported as needing formatting rather than as already formatted. A file that will not parse fails here, with the parser's diagnostics and a snippet under the table. Valid β€” whether Fantomas accepts what it produced. It always should; when it does not, that is a bug in Fantomas rather than a problem with the file. Idempotent β€” whether formatting the result again leaves it alone. It should, and when it does not the file keeps changing under a formatter that is run twice. A step the walk never reached is named below the table with the reason it was not looked at, rather than left out or shown as having found nothing. doctor takes one file rather than a folder, because the answers differ per file and a table per file is not a report. It exits 0 for a file it could diagnose, whatever it found, and 1 when the path is not a file it can look at or when a step failed: a file that will not format, output Fantomas will not accept, or a second pass that changed the first. A file that needs formatting is not a failure; fantomas check is what fails over that. --json writes the same walk as one document, with a key per step and null where the walk stopped before reaching it. The configuration key carries every setting, with setBy naming the file for each one an .editorconfig set and null for the rest. Multiple paths starting version 4.5 Multiple paths can be passed as last argument, these can be both files and folders. This cannot be combined with the --out flag. One interesting use-case of passing down multiple paths is that you can easily control the selection and filtering of paths from the current shell. Consider the following PowerShell script: # Filter all added and modified files in git # A useful function to add to your $PROFILE function Format-Changed(){ $files = git status --porcelain ` | Where-Object { ($_.StartsWith(" M", "Ordinal") -or $_.StartsWith("AM", "Ordinal")) ` -and (Test-FSharpExtension $_) } | ForEach-Object { $_.substring(3) } & "dotnet" "fantomas" $files } Or usage with find on Unix: find my-project/ -type f -name "*.fs" -not -path "*obj*" | xargs dotnet fantomas --check ### [The rule of multitudes](https://fsprojects.github.io/fantomas/docs/end-users/RuleOfMultitudes.md) The rule of multitudes Often more than one layout of the same code parses. When Fantomas has to choose, it prefers the one where every line it starts sits on a multiple of indent_size: a continuation goes in by whole levels, never to a column in between. Only where a line starts counts; where a token lands further along a line does not. Why: The style guides ask for it. Both the Microsoft and the G-Research guide count indentation in spaces "per indentation", and put "consistency of indentation" first. A level reads as structure. With an indent size of 4, a line at column 10 sits between two levels and reads as a mistake. It does not depend on names. A column taken from a token moves when the name in front of it gets longer or shorter, and every line aligned to it moves along. The Microsoft guide says the same in Avoid formatting that is sensitive to name length. 8.1 moved the lines of a return type off the column after : for this reason: // v8.0: the `->` lines at column 14, between two levels let f x : (LongTypeNameNumberOne -> LongTypeNameNumberTwo -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) = failwith "" // v8.1: one level past the binding, column 8 let f x : (LongTypeNameNumberOne -> LongTypeNameNumberTwo -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) = failwith "" When the parser needs a line past a column The offside rule sometimes forbids a column. A parenthesis, for one, opens a context at the first token inside it, and a line that starts on that column ends it. Fantomas does not then align to the column after it: it steps in whole levels until the line is past it. indentPast in Context.fs does that measuring and stepping. type T = a -> (LongTypeNameNumberOne -> LongTypeNameNumberTwo // 12, a multiple too, would end the parenthesis; 16 is the next -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) Applying it When two layouts parse, write down the column each line starts on, and prefer the layout where every one of them is a multiple of indent_size. Try indent_size = 2 and 3 as well: a layout that lands on the grid only with 4 does not follow the rule, it follows the number 4. This is how a new layout for Fantomas is judged, so it is the check to make when you propose one. Where it does not hold A few layouts align to a token on purpose or for now. A new layout should not add to them without a reason written down. fsharp_multiline_bracket_style = cramped puts the elements of a list under the first one, two columns past the [: let values = [ someLongValueExpressionThatIsLongNumberOne someLongValueExpressionThatIsLongNumberTwo someLongValueExpressionThatIsLongNumberThree ] The closing > of a multiline type application lands one column past the indent: type T = Dictionary< LongTypeNameNumberOne, LongTypeNameNumberTwo * LongTypeNameNumberThree * LongTypeNameNumberFour * LongTypeNameNumberFive > ### [Visual Studio Code](https://fsprojects.github.io/fantomas/docs/end-users/VSCode.md) Visual Studio Code The recommended way to use Fantomas in Visual Studio Code is by using the Ionide plugin. Fantomas is integrated in FSAutoComplete which is the language server used by Ionide. Make sure Ionide is set to the default formatter inside settings.json : "[fsharp]": { "editor.formatOnSave": true, "editor.defaultFormatter": "Ionide.Ionide-fsharp" } Fantomas version detection used by Fantomas.Client starting version 4.6 Fantomas version detection will try and find a compatible version in the following order: The version of Fantomas used by your local project. This is the fantomas version displayed when you run dotnet tool list inside the project folder. Your global Fantomas version. If fantomas was installed with dotnet tool install fantomas -g. You can see your global installations with dotnet tool list -g. Executable named fantomas found in your PATH. ### [FAQ](https://fsprojects.github.io/fantomas/docs/end-users/FAQ.md) FAQ Why the name "Fantomas"? There are a few reasons to choose the name as such. First, it starts with an "F" just like many other F# projects. Second, Fantomas is my favourite character in the literature. Finally, Fantomas has the same Greek root as "phantom"; coincidentally F# ASTs and formatting rules are so mysterious to be handled correctly. What is fantomas-tool? That is the previous name of the dotnet tool. v4.7.9 was the last stable release under that name. Please use fantomas instead and remove all traces of fantomas-tool in your dotnet-tools.json file. Why exit code 99 for a failed format check? No real reason, it was suggested by the contributor lpedrosa. It also reminds us of a certain Jay-Z song πŸ˜‰. Can I make a style suggestion? As mention in style guide, Fantomas adheres to Microsoft and G-Research style guidelines. For any style related suggestion, please head over to fsharp/fslang-design. More context. Is it safe to use the Alpha version of Fantomas? Preview alpha versions are generally safe to use but there is no guarantee that the style wouldn't change due to ongoing development. You should check the changelog to see if there's any relevant change to try out in the Alpha. Why does Fantomas format my lists strangely when I pass them as arguments? Prior to the new indexing syntax, introduced in F# 6.0, you could write code like Radio.Input.Props[Checked false OnChange(fun _ -> settings |> updateSettings)] without the compiler nagging you about the missing space between the callee (Props) and the argument ([Checked false ...]). See issue 2754 for another example. Since F# 6.0, Fantomas interprets the list as an index expression and formats it accordingly. In such a case, just add a space between the callee and the list and you should be good to go. ### [Generating source code](https://fsprojects.github.io/fantomas/docs/end-users/GeneratingCode.md) Generating source code The Fantomas.Core NuGet package can also be used to format code programmatically. The public API is available from the static CodeFormatter class. It exposes a couple of APIs to format code, one being to format code from a raw syntax tree. This API assumes the user already parsed a syntax tree or constructed an artificial one. Key motivation It can be very tempting to generate some F# code by doing some string concatenations. In simple scenarios this can work out, but in the long run it doesn't scale well: The more code constructs you want to support, the more conditional logic you will need to ensure all edge cases. A string is just a string, you cannot guarantee the output will be valid code. It is easier to map your domain model to untyped syntax tree nodes and let Fantomas take care of the actual generation of code. For mercy's sake don't use string concatenation when generating F# code, use Fantomas instead. It is battle tested and proven technology! Consider using Fabulous.AST If you're looking to generate F# code programmatically, you might want to check out Fabulous.AST first. Fabulous.AST provides a more user-friendly DSL built on top of Fantomas Oak AST, dramatically reducing the boilerplate code required to generate F# code. It offers a concise and easier-to-use API compared to constructing Oak nodes directly, which can be quite verbose. The rest of this page documents how to work with Fantomas Oak AST directly, which is useful if you need more control or want to understand the underlying structure. Generating source code from scratch Example syntax tree To illustrate the API, lets generate a simple value binding: let a = 0. #r "../../../artifacts/bin/Fantomas.FCS/release/Fantomas.FCS.dll" #r "../../../artifacts/bin/Fantomas.Core/release/Fantomas.Core.dll" // In production use #r "nuget: Fantomas.Core, 6.*" open Fantomas.FCS.Text open Fantomas.Core.SyntaxOak let implementationSyntaxTree = Oak( [], [ ModuleOrNamespaceNode( None, [ BindingNode( None, None, MultipleTextsNode([ SingleTextNode("let", Range.range0) ], Range.range0), false, None, None, Choice1Of2( IdentListNode([ IdentifierOrDot.Ident(SingleTextNode("a", Range.range0)) ], Range.range0) ), None, [], None, SingleTextNode("=", Range.range0), Expr.Constant(Constant.FromText(SingleTextNode("0", Range.range0))), None, Range.range0 ) |> ModuleDecl.TopLevelBinding ], Range.range0 ) ], Range.range0 ) open Fantomas.Core CodeFormatter.FormatOakAsync(implementationSyntaxTree) |> Async.RunSynchronously |> printfn "%s" let a = 0 Constructing the entire syntax tree can be a bit overwhelming at first. There is a lot of information to provide and a lot to unpack if you have never seen any of this before. Let's deconstruct a couple of things: Every file has one or more ModuleOrNamespaceNode. In this case the module was anonymous and thus invisible. Every ModuleOrNamespaceNode has top level ModuleDecl. ModuleDecl.TopLevelBinding takes a BindingNode . The functionName of binding contains the name or is a pattern. The expr (Expr) represents the F# syntax expression. Because there is no actual source code, all ranges will be Range.range0. The more you interact with AST/Oak, the easier you pick up which node represents what. Fantomas.FCS When looking at the example, we notice that we've opened Fantomas.FCS.Text. Fantomas.FCS is a custom version of the F# compiler (built from source) that only exposes the F# parser and the syntax tree. The key difference is that Fantomas.FCS will most likely contain a more recent version of the F# parser. You can read the CHANGELOG to see what git commit was used to build Fantomas.FCS. You can use Fantomas.FCS in your own projects, but be aware that it is not binary compatible with FSharp.Compiler.Service. Example usage: open Fantomas.FCS Parse.parseFile false (SourceText.ofString "let a = 1") [] (ImplFile (ParsedImplFileInput ("tmp.fsx", true, QualifiedNameOfFile Tmp$fsx, [], [SynModuleOrNamespace ([Tmp], false, AnonModule, [Let (false, [SynBinding (None, Normal, false, false, [], PreXmlDoc ((1,0), Fantomas.FCS.Xml.XmlDocCollector), SynValData (None, SynValInfo ([], SynArgInfo ([], false, None)), None), Named (SynIdent (a, None), false, None, (1,4--1,5)), None, Const (Int32 1, (1,8--1,9)), (1,4--1,5), Yes (1,0--1,9), { LeadingKeyword = Let (1,0--1,3) InlineKeyword = None EqualsRange = Some (1,6--1,7) })], (1,0--1,9), { InKeyword = None })], PreXmlDocEmpty, [], None, (1,0--1,9), { LeadingKeyword = None })], (false, false), { ConditionalDirectives = [] WarnDirectives = [] CodeComments = [] }, set [])), []) You can format untyped AST created from Fantomas.FCS using the CodeFormatter API. However, we recommend to use the new Oak model (as in the example) instead. The Oak model is easier to reason with as it structures certain concepts differently than the untyped AST. Tips and tricks Online tool The syntax tree can have an overwhelming type hierarchy. We wholeheartedly recommend to use our online tool when working with AST. This shows you what Oak nodes the parser created for a given input text. From there on you can use our search bar to find the corresponding documentation: Match the AST the parser would produce Fantomas will very selectively use information from the AST to construct the Oak. Please make sure you construct the same Oak as Fantomas would. // You typically make some helper functions along the way let text v = SingleTextNode(v, Range.range0) let mkCodeFromExpression (e: Expr) = Oak([], [ ModuleOrNamespaceNode(None, [ ModuleDecl.DeclExpr e ], Range.range0) ], Range.range0) |> CodeFormatter.FormatOakAsync |> Async.RunSynchronously |> printfn "%s" let numberExpr = Expr.Constant(Constant.FromText(text "7")) let wrappedNumber = Expr.Paren(ExprParenNode(text "(", numberExpr, text ")", Range.range0)) mkCodeFromExpression wrappedNumber (7) As a rule of thumb: create what the parser creates, use the online tool! Just because you can create Oak nodes, does not mean Fantomas will do the right thing. Look at the Fantomas code base As mentioned, not every AST node is being used in Fantomas. There are numerous things that do not have any influence on the generation of code. For example creating SynExpr.Lambda. When you want to construct fun a b -> a + b, the AST the online tool produces looks like: Oak (1,0-1,16) ModuleOrNamespaceNode (1,0-1,16) ExprLambdaNode (1,0-1,16) "fun" (1,0-1,3) PatNamedNode (1,4-1,5) "a" (1,4-1,5) PatNamedNode (1,6-1,7) "b" (1,6-1,7) "->" (1,8-1,10) ExprInfixAppNode (1,11-1,16) "a" (1,11-1,12) "+" (1,13-1,14) "b" (1,15-1,16) let lambdaExpr = let body: Expr = ExprInfixAppNode(Expr.Ident(text "a"), text "+", Expr.Ident(text "b"), Range.range0) |> Expr.InfixApp ExprLambdaNode( text "fun", [ Pattern.Named(PatNamedNode(None, text "a", Range.range0)) Pattern.Named(PatNamedNode(None, text "b", Range.range0)) ], text "->", body, Range.range0 ) |> Expr.Lambda mkCodeFromExpression lambdaExpr fun a b -> a + b How to know which nodes to include? Take a look at CodePrinter.fs! Create your own set of helper functions Throughout all these examples, we have duplicated a lot of code. You can typically easily refactor this into some helper functions. The Fantomas maintainers are not affiliated with any projects that expose AST construction helpers. Updates Since code generation is considered to be a nice to have functionality, there is no compatibility between any Fantomas.Core version when it comes to the SyntaxOak module. We do not apply any semantic versioning to Fantomas.FCS or Fantomas.Core.SyntaxOak. Breaking changes can be expected at any given point, a patch release included. The upgrade guide shows how to find out what changed in the Oak between two versions. Our recommendation is that you include a set of regression tests to meet your own expectations when upgrading. As none of our versions are compatible it is advised to take a very strict dependency on Fantomas.Core. Using constraints like (>= 6.0.0) will inevitably lead to unexpected problems. ### [Git hooks](https://fsprojects.github.io/fantomas/docs/end-users/GitHooks.md) Git hooks A git pre-commit hook sample A very elegant and transparent way to use Fantomas is including it in a pre-commit git hook, by creating a .git/hooks/pre-commit file with: Using fantomas globally #!/bin/sh git diff --cached --name-only --diff-filter=ACM -z | xargs -0 $HOME/.dotnet/tools/fantomas git diff --cached --name-only --diff-filter=ACM -z | xargs -0 git add This script assumes you have installed Fantomas globally as a dotnet tool Using fantomas locally #!/bin/sh git diff --cached --name-only --diff-filter=ACM -z | xargs -0 dotnet fantomas git diff --cached --name-only --diff-filter=ACM -z | xargs -0 git add Please use with caution as Fantomas is not without bugs. ### [Design decisions](https://fsprojects.github.io/fantomas/docs/end-users/DesignDecisions.md) Design decisions Fantomas rewrites the entire source text after formatting. Think of it like a word document: Fantomas will re-type your entire text according to its rules in a new file. It does not modify the original text. This approach ensures complete consistency and adherence to the formatting rules, but it means that all formatting decisions are made by Fantomas according to its opinionated style guide. Because the output has to mean what the input meant, Fantomas sometimes behaves in a way that can look surprising at first: keeping code multiline that would fit on one line, refusing to format a file at all, or laying out a chain of calls in a way you would not have typed by hand. None of this is a bug or a missed opportunity. Each case below explains the reasoning behind one of those behaviors. Open-ended expressions Sometimes Fantomas leaves a short record, list or tuple spread over several lines when it would comfortably fit on one, because collapsing it would silently change what the code means. See Open-ended expressions. Formatting chain expressions A chain of dotted member access and calls, such as document.Body.FirstChild.AppendChild(newNode), is one of the few shapes where Fantomas has a real choice to make about where line breaks go. See Formatting chain expressions. Conditional compilation directives Fantomas formats code under every combination of #if / #else / #endif defines and merges the results, which means every combination has to produce valid F# on its own. See Conditional Compilation Directives. The rule of multitudes When more than one layout parses, Fantomas prefers the one where every line starts on a multiple of indent_size, rather than on a column taken from a token, which moves when a name changes length. See The rule of multitudes. ### [Style guide](https://fsprojects.github.io/fantomas/docs/end-users/StyleGuide.md) Style guide Fantomas tries to adhere to two F# style guides: - Microsoft - G-Research By default Fantomas will format the code according to the Microsoft guide. The benefit of these guides is that this allows us, as the F# community, to write code in the same manner. How Fantomas formats code Fantomas rewrites the entire source text after formatting rather than adjusting it in place, which means the output has to mean what the input meant. That constraint is behind a handful of behaviors that can be surprising at first but are deliberate. See Design decisions. Let it go If you are not used to having a code formatter, you might struggle a bit at first. A part of using a code formatter is about letting go how you wrote things and accept a common consistent style instead. When embraced, this can truly be a liberation feeling. You can play jazz while typing the code, focus on the task at hand and have the same output as if anyone in your team would have written it. A cautionary tale The responsibility of the coding style is also a shared one. The maintainers of Fantomas do not dictate how things should look like. Instead, conversations are held over at fsharp/fslang-design. Over the years, a lot of consumers of Fantomas have requested numerous features. These often go against the philosophy of being consistent amongst the community. If there were a gazillion of settings to please everybody it would be a missed opportunity to see all F# code bases in the same style. And more importantly the maintenance cost of each setting is always carried by only a handful of people. The hardship of having a setting is so high that in almost all cases it is not worth having it. Even when someone proposes to contribute the setting, it always leads to lament and sorrow for the maintainers to carry. Default style guide As mentioned, the default style guide is not to be discussed on the Fantomas repository. The majority of the maintainers is burnt out talking about style at this point. If you want to discuss the style, you are more than welcome on fsharp/fslang-design. However, we greatly encourage that you take some time to understand the Fantomas code base. Having an opinion on code style is easy, everybody writes code so we all have our thoughts and feelings about it. Being able to translate your thoughts/opinions and prototyping them in Fantomas will gain you a much larger insight on how quickly things can get quite complex. At the end of the day, if some new idea is validated on fsharp/fslang-design, it needs to be: Documented in the style guide (over at dotnet/docs) Implemented in Fantomas There’s no such thing as a free lunch, so please consider all aspects of debating code style. G-Research Style G-Research has been our single enterprise sponsor for the last five years. Fantomas would not exist in it's current form if it were not for their support. Their interest was to have a tool that automatically format code according to their internal guidelines. These have been made available publicly and can be turned on via various settings. Recommendations To strengthen the message of unity we advise that you do not change the default settings. The out-of-the-box experience should be a result of what the brightest minds of the community came up with. If you are new to the F# language, this is what you want. ### [Configuration](https://fsprojects.github.io/fantomas/docs/end-users/Configuration.md) Configuration Fantomas ships with a limited series of options. These can be stored in an .editorconfig file and will be picked up automatically by the commandline. Your IDE should respect your settings, however the implementation of that is editor specific. Setting the configuration via UI might be available depending on the IDE. version: 8.1.1+2136021f6cbc1aca6979e9a683237ff863c601bd Usage Inside .editorconfig you can specify the file extension and code location to be use per config: [*.fs] fsharp_space_before_uppercase_invocation = true # Write a comment by starting the line with a '#' [*.{fs,fsx,fsi}] fsharp_bar_before_discriminated_union_declaration = true # Apply specific settings for a targeted subfolder [src/Elmish/View.fs] fsharp_multiline_bracket_style = stroustrup Trying your settings via the online tool You can quickly try your settings via the online tool. Settings recommendations Fantomas ships with a series of settings that you can use freely depending on your case. However, there are settings that we do not recommend and generally should not be used. Safe to change: Settings that aren't attached to any guidelines. Depending on your team or your own preferences, feel free to change these as it's been agreed on the codebase, however, you can always use it's defaults. Use with caution: Settings where it is not recommended to change the default value. They might lead to incomplete results. Do not use: Settings that don't follow any guidelines. G-Research: G-Research styling guide. If you use one of these, for consistency reasons you should use all of them. Copy button: This copies the .editorconfig setting text you need to change the default. ⚠️ The copied text will not contain the default value. Auxiliary settings indent_size indent_size has to be between 1 and 10. This preference sets the indentation The common values are 2 and 4. The same indentation is ensured to be consistent in a source file. # Default indent_size = 4 formatCode """ let inline selectRandom (f: _ []) = let r = random 1.0 let rec find = function | 0 -> fst f.[0] | n when r < snd f.[n] -> fst f.[n] | n -> find (n - 1) find <| f.Length - 1 """ """ indent_size = 2 """ let inline selectRandom (f: _[]) = let r = random 1.0 let rec find = function | 0 -> fst f.[0] | n when r < snd f.[n] -> fst f.[n] | n -> find (n - 1) find <| f.Length - 1 max_line_length max_line_length has to be an integer greater or equal to 60. This preference sets the column where we break F# constructs into new lines. # Default max_line_length = 120 formatCode """ match myValue with | Some foo -> someLongFunctionNameThatWillTakeFooAndReturnsUnit foo | None -> printfn "nothing" """ """ max_line_length = 60 """ match myValue with | Some foo -> someLongFunctionNameThatWillTakeFooAndReturnsUnit foo | None -> printfn "nothing" end_of_line end_of_line determines the newline character, lf will add \n where crlf will add \r\n. cr is not supported by the F# language spec. If not set by the user, the default value is determined by System.Environment.NewLine. insert_final_newline Adds a final newline character at the end of the file. Why should text files end with a newline? # Default insert_final_newline = true formatCode """ let a = 42 """ """ insert_final_newline = false """ let a = 42 fsharp_space_before_parameter Add a space after the name of a function and before the opening parenthesis of the first parameter. This setting influences function definitions. # Default fsharp_space_before_parameter = true formatCode """ let value (a: int) = x let DumpTrace() = () """ """ fsharp_space_before_parameter = false """ let value(a: int) = x let DumpTrace() = () fsharp_space_before_lowercase_invocation Add a space after the name of a lowercased function and before the opening parenthesis of the first argument. This setting influences function invocation in expressions and patterns. Only the name immediately in front of the parenthesis decides whether this setting or fsharp_space_before_uppercase_invocation applies, so a.B.foo (x) follows this one and a.b.Foo(x) follows the other. Neither applies unless the whole thing being called is a plain dotted name: a call, an index, a receiver that is not a name, or a type application anywhere in it keeps the parenthesis tight, which leaves xs.map(f).filter(g) and unbox(obj) untouched by either setting. See Formatting chain expressions. # Default fsharp_space_before_lowercase_invocation = true formatCode """ value (a, b) startTimer () match x with | value (a, b) -> () """ """ fsharp_space_before_lowercase_invocation = false """ value(a, b) startTimer() match x with | value(a, b) -> () fsharp_space_before_uppercase_invocation Add a space after the name of a uppercase function and before the opening parenthesis of the first argument. This setting influences function invocation in expressions and patterns. Only the name immediately in front of the parenthesis decides whether this setting or fsharp_space_before_lowercase_invocation applies, so a.b.Foo (x) follows this one and a.B.foo(x) follows the other. Neither applies unless the whole thing being called is a plain dotted name: a call, an index, a receiver that is not a name, or a type application anywhere in it keeps the parenthesis tight, which leaves a.Foo(x).Bar(y) and X.Foo(x) untouched by either setting. See Formatting chain expressions. # Default fsharp_space_before_uppercase_invocation = false formatCode """ Value(a, b) person.ToString() match x with | Value(a, b) -> () """ """ fsharp_space_before_uppercase_invocation = true """ Value (a, b) person.ToString () match x with | Value (a, b) -> () fsharp_space_before_class_constructor Add a space after a type name and before the class constructor. # Default fsharp_space_before_class_constructor = false formatCode """ type Person() = class end """ """ fsharp_space_before_class_constructor = true """ type Person () = class end fsharp_space_before_member Add a space after a member name and before the opening parenthesis of the first parameter. # Default fsharp_space_before_member = false formatCode """ type Person() = member this.Walk(distance: int) = () member this.Sleep() = ignore member __.singAlong() = () member __.swim(duration: TimeSpan) = () """ """ fsharp_space_before_member = true """ type Person() = member this.Walk (distance: int) = () member this.Sleep () = ignore member __.singAlong () = () member __.swim (duration: TimeSpan) = () fsharp_space_before_colon Add a space before :. Please note that not every : is controlled by this setting. # Default fsharp_space_before_colon = false formatCode """ type Point = { x: int; y: int } let myValue: int = 42 let update (msg: Msg) (model: Model) : Model = model """ """ fsharp_space_before_colon = true """ type Point = { x : int; y : int } let myValue : int = 42 let update (msg : Msg) (model : Model) : Model = model fsharp_space_after_comma Adds a space after , in tuples. # Default fsharp_space_after_comma = true formatCode """ myValue.SomeFunction(foo, bar, somethingElse) (a, b, c) """ """ fsharp_space_after_comma = false """ myValue.SomeFunction(foo,bar,somethingElse) (a,b,c) fsharp_space_before_semicolon Adds a space before ; in records, arrays, lists, etc. # Default fsharp_space_before_semicolon = false formatCode """ let a = [ 1 ; 2 ; 3 ] let b = [| foo ; bar |] type C = { X: int ; Y: int } """ """ fsharp_space_before_semicolon = true """ let a = [ 1 ; 2 ; 3 ] let b = [| foo ; bar |] type C = { X: int ; Y: int } fsharp_space_after_semicolon Adds a space after ; in records, arrays, lists, etc. # Default fsharp_space_after_semicolon = true formatCode """ let a = [ 1; 2; 3 ] let b = [| foo; bar |] type C = { X: int; Y: int } """ """ fsharp_space_after_semicolon = false """ let a = [ 1;2;3 ] let b = [| foo;bar |] type C = { X: int;Y: int } fsharp_space_around_delimiter Adds a space around delimiters like [,[|,{`. # Default fsharp_space_around_delimiter = true formatCode """ let a = [ 1;2;3 ] let b = [| 4;5;6 |] """ """ fsharp_space_around_delimiter = false """ let a = [1; 2; 3] let b = [|4; 5; 6|] Maximum width constraints Settings that control the max width of certain expressions. fsharp_max_if_then_short_width Control the maximum length for which if/then expression without an else expression can be on one line. The Microsoft F# style guide recommends to never write such an expression in one line. If the else expression is absent, it is recommended to never to write the entire expression in one line. # Default fsharp_max_if_then_short_width = 0 formatCode """ if a then () """ """ fsharp_max_if_then_short_width = 15 """ if a then () fsharp_max_if_then_else_short_width Fantomas by default follows the if/then/else conventions listed in the Microsoft F# style guide. This setting facilitates this by determining the maximum character width where the if/then/else expression stays in one line. # Default fsharp_max_if_then_else_short_width = 60 formatCode """ if myCheck then truth else bogus """ """ fsharp_max_if_then_else_short_width = 10 """ if myCheck then truth else bogus fsharp_max_infix_operator_expression Control the maximum length for which infix expression can be on one line. # Default fsharp_max_infix_operator_expression = 80 formatCode """ let WebApp = route "/ping" >=> authorized >=> text "pong" """ """ fsharp_max_infix_operator_expression = 20 """ let WebApp = route "/ping" >=> authorized >=> text "pong" fsharp_max_record_width Control the maximum width for which records should be in one line. Requires fsharp_record_multiline_formatter to be character_width to take effect. # Default fsharp_max_record_width = 40 formatCode """ type MyRecord = { X: int; Y: int; Length: int } let myInstance = { X = 10; Y = 20; Length = 90 } """ """ fsharp_max_record_width = 20 """ type MyRecord = { X: int Y: int Length: int } let myInstance = { X = 10 Y = 20 Length = 90 } fsharp_max_record_number_of_items Control the maximum number of fields for which records should be in one line. Requires fsharp_record_multiline_formatter to be number_of_items to take effect. # Default fsharp_max_record_number_of_items = 1 formatCode """ type R = { x: int } type S = { x: int; y: string } type T = { x: int; y: string; z: float } let myRecord = { r = 3 } let myRecord' = { r with x = 3 } let myRecord'' = { r with x = 3; y = "hello" } let myRecord''' = { r with x = 3; y = "hello"; z = 0.0 } """ """ fsharp_record_multiline_formatter = number_of_items fsharp_max_record_number_of_items = 2 """ type R = { x: int } type S = { x: int; y: string } type T = { x: int y: string z: float } let myRecord = { r = 3 } let myRecord' = { r with x = 3 } let myRecord'' = { r with x = 3; y = "hello" } let myRecord''' = { r with x = 3 y = "hello" z = 0.0 } fsharp_record_multiline_formatter Split records expressions/statements into multiple lines based on the given condition. character_width uses character count of the expression, controlled by fsharp_max_record_width. number_of_items uses the number of fields in the record, controlled by fsharp_max_record_number_of_items. Note that in either case, record expressions/statements are still governed by max_line_length. # Default fsharp_record_multiline_formatter = character_width formatCode """ type R = { x: int } type S = { x: int; y: string } let myRecord = { r = 3 } let myRecord' = { r with x = 3 } let myRecord'' = { r with x = 3; y = "hello" } """ """ fsharp_record_multiline_formatter = number_of_items """ type R = { x: int } type S = { x: int y: string } let myRecord = { r = 3 } let myRecord' = { r with x = 3 } let myRecord'' = { r with x = 3 y = "hello" } fsharp_max_array_or_list_width Control the maximum width for which lists and arrays can be in one line. Requires fsharp_array_or_list_multiline_formatter to be character_width to take effect # Default fsharp_max_array_or_list_width = 80 formatCode """ let myArray = [| one; two; three |] """ """ fsharp_max_array_or_list_width = 20 """ let myArray = [| one two three |] fsharp_max_array_or_list_number_of_items Control the maximum number of elements for which lists and arrays can be in one line. Requires fsharp_array_or_list_multiline_formatter to be number_of_items to take effect. # Default fsharp_max_array_or_list_number_of_items = 1 formatCode """ let myList = [ one; two ] let myArray = [| one; two; three |] """ """ fsharp_array_or_list_multiline_formatter = number_of_items fsharp_max_array_or_list_number_of_items = 2 """ let myList = [ one; two ] let myArray = [| one two three |] fsharp_array_or_list_multiline_formatter Split arrays and lists into multiple lines based on the given condition. character_width uses character count of the expression, controlled by fsharp_max_array_or_list_width. number_of_items uses the number of elements in the array or list, controlled by fsharp_max_array_or_list_number_of_items. Note that in either case, list expressions are still governed by max_line_length. # Default fsharp_array_or_list_multiline_formatter = character_width formatCode """ let myArray = [| one; two; three |] """ """ fsharp_array_or_list_multiline_formatter = number_of_items """ let myArray = [| one two three |] fsharp_max_value_binding_width Control the maximum expression width for which let and member value/property bindings should be in one line. The width is that of the pattern for the binding plus the right-hand expression but not the keywords (e.g. "let"). # Default fsharp_max_value_binding_width = 80 formatCode """ let title = "Great title of project" type MyType() = member this.HelpText = "Some help text" """ """ fsharp_max_value_binding_width = 10 """ let title = "Great title of project" type MyType() = member this.HelpText = "Some help text" fsharp_max_function_binding_width Control the maximum width for which function and member bindings should be in one line. In contrast to fsharp_max_value_binding_width, only the right-hand side expression of the binding is measured. # Default fsharp_max_function_binding_width = 40 formatCode """ let printScore score total = printfn "%i / %i" score total type Triangle() = member this.CalculateSurface(width: int, height: int) = width * height / 2 """ """ fsharp_max_function_binding_width = 10 """ let printScore score total = printfn "%i / %i" score total type Triangle() = member this.CalculateSurface(width: int, height: int) = width * height / 2 fsharp_multiline_bracket_style Cramped Alternative way in F# to format brackets. Aligned The default way of formatting records, arrays and lists. This will align the braces at the same column level. Stroustrup Allow for easier reordering of members and keeping the code succinct. # Default fsharp_multiline_bracket_style = aligned formatCode """ let myRecord = { Level = 1 Progress = "foo" Bar = "bar" Street = "Bakerstreet" Number = 42 } type Range = { From: float To: float FileName: string } let a = [| (1, 2, 3) (4, 5, 6) (7, 8, 9) (10, 11, 12) (13, 14, 15) (16, 17,18) (19, 20, 21) |] """ """ fsharp_multiline_bracket_style = aligned """ let myRecord = { Level = 1 Progress = "foo" Bar = "bar" Street = "Bakerstreet" Number = 42 } type Range = { From: float To: float FileName: string } let a = [| (1, 2, 3) (4, 5, 6) (7, 8, 9) (10, 11, 12) (13, 14, 15) (16, 17, 18) (19, 20, 21) |] formatCode """ let myRecord = { Level = 1 Progress = "foo" Bar = "bar" Street = "Bakerstreet" Number = 42 } type Range = { From: float To: float FileName: string } let a = [| (1, 2, 3) (4, 5, 6) (7, 8, 9) (10, 11, 12) (13, 14, 15) (16, 17,18) (19, 20, 21) |] """ """ fsharp_multiline_bracket_style = stroustrup """ let myRecord = { Level = 1 Progress = "foo" Bar = "bar" Street = "Bakerstreet" Number = 42 } type Range = { From: float To: float FileName: string } let a = [| (1, 2, 3) (4, 5, 6) (7, 8, 9) (10, 11, 12) (13, 14, 15) (16, 17, 18) (19, 20, 21) |] fsharp_newline_before_multiline_computation_expression Insert a newline before a computation expression that spans multiple lines # Default fsharp_newline_before_multiline_computation_expression = true formatCode """ let something = task { let! thing = otherThing () return 5 } """ """ fsharp_newline_before_multiline_computation_expression = false """ let something = task { let! thing = otherThing () return 5 } G-Research style A series of settings requicolor="red" to conform with the G-Research style guide. From a consistency point of view, it is recommend to enable all these settings instead of cherry-picking a few. fsharp_newline_between_type_definition_and_members Adds a new line between a type definition and its first member. # Default fsharp_newline_between_type_definition_and_members = true formatCode """ type Range = { From: float To: float } member this.Length = this.To - this.From """ """ fsharp_newline_between_type_definition_and_members = false """ type Range = { From: float To: float } member this.Length = this.To - this.From fsharp_align_function_signature_to_indentation When a function signature exceeds the max_line_length, Fantomas will put all parameters on separate lines. This setting also places the equals sign and return type on a new line. # Default fsharp_align_function_signature_to_indentation = false formatCode """ [] let run ([] req: HttpRequest) (log: ILogger) : HttpResponse = Http.main CodeFormatter.GetVersion format FormatConfig.FormatConfig.Default log req """ """ fsharp_align_function_signature_to_indentation = true """ [] let run ([] req: HttpRequest) (log: ILogger) : HttpResponse = Http.main CodeFormatter.GetVersion format FormatConfig.FormatConfig.Default log req fsharp_alternative_long_member_definitions Provides an alternative way of formatting long member and constructor definitions, where the difference is mainly in the equal sign and returned type placement. # Default fsharp_alternative_long_member_definitions = false formatCode """ type C ( aVeryLongType: AVeryLongTypeThatYouNeedToUse, aSecondVeryLongType: AVeryLongTypeThatYouNeedToUse, aThirdVeryLongType: AVeryLongTypeThatYouNeedToUse ) = class end type D() = member _.LongMethodWithLotsOfParameters ( aVeryLongParam: AVeryLongTypeThatYouNeedToUse, aSecondVeryLongParam: AVeryLongTypeThatYouNeedToUse, aThirdVeryLongParam: AVeryLongTypeThatYouNeedToUse ) : ReturnType = 42 type E() = new ( aVeryLongType: AVeryLongTypeThatYouNeedToUse, aSecondVeryLongType: AVeryLongTypeThatYouNeedToUse, aThirdVeryLongType: AVeryLongTypeThatYouNeedToUse ) = E() """ """ fsharp_alternative_long_member_definitions = true """ type C ( aVeryLongType: AVeryLongTypeThatYouNeedToUse, aSecondVeryLongType: AVeryLongTypeThatYouNeedToUse, aThirdVeryLongType: AVeryLongTypeThatYouNeedToUse ) = class end type D() = member _.LongMethodWithLotsOfParameters ( aVeryLongParam: AVeryLongTypeThatYouNeedToUse, aSecondVeryLongParam: AVeryLongTypeThatYouNeedToUse, aThirdVeryLongParam: AVeryLongTypeThatYouNeedToUse ) : ReturnType = 42 type E() = new ( aVeryLongType: AVeryLongTypeThatYouNeedToUse, aSecondVeryLongType: AVeryLongTypeThatYouNeedToUse, aThirdVeryLongType: AVeryLongTypeThatYouNeedToUse ) = E() fsharp_multi_line_lambda_closing_newline Places the closing parenthesis of a multiline lambda argument on the next line. # Default fsharp_multi_line_lambda_closing_newline = false formatCode """ let printListWithOffset a list1 = List.iter (fun { ItemOne = a } -> // print printfn "%s" a) list1 let printListWithOffset a list1 = list1 |> List.iter (fun elem -> // print stuff printfn "%d" (a + elem)) """ """ fsharp_multi_line_lambda_closing_newline = true """ let printListWithOffset a list1 = List.iter (fun { ItemOne = a } -> // print printfn "%s" a ) list1 let printListWithOffset a list1 = list1 |> List.iter (fun elem -> // print stuff printfn "%d" (a + elem) ) fsharp_experimental_keep_indent_in_branch Breaks the normal indentation flow for the last branch of a pattern match or if/then/else expression. Only when the last pattern match or else branch was already at the same level of the entire match or if expression. This feature is experimental and is subject to change. # Default fsharp_experimental_keep_indent_in_branch = false formatCode """ let main argv = let args = parse argv let instructions = Library.foo args if args.DryRun = RunMode.Dry then printfn "Would execute actions, but --dry-run was supplied: %+A" instructions 0 else // proceed with main method let output = Library.execute instructions // do more stuff 0 """ """ fsharp_experimental_keep_indent_in_branch = true """ let main argv = let args = parse argv let instructions = Library.foo args if args.DryRun = RunMode.Dry then printfn "Would execute actions, but --dry-run was supplied: %+A" instructions 0 else // proceed with main method let output = Library.execute instructions // do more stuff 0 fsharp_bar_before_discriminated_union_declaration Always use a | before every case in the declaration of a discriminated union. If false, a | character is used only in multiple-case discriminated unions, and is omitted in short single-case DUs. # Default fsharp_bar_before_discriminated_union_declaration = false formatCode """ type MyDU = Short of int """ """ fsharp_bar_before_discriminated_union_declaration = true """ type MyDU = | Short of int Other Some additional settings that don't fit into any style guide. fsharp_blank_lines_around_nested_multiline_expressions Surround nested multi-line expressions with blank lines. Existing blank lines are always preserved (via trivia), with exception when fsharp_keep_max_number_of_blank_lines is used. Top level expressions will always follow the 2020 blank lines revision principle. # Default fsharp_blank_lines_around_nested_multiline_expressions = true formatCode """ let topLevelFunction () = printfn "Something to print" try nothing () with | ex -> splash () () let secondTopLevelFunction () = // ... () """ """ fsharp_blank_lines_around_nested_multiline_expressions = false """ let topLevelFunction () = printfn "Something to print" try nothing () with ex -> splash () () let secondTopLevelFunction () = // ... () fsharp_keep_max_number_of_blank_lines Set maximal number of consecutive blank lines to keep from original source. It doesn't change number of new blank lines generated by Fantomas. # Default fsharp_keep_max_number_of_blank_lines = 100 formatCode """ open Foo let x = 42 """ """ fsharp_keep_max_number_of_blank_lines = 1 """ open Foo let x = 42 fsharp_experimental_elmish Applies the Stroustrup style to the final (two) array or list argument(s) in a function application. Note that this behaviour is also active when fsharp_multiline_bracket_style = stroustrup. # Default fsharp_experimental_elmish = false formatCode """ let dualList = div [] [ h1 [] [ str "Some title" ] ul [] [ for p in model.Points do li [] [ str $"%i{p.X}, %i{p.Y}" ] ] hr [] ] let singleList = Html.div [ Html.h1 [ str "Some title" ] Html.ul [ for p in model.Points do Html.li [ str $"%i{p.X}, %i{p.Y}" ] ] ] """ """ fsharp_experimental_elmish = true """ let dualList = div [] [ h1 [] [ str "Some title" ] ul [] [ for p in model.Points do li [] [ str $"%i{p.X}, %i{p.Y}" ] ] hr [] ] let singleList = Html.div [ Html.h1 [ str "Some title" ] Html.ul [ for p in model.Points do Html.li [ str $"%i{p.X}, %i{p.Y}" ] ] ] ### [Conditional Compilation Directives](https://fsprojects.github.io/fantomas/docs/end-users/ConditionalCompilationDirectives.md) Conditional Compilation Directives Fantomas supports formatting F# code that contains conditional compilation directives (#if, #else, #endif). However, there is an important limitation to be aware of. How Fantomas handles directives Fantomas needs to parse your code into an abstract syntax tree (AST) before it can format it. The F# parser processes #if / #else / #endif directives at parse time, meaning it picks one branch based on which defines are active and ignores the other. To handle this, Fantomas: Parses your code without any defines to discover all conditional directives. Determines every possible combination of defines. Parses and formats the code once for each combination. Merges the results back together. Limitations All define combinations must produce valid syntax Because Fantomas parses your code under every define combination, each combination must result in a valid syntax tree. For example, the following code cannot be formatted: module F = let a: string = #if FOO "" #endif #if BAR "a" #endif let baz: unit = () When neither FOO nor BAR is defined, the code becomes: module F = let a: string = let baz: unit = () This is not valid F# β€” let a has no body β€” so the parser raises an error and Fantomas cannot proceed. How to fix it Make sure that every combination of defines still produces valid F# code. The most common fix is to add an #else branch: module F = let a: string = #if FOO "" #else "a" #endif let baz: unit = () Now, regardless of whether FOO is defined, the parser always sees a complete let binding. Interweaved documentation If you interweave conditional directives with xml documentation or other trivia you will encounter issues: type Foo = /// Will give you an option. #if DEBUG /// Default returns Some #else /// Default returns None #endif static member bar (?giveSome: bool) = let giveSome = #if DEBUG true #else false #endif if giveSome then Some() else None How to fix it Wrap the documentation/trivia in its entirety. type Foo = #if DEBUG /// Will give you an option. /// Default returns Some #else /// Will give you an option. /// Default returns None #endif static member bar (?giveSome: bool) = let giveSome = #if DEBUG true #else false #endif if giveSome then Some() else None Nesting that depends on a define Fantomas merges the formatted combinations back together line by line, so the code after an #endif gets one indentation, whichever branch was active. When a construct that opens a body appears in only one branch, the code after #endif is nested inside that construct in one combination and not in the other, and no single indentation is right for both: let traverse entity = seq { #if !NO_TYPEPROVIDERS if not entity.IsProvided then #endif yield! children entity } With NO_TYPEPROVIDERS defined, yield! is a statement of the seq; without it, it is the body of the if. Fantomas cannot format this. How to fix it Move the condition into a value, so that the code after it is nested the same way in every combination: let traverse entity = seq { let isProvided = #if !NO_TYPEPROVIDERS entity.IsProvided #else false #endif if not isProvided then yield! children entity } Using .fantomasignore If you cannot restructure the directives (e.g. because the code is generated or must match a particular pattern), you can exclude the file from formatting using a .fantomasignore file. ### [Formatting from an editor with Fantomas.Client](https://fsprojects.github.io/fantomas/docs/end-users/FantomasClient.md) Formatting from an editor with Fantomas.Client The Fantomas.Client NuGet package is for tools that format someone else's code: editor extensions, language servers, custom build tooling. It exists because of a versioning problem. If your editor extension referenced Fantomas.Core directly, everyone using that extension would be formatting with whatever version you happened to compile against. A repository that pins Fantomas 6 in its dotnet-tools.json would silently be formatted by Fantomas 8, and the diff would be enormous. Fantomas.Client avoids this. For each file you ask it to format, it looks for the Fantomas the user installed, starts that version as a background daemon, and talks to it over JSON-RPC. Your tool stays on one version of Fantomas.Client, while the formatting is done by the version the repository asked for. The code on this page is illustrative rather than runnable. It is meant to show the shape of the API, not to be pasted into a script. Formatting a document open Fantomas.Client.Contracts open Fantomas.Client.LSPFantomasService // One service for the lifetime of your tool. It caches a daemon per Fantomas version, mapping each // folder to the version it resolved, so two folders pinning the same version share one process. // Creating a service per request would start a new one every time. let service: FantomasService = new LSPFantomasService() let request = { SourceCode = "let a = 1" // Must be absolute, and must exist on disk. Its folder is what decides which Fantomas // version gets used, so a path inside the user's repository is what you want here. FilePath = "/home/me/MyProject/Library.fs" // None means "use the .editorconfig that applies to FilePath". Config = None Cursor = None } let response = service.FormatDocumentAsync(request).Result if response.Code = int FantomasResponseCode.Formatted then // Content holds the formatted code. printfn "%s" (Option.defaultValue "" response.Content) elif response.Code = int FantomasResponseCode.UnChanged then // The file was already formatted. Content is None, so do not overwrite anything. () else // Error, Ignored, ToolNotFound, FileNotFound, FilePathIsNotAbsolute, DaemonCreationFailed, ... // Content carries a message explaining what went wrong. eprintfn "%s" (Option.defaultValue "" response.Content) Every call answers with the same FantomasResponse, and Code is what you branch on. It is an int rather than a union so the type survives the wire; compare it against FantomasResponseCode. Nothing throws for an unusable path or a missing tool, so there is exactly one place to handle failure. Reacting to a bad .editorconfig A .editorconfig can name a setting Fantomas does not have, usually a typo such as fsharp_multiline_brackets_style, or give a setting a value it cannot parse. Formatting still succeeds, using defaults for whatever could not be read, so without being told the user sees the setting quietly not apply. Subscribe to ConfigurationWarnings to surface it: service.ConfigurationWarnings.Add(fun warning -> if Array.isEmpty warning.Problems then // Nothing is wrong any more, so clear whatever you showed for this file earlier. clearWarnings warning.FilePath else warning.Problems |> Array.map (fun problem -> if problem.Code = int ConfigurationProblemCode.UnknownSetting then $"Fantomas %s{warning.Version} does not have the setting %s{problem.Setting}" else $"%s{problem.Setting} does not accept the value %s{problem.Value}") |> showWarnings warning.FilePath warning.EditorConfigFiles) Worth knowing: The event is raised for every format request, and before that request answers, with an empty Problems array when the configuration is fine. That is what lets you clear a warning once the user fixes it. You can have as many format requests in flight as you like. Warnings for one file arrive in the order the daemon received them, because the daemon serves one request at a time per file, so an empty one never overtakes problems that are still current. Requests for different files are served concurrently and their warnings interleave; FilePath is what tells them apart. Nothing is coalesced. Several requests queued for one file each run to completion in turn, so a tool that fires a burst of them will see latency grow with the length of the queue. None of them is served stale input, because each request carries its own SourceCode, but if you format on every keystroke you want to be dropping your own superseded requests rather than sending them. EditorConfigFiles holds the absolute paths of the .editorconfig files that contributed. Which one a given problem came from is not knowable, because editorconfig merges the whole chain into a single set of properties before Fantomas sees it. There is no line number either, so name the setting rather than trying to point at it. Source tells you whether the setting came from a .editorconfig on disk or from the Config dictionary your own tool sent along with the request. Version is the Fantomas that raised the warning, such as 8.0.0-alpha-022, ready to show to a user: no Fantomas in front, no leading v, and no + on the end. Say it, because a fsharp_ setting that does nothing is more often a Fantomas older than the setting than it is a typo, and a message that does not name a version invites exactly that question. Do not ask VersionAsync for it: that is a round trip for something you were already handed, and it races ClearCache, so a user who has just installed a newer Fantomas gets told the wrong one ignored their setting. Only Fantomas 8 daemons send these. Against an older one the event simply never fires, so no version check is needed. The event is raised on whichever thread the daemon's message arrived on, never on the thread that asked for the formatting. Marshal before touching a UI. A handler that throws is swallowed rather than allowed to fault the connection, so nothing is lost but nothing is reported either. If you are talking to the daemon yourself rather than through Fantomas.Client, the notification arrives on fantomas/configurationWarning carrying one object. The shape of that object is below. The framing around it is StreamJsonRpc's default, which is JSON-RPC with Content-Length headers, the same as the Language Server Protocol uses, so this is what the payload looks like and not what goes on the wire byte for byte: { "FilePath": "/home/me/MyProject/Library.fs", "EditorConfigFiles": ["/home/me/MyProject/.editorconfig"], "Problems": [ { "Code": 1, "Source": 1, "Setting": "fsharp_multiline_brackets_style", "Value": null }, { "Code": 2, "Source": 2, "Setting": "fsharp_experimental_elmish", "Value": "not_a_bool" } ] } Code is 1 for a setting Fantomas does not have and 2 for a value it cannot parse; Source is 1 for a .editorconfig on disk and 2 for the Config dictionary sent with the request. Value is null for Code 1, because no value was ever read. EditorConfigFiles is empty when Problems is empty. There is no Version on the wire: Fantomas.Client fills that in for the daemon it started, which is how it can name daemons released before the field existed, and driving the daemon yourself you already know which version you launched. Seeing which Fantomas was used The whole point of this package is that the user's Fantomas formats their code, so the question you will eventually be asked is which one that was. Nothing in a FantomasResponse answers it: a Fantomas found on the PATH formats exactly as successfully as the version the repository pins, and if the two differ the only visible symptom is a diff nobody expected. LSPFantomasService takes an optional log delegate for that: let service: FantomasService = new LSPFantomasService( Action(fun level message -> // Route it into whatever your tool already logs with. myLogger.Write(level, message)) ) It reports which Fantomas a folder resolved to and where it was found, when none could be found at all, and when a daemon is started or fails to start. The levels are FantomasLogLevel. Worth knowing: A resolution is logged once per folder, not once per request. A folder already mapped to a version does not resolve again, so this does not grow with how often you format. The delegate is called on whichever thread did the work, which for tool resolution is the service's own mailbox rather than the thread that asked for the formatting. Marshal before touching a UI. A delegate that throws is swallowed. It is called from inside the mailbox that resolves daemons, and an exception escaping there would leave every later request waiting on a reply that never comes, so a lost log line is the cheaper end of that trade. The parameterless constructor logs nothing, so nothing changes for a tool that does not want this. Formatting a selection let selectionRequest = { SourceCode = sourceCode FilePath = "/home/me/MyProject/Library.fs" Config = None // Same semantics as the F# compiler's range: one-based lines, zero-based columns. Range = FormatSelectionRange(1, 0, 3, 12) } let selectionResponse = service.FormatSelectionAsync(selectionRequest).Result The range that actually got formatted comes back in SelectedRange, which can differ from what you asked for when the selection had leading or trailing whitespace. Use the returned range when you splice the result back into the document, not the one you sent. Keeping the cursor in place Pass Cursor on a format request and the response tells you where that position ended up after formatting, so the caret does not jump when you format on save. let request = { SourceCode = sourceCode FilePath = "/home/me/MyProject/Library.fs" Config = None Cursor = Some(FormatCursorPosition(4, 2)) } Discovering settings ConfigurationAsync returns the settings schema of the Fantomas version resolved for a file: every setting name, its type, default, and description. Because it comes from the daemon rather than from whatever you compiled against, it is the authoritative list for that repository, and it is what you want backing a settings UI or a .editorconfig completion list. let schema = service.ConfigurationAsync("/home/me/MyProject/Library.fs").Result // schema.Content holds JSON describing every setting. Lifetime // Stop every daemon this service started. Call it when your tool shuts down. service.Dispose() ClearCache throws away the daemons without disposing the service, which is what you want after the user changes the Fantomas version in their dotnet-tools.json. Otherwise the old process keeps serving requests for the rest of the session. ### [Recipes](https://fsprojects.github.io/fantomas/docs/end-users/Recipes.md) Recipes Fantomas has a limited set of settings and adheres to style guides. These style guides are meant to be agnostic to any specific framework. That being said, there are certain combinations that provide a more ideal result when working with certain scenarios. These snippets aren’t to spark requests for new settings suited to framework of the day! Remember that a .editorconfig file can apply certain settings only to certain files. Sometimes, it makes sense to tweak a few setting for a subset of your codebase. HTML DSL When working with a HTML inspired DSL (typically a function call with one or two lists), you can use fsharp_experimental_elmish Fable.React Elmish formatCode """ div [] [ h1 [] [ str "Some title" ] ul [] [ for p in model.Points do li [] [ str $"%i{p.X}, %i{p.Y}" ] ] hr [] ] """ """ fsharp_experimental_elmish = true """ div [] [ h1 [] [ str "Some title" ] ul [] [ for p in model.Points do li [] [ str $"%i{p.X}, %i{p.Y}" ] ] hr [] ] Feliz formatCode """ Html.div [ Html.h1 [ str "Some title" ] Html.ul [ for p in model.Points do Html.li [ str $"%i{p.X}, %i{p.Y}" ] ] ] """ """ fsharp_experimental_elmish = true """ Html.div [ Html.h1 [ str "Some title" ] Html.ul [ for p in model.Points do Html.li [ str $"%i{p.X}, %i{p.Y}" ] ] ] Giraffe formatCode """ let indexView = html [] [ head [] [ title [] [ str "Giraffe Sample" ] ] body [] [ h1 [] [ str "I |> F#" ] p [ _class "some-css-class"; _id "someId" ] [ str "Hello World" ] ] ] """ """ fsharp_experimental_elmish = true """ let indexView = html [] [ head [] [ title [] [ str "Giraffe Sample" ] ] body [] [ h1 [] [ str "I |> F#" ] p [ _class "some-css-class"; _id "someId" ] [ str "Hello World" ] ] ] Falco formatCode """ let markup = Elem.div [] [ Text.comment "An HTML comment" Elem.p [] [ Text.raw "A paragraph" ] Elem.p [] [ Text.rawf "Hello %s" "Jim" ] Elem.code [] [ Text.enc "
Hello
" ] ] // HTML encodes text before rendering """ """ fsharp_experimental_elmish = true """ let markup = Elem.div [] [ Text.comment "An HTML comment" Elem.p [] [ Text.raw "A paragraph" ] Elem.p [] [ Text.rawf "Hello %s" "Jim" ] Elem.code [] [ Text.enc "
Hello
" ] ] // HTML encodes text before rendering Expecto The Expect test framework can benefit from Stroustrup style when defining test lists. formatCode """ let tests = testList "A test group" [ test "one test" { Expect.equal (2 + 2) 4 "2+2" } test "another test that fails" { Expect.equal (3 + 3) 5 "3+3" } testAsync "this is an async test" { let! x = async { return 4 } Expect.equal x (2 + 2) "2+2" } testTask "this is a task test" { let! n = Task.FromResult 2 Expect.equal n 2 "n=2" } ] |> testLabel "samples" """ """ fsharp_multiline_bracket_style = stroustrup """ let tests = testList "A test group" [ test "one test" { Expect.equal (2 + 2) 4 "2+2" } test "another test that fails" { Expect.equal (3 + 3) 5 "3+3" } testAsync "this is an async test" { let! x = async { return 4 } Expect.equal x (2 + 2) "2+2" } testTask "this is a task test" { let! n = Task.FromResult 2 Expect.equal n 2 "n=2" } ] |> testLabel "samples" FAKE At the end of a FAKE script, the target dependencies are typically listed using custom operators. Using fsharp_max_infix_operator_expression you can tweak when they should go to the next line. formatCode """ "Build" ==> "EnsureCanScaffoldCodeFix" ==> "LspTest" ==> "Coverage" ==> "Test" ==> "All" "Clean" ==> "LocalRelease" ==> "ReleaseArchive" ==> "Release" """ """ fsharp_max_infix_operator_expression = 5 """ "Build" ==> "EnsureCanScaffoldCodeFix" ==> "LspTest" ==> "Coverage" ==> "Test" ==> "All" "Clean" ==> "LocalRelease" ==> "ReleaseArchive" ==> "Release" Paragraphs When expressions are multiline Fantomas will put a blank line before and after them. This helps for code to stay consistent in teams. formatCode """ let Foo = try // Start paragraph 1 printfn "%A" blah with ex -> printfn "Failed to print blah" // End paragraph 1 let mutable a = 8 // This line belongs // Start paragraph 2 for i in [ 1 .. 10 ] do a <- a + i // Start paragraph 2 """ "" let Foo = try // Start paragraph 1 printfn "%A" blah with ex -> printfn "Failed to print blah" // End paragraph 1 let mutable a = 8 // This line belongs // Start paragraph 2 for i in [ 1..10 ] do a <- a + i // Start paragraph 2 However, some developers like to group their code in self-defined paragraphs, and thus want full control when Fantomas inserts blank lines. Full control is not possible but outside top level expressions this can be done via fsharp_blank_lines_around_nested_multiline_expressions = false. ⚠️ This approach is generally advised against because it gives the code author control over newlines. Within teams, this can lead to debates, which is precisely what using Fantomas aims to eliminate: code style discussions. ⚠️ formatCode """ let Foo = try // Start paragraph 1 printfn "%A" blah with ex -> printfn "Failed to print blah" // End paragraph 1 let mutable a = 8 // This line belongs // Start paragraph 2 for i in [ 1 .. 10 ] do a <- a + i // Start paragraph 2 """ """ fsharp_blank_lines_around_nested_multiline_expressions = false """ let Foo = try // Start paragraph 1 printfn "%A" blah with ex -> printfn "Failed to print blah" // End paragraph 1 let mutable a = 8 // This line belongs // Start paragraph 2 for i in [ 1..10 ] do a <- a + i // Start paragraph 2 Early returns In F# there is no such concept as early returns. However, sometimes we do want to return an empty or error result when a certain condition is not met. To avoid extreme indentation in our happy path, you can use fsharp_experimental_keep_indent_in_branch = true. formatCode """ let fix (getParseResultsForFile: GetParseResultsForFile) : CodeFix = Run.ifDiagnosticByCode (set [ "20" ]) (fun diagnostic (codeActionParams: CodeActionParams) -> asyncResult { if mDiag.StartLine <> mDiag.EndLine then // Only do single line for now return [] else // Happy path at same indent let! (parseAndCheckResults: ParseAndCheckResults, _line: string, sourceText: IFSACSourceText) = getParseResultsForFile fileName fcsPos let mExprOpt = (fcsPos, parseAndCheckResults.GetParseResults.ParseTree) ||> ParsedInput.tryPick (fun path node -> match node with | SyntaxNode.SynExpr(e) when Range.equals mDiag e.Range -> Some(path, e) | _ -> None) match mExprOpt with | None -> // Empty result is Option is None return [] | Some(path, expr) -> // Happy path at same indent return [ { SourceDiagnostic = None Title = title File = codeActionParams.TextDocument Edits = [| { Range = fcsRangeToLsp expr.Range NewText = newText } |] Kind = FixKind.Fix } ] }) """ """ fsharp_experimental_keep_indent_in_branch = true """ let fix (getParseResultsForFile: GetParseResultsForFile) : CodeFix = Run.ifDiagnosticByCode (set [ "20" ]) (fun diagnostic (codeActionParams: CodeActionParams) -> asyncResult { if mDiag.StartLine <> mDiag.EndLine then // Only do single line for now return [] else // Happy path at same indent let! (parseAndCheckResults: ParseAndCheckResults, _line: string, sourceText: IFSACSourceText) = getParseResultsForFile fileName fcsPos let mExprOpt = (fcsPos, parseAndCheckResults.GetParseResults.ParseTree) ||> ParsedInput.tryPick (fun path node -> match node with | SyntaxNode.SynExpr(e) when Range.equals mDiag e.Range -> Some(path, e) | _ -> None) match mExprOpt with | None -> // Empty result is Option is None return [] | Some(path, expr) -> // Happy path at same indent return [ { SourceDiagnostic = None Title = title File = codeActionParams.TextDocument Edits = [| { Range = fcsRangeToLsp expr.Range NewText = newText } |] Kind = FixKind.Fix } ] }) ⚠️ The downside of this setting is that it only respects this style of formatting if it was already present in the original source. The problem with this approach is that the author of the original code decides whether this style is used. Discuss this with your team! ⚠️ ### [Open-ended expressions](https://fsprojects.github.io/fantomas/docs/end-users/OpenEndedExpressions.md) Open-ended expressions Sometimes Fantomas leaves a short record, list or tuple spread over several lines when it would comfortably fit on one. This page explains when that happens and why, because it is deliberate rather than a missed opportunity. The symptom This record is well under the width Fantomas would collapse at, and it stays as it is: let r = { A = 1 B = fun x -> x + 1 C = 3 } Take the lambda out and the same record goes to one line: let r = { A = 1; B = 2; C = 3 } Why In F#, fun extends as far to the right as it can. That is a rule of the language, not a formatting preference. Written on one line, the record above says something else entirely: let r = { A = 1; B = fun x -> x + 1; C = 3 } The compiler reads that as a record with two fields, not three, because everything after the arrow belongs to the lambda: let r = { A = 1; B = fun x -> (x + 1; C = 3) } The ; that Fantomas would write to separate the fields becomes a sequential expression inside the lambda body instead. Fantomas re-types your entire source rather than adjusting whitespace in place, so it carries the responsibility that what it prints means what you wrote. Collapsing here would break that, so it does not collapse. Where it applies An expression is open-ended when it has no closing token and so runs on to the right. The common ones are fun, if ... then ... else, match, function and try, along with anything that wraps one of them, such as lazy, yield or an assignment. Fantomas keeps the layout multiline when an open-ended expression sits anywhere but last in a record, an anonymous record, a list, an array or a tuple, or on the left of an infix operator: let xs = [ 1, fun () -> 1 2, fun () -> 2 ] let a = fun x -> x + 1 |> g The last position is fine as it is, because the closing bracket ends the expression and there is nothing left for it to swallow: let r = { A = 1; C = 3; B = fun x -> x + 1 } What counts is whether the expression really does run on. lazy around a lambda does, lazy around a plain value does not, so only the first of these stays multiline: let xs = [ lazy fun x -> x 2 ] let ys = [ lazy a; 2 ] Getting the single line back Put the parentheses in yourself. They close the expression, so nothing can run past them and Fantomas is free to collapse: let r = { A = 1; B = (fun x -> x + 1); C = 3 } let xs = [ 1, (fun () -> 1); 2, (fun () -> 2) ] This is a change to your code rather than to your formatting, which is exactly why Fantomas leaves it to you. Why not add the parentheses for you That was the other option, and it was put to the community as RFC #3279. Both options produce deterministic output; the question was only which one. The vote went 23 to 3 in favour of staying multiline, on the grounds that a formatter should not introduce syntax that was not in the source, and Fantomas has behaved this way since v8.0.0-alpha-008. Note that neither option is about preserving what you wrote. Written on one line to begin with, the parenthesised record above stays on one line; written across several, it is collapsed onto one. What decides the layout is the expression, never the way you happened to type it. ### [Ignore Files](https://fsprojects.github.io/fantomas/docs/end-users/IgnoreFiles.md) Ignore Files starting version 4.1 To exclude files from formatting, create a .fantomasignore file in the root of your project. .fantomasignore uses gitignore syntax (processed via Ignore). Ignored files will be picked up by the Fantomas command line tool. Exclusion applies both to formatting and the format checking. #Ignore Fable files .fable/ #Ignore script files *.fsx Note that the .fantomasignore that governs a file is the nearest one at or above that file, and only that one. Unlike Git, Fantomas does not merge in the ignore files above it, so a pattern in a parent repository's ignore file has no effect on a file that has one of its own beside it. starting version 8.0, the command line resolves this per file, which is what the daemon has always done. Before that it resolved a single ignore file for the whole run from the directory it was started in, so an ignore file in a subfolder was honoured by an editor and invisible to a pipeline. If you are not sure which ignore file governs a given source file, or which line of it decided, ask: dotnet fantomas doctor src/App.fs It names the ignore file, quotes the line that matched with its line number, and writes nothing. Where a pattern in an ignore file further up would have skipped the file, it names that file too and quotes the pattern, which is the answer when something you wrote at the root of a repository turns out to have had no effect. See Getting Started for the rest of what it reports. Also note that if you are less familiar with .gitignore, .gitgnore processes everything using Unix slashes /. Windows slashes \ will not work correctly. See official Git documentation for more info. Great for gradual adoption It is not always possible to format all code from the moment you start using Fantomas. Your team might be working on a lot of features and the initial format can lead to a hugh set of changes in source control. The .fantomasignore file can help you to introduce Fantomas bit by bit to a new code base. A good example of this is dotnet/fsharp, the maintainers initially only formatted signature files and are formatting more code over time. A storm in a teacup Fantomas is not perfect, there are open issues and depending on what shenanigans you have in your code you might at some point encounter a bug πŸ˜…πŸ™ˆ. Before you've decided that Fantomas is not for you, you might want to use a .fantomasignore file to overcome that one problem. In the past people have been quick to judge that the tool cannot be used, however, through a different looking glass Fantomas maybe did format 99% of your code correctly. ### [Visual Studio](https://fsprojects.github.io/fantomas/docs/end-users/VisualStudio.md) Visual Studio The F# Formatting extension sets up Fantomas as the default formatter for F# files, configurable from Visual Studio's options. Do note that the extension might not be up to date with the latest version of Fantomas. Visual Studio 2019 Visual Studio 2022 Visual Studio for Mac Install fantomas locally with dotnet tool install fantomas and configure it as an External Tool. Open the external tool window by going to Tools -> Edit custom tools Click Add and fill in the information Run fantomas inside Tools -> fantomas ### [Formatting Check](https://fsprojects.github.io/fantomas/docs/end-users/FormattingCheck.md) Formatting Check Formatting source code is a habit, a step in your developer workflow. The benefits of consistently formatting is that your delta (typically the changes in the files of a pull request) will be the smallest set possible if every previous change was formatted. The tragedy of the ancient Greek developers When working with multiple people on the same code base, it is important (to some degrees) that you cannot distinguish who wrote the code. If you agree as a team that you need to write unit tests to guarantee the code quality, you expect every developer to cover any new code with a test. Formatting is no different, every developer should do it and it is an acceptance criteria for new code. Imagine we have multiple developers in our team. Hektor made the initial setup and during a team meeting it was decided that the code should always be formatted. Once the initial project structure was delivered, Achilles made a change where the code was not formatted. The next day, Odysseus wants to submit a new pull request. As agreed code should be formatted, so Odysseus did exactly that. As the changes Achilles made were not formatted, there was more code touched than was absolutely necessary. Perseus didn't see any harm in this rectification and merge the pull request as is. A week later, a huge problem was discovered in production. There was data loss and the entire company was on fire. Fuelled by rage and anger Hektor wanted to know who was responsible for this devastating tragedy. You guessed it, somebody's head was about to roll. Perseus was tasked with getting to the bottom of this mystery and eventually he located the source of the misery. Hektor tasked him with running a git blame command, to see who the culprit really was. Odysseus credentials showed up, but it was the function Achilles originally wrote. Unable to escape Hektor's wrath, Odysseus was fired immediately. Achilles felt bad but couldn't come clean as he was about to get surgery for his heel. Odysseus took the fall like a true hero. But it lead him to a downwards spiral and would take him ten years before he could land another job in the software industry. Aftermath The team was shocked by what had transpired. Besides Hektor overreacting, another painful meeting was planned to have a retrospective on the past events. After asking five why's, the team had to brainstorm on how to avoid these things. Ultimately, that meeting was mostly about the contents of the function Achilles wrote, but to end on a high note, the team discussed formatting source code afterwards. The moral of this story is that there are two things that could have saved Odysseus: a formatting check during continuous integration and a .git-blame-ignore-revs file. --check starting version 3.3 Verify that a single file or folder was formatted correctly. dotnet fantomas --check Source.fs This will verify if the file Source.fs still needs formatting. If it does, the process will return exit code 99. In the case that the file does not require any formatting, exit code 0 is returned. Unexpected errors will return exit code 1. This scenario is meant to be executed in a continuous integration environment, to enforce that the newly added code was formatted correctly. FAKE If you are using FAKE by any chance, a good step is to have CheckFormat target early on in the pipeline. Target.create "CheckFormat" (fun _ -> let result = DotNet.exec id "fantomas" "ourSourceFolder --check" if result.ExitCode = 0 then Trace.log "No files need formatting" elif result.ExitCode = 99 then failwith "Some files need formatting, run \"dotnet fantomas ourSourceFolder\" to resolve this." else Trace.logf "Errors while formatting: %A" result.Errors) // ... more targets "Clean" ==> "CheckFormat" ==> "Build" ==> "UnitTests" ==> "Benchmark" ==> "Pack" ==> "Docs" ==> "All" Target.runOrDefault "All" The recommendation is to install fantomas as a local tool and run it using the generic DotNet.exec api. This translates to running dotnet fantomas ourSourceFolder --check. Any other continuous integration environment You want to restore your local fantomas tool using dotnet tool restore. Next, you want to run dotnet fantomas --check and make sure your continuous integration environment fails your job when a non-zero exit code is returned. Pro-tip: print the command users need to run to fix the formatting in the output log when the check failed. This is useful for open-source projects where new contributors might never have been exposed to formatting. Reading the result from a script starting version 8.0 If your pipeline needs to do something with the files rather than only fail, add --json and the run reports what it found as a document on standard out: dotnet fantomas --check --json ./src { "version": 1, "command": "check", "workingDirectory": "/home/you/my-project", "exitCode": 99, "error": null, "files": [ { "path": "./src/App.fs", "status": "needs-formatting" }, { "path": "./src/Library.fs", "status": "unchanged" } ] } Every file the check looked at is listed, so the ones that are already formatted are there too, with status unchanged. Paths are relative to workingDirectory. The exit codes are unchanged, so the branch above still works. See Getting Started for what the document contains. A git-blame-ignore-revs file By default, Fantomas adheres to the Microsoft F# code formatting guidelines. If these change, Fantomas will follow accordingly. Due to this reason, the output cannot be guaranteed to remain the same when upgrading to a new minor version. If you are using Git for your source control, it is recommended to ignore commits where fantomas was updated using a .git-blame-ignore-revs file. Check out this blogpost for more details. Adding a formatting commit to a configured .git-blame-ignore-revs file will prevent you from drawing the wrong conclusions when running a git blame command. One thing to note is that if you add a commit SHA to a .git-blame-ignore-revs file, you cannot squash the commit when merging in the pull request. Checking is good for regressions Normally, the rule of thumb is that the code style will not change between revisions. If you are using 4.7.2, then it should be safe for you upgrade to the latest 4.7.X without seeing any changes. Life happens, so this is a best effort guarantee In case you do see a change that cannot be linked to anything in the CHANGELOG.md file, you may have detected a regression. Or, more likely, you have something slightly different in your code base that isn't covered yet by a unit test. No matter the case, when you have a --check command somewhere in your continuous integration environment, please consider running a build with the latest compatible version from time to time. It really helps us spotting problems early on and we can more easily pinpoint the problem due to lesser recent changes. ### [Upgrade guide](https://fsprojects.github.io/fantomas/docs/end-users/UpgradeGuide.md) Upgrade guide We wish to capture all changes required to upgrade to a new version. Please note that the focus of this document is about how to upgrade. New features are not covered in detail here, for those please refer to our changelog. If you find something to be missing from this guide, please consider opening a PR to mend the gap instead of opening an issue. The Oak This only affects you if you build code with the nodes of Fantomas.Core.SyntaxOak, the tree Fantomas formats from, for example to generate code. Every release of Fantomas.Core can change the Oak, a patch release included. There is no compatibility between any two versions, and this guide does not list what changed in it. Take an exact dependency on Fantomas.Core, and keep tests for the code you build with it, so an upgrade tells you what broke. To see what changed, compare src/Fantomas.Core/SyntaxOak.fs between the tags of two releases, in a clone of this repository: git diff v8.0.5 v8.0.6 -- src/Fantomas.Core/SyntaxOak.fs To list every release that changed the Oak, and by how much, save this Bash script as oak-changes.sh in the clone and run bash oak-changes.sh: #!/usr/bin/env bash # oak-changes.sh: every release that changed SyntaxOak.fs, compared with the release before it oak=src/Fantomas.Core/SyntaxOak.fs previous= for tag in $(git -c versionsort.suffix=- tag --list 'v*' --sort=v:refname); do if [ -n "$previous" ] && ! git diff --quiet "$previous" "$tag" -- "$oak"; then echo "$previous -> $tag:$(git diff --shortstat "$previous" "$tag" -- "$oak")" fi previous=$tag done v5.0 .editorconfig fsharp_max_elmish_width was removed. fsharp_single_argument_web_mode was removed. fsharp_disable_elmish_syntax was removed. fsharp_semicolon_at_end_of_line was removed. fsharp_keep_if_then_in_same_line was removed. fsharp_indent_on_try_with was removed. If you were using Elmish inspired code (or fsharp_single_argument_web_mode) use fsharp_multiline_block_brackets_on_same_column = true fsharp_experimental_stroustrup_style = true fsharp_keep_indent_in_branch was renamed to fsharp_experimental_keep_indent_in_branch console application The dotnet tool is now targeting net6.0. --stdin was removed. --stdout was removed. --fsi was removed. --force now writes a formatted file to disk, regardless of its validity. Miscellaneous NuGet package Fantomas was renamed to Fantomas.Core. NuGet package fantomas-tool was renamed to fantomas. Fantomas.Core uses Fantomas.FCS instead of FSharp.Compiler.Service NuGet package Fantomas.Extras is deprecated. v5.1 .editorconfig The space in patterns is no longer controlled by fsharp_space_before_parameter, fsharp_space_before_lowercase_invocation and fsharp_space_before_uppercase_invocation are now used. v5.2 .editorconfig fsharp_multiline_block_brackets_on_same_column and fsharp_experimental_stroustrup_style are now merged into one setting fsharp_multiline_bracket_style. The accepted values for fsharp_multiline_bracket_style are cramped, aligned and experimental_stroustrup. Note that fsharp_multiline_block_brackets_on_same_column and fsharp_experimental_stroustrup_style will continue to work until the next major version. v6.0 .editorconfig fsharp_multiline_block_brackets_on_same_column and fsharp_experimental_stroustrup_style are replaced with fsharp_multiline_bracket_style experimental_stroustrup for fsharp_multiline_bracket_style is now stroustrup fsharp_newline_before_multiline_computation_expression was extracted from fsharp_multiline_bracket_style = stroustrup and now controls how computation expression behave. fsharp_strict_mode was removed and can no longer be used. console application -v is now short for --verbosity instead of --version The console output was revamped. --recurse was removed. Please use .fantomasignore file if you wish to ignore certain files. Miscellaneous The public API of CodeFormatter no longer uses FSharpOption<'T>, instead overloads are now used. StrictMode was removed from FormatConfig, not passing the source text in the public API will have the same effect. v6.1 Miscellaneous The namespace in Fantomas.FCS changed from FSharp.Compiler to Fantomas.FCS. v7 console application Target framework is now net8.0. .editorconfig fsharp_max_dot_get_expression_width was removed. v8 .editorconfig The default setting for fsharp_multiline_bracket_style is now aligned, to restore the previous behaviour use fsharp_multiline_bracket_style = cramped. A setting that carries the fsharp_ prefix but is not one Fantomas has, such as the misspelling fsharp_multiline_brackets_style, is reported as a warning instead of being silently ignored, and where the intent is obvious the warning names the spelling that works. The same goes for a value a setting does not accept, a negative number among them. Formatting still runs, using the default for that setting. fsharp_max_line_length is reported too: max_line_length is the setting that applies. Keys and values are matched without regard to case, as the editorconfig specification says. FSHARP_MAX_RECORD_WIDTH and fsharp_experimental_elmish = True used to be ignored and now apply. console application Target framework is now net10.0. Warnings and errors are written to standard error instead of standard out. A script that captured standard out to detect failures needs to capture standard error as well. Informational output stays on standard out, including --version and the files --check reports as needing formatting. A run over a single file reports the path it was given rather than only the file name, so fantomas src/A.fs prints src/A.fs was formatted. where it printed A.fs was formatted.. The same applies to the unchanged, ignored and failure messages. A run over several files already reported the path, so a script that handled both cases can now treat them alike. A file that cannot be parsed is reported with the position of each diagnostic instead of Could not parse the file., one line per diagnostic in the shape src/A.fs(3,9): error FS0583: Unmatched '(', followed by the source around the failure with a caret under it. --check reported the same failure as an exception dump with a stack trace and now uses this as well. A script that matched on Could not parse the file. needs to match on the new text. The --help page is written by Fantomas instead of by Argu, and -h is accepted alongside --help. An argument error prints its complaint on standard error followed by a pointer to --help, where it used to print Argu's usage block. --out now mirrors the structure of the input folder, and creates the folders it needs. The message for an input path Fantomas cannot work with is the same whether the run formats or checks. --check reported Input path 'x' is unsupported file type and Input path 'x' not found without a full stop where a format run ended both with one. Both now read Input path 'x' is an unsupported file type. and Input path 'x' not found. A script matching on the old text needs updating. A run with no input path at all is no longer refused; see the bullet on the current folder below. A file whose extension is not lowercase, such as A.FS, is now formatted. Up to v7 it was refused as an unsupported file type when named directly, and passed over when found while walking a folder, so a folder run can now touch files it used to leave alone. fantomas src/ --out src now formats the folder in place. Up to v7 a trailing separator made the two paths count as different places, so every file was taken for the previous run's output and skipped: the run printed an empty table and exited 0 without formatting anything. The same applied to fantomas src --out src/. A build step that used either spelling was doing nothing and will start doing the work. Several input paths are told apart by asking the file system rather than by whether they carry an extension. Up to v7, fantomas my.stuff src reported Failed to format file: my.stuff and exited 1, because a folder whose name contains a dot was taken for a file. It now formats the folder. The converse also held: a path with no extension was taken for a folder, so naming a file that way ended the whole run rather than that one file. A single file matched by .fantomasignore is reported on standard out, as - A.fs was ignored by .fantomasignore. Up to v7 it printed nothing unless --verbosity d was given, even though a folder run whose only file was that same one reported it at normal verbosity. The two now agree. Everything a format or check run prints was rewritten. A run over a folder printed a bordered table of headings and counts; it now prints one sentence per file that changed and one line of counts. A script reading this output needs updating, and --json is there for a caller that has to act on the result rather than read it. The shapes are set out under "What a run prints now" below. --profile was removed. Use fantomas profile , which formats one file at a time so the timings can be compared and writes nothing. The flag wrote formatted files to disk as a side effect of measuring them, and the command does not, so it could not be kept working without silently changing what it did. Typing --profile reports that it is a command and prints the line to run instead. --daemon refuses the arguments that mean nothing to a daemon. --check, --out, --force, --json and input paths were accepted and silently ignored, so fantomas --daemon ./src looked like it would format a folder and did not. Any of them now exits 1 without starting the daemon. --verbosity is still accepted, and --version wins outright. Fantomas.Client launches the daemon with no other arguments, so no editor integration is affected. --check and --daemon can also be spelled fantomas check and fantomas daemon. Both flags keep working and are not deprecated, so nothing has to change. On a terminal the older spelling prints a one line note saying how it is spelled now; a redirected stream never sees it, so build logs and editor integrations are unaffected. A run with no input path formats the folder you are in, where it used to refuse with No input path provided. A script that relied on the refusal to catch a missing argument no longer gets one, and will format the working directory instead. A malformed command line exits 1 rather than 2. The documented exit codes have only ever been 0, 99 and 1; 2 came from the argument parser and was never one Fantomas chose. A token beginning with a dash that is not a flag Fantomas has is reported as an unknown flag rather than as a missing input path. fantomas --chek src said Input path '--chek' not found. and now says '--chek' is not a Fantomas flag. Did you mean '--check'? -- now ends the flags, so a path beginning with a dash can be named after it. Repeating a flag is allowed and the last one wins, where it used to be refused outright with argument '--check' has been specified more than once. --out is the exception: given twice, the run is refused rather than a destination being chosen for you. A file that cannot be parsed is reported as src/A.fs could not be parsed by Fantomas: rather than Fantomas could not parse src/A.fs:, and a construct that could not be modelled as src/A.fs could not be formatted by Fantomas:. A script matching on the old text needs updating. --check no longer reports a file that will not parse twice, once as an error and once as needing formatting. --force announces invalid output as a warning on standard error rather than on standard out, and says what happened rather than only that it happened. Output that Fantomas will not accept from itself is reported as a bug in Fantomas rather than as a problem with your file, and says that nothing was written and where to report it. Formatting A.fs leads to invalid F# code became src/A.fs could not be formatted by Fantomas: followed by that explanation, what the parser said about the output, and the lines of the output around it with a caret under the failure. Those are lines of the output, which is written nowhere and is not your file, and the report says so; the diagnostics carry no line and column of their own for the same reason. Up to v7 you were told only that something was invalid and left to run again with --force and find it yourself. --check reports it the same way. A script matching on the old text needs updating. --version prints the commit hash trimmed to the short form the --help page has always shown, and the whole of it at --verbosity d. Fantomas.Client is unaffected: it cuts the version at +. The .fantomasignore that applies to a file is found by walking up from that file rather than from the directory Fantomas was started in, so where you run the command from no longer decides which ignore file applies. See "Which .fantomasignore applies" below. --json no longer names a file that .fantomasignore matched, and ignored is no longer a status a file can carry. See "What a run says about skipped files" below. A run writing to --out reports what was written rather than what changed, 32 files written to build, 2 reformatted., since under --out every input produces an output file whether or not its content changed. A single file named on the command line says where it went, + src/A.fs was formatted and written to build/A.fs. What a run prints now Each file that changed gets a sentence of its own, opening with a character that says what happened to it, and the run ends with a line of counts: $ dotnet fantomas src + src/A.fs was formatted. 1 file formatted, 30 unchanged. $ dotnet fantomas check src ! src/A.fs needs formatting. 1 file needs formatting, 30 already formatted. Run dotnet fantomas src to format it. A run over a single named file is answered on its own terms, with no counts added to the one line. A check that finds nothing prints nothing and exits 0, as it always did. The characters are + formatted, = unchanged, - skipped, ! needs formatting and x failed. Where the output goes to a terminal that can draw them, they are βœ”, =, β—‹, ! and ✘ instead; both sets carry the same five states and the words beside them say the same thing either way, so nothing is lost by the plainer set. Colour is used where the terminal takes it, dropped where the stream is redirected, and NO_COLOR is honoured. Standard out and standard error are decided separately, so piping one of them does not take the colour off the other. If you parse this output, move to --json, which puts one document on standard out describing every file the run looked at. Which .fantomasignore applies Up to now the command line resolved one ignore file for the whole run, the nearest at or above the directory it started in. It is now found by walking up from the file being formatted, which is what the daemon has always done. Of everything in this release this is the change most likely to be noticed. The first thing it changes is that the directory you run from no longer decides which ignore file applies. Up to v7 this skipped every file under src, on the strength of an ignore file that had nothing to do with them, and never read the one sitting above src: $ cd tools && dotnet fantomas ../src # v7: matched ../src/*.fs against tools/.fantomasignore The second is that an ignore file in a subfolder was honoured by an editor and invisible to a pipeline, so the same file was skipped in one and formatted in the other: repo/.fantomasignore # found by both repo/sub/.fantomasignore # found by the editor, ignored by the command line repo/sub/S.fs # skipped in the editor, formatted by CI Both now resolve per file, so a nested ignore file that used to have no effect on a command line run has one. If a subfolder of your repository carries a .fantomasignore, check whether it names files you have been formatting all along. Note that this is still the nearest ignore file and not the union of every one above it, which is where Fantomas differs from .gitignore. A pattern you wrote at the root of a repository therefore has no effect on a folder that carries an ignore file of its own, and fantomas doctor will say so: it names the ignore file that governs the file, and names one further up whose pattern would have skipped it. A folder that .fantomasignore names is no longer opened at all. Up to now every file inside it was found and then rejected one at a time. Nothing is formatted that was not formatted before, and a run over a repository that ignores a vendored checkout no longer reads it. What a run says about skipped files It no longer says how many, and --json no longer names them at all: a file an ignore pattern matched used to be listed in files with a status of ignored, and is absent now. The number could not be honest. An ignore pattern that names a file can be counted, because the file is found and then set aside. One that names a folder cannot, because the folder is never opened and what is inside it is unknown by design. A count right about the first and blind to the second reads as though it covered both: Fantomas's own repository ignores three folders holding ninety six F# files, and the count said nought. A file you name on the command line is the exception and still gets a line of its own, because a count is the only other place a path could be accounted for and no count carries this one: $ dotnet fantomas A.fs Skipped.fs - Skipped.fs was ignored by .fantomasignore. 1 file unchanged. Everything else that was skipped is named at --verbosity d, a file and a folder each in its own words: $ dotnet fantomas check --verbosity d . [... DBG] './.deps' was not opened, .fantomasignore names it [... DBG] './src/A.fs' was ignored A run that looked at no file at all still says so on standard error and exits 0, so a glob that matches nothing and an ignore file that grew too wide are both still caught. --out mirrors the input folder Up to v7, every file found under the input folder was written straight into the root of the output folder, whatever its depth. Nesting collapsed, and two files with the same name in different subfolders overwrote each other without a warning. From v8, the path of each file relative to the input folder is preserved: #input src/A.fs src/nested/A.fs #v7: dotnet fantomas src --out out out/A.fs # whichever of the two was formatted last #v8: dotnet fantomas src --out out out/A.fs out/nested/A.fs This is what Getting Started has always described, so no action is needed if you followed the documentation. If you relied on the flattening to collect a tree of files into a single folder, that step now has to be done by whatever calls Fantomas. An output folder that sits inside the input folder is left out of the scan. Up to v7, running dotnet fantomas src --out src/formatted picked the previous run's output back up as input, which the flattening hid; with the tree preserved it would nest one folder deeper on every run. --out creates the folders it writes into Up to v7, --out failed with Failed to format file and exit code 1 when the folder of the path given to it did not exist. The root of an --out was always created for you. From v8, Fantomas creates whatever folder it has to write into, which includes the subfolders the mirroring above needs: # v7: fails unless ./output exists # v8: creates ./output dotnet fantomas ./input/array.fs --out ./output/array.fs If your build script creates the output folders before calling Fantomas, it can keep doing so. mkdir -p and its equivalents are unaffected by this change. Formatting Chains (dotted member access and calls) are laid out by a new set of rules, written up in full in Formatting chain expressions. They were proposed to the F# style guide and are now part of it, under Formatting chained expressions. The layout rules only apply once a chain has to break, so a chain that already fits on one line is left alone. The spacing rule directly below is the exception: it applies whether or not the chain breaks, and it reaches a few things that are not chains at all. The changes here are the ones you are most likely to notice. A call keeps its space only when the whole name is plain fsharp_space_before_uppercase_invocation and fsharp_space_before_lowercase_invocation ask for a space before the parenthesis of a call. They now get a say only when the whole thing being called is a plain dotted name. A call, an index, a receiver that is not a name, or a type application anywhere in it, and the parenthesis stays tight whatever the settings say. On default settings, where fsharp_space_before_lowercase_invocation is true: // v7 xs.map(fun a -> a + 1).filter (fun a -> a > 1) Foo().bar () myList.[7].someFunction (arg) unbox (value) jsOptions (fun o -> o.autoResize <- Some true) // v8 xs.map(fun a -> a + 1).filter(fun a -> a > 1) Foo().bar() myList.[7].someFunction(arg) unbox(value) jsOptions(fun o -> o.autoResize <- Some true) A plain dotted name is untouched, however long it is, so module-qualified functions keep the space they had: // v7 and v8 agree List.map (f) Fantomas.FCS.Text.Range.unionRanges (r1, r2) Fantomas does not add parentheses, so a generic application written without them never comes into it and unbox obj is left as written. This is the rule agreed at fslang-design#648, where the reasoning is laid out in full, and the style guide now carries it under Formatting application expressions. A run of property access wraps instead of overflowing Navigation that does not fit is spread over balanced lines, chosen so the longest resulting line is as short as possible. Previously it was left to overflow the margin. At max_line_length = 80: // v7 let navigation = builder.Services.Configuration.Providers.Defaults.Primary.Fallback.Value.Inner // v8 let navigation = builder.Services.Configuration.Providers .Defaults.Primary.Fallback.Value.Inner A comment no longer fans the chain out one step per line A comment between the steps forces the chain to break, whatever the line length allows. In v7 that break was taken by every step. In v8 only a call claims a line of its own, and plain property access rides along at the front of the line belonging to the call it introduces: // v7 let a = config // note .Settings .GetValue(key) // v8 let a = config // note .Settings.GetValue(key) A chain whose steps are all calls is unaffected, because each of those claims a line either way. A match lambda keeps function beside the ( This applies with fsharp_multi_line_lambda_closing_newline = false, which is the default. With the setting set to true nothing changes. In v7 a call reached through a dot pushed function onto its own line, while the very same call without a receiver kept it beside the (. The two disagreed about the same argument. A chain now follows what the receiverless call already did: // v7 and v8 agree here: no receiver, `function` stays beside the `(` let a = configureTheThing (function | Some v -> handleSome v | None -> handleNone ()) // v7: the same argument, reached through a dot, was laid out differently let b = builder .Build() .Configure( function | Some v -> handleSome v | None -> handleNone () ) // v8: the dot makes no difference any more let b = builder .Build() .Configure(function | Some v -> handleSome v | None -> handleNone ()) A lambda whose opening line does not fit moves to its own line This applies with fsharp_multi_line_lambda_closing_newline = true. With the setting left at its default of false nothing changes. In v7 the parameters were hung underneath the opening parenthesis, which pushed them far to the right and could force the pattern itself to break. Now the whole argument moves down one line and indents normally. This affects calls with and without a receiver alike. At max_line_length = 80: // v7 let dotted ifaces = ifaces |> List.tryPick (fun (SynInterfaceImpl( interfaceTy = ty; withKeyword = withRange)) -> Some(ty, withRange) ) // v8 let dotted ifaces = ifaces |> List.tryPick (fun (SynInterfaceImpl(interfaceTy = ty; withKeyword = withRange)) -> Some(ty, withRange) ) =, <, >, % and %% no longer hang their right-hand side These operators cannot start a line at the column of their left-hand side, where the parser reads them as the = of a binding or as a quotation splice. v7 kept them off that column by leaving the operator on the first line and hanging the right-hand side under it, which needed a column count to predict and moved when an unrelated part of the line changed length. v8 follows the rule agreed at fsharp/fslang-design#836: the expression fits on one line, or the operator stays with the left-hand side and the right-hand side moves one level in, or the left-hand side itself spans several lines and the operator takes a line of its own. // v7 let a = someFunctionWithALongName argumentNumberOne argumentNumberTwo = anotherFunction argumentNumberThree argumentNumberFour // v8 let a = someFunctionWithALongName argumentNumberOne argumentNumberTwo = anotherFunction argumentNumberThree argumentNumberFour // v7 let b = someFunctionWithALongName argumentNumberOne argumentNumberTwo argumentNumberThree argumentNumberFour argumentNumberFive = anotherFunctionWithALongName argumentNumberOne argumentNumberTwo // v8 let b = someFunctionWithALongName argumentNumberOne argumentNumberTwo argumentNumberThree argumentNumberFour argumentNumberFive = anotherFunctionWithALongName argumentNumberOne argumentNumberTwo fsharp_multiline_bracket_style = stroustrup still overrides this for a right-hand side that opens a bracket, which keeps hugging the operator. let! and use! answer to fsharp_max_value_binding_width let and use always did. let! and use! were printed by a branch of their own that consulted the page width and nothing else, so a binding whose right-hand side was wider than the setting held one line up to max_line_length. On default settings the two widths are 80 and 120, so a line of 110 characters carrying a body of 86 moves where it used to stay put: // v7 let c = async { let! result = someFunctionWithALongName argumentNumberOne argumentNumberTwo argumentThree return result } // v8 let c = async { let! result = someFunctionWithALongName argumentNumberOne argumentNumberTwo argumentThree return result } Stroustrup reaches object expressions This applies with fsharp_multiline_bracket_style = stroustrup. aligned and cramped are untouched. An object expression was printed by the aligned branch whatever the setting said, which made stroustrup the only bracket style that did not reach every bracket it names. It now lands where a record already did, and the same applies to a binding whose signature broke across lines and to a match clause under fsharp_experimental_keep_indent_in_branch, both of which used to fall back to aligned: // v7 let disposable = { new System.IDisposable with member _.Dispose() = printfn "disposed" } // v8 let disposable = { new System.IDisposable with member _.Dispose() = printfn "disposed" } Fantomas.Core API These only affect you if you consume Fantomas.Core as a library. Formatting source text through CodeFormatter.FormatDocumentAsync is unaffected. No longer binary compatible with v7 Several discriminated unions are structs now. That changes nothing about how they are constructed, matched or compared, so no source of yours has to be edited, but an assembly compiled against v7 has to be rebuilt against v8. Exceptions ParseException is a class deriving from FormatException rather than an F# exception, so :? FormatException now catches every way formatting can fail. Its diagnostics are reachable as a property rather than only through the exception pattern; raising and constructing it are unchanged: // v7 | ParseException diagnostics -> ... // v8 | :? ParseException as e -> e.Diagnostics Message names the first error by position instead of dumping every diagnostic through %A. InvariantViolationException was added. It derives from FormatException and is raised when Fantomas reaches a state its own model says is impossible, which always means a bug in Fantomas rather than a problem with your code. If you catch FormatException, you already catch this. DefineParseException was added, raised when one or more conditional compilation define combinations produce invalid syntax trees. EndOfLineStyle.OfConfigString "cr" now raises FormatException instead of calling failwith. CodeFormatter CodeFormatter.IsValidFSharpCodeAsync was replaced by CodeFormatter.ValidateFSharpCodeAsync, which answers with a ValidationResult instead of a bool: // v7 let! isValid = CodeFormatter.IsValidFSharpCodeAsync(isSignature, source) // v8 let! validation = CodeFormatter.ValidateFSharpCodeAsync(isSignature, source) let isValid = validation.IsValid ValidationResult.Diagnostics carries what Fantomas refused: every error, and every warning it does not tolerate, positioned in the source it was given. It is empty exactly when IsValid is true. The boolean threw that away, so a caller that had to tell somebody why the source was refused had to parse it a second time to find out. This is what lets the command line show you the line of its own output that failed. CodeFormatter.FormatASTAsync(ast, config, source) was added, next to the existing FormatASTAsync(ast, source). CodeFormatter.GetWriterEventsAsync was added for debugging. It returns the writer events produced while formatting. v8.1 Formatting 8.1 fixes a handful of layouts where the formatted code did not compile, or changed again on the next format; the changelog lists them. Fixing them at the cause, rather than with a special case each, also moves a few layouts of code that was already valid. Two ideas are behind most changes below: Indent only as far as the parser needs, and on a multiple of indent_size: the rule of multitudes. 8.0 added extra indentation in places to keep the compiler happy, and some of it landed on columns like 10 or 14 with an indent size of 4. Keep a comment with the code it lines up with. The examples use the default settings. A function type in parentheses goes one level in, not two Since 8.0, every multiline function type in parentheses got an extra level, to avoid a compiler error after an outer -> (#3043). There it stays, and so it does when the function type starts with a tuple: the tuple's lines go one level past the (, the -> lines two. Everywhere else this is the 7.0.6 layout again. // v8.0 type T = (LongTypeNameNumberOne -> LongTypeNameNumberTwo -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) list // v8.1 type T = (LongTypeNameNumberOne -> LongTypeNameNumberTwo -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) list A return type lands on a multiple of the indent size The lines of a return type no longer hang off the column after :. They go one level past the binding. With indent_size = 2 that level would be the column after :, so there the lines are measured from that column, as in 8.0. // v8.0 let f x : (LongTypeNameNumberOne -> LongTypeNameNumberTwo -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) = failwith "" // v8.1 let f x : (LongTypeNameNumberOne -> LongTypeNameNumberTwo -> LongTypeNameNumberThree -> LongTypeNameNumberFour -> LongTypeNameNumberFive) = failwith "" A long struct tuple type is written like a long list The elements go on lines of their own, one level in, and the ) back on the indent of the line it started on. The elements after the first used to start left of struct (, at a column the parser only accepts in some places: in the middle of a function type, the same shape did not compile. // v8.0 let f x : struct (LongTypeNameNumberOne * LongTypeNameNumberTwo * LongTypeNameNumberThree * LongTypeNameNumberFour * LongTypeNameNumberFive) = failwith "" // v8.1 let f x : struct ( LongTypeNameNumberOne * LongTypeNameNumberTwo * LongTypeNameNumberThree * LongTypeNameNumberFour * LongTypeNameNumberFive ) = failwith "" A tuple type after :>, :?>, : or :? goes one level in The lines after the first element used to go back to the column of the operator line, where they read as if the type had ended. A tuple after the -> of a function type does the same. // v8.0 let x = someValue :> (LongTypeNameNumberOne * LongTypeNameNumberTwo * LongTypeNameNumberThree * LongTypeNameNumberFour * LongTypeNameNumberFive) // v8.1 let x = someValue :> (LongTypeNameNumberOne * LongTypeNameNumberTwo * LongTypeNameNumberThree * LongTypeNameNumberFour * LongTypeNameNumberFive) A comment lined up with the elements stays with them A line comment written on the column where the elements of a list start now stays with the elements, also when the closing ] is on that column too. It used to move before the ]. A comment on the column of the opening bracket still stays with the brackets. // input let a = [ (1,2,3); (4,5,6); (7,8,9) // some line comment ] // v8.0 let a = [ (1, 2, 3) (4, 5, 6) (7, 8, 9) // some line comment ] // v8.1 let a = [ (1, 2, 3) (4, 5, 6) (7, 8, 9) // some line comment ] A single anonymous record type argument stays attached in Stroustrup This applies with fsharp_multiline_bracket_style = stroustrup. aligned and cramped are untouched. A type application whose only type argument is an anonymous record keeps <{| and |}> together, the way Stroustrup puts the bracket of a record at the end of the line before it. Since 6.3.0 the record went on lines of its own, one level in, with the closing > on a line by itself. With more than one type argument, the arguments still go on lines of their own. // v8.0 let asJson (arm: IArmResource) = arm.JsonModel |> convertTo< {| kind: string properties: {| statisticsEnabled: bool |} location: string sku: string |} > // v8.1 let asJson (arm: IArmResource) = arm.JsonModel |> convertTo<{| kind: string properties: {| statisticsEnabled: bool |} location: string sku: string |}> ### [Formatting chain expressions](https://fsprojects.github.io/fantomas/docs/end-users/Chains.md) Formatting chain expressions A chain is a starting value followed by a series of steps, where every step is reached through a dot: document.Body.FirstChild.AppendChild(newNode) Here document is the starting value, and .Body, .FirstChild and .AppendChild(newNode) are the steps. Chains are one of the few shapes where Fantomas has a real choice to make. This page states the rules it follows and the reasoning behind each one, in plain language and without reference to any internal types. It answers two questions, and they have nothing to do with each other: Where do the line breaks go, once the chain no longer fits on one line? A style decision, and the bulk of this page. Does a space go before a call's parenthesis? Mostly not a style decision, and much the shorter of the two, so it is settled first. Every code block on this page is Fantomas output, except where marked β›”. A β›” block is the alternative that was considered and turned down, shown so that the reasoning is visible rather than implied, and βœ… marks what Fantomas does instead. The two markers appear wherever there was a real choice to make; elsewhere the output speaks for itself and goes unmarked. Status: part of the F# style guide The rules described here were proposed to the F# style guide and are now part of it. Where the line breaks go is set out under Formatting chained expressions, and the space before a call's parenthesis, reported in 2021 and agreed at fslang-design#648, under Formatting application expressions. This page is the longer account: what the rules are, the cases that shaped them, and why each one landed where it did. As noted in the Fantomas style guide page, the style itself is not decided in the Fantomas repository. The rules were implemented in Fantomas first and run over real code to find the awkward cases before being pitched upstream, which is what made that discussion productive. If you want a rule changed, the discussion belongs at fsharp/fslang-design. What counts as a chain The dot is what matters. If there is no dot, there is no step: xs[i] // not a chain, there is no dot f (args) // not a chain, there is no dot arr.[i] // a chain, this indexing syntax does have a dot An expression without any dots is laid out by other rules, not the ones on this page. Does a space go before a call's parenthesis? The shorter of the two questions, and mostly not a matter of style at all. For every call but the last, the parser decides and there is nothing to choose. For the last one, a rule and two settings decide between them. An intermediate call is welded to its parenthesis A call in the middle of a chain may not be separated from its ( by anything at all, because that changes what the code means: // β›” parsed as a.Foo ((x).Bar()), which is a different program a.Foo (x).Bar() // ^ this one space hands (x).Bar() to a.Foo as a single argument // βœ… parsed the way you intended a.Foo(x).Bar() The parser reads (x).Bar() as a single parenthesised argument handed to a.Foo. So for every call except the last one, tightness is a grammar requirement rather than a preference, and nothing on this page can override it. A space, a line break and a comment are all the same gap as far as the parser is concerned. The same constraint turns up wherever an expression has to stay glued to its neighbour. In getBuilder().Build() the starting value keeps its own () tight, in x.Foo()[0] the indexed call keeps its own () tight, and the dynamic-access operator ? behaves the same way: settings?Section("db")?ConnectionString stays tight throughout. In each case a space there would rebind the parentheses to the wrong thing. The final call of those first two is tight as well, but for the separate reason set out below: a call and an index are both things a plain dotted name does not contain. The final call is free Nothing follows the last call to be reparsed, so the parser has no view on it and its ( is free to leave the method name. Three things make use of that freedom, and each is covered where it belongs: a setting asking for a space, which only a chain that is a plain dotted name can honour, just below; a comment written between the name and the argument, see A comment beside the parentheses; an argument that needs a line of its own, see Arguments are not the chain's business. That is the whole of it. What follows are those three, not three exceptions to a rule. One shape takes the freedom away again, the _. lambda body below. The two space settings Two settings ask for a space between the name of a call and the ( that follows it: fsharp_space_before_uppercase_invocation, off by default, and fsharp_space_before_lowercase_invocation, on by default. Which of the two applies is decided by the case of the name immediately in front of the parenthesis. Nothing earlier in a dotted name has a say: // all on default settings foo (x) // lower case, and the lowercase setting is on by default Foo(x) // upper case, and the uppercase setting is off by default a.B.foo (x) // `foo` decides, not `a` or `B` a.b.Foo(x) // `Foo` decides, not `a` or `b` Neither setting is about chains as such. Both govern a call with no receiver at all, and both reach into patterns as well. What follows is only what they do to a chain. Neither setting applies once the chain is more than a name Neither setting can put the space back. Once a call, an index, a receiver that is not a name, or a type application appears anywhere in the chain, the parenthesis is tight and no configuration will change it. The space survives only when the whole thing being called is a plain dotted name. Every line below calls the same .Bar, and the only difference is what else the chain contains: // all with fsharp_space_before_uppercase_invocation = true // a plain dotted name, so the setting applies and the space is there obj.Bar () a.B.C.Bar () // however long the name gets // something other than a name is in the way, so no space is available to ask for a.Foo(x).Bar(y) // a call, before the final one Foo().Bar(y) // a call, as the receiver arr[0].Bar(y) // an index, before the final call (f x).Bar(y) // a receiver that is not a name [ 1; 2 ].Bar(y) // brackets of any kind count "yow".Bar(y) // and a constant is a value rather than a name X.Bar(y) // a type application, before the final call a.B.Bar(y) // a type application, on the final call itself A type parameter is a name like any other, so 'T.set_StaticProperty (3) keeps its space. This one is a style decision rather than a grammar requirement. Unlike the tightness of an intermediate call above, nothing here would fail to parse with the space in place. It exists so that a chain does not end up with one surviving space that has no visible reason to be there, and it was agreed at fslang-design#648. The _. shorthand lambda There is one place where even the last call stays tight. F# lets you write _.Property as a short lambda, and Fantomas treats it as a chain whose starting value is _: "yow" |> _.Substring(0, 16).ToLower() A chain that is a plain dotted name may take a space on its last call when a setting asks for one. Under a _. lambda it may not, however plain the name is: the F# compiler requires the body to stay atomic. // both with fsharp_space_before_uppercase_invocation = true // β›” what the setting would ask for here, and it fails to compile with FS3584 "yow" |> _.ToLower () // βœ… the body of a `_.` lambda stays tight regardless of the setting "yow" |> _.ToLower() The chain in the heading above, _.Substring(0, 16).ToLower(), would be tight anyway, since it contains a call. This section is about the single-call case, where the compiler is what decides rather than the rule. This was issue 3364. That is the only thing that makes _. special, and it is a question of tightness rather than of line breaks. Everything from here on applies to it exactly as to any other chain. The example above has two calls, so if it does not fit it becomes a pipeline: _ .Substring(0, 16) .ToLower() Where do the line breaks go? The longer question, and the one that is entirely a matter of style. Everything from here on is about where a chain breaks when it does not fit. The fit question Fantomas re-types your file rather than editing it, as Design decisions sets out. Most of that re-typing is mechanical. The one real choice a chain presents is where to put the line breaks, and it comes down to a single question: Does this fit within the max line length? If the answer is yes, it stays on one line and there is nothing more to decide. Everything below is about what happens when the answer is no. One thing overrides the fit question: trivia the user wrote between the steps. A trailing comment on the starting value, or an #if directive in front of a step, pins that step to its own line no matter how much room is left. // βœ… at a max line length of 80 this fits on one line, and is still broken up config // note .Settings.GetValue(theKeyName) Two kinds of step Once Fantomas has to break a chain, it sorts the steps into two weights. Navigation is a step that just gets you somewhere: .Name // a plain member .[0] // a short index .Cast // short type arguments Action is a step where something happens, meaning a call: .Foo(x) .Bar() .Cast() // a generic call is still a call A call is always an action, no matter how short it is. Type arguments make no difference to this: what makes .Cast() an action is the (), not the . That is the one pair worth keeping straight: .Cast // navigation, this only names something .Cast() // action, this calls something Working through a chain Before the rules are stated one by one, here is the whole process applied to a single chain, at a max line length of 60. Everything after this section is the detail behind one of these five steps. // β›” the chain as written: 95 characters against a margin of 60 builder.Connect(hostName).Configuration.Database.PrimaryConnection.Settings.Apply(spec).Build() // --- max_line_length ------------------------------------| Step 1. Does it fit? No: 95 characters against a margin of 60. Had it fitted, that would have been the end of it and no rule below would ever have been consulted. Step 2. Label every part. The starting value, then each step as either navigation or an action: builder starting value .Connect(hostName) action it calls something .Configuration navigation it only names something .Database navigation .PrimaryConnection navigation .Settings navigation .Apply(spec) action .Build() action Step 3. Count the actions to pick a layout. There are three, so this is a pipeline and every action gets a line of its own, led by its dot. Only a chain with exactly one action, as its last step, after a plain starting value, is kept together instead. Step 4. Let the navigation ride. Navigation never claims a line of its own. Each step rides at the front of the line belonging to the action it introduces, so the four navigation steps join .Apply(spec): // β›” not finished: the third line is 66 characters builder .Connect(hostName) .Configuration.Database.PrimaryConnection.Settings.Apply(spec) .Build() // --- max_line_length ------------------------------------| Step 5. Is any line still too long? The third one is. Its run of navigation wraps, balanced so that the longest line comes out as short as possible, and wrapped one step earlier than strictly necessary so that .Apply(spec) is not forced to break its argument: // βœ… the finished layout builder .Connect(hostName) .Configuration.Database .PrimaryConnection.Settings.Apply(spec) .Build() // --- max_line_length ------------------------------------| Those five steps are the whole algorithm. To apply it to a chain of your own: check the width, label the parts, count the actions, let the navigation ride, then wrap any line that is still too long. Steps 1 to 3: the rule for line breaks The rule behind the first three steps: graph TD A{"Does the whole chain fit on one line?"} A -->|Yes| B["Leave it on one line"] A -->|No| C{"Does it read as a single call:\na plain starting value, navigation,\nand one call as its last step?"} C -->|Yes| K["Keep the chain together,\nand hand the argument over"] C -->|No| P["Pipeline: give each action its own line, led by its dot"] Two questions, and only two outcomes. The second one packs three conditions, taken one at a time below, and a "no" to any of them lands in the pipeline. In one sentence: A plain value.Method(args) hands its argument to the ordinary rules, like any other call. As soon as there are two or more calls, the chain is a pipeline and each call gets its own line. Step 1 is the first question, and for most chains it is also the last. At a max line length of 50: // βœ… 32 characters, so nothing moves config.Settings.GetValue(theKey) Every example from here to the end of the page is a chain that did not fit, so this question is answered "no" from now on. Step 3 is the second question, and of its three conditions the first is the interesting one. The other two are guards, and each is worth a sentence. The starting value must be a plain value. Lengthen the argument until the chain runs past the margin: // β›” 65 characters at a margin of 50 config.Settings.GetValue(theConfigurationKeyNameThatIsRatherLong) // --- max_line_length --------------------------| A bare identifier or dotted path qualifies as a plain starting value, so this chain is kept together and only the argument moves: // βœ… a plain starting value: the chain is kept together config.Settings.GetValue( theConfigurationKeyNameThatIsRatherLong ) // --- max_line_length --------------------------| A call, a parenthesised expression or a generic name does not qualify. Doing the same thing to one of those would be the obvious move, since such a chain still has just one action and that action is still last: // β›” the starting value is a call, glued to the navigation behind it getConfiguration().Settings.GetValue( theConfigurationKeyNameThatIsRatherLong ) Fantomas leads a pipeline instead: // βœ… the starting value gets the opening line getConfiguration() .Settings.GetValue( theConfigurationKeyNameThatIsRatherLong ) The two inputs differ only in their starting value. A compound one is already doing something, so it earns the opening line rather than serving as a prefix to the navigation behind it. One compound starting value is exempt: a parenthesised expression whose only step is an index, with no call after it. Indexing a parenthesised value reads as a plain access rather than a pipeline, so the index rides tight onto the closing paren: // βœ… at a max line length of 30, the index stays welded to the `)` let x = (someVeryLongExpression + otherLongThing).[0] Everything up to the method name must fit on one line. When it does not, or when a comment falls between the steps, there is nothing left to keep together and the pipeline takes over: // βœ… the comment splits the steps, so there is nothing to keep together config.Settings // the primary one .GetValue(theKeyName) With one exception: when the method name alone would still overflow on a line of its own, moving it down gains nothing, so the chain stays together and the arguments wrap anyway. // βœ… at a max line length of 40, `.AVeryVery...` overflows wherever you put it config.AVeryVeryLongMethodNameThatIsCertainlyTooLong( arg ) That second guard is also why step 5, wrapping a long run of navigation, never applies to this branch: a chain is only kept together when its navigation already fits on one line, and in the escape-hatch case the overflow is the method name, which wrapping the navigation would not fix either. Step 4: navigation rides along Navigation is never worth a line of its own. It rides at the front of the line belonging to the action it introduces. At a max line length of 60: // β›” 68 characters, so step 3 has already made this a pipeline connection.Open(settings).Response.Headers.Add(key, value).Dispose() // --- max_line_length ------------------------------------| There are three actions, so each of them takes a line. The two navigation steps in the middle, .Response and .Headers, do not: // βœ… .Response.Headers rides in front of the call it introduces connection .Open(settings) .Response.Headers.Add(key, value) .Dispose() // --- max_line_length ------------------------------------| Handing them lines of their own would make the chain half as long again while saying nothing more, since neither of them does anything: // β›” a line for every step, including the ones that only name something connection .Open(settings) .Response .Headers .Add(key, value) .Dispose() Riding along only works while the navigation itself stays on one line. If an index (or a set of type arguments) has to break across several lines, it can no longer be a passenger, and the question above then counts it as an action: it claims a line of its own, and the chain around it becomes a pipeline. It is still navigation in what it does; it has simply grown too big to ride along. Step 5: when a line is still too long Steps 3 and 4 decide which steps share a line. They leave one question open, because navigation accumulates: a line they hand you can itself be too long. So the fit question from step 1 comes round a second time, now asked of a line the rules have just produced rather than of the chain as a whole. Here is a chain that runs into it, at a max line length of 100: // β›” 118 characters, well past the margin, so a break has to go somewhere getConfiguration().Configuration.Database.PrimaryConnection.Settings.Timeouts.IdleTimeout.Duration.Total.Seconds.Value The rule above will not place that break. getConfiguration() is the starting value, every step after it is navigation, and there is no action anywhere to lead a second line. The obvious answer is to fill greedily, packing each line up to the margin before starting a new one. That is what a text editor does to a paragraph: // β›” greedy: one line packed to the margin, then a stub getConfiguration() .Configuration.Database.PrimaryConnection.Settings.Timeouts.IdleTimeout.Duration.Total.Seconds .Value Ninety-four characters, and then .Value on its own. Fantomas instead chooses the wrap that makes the longest resulting line as short as possible: // βœ… balanced: fifty characters on each line getConfiguration() .Configuration.Database.PrimaryConnection.Settings .Timeouts.IdleTimeout.Duration.Total.Seconds.Value When two wraps tie, the longer first line wins. The reason to prefer the second is that neither break point means anything. A run of navigation has no internal structure that makes one dot a better stopping place than another, unlike the boundary between two actions, which is a real seam in what the code does. When the choice is arbitrary the only thing left to weigh is how easy the result is to read, and two comparable lines are easier to scan than a full one followed by a remnant. The starting value never sits alone A run of navigation often begins on the same line as the starting value, which is defineCombinationValue in the example below. That value is not a step, so a line holding it and nothing else has nothing on it to balance: it is a wasted line rather than a short one. Whenever there is room beside it for the first step, it keeps that step, and the rest of the run is balanced from there. // β›” balancing on its own: the shortest longest line, but the starting value is stranded defineCombinationValue .Value.IsEmpty // βœ… the starting value keeps a step defineCombinationValue.Value .IsEmpty With only two steps to place, no split avoids a short line, and stranding the starting value costs more than a short last line does. This matters much less as a run grows: once there are several steps, the first line is full anyway and the rule never comes up. The wrap makes room for the arguments When a wrapped line ends in a call, there are two ways to find the width it needs: move some navigation down, or let the argument break. Balancing on width alone would take the second. The navigation stops just short of the margin, which leaves the arguments nowhere to go: // β›” the navigation fills its line and pushes the argument below getConfiguration() .Configuration.Database.PrimaryConnection.Settings.Timeouts.GetValue( keyName ) Moving navigation is the cheaper of the two, so Fantomas wraps one step earlier than it strictly had to, which keeps keyName beside the method that takes it: // βœ… the navigation gives way and the call stays whole getConfiguration() .Configuration.Database.PrimaryConnection .Settings.Timeouts.GetValue(keyName) The same holds mid-pipeline, where it is an intermediate call that stays intact: // βœ… `spec` is never pushed onto a line of its own builder .Connect(hostName) .Configuration.Database .PrimaryConnection.Settings.Apply(spec) .Build() When no wrap can hold the whole call, because the argument is too wide however the navigation is arranged, the chain stops trying and hands the argument over, which breaks it as it normally would, or moves it down a line if that is what its own rules ask for. None of this contradicts Arguments are not the chain's business below. The chain still never decides how the arguments are laid out; it only prefers, among its own wrap points, one that leaves the call intact. And a call that has left the starting value's line already has a line of its own, so there is nothing for the navigation to make room for: Microsoft.FSharp.Reflection.FSharpType .GetUnionCases(typeof>>.GetGenericTypeDefinition().MakeGenericType(t)) .Assembly Balancing never crosses an action Only a run of consecutive navigation steps is balanced. Widths alone would suggest pulling the first call up onto the starting value's line, since that evens the lines out nicely: // β›” balanced on width, but the seam between the two calls is gone serviceCollection.AddSingleton(systemClock) .AddOptions(configureOptions) Fantomas will not do that. An action always starts its own line, and that is a decision about what the code does rather than about width, so nothing in this section can move it: // βœ… one action per line, placed by the rule above serviceCollection .AddSingleton(systemClock) .AddOptions(configureOptions) The boundary between two actions is a real seam in the code. The dots inside a run of navigation are not, which is exactly why balancing is free to move those and not these. Examples The examples below assume a narrower max line length than the default, so the breaks are visible on this page. One call at the end: the arguments break config.GetConnectionString( "primary-database-readonly-replica-connection-string" ) There is a single action and it is the last step, so config.GetConnectionString( stays together and only the argument moves. This is exactly how an ordinary call breaks. Having a starting value in front of it changes nothing. Navigation in front of a single call: still just the arguments response.Content.Headers.GetValues( "Content-Type-And-Transfer-Encoding-Header" ) .Content and .Headers are navigation, so there is still only one action. The chain is not a pipeline and the navigation stays with the starting value. Two or more calls: a pipeline serviceCollection .AddSingleton(systemClock) .AddOptions(configureOptions) Two actions, so each one gets its own line led by its dot. Navigation between calls rides along document.Body.FirstChild .AppendChild(newNode) .ParentElement.RemoveChild(oldNode) .Body and .FirstChild lead the first line. .ParentElement is navigation introducing .RemoveChild(oldNode), so it rides at the front of that line instead of claiming one of its own. An index too big to ride along lookupTable.[0].AppendEntry( newEntryForTheBucket ) A short index is navigation, so there is a single action at the end and only its arguments break. Grow the index until it needs several lines of its own and it can no longer ride along: lookupTable .[computeBucketIndex hashOfTheKeyValue tableSizeInBuckets] .AppendEntry(newEntry) Nothing about the index started executing. It just stopped fitting on someone else's line. A chain that ends in navigation There is only one call here, but it is not the last step. Breaking just its arguments would leave the navigation stranded after the closing ): // β›” `.Entries.[indexWithinTheBucket]` is left dangling off the `)` lookupTable.GetBucketForHash( hashOfTheKeyValue ).Entries.[indexWithinTheBucket] So the pipeline layout is used instead: // βœ… every step is reachable by reading down the dots lookupTable .GetBucketForHash(hashOfTheKeyValue) .Entries.[indexWithinTheBucket] A chain with no calls at all this.Configuration.Database.PrimaryConnection .Settings.IdleTimeoutInSeconds There are no actions to lead any lines, so the whole chain is one long line of navigation and it is wrapped by the rule in step 5. A starting value that is itself a call getConfiguredServiceBuilder() .AddLogging(loggingOptions) .Build() The opening call stays glued to its () and acts as the starting value. It has to stay glued: a space there would change what the code means. This one is a pipeline on the strength of its two calls alone, but a starting value of this shape leads a pipeline even with a single call, as noted in the rule above. Arguments are not the chain's business It is worth stating the boundary explicitly, because it is what keeps the rules above so short: The chain rules decide where lines break between steps. The argument owns everything from its ( onwards, including whether that ( starts a line of its own. An argument is laid out by the ordinary rules for call arguments, exactly as it would be if the call had no starting value in front of it. A chain never overrides them. That is the same idea as "hand the argument over" in the rule above: at that point Fantomas stops making chain decisions and hands the argument to the normal machinery. The boundary is drawn there, rather than at the (, because moving the argument is one of the answers those rules can give, shown under Any part of a chain can grow below. Only a terminal call can be moved that way, for the reason given under An intermediate call is welded to its parenthesis. An earlier call keeps its ( where it is, so its argument breaks after the parenthesis instead. The practical consequence is that every setting that governs argument layout keeps working unchanged inside a chain. The one you are most likely to notice is fsharp_multi_line_lambda_closing_newline, which decides where the closing ) lands when a lambda argument needs several lines. With the default (false), the ) trails the last line of the lambda: storage.SetConfigurationSettingPublisher(fun configName publisher -> publish configName publisher) With true, it drops to its own line: storage.SetConfigurationSettingPublisher(fun configName publisher -> publish configName publisher ) Because the setting belongs to the argument and not to the chain, it is honoured wherever the call sits. Above it was the single trailing call. Here it is three calls inside a pipeline, with the same true setting: builder .FirstThing(fun lambda -> processFirst lambda ) .SecondThing(fun next -> processSecond next ) .ThirdThing() .Result For the same reason, each call decides independently whether it needs several lines. A long call does not drag the short ones open: repo .Where(fun customer -> customer.IsActive && customer.Region = targetRegion) .Select(projector) .ToList() Any part of a chain can grow The rules above are stated with short steps, but any part of a chain can turn out to be an expression that needs several lines of its own. Where that happens is what decides the consequence, and each case is already covered above: the starting value, when it is a call or a parenthesised expression, leads a pipeline rather than serving as a prefix, see Steps 1 to 3; an index or a set of type arguments stops being able to ride along, claims a line of its own and turns the chain into a pipeline, see Step 4; a run of navigation that overflows wraps, balanced, see Step 5; the final argument is the one the chain has no say over, and it has two answers of its own. Those two answers are worth seeing side by side. All three examples are at a max line length of 70. A lambda is the case where the argument moves. Its opener, everything up to the arrow, no longer fits beside the method name, so the whole argument takes the line below and the ( goes with it: // βœ… the opener does not fit, so the argument moves down let publishSettings () = storage.SetConfigurationSettingPublisher (fun configName publisher -> publish configName publisher) Grow the body and the lambda breaks further, but nothing about the chain changes: the argument was already handed over, and this is the argument's business: // βœ… the same layout, with the body broken by the ordinary rules let publishAndReport () = storage.SetConfigurationSettingPublisher (fun configName publisher -> publishTheConfigurationValue configName publisher andThenSomethingElse) Every other argument shape keeps the parenthesis where it is and breaks between the parentheses instead. A tuple, a record and a long expression all behave this way: // βœ… the parenthesis stays with the method name, the argument breaks inside it let connectionString () = config.GetConnectionString( primaryReadOnlyReplicaName, theFallbackConnectionValue ) The difference is not the chain choosing between them. It is the same deference twice: a lambda opener wants to sit on one line with its arrow, and a tuple does not care, so the ordinary argument rules answer differently. Only the last call may move its parenthesis Moving the argument down is the one answer the ordinary rules can give that the chain does get a say over, and the answer is that only the last call may take it, for the reason set out under An intermediate call is welded to its parenthesis. A line break is the same gap there as a space. Worth knowing what the two mistakes look like, because only one of them is loud. With a call behind it, .Create(), the compiler rejects the result with "This argument expression needs parentheses". With a plain member behind it, .Value, nothing warns at all: the code reparses quietly and the member becomes part of the argument. So an intermediate call keeps its ( welded to the member name and breaks behind it instead. The closing ) still answers to fsharp_multi_line_lambda_closing_newline, exactly as it does when the argument moves: // βœ… a step follows, so the parenthesis cannot move let register () = Mock() .Calls( fun (path: StepPath) (key: WellKnownStepMetadata) (value: string) -> metadata.Add(key, value)) .Create() Hanging the parameters under (fun would keep the ( in place too, and the F# style guide rules that out, because the column they hang from is the length of the member name. The shape the guide asks for when a lambda's parameters do not fit, one indent below fun, is not available here: below a ( that sits mid-line it breaks the offside rule. The two shapes read as an inconsistency, and it is worth being clear about what divides them. It is not fluent code against ordinary code. A last call is reached the same way whether the chain is Mock().Create().Calls or plain List.tryPick, and the style guide asks for the moved parenthesis there: // βœ”οΈ the F# style guide, under Formatting lambda expressions let printListWithOffset a list1 = List.iter (fun elem -> printfn $"A very long line to format the value: %d{a + elem}") list1 What divides them is whether anything to the right consumes the call's result. Where nothing does, the call is an ordinary application and is laid out like one. Where something does, it is not an ordinary application, and the parser reads the gap as handing that step to the argument. So the same call really is laid out two ways, and adding a step behind it reshapes it, but the difference is one the compiler enforces rather than one chosen here. Match lambdas are no exception Match lambdas, written (function, are the argument shape most likely to look like an exception, so it is worth showing in full that they are not one. The F# style guide asks for them to be treated the same as fun lambdas ("Treat match lambda's in a similar fashion"), and they are: where the call sits in its chain makes no difference to either form. Here are both lambda forms, in both positions, under the default settings: // βœ… fun, mid-pipeline builder .Configure(fun v -> handleSomeValue v |> andThenSomethingElse v) .Build() .Result // βœ… fun, last step builder .Build() .Configure(fun v -> handleSomeValue v |> andThenSomethingElse v) // βœ… function, mid-pipeline builder .Configure(function | Some v -> handleSome v | None -> handleNone ()) .Build() .Result // βœ… function, last step builder .Build() .Configure(function | Some v -> handleSome v | None -> handleNone ()) Read down the column: each form keeps its shape when the call moves. Read across the pair: both forms keep the opener attached to the (. Now the same four with multi_line_lambda_closing_newline set to true: // βœ… fun, mid-pipeline builder .Configure(fun v -> handleSomeValue v |> andThenSomethingElse v ) .Build() .Result // βœ… fun, last step builder .Build() .Configure(fun v -> handleSomeValue v |> andThenSomethingElse v ) // βœ… function, mid-pipeline builder .Configure( function | Some v -> handleSome v | None -> handleNone () ) .Build() .Result // βœ… function, last step builder .Build() .Configure( function | Some v -> handleSome v | None -> handleNone () ) Position still makes no difference. What the setting changes is the closing ), which now takes a line of its own in all four. The one difference left between the two forms is that function also moves down off the (, while (fun v -> stays put. That is not about the chain either: a fun lambda's parameters have to stay with their arrow, so there is nothing to move, whereas function takes no parameters and can. The setting simply has a visible effect on the opener as well as on the closing ) for that one argument shape. The setting is the only thing that moves it. Writing function on the line below the ( yourself makes no difference: the same call written across more lines is still the same call, and Fantomas has to land on one answer for both. In none of these does the chain have a say. .Configure is an intermediate call in half of them, so its ( is welded to it either way; where the lambda goes is the argument's business, and it answers the same way in both positions. That holds because every opener above fits beside its method name. Once one does not, position is the one thing that does decide, since moving the argument down is an answer only the last call can take; see Only the last call may move its parenthesis. A comment beside the parentheses A comment can sit on either side of a call's opening parenthesis, and which side it is on decides what moves. In front of the argument, the comment is written after the (. The parenthesis has no reason to leave the method name, so it stays where it is and only the argument moves down: // βœ… the comment is inside the parentheses, so only the argument moves builder.UseUrls( // the public endpoint url ) In front of the parenthesis, the comment is written before the ( and ends its line. The parenthesis can no longer follow the method name, so the whole call moves down instead: // βœ… the comment is between the method name and the `(`, so the call moves builder.UseUrls // pick the endpoint (url) The first of these happens wherever the call sits in the chain. The second can only ever happen to the last call, since an earlier one is welded to its parenthesis and a comment is the same gap as a space. Which side the comment is on is the whole of it. How the call was spread over lines in the source has no say, and in both layouts the argument is laid out by the ordinary rules, exactly as the rest of this section promises. ## API Reference ### [Fantomas](https://fsprojects.github.io/fantomas/reference/fantomas.html) EditorConfig Suggestion ### [Fantomas.Client](https://fsprojects.github.io/fantomas/reference/fantomas-client.html) Contracts FantomasToolLocator LSPFantomasService LSPFantomasServiceTypes ### [Fantomas.Core](https://fsprojects.github.io/fantomas/reference/fantomas-core.html) Async Continuation List Queue RangeHelpers RangePatterns String SyntaxOak UnionCase CodeFormatter DefineParseException EndOfLineStyle EventList EventNode FormatConfig FormatException FormatResult InvariantViolationException MultilineBracketStyle MultilineFormatterType Num ParseException Queue<'T> ValidationResult WriterEvent ### [Fantomas.FCS](https://fsprojects.github.io/fantomas/reference/fantomas-fcs.html) Parse Cancellable ### [Fantomas.FCS.AbstractIL](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil.html) IL ### [Fantomas.FCS.Caches](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-caches.html) CacheMetrics ### [Fantomas.FCS.Diagnostics](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics.html) ActivityNames FSharpDiagnosticOptions FSharpDiagnosticSeverity ### [Fantomas.FCS.IO](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io.html) FileSystemAutoOpens StreamExtensions ByteMemory DefaultAssemblyLoader DefaultFileSystem IAssemblyLoader IFileSystem ### [Fantomas.FCS.Syntax](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax.html) PrettyNaming SynLongIdentHelpers BlockSeparator DebugPointAtBinding DebugPointAtFinally DebugPointAtFor DebugPointAtInOrTo DebugPointAtLeafExpr DebugPointAtSequential DebugPointAtTarget DebugPointAtTry DebugPointAtWhile DebugPointAtWith ExprAtomicFlag Ident LongIdent NamePatPairField ParsedHashDirective ParsedHashDirectiveArgument ParsedImplFile ParsedImplFileFragment ParsedImplFileInput ParsedInput ParsedScriptInteraction ParsedSigFile ParsedSigFileFragment ParsedSigFileInput ParserDetail QualifiedNameOfFile RecordBinding RecordFieldName SeqExprOnly SynAccess SynArgInfo SynArgPats SynAttribute SynAttributeList SynAttributes SynBinding SynBindingKind SynBindingReturnInfo SynByteStringKind SynComponentInfo SynConst SynEnumCase SynExceptionDefn SynExceptionDefnRepr SynExceptionSig SynExpr SynExprAnonRecordField SynExprAnonRecordFieldOrSpread SynExprRecordField SynExprRecordFieldOrSpread SynExprSpread SynField SynFieldOrSpread SynIdent SynInterfaceImpl SynInterpolatedStringPart SynInterpolationFormatting SynLetOrUse SynLongIdent SynMatchClause SynMeasure SynMemberDefn SynMemberDefns SynMemberFlags SynMemberKind SynMemberSig SynModuleDecl SynModuleOrNamespace SynModuleOrNamespaceKind SynModuleOrNamespaceSig SynModuleSigDecl SynOpenDeclTarget SynPat SynRationalConst SynReturnInfo SynSimplePat SynSimplePatAlternativeIdInfo SynSimplePats SynStaticOptimizationConstraint SynStringKind SynTupleTypeSegment SynTypar SynTyparDecl SynTyparDecls SynType SynTypeConstraint SynTypeDefn SynTypeDefnKind SynTypeDefnRepr SynTypeDefnSig SynTypeDefnSigRepr SynTypeDefnSimpleRepr SynTypeSpread SynUnionCase SynUnionCaseKind SynValData SynValInfo SynValSig SynValSigAccess SynValTyparDecls TyparStaticReq ### [Fantomas.FCS.SyntaxTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia.html) CommentTrivia ConditionalDirectiveTrivia GetSetKeywords IdentTrivia IfDirectiveExpression ParsedInputTrivia SynArgPatsNamePatPairsTrivia SynBindingReturnInfoTrivia SynBindingTrivia SynEnumCaseTrivia SynExceptionDefnReprTrivia SynExprAnonRecdTrivia SynExprDoBangTrivia SynExprDotLambdaTrivia SynExprIfThenElseTrivia SynExprLambdaTrivia SynExprMatchBangTrivia SynExprMatchTrivia SynExprSequentialTrivia SynExprTryFinallyTrivia SynExprTryWithTrivia SynExprYieldOrReturnFromTrivia SynExprYieldOrReturnTrivia SynFieldTrivia SynLeadingKeyword SynLetOrUseTrivia SynMatchClauseTrivia SynMeasureConstantTrivia SynMemberDefnAbstractSlotTrivia SynMemberDefnAutoPropertyTrivia SynMemberDefnImplicitCtorTrivia SynMemberDefnInheritTrivia SynMemberDefnLetBindingsTrivia SynMemberGetSetTrivia SynMemberSigMemberTrivia SynModuleDeclLetTrivia SynModuleDeclNestedModuleTrivia SynModuleOrNamespaceLeadingKeyword SynModuleOrNamespaceSigTrivia SynModuleOrNamespaceTrivia SynModuleSigDeclNestedModuleTrivia SynPatListConsTrivia SynPatOrTrivia SynTyparDeclTrivia SynTypeConstraintWhereTyparNotSupportsNullTrivia SynTypeDefnLeadingKeyword SynTypeDefnSigTrivia SynTypeDefnTrivia SynTypeFunTrivia SynTypeOrTrivia SynTypeWithNullTrivia SynUnionCaseTrivia SynValSigTrivia WarnDirectiveTrivia ### [Fantomas.FCS.Text](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text.html) Line Position Range SourceText SourceTextNew TaggedText ISourceText ISourceTextNew Line0 Position Position01 Range Range01 RichText TaggedText TextTag pos range ### [Fantomas.FCS.Xml](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml.html) PreXmlDoc XmlDoc ### [Internal.Utilities.Library](https://fsprojects.github.io/fantomas/reference/internal-utilities-library.html) InterruptibleLazy DelayInitArrayMap<'T, 'TDictKey, 'TDictValue> InterruptibleLazy<'T> ### [EditorConfig](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html) EditorConfig EditorConfig.Reflection Reflection EditorConfig.EditorConfigProblem EditorConfigProblem EditorConfig.toEditorConfigName toEditorConfigName EditorConfig.supportedSettings supportedSettings EditorConfig.isFantomasSetting isFantomasSetting EditorConfig.isSpecDefinedNonValue isSpecDefinedNonValue EditorConfig.nearestSetting nearestSetting EditorConfig.parseOptionsFromEditorConfig parseOptionsFromEditorConfig EditorConfig.settingValues settingValues EditorConfig.configToEditorConfig configToEditorConfig ### [EditorConfig.toEditorConfigName](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#toEditorConfigName) EditorConfig.toEditorConfigName toEditorConfigName ### [EditorConfig.supportedSettings](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#supportedSettings) EditorConfig.supportedSettings supportedSettings Every .editorconfig setting this build of Fantomas understands, in the order they are worth reading: the settings editorconfig itself defines first, then the ones belonging to Fantomas, each group ordered without regard to case. The former keep their upstream names and are not prefixed, the latter all carry the `fsharp_` prefix. ### [EditorConfig.isFantomasSetting](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#isFantomasSetting) EditorConfig.isFantomasSetting isFantomasSetting Whether a setting belongs to Fantomas rather than to editorconfig itself or to another tool. Matched without regard to case, as editorconfig matches keys. ### [EditorConfig.isSpecDefinedNonValue](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#isSpecDefinedNonValue) EditorConfig.isSpecDefinedNonValue isSpecDefinedNonValue Whether a value is one the editorconfig spec gives a meaning that is not a value. `unset` says a setting from a parent file no longer applies, `indent_size = tab` says to follow `tab_width`, and `max_line_length = off` says there is no limit. Fantomas keeps its default for them without reporting a problem: they are not mistakes, and the library derives `indent_size = tab` on its own from `indent_style = tab`, so reporting them blames an author for something they never wrote. The setting and the value are both matched without regard to case, as editorconfig matches them. Only these exact values are excused. Anything else, `indent_size = banana` included, is a mistake and is reported like any other. ### [EditorConfig.nearestSetting](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#nearestSetting) EditorConfig.nearestSetting nearestSetting The supported setting closest to `setting`, when one is within `limit` edits of it. Two candidates the same distance away are separated by the order of `supportedSettings`. ### [EditorConfig.parseOptionsFromEditorConfig](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#parseOptionsFromEditorConfig) EditorConfig.parseOptionsFromEditorConfig parseOptionsFromEditorConfig Read a `FormatConfig` from editorconfig properties, falling back to `fallbackConfig` for anything the properties do not set. Keys and values are both matched without regard to case, as editorconfig defines them, and when two keys fold onto one the last wins. Returns the settings it could not act on alongside the configuration, each named the way it was written, so the caller can decide whether and how to report them. ### [EditorConfig.settingValues](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#settingValues) EditorConfig.settingValues settingValues Every setting of a configuration, under the name it is written with and with its value spelled the way an `.editorconfig` would carry it, in record field order. ### [EditorConfig.configToEditorConfig](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig.html#configToEditorConfig) EditorConfig.configToEditorConfig configToEditorConfig ### [Reflection](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection.html) Reflection Reflection.FSharpRecordField FSharpRecordField Reflection.getRecordFields getRecordFields ### [Reflection.getRecordFields](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection.html#getRecordFields) Reflection.getRecordFields getRecordFields ### [FSharpRecordField](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection-fsharprecordfield.html) FSharpRecordField FSharpRecordField.PropertyName PropertyName FSharpRecordField.Category Category FSharpRecordField.DisplayName DisplayName FSharpRecordField.Description Description ### [FSharpRecordField.PropertyName](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection-fsharprecordfield.html#PropertyName) FSharpRecordField.PropertyName PropertyName ### [FSharpRecordField.Category](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection-fsharprecordfield.html#Category) FSharpRecordField.Category Category ### [FSharpRecordField.DisplayName](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection-fsharprecordfield.html#DisplayName) FSharpRecordField.DisplayName DisplayName ### [FSharpRecordField.Description](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-reflection-fsharprecordfield.html#Description) FSharpRecordField.Description Description ### [EditorConfigProblem](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-editorconfigproblem.html) EditorConfigProblem A setting in an `.editorconfig` that Fantomas read but could not act on. EditorConfigProblem.UnknownSetting UnknownSetting EditorConfigProblem.UnrecognizedValue UnrecognizedValue ### [EditorConfigProblem.UnknownSetting](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-editorconfigproblem.html#UnknownSetting) EditorConfigProblem.UnknownSetting UnknownSetting A setting carrying the `fsharp_` prefix that this version of Fantomas does not have. ### [EditorConfigProblem.UnrecognizedValue](https://fsprojects.github.io/fantomas/reference/fantomas-editorconfig-editorconfigproblem.html#UnrecognizedValue) EditorConfigProblem.UnrecognizedValue UnrecognizedValue A setting Fantomas has, carrying a value it cannot parse. The default is used instead. ### [Suggestion](https://fsprojects.github.io/fantomas/reference/fantomas-suggestion.html) Suggestion Suggestion.editDistance editDistance Suggestion.nearest nearest ### [Suggestion.editDistance](https://fsprojects.github.io/fantomas/reference/fantomas-suggestion.html#editDistance) Suggestion.editDistance editDistance How many single character edits turn one string into the other, stopping once the answer is known to be above `limit`. ### [Suggestion.nearest](https://fsprojects.github.io/fantomas/reference/fantomas-suggestion.html#nearest) Suggestion.nearest nearest The candidate closest to `term`, when one is within `limit` edits of it, and `None` when the nearest is far enough away that naming it would be a guess rather than help. Two candidates the same distance away are separated by the order of `candidates`, since `List.sortBy` is stable. ### [Contracts](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts.html) Contracts Contracts.Methods Methods Contracts.ConfigurationProblem ConfigurationProblem Contracts.ConfigurationProblemCode ConfigurationProblemCode Contracts.ConfigurationProblemSource ConfigurationProblemSource Contracts.ConfigurationWarning ConfigurationWarning Contracts.FantomasResponse FantomasResponse Contracts.FantomasService FantomasService Contracts.FormatCursorPosition FormatCursorPosition Contracts.FormatDocumentRequest FormatDocumentRequest Contracts.FormatSelectionRange FormatSelectionRange Contracts.FormatSelectionRequest FormatSelectionRequest ### [Methods](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-methods.html) Methods Methods.Version Version Methods.FormatDocument FormatDocument Methods.FormatSelection FormatSelection Methods.Configuration Configuration Methods.ConfigurationWarning ConfigurationWarning ### [Methods.Version](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-methods.html#Version) Methods.Version Version ### [Methods.FormatDocument](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-methods.html#FormatDocument) Methods.FormatDocument FormatDocument ### [Methods.FormatSelection](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-methods.html#FormatSelection) Methods.FormatSelection FormatSelection ### [Methods.Configuration](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-methods.html#Configuration) Methods.Configuration Configuration ### [Methods.ConfigurationWarning](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-methods.html#ConfigurationWarning) Methods.ConfigurationWarning ConfigurationWarning Sent by the daemon to the client for every format request, before the request answers, naming the settings in the resolved configuration that Fantomas could not act on. Purely informational: the request still succeeds, using defaults for whatever could not be read. The notification carries one `ConfigurationWarning`, serialized as it is written here except for `Version`, which the daemon does not send: `{"FilePath": "...", "EditorConfigFiles": ["..."], "Problems": [{"Code": 1, "Source": 1, "Setting": "fsharp_bogus_option", "Value": null}]}`. ### [ConfigurationProblem](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblem.html) ConfigurationProblem ConfigurationProblem.Code Code ConfigurationProblem.Source Source ConfigurationProblem.Setting Setting ConfigurationProblem.Value Value ### [ConfigurationProblem.Code](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblem.html#Code) ConfigurationProblem.Code Code One of `ConfigurationProblemCode`. ### [ConfigurationProblem.Source](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblem.html#Source) ConfigurationProblem.Source Source One of `ConfigurationProblemSource`. ### [ConfigurationProblem.Setting](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblem.html#Setting) ConfigurationProblem.Setting Setting The editorconfig name of the setting, such as `fsharp_multiline_bracket_style`. A setting name, never a path. ### [ConfigurationProblem.Value](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblem.html#Value) ConfigurationProblem.Value Value The value that could not be parsed, exactly as it was written in the configuration. Null when `Code` is `UnknownSetting`, because then no value was ever read. A plain string rather than an option: an F# option travels as `{"Case":"Some","Fields":[...]}` and disappears entirely when it is `None`, which is not something a client written in another language should have to know about. Use `Option.ofObj` from F#. ### [ConfigurationProblemCode](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblemcode.html) ConfigurationProblemCode Why a setting in the resolved configuration could not be acted on. Carried as an int rather than a union so it survives the wire. ConfigurationProblemCode.UnknownSetting UnknownSetting ConfigurationProblemCode.UnrecognizedValue UnrecognizedValue ### [ConfigurationProblemCode.UnknownSetting](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblemcode.html#UnknownSetting) ConfigurationProblemCode.UnknownSetting UnknownSetting A setting carrying the `fsharp_` prefix that this version of Fantomas does not have. ### [ConfigurationProblemCode.UnrecognizedValue](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblemcode.html#UnrecognizedValue) ConfigurationProblemCode.UnrecognizedValue UnrecognizedValue A setting Fantomas has, carrying a value it cannot parse. The default was used instead. Only ever reported for a `fsharp_` setting: the four editorconfig defines itself are shared with other tools, and the spec gives them values Fantomas has no use for. ### [ConfigurationProblemSource](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblemsource.html) ConfigurationProblemSource Where a problematic setting was read from. ConfigurationProblemSource.EditorConfig EditorConfig ConfigurationProblemSource.Request Request ### [ConfigurationProblemSource.EditorConfig](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblemsource.html#EditorConfig) ConfigurationProblemSource.EditorConfig EditorConfig One of the `.editorconfig` files listed in `ConfigurationWarning.EditorConfigFiles`. ### [ConfigurationProblemSource.Request](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationproblemsource.html#Request) ConfigurationProblemSource.Request Request The `Config` dictionary the client sent with the request. ### [ConfigurationWarning](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationwarning.html) ConfigurationWarning ConfigurationWarning.Version Version ConfigurationWarning.FilePath FilePath ConfigurationWarning.EditorConfigFiles EditorConfigFiles ConfigurationWarning.Problems Problems ### [ConfigurationWarning.Version](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationwarning.html#Version) ConfigurationWarning.Version Version The Fantomas that raised this, in the shape `dotnet tool list` writes: no `Fantomas` in front, no leading `v`, no `+` on the end, such as `8.0.0-alpha-022`. Ready to put in front of a user, which is the one thing this is here for. Filled in by `Fantomas.Client` from the daemon that raised the warning, rather than sent by the daemon: that is what lets it name every Fantomas 8 daemon there already is rather than only the ones released after this. Talking to a daemon yourself, this arrives as `null` and you already know which version you started. ### [ConfigurationWarning.FilePath](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationwarning.html#FilePath) ConfigurationWarning.FilePath FilePath The file that was being formatted, echoed back from the request unchanged. Absolute, because `Fantomas.Client` rejects a relative path before sending the request. ### [ConfigurationWarning.EditorConfigFiles](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationwarning.html#EditorConfigFiles) ConfigurationWarning.EditorConfigFiles EditorConfigFiles Absolute paths of the `.editorconfig` files that contributed to the configuration. Empty when `Problems` is empty, and when no `.editorconfig` applies to `FilePath`: it is the same list on every request for a file, and there is nothing to do with it while nothing is wrong. Which of these a given problem came from is not knowable, and deliberately not guessed at: editorconfig merges the whole chain into one set of properties before Fantomas sees it. ### [ConfigurationWarning.Problems](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-configurationwarning.html#Problems) ConfigurationWarning.Problems Problems Empty when nothing is wrong, which clears anything reported for this file earlier. ### [FantomasResponse](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasresponse.html) FantomasResponse FantomasResponse.Code Code FantomasResponse.FilePath FilePath FantomasResponse.Content Content FantomasResponse.SelectedRange SelectedRange FantomasResponse.Cursor Cursor ### [FantomasResponse.Code](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasresponse.html#Code) FantomasResponse.Code Code ### [FantomasResponse.FilePath](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasresponse.html#FilePath) FantomasResponse.FilePath FilePath ### [FantomasResponse.Content](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasresponse.html#Content) FantomasResponse.Content Content ### [FantomasResponse.SelectedRange](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasresponse.html#SelectedRange) FantomasResponse.SelectedRange SelectedRange The actual range that was used to format a selection. This can differ from the input selection range if the selection had leading or trailing whitespace. ### [FantomasResponse.Cursor](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasresponse.html#Cursor) FantomasResponse.Cursor Cursor Cursor position after formatting. Zero-based. ### [FantomasService](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html) FantomasService FantomasService.ClearCache ClearCache FantomasService.ConfigurationAsync ConfigurationAsync FantomasService.FormatDocumentAsync FormatDocumentAsync FantomasService.FormatSelectionAsync FormatSelectionAsync FantomasService.VersionAsync VersionAsync FantomasService.ConfigurationWarnings ConfigurationWarnings ### [FantomasService.ClearCache](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html#ClearCache) FantomasService.ClearCache ClearCache ### [FantomasService.ConfigurationAsync](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html#ConfigurationAsync) FantomasService.ConfigurationAsync ConfigurationAsync ### [FantomasService.FormatDocumentAsync](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html#FormatDocumentAsync) FantomasService.FormatDocumentAsync FormatDocumentAsync ### [FantomasService.FormatSelectionAsync](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html#FormatSelectionAsync) FantomasService.FormatSelectionAsync FormatSelectionAsync ### [FantomasService.VersionAsync](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html#VersionAsync) FantomasService.VersionAsync VersionAsync ### [FantomasService.ConfigurationWarnings](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-fantomasservice.html#ConfigurationWarnings) FantomasService.ConfigurationWarnings ConfigurationWarnings Raised for every format request, with the settings in the resolved configuration that Fantomas could not act on. Raised with an empty `Problems` list when there is nothing wrong, so a subscriber can clear what it reported earlier, and raised before the request it belongs to answers. Raised on whichever thread the daemon's answer arrived on, never on the caller's. A subscriber that touches a UI has to marshal, and one that throws is swallowed rather than allowed to fault the connection. Warnings for one file arrive in the order the requests for it were made, however many of them you have in flight: the daemon serves one request at a time per file. That is what makes the clearing rule sound, so an empty one never overtakes problems that are still current. Requests for different files are served concurrently and their warnings interleave freely. `FilePath` is what tells them apart. Only Fantomas 8 daemons send these; an older one never raises it, so no version check is needed. `Version` names the daemon that raised the warning, so reporting one needs no separate `VersionAsync` call. Asking afterwards would also be a race against `ClearCache`, which can leave a newly installed daemon answering for a warning the one it replaced raised. ### [FormatCursorPosition](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatcursorposition.html) FormatCursorPosition FormatCursorPosition.``.ctor`` ``.ctor`` FormatCursorPosition.Line Line FormatCursorPosition.Column Column ### [FormatCursorPosition.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatcursorposition.html#``.ctor``) FormatCursorPosition.``.ctor`` ``.ctor`` ### [FormatCursorPosition.Line](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatcursorposition.html#Line) FormatCursorPosition.Line Line ### [FormatCursorPosition.Column](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatcursorposition.html#Column) FormatCursorPosition.Column Column ### [FormatDocumentRequest](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatdocumentrequest.html) FormatDocumentRequest FormatDocumentRequest.IsSignatureFile IsSignatureFile FormatDocumentRequest.SourceCode SourceCode FormatDocumentRequest.FilePath FilePath FormatDocumentRequest.Config Config FormatDocumentRequest.Cursor Cursor ### [FormatDocumentRequest.IsSignatureFile](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatdocumentrequest.html#IsSignatureFile) FormatDocumentRequest.IsSignatureFile IsSignatureFile ### [FormatDocumentRequest.SourceCode](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatdocumentrequest.html#SourceCode) FormatDocumentRequest.SourceCode SourceCode ### [FormatDocumentRequest.FilePath](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatdocumentrequest.html#FilePath) FormatDocumentRequest.FilePath FilePath File path will be used to identify the .editorconfig options Unless the configuration is passed ### [FormatDocumentRequest.Config](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatdocumentrequest.html#Config) FormatDocumentRequest.Config Config Overrides the found .editorconfig. ### [FormatDocumentRequest.Cursor](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatdocumentrequest.html#Cursor) FormatDocumentRequest.Cursor Cursor The current position of the cursor. Zero-based ### [FormatSelectionRange](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrange.html) FormatSelectionRange FormatSelectionRange.``.ctor`` ``.ctor`` FormatSelectionRange.StartLine StartLine FormatSelectionRange.StartColumn StartColumn FormatSelectionRange.EndLine EndLine FormatSelectionRange.EndColumn EndColumn ### [FormatSelectionRange.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrange.html#``.ctor``) FormatSelectionRange.``.ctor`` ``.ctor`` ### [FormatSelectionRange.StartLine](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrange.html#StartLine) FormatSelectionRange.StartLine StartLine ### [FormatSelectionRange.StartColumn](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrange.html#StartColumn) FormatSelectionRange.StartColumn StartColumn ### [FormatSelectionRange.EndLine](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrange.html#EndLine) FormatSelectionRange.EndLine EndLine ### [FormatSelectionRange.EndColumn](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrange.html#EndColumn) FormatSelectionRange.EndColumn EndColumn ### [FormatSelectionRequest](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrequest.html) FormatSelectionRequest FormatSelectionRequest.IsSignatureFile IsSignatureFile FormatSelectionRequest.SourceCode SourceCode FormatSelectionRequest.FilePath FilePath FormatSelectionRequest.Config Config FormatSelectionRequest.Range Range ### [FormatSelectionRequest.IsSignatureFile](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrequest.html#IsSignatureFile) FormatSelectionRequest.IsSignatureFile IsSignatureFile ### [FormatSelectionRequest.SourceCode](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrequest.html#SourceCode) FormatSelectionRequest.SourceCode SourceCode ### [FormatSelectionRequest.FilePath](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrequest.html#FilePath) FormatSelectionRequest.FilePath FilePath File path will be used to identify the .editorconfig options Unless the configuration is passed ### [FormatSelectionRequest.Config](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrequest.html#Config) FormatSelectionRequest.Config Config Overrides the found .editorconfig. ### [FormatSelectionRequest.Range](https://fsprojects.github.io/fantomas/reference/fantomas-client-contracts-formatselectionrequest.html#Range) FormatSelectionRequest.Range Range Range follows the same semantics of the FSharp Compiler Range type. ### [FantomasToolLocator](https://fsprojects.github.io/fantomas/reference/fantomas-client-fantomastoollocator.html) FantomasToolLocator FantomasToolLocator.findFantomasTool findFantomasTool FantomasToolLocator.daemonArgument daemonArgument FantomasToolLocator.createForVersion createForVersion FantomasToolLocator.createFor createFor ### [FantomasToolLocator.findFantomasTool](https://fsprojects.github.io/fantomas/reference/fantomas-client-fantomastoollocator.html#findFantomasTool) FantomasToolLocator.findFantomasTool findFantomasTool ### [FantomasToolLocator.daemonArgument](https://fsprojects.github.io/fantomas/reference/fantomas-client-fantomastoollocator.html#daemonArgument) FantomasToolLocator.daemonArgument daemonArgument How this version of Fantomas wants its daemon asked for. `fantomas daemon` from 8.0, and `fantomas --daemon` for everything before it, which every version understands and always will. ### [FantomasToolLocator.createForVersion](https://fsprojects.github.io/fantomas/reference/fantomas-client-fantomastoollocator.html#createForVersion) FantomasToolLocator.createForVersion createForVersion Start the daemon, asking for it the way the version found spells it. ### [FantomasToolLocator.createFor](https://fsprojects.github.io/fantomas/reference/fantomas-client-fantomastoollocator.html#createFor) FantomasToolLocator.createFor createFor Start the daemon without knowing which version it is, which asks for it the way every version understands. Prefer `createForVersion` where the version is in hand. ### [LSPFantomasService](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservice.html) LSPFantomasService LSPFantomasService.LSPFantomasService LSPFantomasService ### [LSPFantomasService](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservice-lspfantomasservice.html) LSPFantomasService LSPFantomasService.``.ctor`` ``.ctor`` LSPFantomasService.``.ctor`` ``.ctor`` ### [LSPFantomasService.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservice-lspfantomasservice.html#``.ctor``) LSPFantomasService.``.ctor`` ``.ctor`` Nothing is logged. ### [LSPFantomasService.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservice-lspfantomasservice.html#``.ctor``) LSPFantomasService.``.ctor`` ``.ctor`` Report what the service does that no `FantomasResponse` can carry: which Fantomas a folder resolved to and where it was found, when none could be found at all, and when a daemon is started or fails to start. Resolving to a tool on the PATH is the one a user most needs to see, since it formats exactly as successfully as the version their repository pins. Called on whichever thread the work happened on, which for tool resolution is the service's own mailbox rather than the caller's, and never more than once per folder for a resolution: a folder already mapped to a version does not resolve again. A delegate that throws is swallowed, because these are called from inside that mailbox and an exception out of there would leave every later request waiting on a reply that never comes. A delegate rather than a logging abstraction, so that this package keeps its three dependencies and a host can adapt it to whatever it already has. ### [LSPFantomasServiceTypes](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes.html) LSPFantomasServiceTypes LSPFantomasServiceTypes.DotNetToolListError DotNetToolListError LSPFantomasServiceTypes.FantomasExecutableFile FantomasExecutableFile LSPFantomasServiceTypes.FantomasLogLevel FantomasLogLevel LSPFantomasServiceTypes.FantomasResponseCode FantomasResponseCode LSPFantomasServiceTypes.FantomasToolError FantomasToolError LSPFantomasServiceTypes.FantomasToolFound FantomasToolFound LSPFantomasServiceTypes.FantomasToolStartInfo FantomasToolStartInfo LSPFantomasServiceTypes.FantomasVersion FantomasVersion LSPFantomasServiceTypes.Folder Folder LSPFantomasServiceTypes.FormatDocumentResponse FormatDocumentResponse LSPFantomasServiceTypes.FormatSelectionResponse FormatSelectionResponse LSPFantomasServiceTypes.ProcessStartError ProcessStartError LSPFantomasServiceTypes.RunningFantomasTool RunningFantomasTool ### [DotNetToolListError](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-dotnettoollisterror.html) DotNetToolListError DotNetToolListError.ProcessStartError ProcessStartError DotNetToolListError.ExitCodeNonZero ExitCodeNonZero ### [DotNetToolListError.ProcessStartError](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-dotnettoollisterror.html#ProcessStartError) DotNetToolListError.ProcessStartError ProcessStartError ### [DotNetToolListError.ExitCodeNonZero](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-dotnettoollisterror.html#ExitCodeNonZero) DotNetToolListError.ExitCodeNonZero ExitCodeNonZero ### [FantomasExecutableFile](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasexecutablefile.html) FantomasExecutableFile FantomasExecutableFile.FantomasExecutableFile FantomasExecutableFile ### [FantomasExecutableFile.FantomasExecutableFile](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasexecutablefile.html#FantomasExecutableFile) FantomasExecutableFile.FantomasExecutableFile FantomasExecutableFile ### [FantomasLogLevel](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasloglevel.html) FantomasLogLevel How much a log message matters, for a host to route on. A real enum rather than an int: this never travels over the wire, unlike `FantomasResponseCode` and `ConfigurationProblemCode`. FantomasLogLevel.Debug Debug FantomasLogLevel.Info Info FantomasLogLevel.Warning Warning FantomasLogLevel.Error Error ### [FantomasLogLevel.Debug](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasloglevel.html#Debug) FantomasLogLevel.Debug Debug ### [FantomasLogLevel.Info](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasloglevel.html#Info) FantomasLogLevel.Info Info ### [FantomasLogLevel.Warning](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasloglevel.html#Warning) FantomasLogLevel.Warning Warning ### [FantomasLogLevel.Error](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasloglevel.html#Error) FantomasLogLevel.Error Error ### [FantomasResponseCode](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html) FantomasResponseCode FantomasResponseCode.Formatted Formatted FantomasResponseCode.UnChanged UnChanged FantomasResponseCode.Error Error FantomasResponseCode.Ignored Ignored FantomasResponseCode.Version Version FantomasResponseCode.ToolNotFound ToolNotFound FantomasResponseCode.FileNotFound FileNotFound FantomasResponseCode.Configuration Configuration FantomasResponseCode.FilePathIsNotAbsolute FilePathIsNotAbsolute FantomasResponseCode.CancellationWasRequested CancellationWasRequested FantomasResponseCode.DaemonCreationFailed DaemonCreationFailed ### [FantomasResponseCode.Formatted](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#Formatted) FantomasResponseCode.Formatted Formatted ### [FantomasResponseCode.UnChanged](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#UnChanged) FantomasResponseCode.UnChanged UnChanged ### [FantomasResponseCode.Error](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#Error) FantomasResponseCode.Error Error ### [FantomasResponseCode.Ignored](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#Ignored) FantomasResponseCode.Ignored Ignored ### [FantomasResponseCode.Version](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#Version) FantomasResponseCode.Version Version ### [FantomasResponseCode.ToolNotFound](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#ToolNotFound) FantomasResponseCode.ToolNotFound ToolNotFound ### [FantomasResponseCode.FileNotFound](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#FileNotFound) FantomasResponseCode.FileNotFound FileNotFound ### [FantomasResponseCode.Configuration](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#Configuration) FantomasResponseCode.Configuration Configuration ### [FantomasResponseCode.FilePathIsNotAbsolute](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#FilePathIsNotAbsolute) FantomasResponseCode.FilePathIsNotAbsolute FilePathIsNotAbsolute ### [FantomasResponseCode.CancellationWasRequested](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#CancellationWasRequested) FantomasResponseCode.CancellationWasRequested CancellationWasRequested ### [FantomasResponseCode.DaemonCreationFailed](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasresponsecode.html#DaemonCreationFailed) FantomasResponseCode.DaemonCreationFailed DaemonCreationFailed ### [FantomasToolError](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolerror.html) FantomasToolError FantomasToolError.NoCompatibleVersionFound NoCompatibleVersionFound FantomasToolError.DotNetListError DotNetListError ### [FantomasToolError.NoCompatibleVersionFound](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolerror.html#NoCompatibleVersionFound) FantomasToolError.NoCompatibleVersionFound NoCompatibleVersionFound ### [FantomasToolError.DotNetListError](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolerror.html#DotNetListError) FantomasToolError.DotNetListError DotNetListError ### [FantomasToolFound](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolfound.html) FantomasToolFound FantomasToolFound.FantomasToolFound FantomasToolFound ### [FantomasToolFound.FantomasToolFound](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolfound.html#FantomasToolFound) FantomasToolFound.FantomasToolFound FantomasToolFound ### [FantomasToolStartInfo](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolstartinfo.html) FantomasToolStartInfo FantomasToolStartInfo.LocalTool LocalTool FantomasToolStartInfo.GlobalTool GlobalTool FantomasToolStartInfo.ToolOnPath ToolOnPath ### [FantomasToolStartInfo.LocalTool](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolstartinfo.html#LocalTool) FantomasToolStartInfo.LocalTool LocalTool ### [FantomasToolStartInfo.GlobalTool](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolstartinfo.html#GlobalTool) FantomasToolStartInfo.GlobalTool GlobalTool ### [FantomasToolStartInfo.ToolOnPath](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomastoolstartinfo.html#ToolOnPath) FantomasToolStartInfo.ToolOnPath ToolOnPath ### [FantomasVersion](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-fantomasversion.html) FantomasVersion A Fantomas version in the one shape daemons are cached under: as `dotnet tool list` writes it, with no `Fantomas` in front, no leading `v`, no `+` on the end, and folded to lower case. The case is internal so that every value comes out of `FantomasToolLocator.findFantomasTool`, which is what makes that shape a fact rather than a hope. The cache compares these as plain strings, so the same Fantomas resolved once from a tool manifest and once from the PATH has to arrive as the same text, or it gets two daemon processes. ### [Folder](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-folder.html) Folder Folder.Folder Folder ### [Folder.Folder](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-folder.html#Folder) Folder.Folder Folder ### [FormatDocumentResponse](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatdocumentresponse.html) FormatDocumentResponse FormatDocumentResponse.Formatted Formatted FormatDocumentResponse.Unchanged Unchanged FormatDocumentResponse.Error Error FormatDocumentResponse.IgnoredFile IgnoredFile ### [FormatDocumentResponse.Formatted](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatdocumentresponse.html#Formatted) FormatDocumentResponse.Formatted Formatted ### [FormatDocumentResponse.Unchanged](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatdocumentresponse.html#Unchanged) FormatDocumentResponse.Unchanged Unchanged ### [FormatDocumentResponse.Error](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatdocumentresponse.html#Error) FormatDocumentResponse.Error Error ### [FormatDocumentResponse.IgnoredFile](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatdocumentresponse.html#IgnoredFile) FormatDocumentResponse.IgnoredFile IgnoredFile ### [FormatSelectionResponse](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatselectionresponse.html) FormatSelectionResponse FormatSelectionResponse.AsFormatResponse AsFormatResponse FormatSelectionResponse.Formatted Formatted FormatSelectionResponse.Error Error ### [FormatSelectionResponse.AsFormatResponse](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatselectionresponse.html#AsFormatResponse) FormatSelectionResponse.AsFormatResponse AsFormatResponse ### [FormatSelectionResponse.Formatted](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatselectionresponse.html#Formatted) FormatSelectionResponse.Formatted Formatted ### [FormatSelectionResponse.Error](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-formatselectionresponse.html#Error) FormatSelectionResponse.Error Error ### [ProcessStartError](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-processstarterror.html) ProcessStartError ProcessStartError.ExecutableFileNotFound ExecutableFileNotFound ProcessStartError.UnExpectedException UnExpectedException ### [ProcessStartError.ExecutableFileNotFound](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-processstarterror.html#ExecutableFileNotFound) ProcessStartError.ExecutableFileNotFound ExecutableFileNotFound ### [ProcessStartError.UnExpectedException](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-processstarterror.html#UnExpectedException) ProcessStartError.UnExpectedException UnExpectedException ### [RunningFantomasTool](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-runningfantomastool.html) RunningFantomasTool RunningFantomasTool.Process Process RunningFantomasTool.RpcClient RpcClient RunningFantomasTool.StartInfo StartInfo RunningFantomasTool.ConfigurationWarnings ConfigurationWarnings ### [RunningFantomasTool.Process](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-runningfantomastool.html#Process) RunningFantomasTool.Process Process ### [RunningFantomasTool.RpcClient](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-runningfantomastool.html#RpcClient) RunningFantomasTool.RpcClient RpcClient ### [RunningFantomasTool.StartInfo](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-runningfantomastool.html#StartInfo) RunningFantomasTool.StartInfo StartInfo ### [RunningFantomasTool.ConfigurationWarnings](https://fsprojects.github.io/fantomas/reference/fantomas-client-lspfantomasservicetypes-runningfantomastool.html#ConfigurationWarnings) RunningFantomasTool.ConfigurationWarnings ConfigurationWarnings Raised when this daemon reports settings it could not act on, on whichever thread its message arrived on. Subscribed to by `createFor` before the connection starts listening, so no notification can outrun a subscriber added there. A daemon older than Fantomas 8 does not send these, so the event simply never fires. `Version` is stamped on from the version this daemon answered the handshake with, so a warning names the Fantomas that raised it even when the daemon was started without one. ### [Async](https://fsprojects.github.io/fantomas/reference/fantomas-core-async.html) Async Async.map map ### [Async.map](https://fsprojects.github.io/fantomas/reference/fantomas-core-async.html#map) Async.map map ### [Continuation](https://fsprojects.github.io/fantomas/reference/fantomas-core-continuation.html) Continuation Continuation.sequence sequence ### [Continuation.sequence](https://fsprojects.github.io/fantomas/reference/fantomas-core-continuation.html#sequence) Continuation.sequence sequence Run a list of continuation-passing computations one after the other and hand their results, in order, to `finalContinuation`. This is how the transformer recurses over a list of children without growing the stack: a deeply nested expression, such as a long chain of infix operators or `elif` branches, would otherwise overflow it. Only worth its cost on the few node kinds where the nesting can be deep; plain recursion is used everywhere else. ### [List](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html) List List.chooseState chooseState List.isNotEmpty isNotEmpty List.moreThanOne moreThanOne List.partitionWhile partitionWhile List.mapWithLast mapWithLast List.cutOffLast cutOffLast List.foldWithLast foldWithLast ### [List.chooseState](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#chooseState) List.chooseState chooseState ### [List.isNotEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#isNotEmpty) List.isNotEmpty isNotEmpty ### [List.moreThanOne](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#moreThanOne) List.moreThanOne moreThanOne ### [List.partitionWhile](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#partitionWhile) List.partitionWhile partitionWhile ### [List.mapWithLast](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#mapWithLast) List.mapWithLast mapWithLast ### [List.cutOffLast](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#cutOffLast) List.cutOffLast cutOffLast Removes the last element of a list ### [List.foldWithLast](https://fsprojects.github.io/fantomas/reference/fantomas-core-list.html#foldWithLast) List.foldWithLast foldWithLast Similar to a List.fold but pass in another fold function for when the last item is reached. ### [Queue](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html) Queue Queue.empty empty Queue.head head Queue.tryHead tryHead Queue.isEmpty isEmpty Queue.length length Queue.ofList ofList Queue.ofSeq ofSeq Queue.rev rev Queue.toSeq toSeq Queue.append append Queue.skipExists skipExists ### [Queue.empty](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#empty) Queue.empty empty ### [Queue.head](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#head) Queue.head head ### [Queue.tryHead](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#tryHead) Queue.tryHead tryHead ### [Queue.isEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#isEmpty) Queue.isEmpty isEmpty ### [Queue.length](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#length) Queue.length length ### [Queue.ofList](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#ofList) Queue.ofList ofList ### [Queue.ofSeq](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#ofSeq) Queue.ofSeq ofSeq ### [Queue.rev](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#rev) Queue.rev rev ### [Queue.toSeq](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#toSeq) Queue.toSeq toSeq ### [Queue.append](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#append) Queue.append append ### [Queue.skipExists](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue.html#skipExists) Queue.skipExists skipExists Equivalent of q |> Queue.toSeq |> Seq.skip n |> Seq.skipWhile p |> Seq.exists f ### [RangeHelpers](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangehelpers.html) RangeHelpers RangeHelpers.rangeContainsRange rangeContainsRange RangeHelpers.rangeEq rangeEq RangeHelpers.isAdjacentTo isAdjacentTo RangeHelpers.absoluteZeroRange absoluteZeroRange RangeHelpers.isAbsoluteZero isAbsoluteZero ### [RangeHelpers.rangeContainsRange](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangehelpers.html#rangeContainsRange) RangeHelpers.rangeContainsRange rangeContainsRange Checks if Range B is fully contained by Range A ### [RangeHelpers.rangeEq](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangehelpers.html#rangeEq) RangeHelpers.rangeEq rangeEq ### [RangeHelpers.isAdjacentTo](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangehelpers.html#isAdjacentTo) RangeHelpers.isAdjacentTo isAdjacentTo Whether `r2` starts exactly where `r1` ends, on the same line and in the same file. Nothing, not even a space, sits between them. ### [RangeHelpers.absoluteZeroRange](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangehelpers.html#absoluteZeroRange) RangeHelpers.absoluteZeroRange absoluteZeroRange Range.range0 starts at line 1, column 0 This range starts at line 0, column 0 ### [RangeHelpers.isAbsoluteZero](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangehelpers.html#isAbsoluteZero) RangeHelpers.isAbsoluteZero isAbsoluteZero Whether a range is `absoluteZeroRange`, the range of the module of a file without code. A source has no line 0, so the start line says it. Reading `absoluteZeroRange` instead initializes it, which enters the compiler's `range.fs` through its `Range` module. Doing that while another thread enters the same file through its first parse can leave that parse with a null file index, as `ParserWarmupFixture` in `Fantomas.Core.Tests` explains. ### [RangePatterns](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangepatterns.html) RangePatterns Split the range of a node into the ranges of the tokens that delimit it, so the transformer can give an opening or closing token a `SingleTextNode` of its own. `size` is the length of the token in characters: 1 for `(`, 2 for `[|` or `{|`. The ranges are computed from the ends of the node's range, not looked up, so they are only right when the token really is the first or last thing in the node. RangePatterns.(|StartEndRange|) (|StartEndRange|) RangePatterns.(|StartRange|) (|StartRange|) RangePatterns.(|EndRange|) (|EndRange|) ### [RangePatterns.(|StartEndRange|)](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangepatterns.html#(|StartEndRange|)) RangePatterns.(|StartEndRange|) (|StartEndRange|) The opening token, the whole range, and the closing token, both tokens `size` long. ### [RangePatterns.(|StartRange|)](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangepatterns.html#(|StartRange|)) RangePatterns.(|StartRange|) (|StartRange|) The opening token, `size` long, and the whole range. ### [RangePatterns.(|EndRange|)](https://fsprojects.github.io/fantomas/reference/fantomas-core-rangepatterns.html#(|EndRange|)) RangePatterns.(|EndRange|) (|EndRange|) The closing token, `size` long, and the whole range. ### [String](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html) String String.startsWithOrdinal startsWithOrdinal String.endsWithOrdinal endsWithOrdinal String.empty empty String.isNotNullOrEmpty isNotNullOrEmpty String.isNotNullOrWhitespace isNotNullOrWhitespace String.visualWidth visualWidth ### [String.startsWithOrdinal](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html#startsWithOrdinal) String.startsWithOrdinal startsWithOrdinal ### [String.endsWithOrdinal](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html#endsWithOrdinal) String.endsWithOrdinal endsWithOrdinal ### [String.empty](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html#empty) String.empty empty ### [String.isNotNullOrEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html#isNotNullOrEmpty) String.isNotNullOrEmpty isNotNullOrEmpty ### [String.isNotNullOrWhitespace](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html#isNotNullOrWhitespace) String.isNotNullOrWhitespace isNotNullOrWhitespace ### [String.visualWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-string.html#visualWidth) String.visualWidth visualWidth Returns the visual column width of a string, counting Unicode grapheme clusters. Unlike String.length, this correctly handles combining characters (e.g. diacritics) which attach to a preceding character and do not advance the visual column. Uses a fast path for pure-ASCII strings (no allocation). ### [SyntaxOak](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak.html) SyntaxOak The tree Fantomas formats from, built from the untyped syntax tree and printed by the code printer. Its types can change in any release, a patch release included: take an exact dependency on Fantomas.Core when building code with them. SyntaxOak.AsSelfIdentifierNode AsSelfIdentifierNode SyntaxOak.AttributeListNode AttributeListNode SyntaxOak.AttributeNode AttributeNode SyntaxOak.BindingListNode BindingListNode SyntaxOak.BindingNode BindingNode SyntaxOak.BindingReturnInfoNode BindingReturnInfoNode SyntaxOak.ChainCall ChainCall SyntaxOak.ChainSegment ChainSegment SyntaxOak.ChainTerminal ChainTerminal SyntaxOak.ComputationExpressionStatement ComputationExpressionStatement SyntaxOak.Constant Constant SyntaxOak.ConstantMeasureNode ConstantMeasureNode SyntaxOak.EnumCaseNode EnumCaseNode SyntaxOak.ExceptionDefnNode ExceptionDefnNode SyntaxOak.Expr Expr SyntaxOak.ExprAnonStructRecordNode ExprAnonStructRecordNode SyntaxOak.ExprAppNode ExprAppNode SyntaxOak.ExprAppSingleParenArgNode ExprAppSingleParenArgNode SyntaxOak.ExprAppWithLambdaNode ExprAppWithLambdaNode SyntaxOak.ExprArrayOrListNode ExprArrayOrListNode SyntaxOak.ExprBeginEndNode ExprBeginEndNode SyntaxOak.ExprChain ExprChain SyntaxOak.ExprCompExprBodyNode ExprCompExprBodyNode SyntaxOak.ExprComputationNode ExprComputationNode SyntaxOak.ExprConstantNode ExprConstantNode SyntaxOak.ExprDotIndexedSetNode ExprDotIndexedSetNode SyntaxOak.ExprDotNamedIndexedPropertySetNode ExprDotNamedIndexedPropertySetNode SyntaxOak.ExprDynamicChainItemNode ExprDynamicChainItemNode SyntaxOak.ExprDynamicChainNode ExprDynamicChainNode SyntaxOak.ExprDynamicNode ExprDynamicNode SyntaxOak.ExprExplicitConstructorThenExpr ExprExplicitConstructorThenExpr SyntaxOak.ExprForEachNode ExprForEachNode SyntaxOak.ExprForNode ExprForNode SyntaxOak.ExprIfThenElifNode ExprIfThenElifNode SyntaxOak.ExprIfThenElseNode ExprIfThenElseNode SyntaxOak.ExprIfThenNode ExprIfThenNode SyntaxOak.ExprIndexFromEndNode ExprIndexFromEndNode SyntaxOak.ExprIndexRangeNode ExprIndexRangeNode SyntaxOak.ExprIndexWithoutDotNode ExprIndexWithoutDotNode SyntaxOak.ExprInfixAppNode ExprInfixAppNode SyntaxOak.ExprInheritRecordNode ExprInheritRecordNode SyntaxOak.ExprInterpolatedStringExprNode ExprInterpolatedStringExprNode SyntaxOak.ExprJoinInNode ExprJoinInNode SyntaxOak.ExprLambdaNode ExprLambdaNode SyntaxOak.ExprLazyNode ExprLazyNode SyntaxOak.ExprLibraryOnlyStaticOptimizationNode ExprLibraryOnlyStaticOptimizationNode SyntaxOak.ExprLongIdentSetNode ExprLongIdentSetNode SyntaxOak.ExprMatchLambdaNode ExprMatchLambdaNode SyntaxOak.ExprMatchNode ExprMatchNode SyntaxOak.ExprNamedComputationNode ExprNamedComputationNode SyntaxOak.ExprNamedIndexedPropertySetNode ExprNamedIndexedPropertySetNode SyntaxOak.ExprNewNode ExprNewNode SyntaxOak.ExprObjExprNode ExprObjExprNode SyntaxOak.ExprOptVarNode ExprOptVarNode SyntaxOak.ExprParenFunctionNameWithStarNode ExprParenFunctionNameWithStarNode SyntaxOak.ExprParenLambdaNode ExprParenLambdaNode SyntaxOak.ExprParenNode ExprParenNode SyntaxOak.ExprPrefixAppNode ExprPrefixAppNode SyntaxOak.ExprQuoteNode ExprQuoteNode SyntaxOak.ExprRecordBaseNode ExprRecordBaseNode SyntaxOak.ExprRecordFieldOrSpread ExprRecordFieldOrSpread SyntaxOak.ExprRecordNode ExprRecordNode SyntaxOak.ExprSameInfixAppsNode ExprSameInfixAppsNode SyntaxOak.ExprSetNode ExprSetNode SyntaxOak.ExprSingleNode ExprSingleNode SyntaxOak.ExprSpreadNode ExprSpreadNode SyntaxOak.ExprStructTupleNode ExprStructTupleNode SyntaxOak.ExprTraitCallNode ExprTraitCallNode SyntaxOak.ExprTripleNumberIndexRangeNode ExprTripleNumberIndexRangeNode SyntaxOak.ExprTryFinallyNode ExprTryFinallyNode SyntaxOak.ExprTryWithNode ExprTryWithNode SyntaxOak.ExprTryWithSingleClauseNode ExprTryWithSingleClauseNode SyntaxOak.ExprTupleNode ExprTupleNode SyntaxOak.ExprTypeAppNode ExprTypeAppNode SyntaxOak.ExprTypedNode ExprTypedNode SyntaxOak.ExprWhileNode ExprWhileNode SyntaxOak.ExternBindingNode ExternBindingNode SyntaxOak.ExternBindingPatternNode ExternBindingPatternNode SyntaxOak.FieldNode FieldNode SyntaxOak.FillExprNode FillExprNode SyntaxOak.HashDirectiveListNode HashDirectiveListNode SyntaxOak.IdentListNode IdentListNode SyntaxOak.IdentifierOrDot IdentifierOrDot SyntaxOak.IfKeywordNode IfKeywordNode SyntaxOak.ImplicitConstructorNode ImplicitConstructorNode SyntaxOak.InfixApp InfixApp SyntaxOak.InheritConstructor InheritConstructor SyntaxOak.InheritConstructorOtherNode InheritConstructorOtherNode SyntaxOak.InheritConstructorParenNode InheritConstructorParenNode SyntaxOak.InheritConstructorTypeOnlyNode InheritConstructorTypeOnlyNode SyntaxOak.InheritConstructorUnitNode InheritConstructorUnitNode SyntaxOak.InterfaceImplNode InterfaceImplNode SyntaxOak.MatchClauseNode MatchClauseNode SyntaxOak.Measure Measure SyntaxOak.MeasureDivideNode MeasureDivideNode SyntaxOak.MeasureOperatorNode MeasureOperatorNode SyntaxOak.MeasureParenNode MeasureParenNode SyntaxOak.MeasurePowerNode MeasurePowerNode SyntaxOak.MeasureSequenceNode MeasureSequenceNode SyntaxOak.MemberDefn MemberDefn SyntaxOak.MemberDefnAbstractSlotNode MemberDefnAbstractSlotNode SyntaxOak.MemberDefnAutoPropertyNode MemberDefnAutoPropertyNode SyntaxOak.MemberDefnExplicitCtorNode MemberDefnExplicitCtorNode SyntaxOak.MemberDefnInheritNode MemberDefnInheritNode SyntaxOak.MemberDefnInterfaceNode MemberDefnInterfaceNode SyntaxOak.MemberDefnPropertyGetSetNode MemberDefnPropertyGetSetNode SyntaxOak.MemberDefnSigMemberNode MemberDefnSigMemberNode SyntaxOak.ModuleAbbrevNode ModuleAbbrevNode SyntaxOak.ModuleDecl ModuleDecl SyntaxOak.ModuleDeclAttributesNode ModuleDeclAttributesNode SyntaxOak.ModuleOrNamespaceHeaderNode ModuleOrNamespaceHeaderNode SyntaxOak.ModuleOrNamespaceNode ModuleOrNamespaceNode SyntaxOak.MultipleAttributeListNode MultipleAttributeListNode SyntaxOak.MultipleTextsNode MultipleTextsNode SyntaxOak.NamePatPairNode NamePatPairNode SyntaxOak.NegateRationalNode NegateRationalNode SyntaxOak.NestedModuleNode NestedModuleNode SyntaxOak.Node Node SyntaxOak.NodeBase NodeBase SyntaxOak.Oak Oak SyntaxOak.Open Open SyntaxOak.OpenListNode OpenListNode SyntaxOak.OpenModuleOrNamespaceNode OpenModuleOrNamespaceNode SyntaxOak.OpenTargetNode OpenTargetNode SyntaxOak.ParsedHashDirectiveNode ParsedHashDirectiveNode SyntaxOak.PatAndsNode PatAndsNode SyntaxOak.PatArrayOrListNode PatArrayOrListNode SyntaxOak.PatIsInstNode PatIsInstNode SyntaxOak.PatLeftMiddleRight PatLeftMiddleRight SyntaxOak.PatLongIdentNode PatLongIdentNode SyntaxOak.PatNamePatPairsNode PatNamePatPairsNode SyntaxOak.PatNamedNode PatNamedNode SyntaxOak.PatNamedParenStarIdentNode PatNamedParenStarIdentNode SyntaxOak.PatParameterNode PatParameterNode SyntaxOak.PatParenNode PatParenNode SyntaxOak.PatRecordNode PatRecordNode SyntaxOak.PatStructTupleNode PatStructTupleNode SyntaxOak.PatTupleNode PatTupleNode SyntaxOak.Pattern Pattern SyntaxOak.PropertyGetSetBindingNode PropertyGetSetBindingNode SyntaxOak.RationalConstNode RationalConstNode SyntaxOak.RationalNode RationalNode SyntaxOak.RecordFieldNode RecordFieldNode SyntaxOak.SingleTextNode SingleTextNode SyntaxOak.StaticOptimizationConstraint StaticOptimizationConstraint SyntaxOak.StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode SyntaxOak.StringNode StringNode SyntaxOak.TriviaContent TriviaContent SyntaxOak.TriviaNode TriviaNode SyntaxOak.TyparDeclNode TyparDeclNode SyntaxOak.TyparDecls TyparDecls SyntaxOak.TyparDeclsPostfixListNode TyparDeclsPostfixListNode SyntaxOak.TyparDeclsPrefixListNode TyparDeclsPrefixListNode SyntaxOak.Type Type SyntaxOak.TypeAnonRecordNode TypeAnonRecordNode SyntaxOak.TypeAppPostFixNode TypeAppPostFixNode SyntaxOak.TypeAppPrefixNode TypeAppPrefixNode SyntaxOak.TypeArrayNode TypeArrayNode SyntaxOak.TypeConstraint TypeConstraint SyntaxOak.TypeConstraintDefaultsToTypeNode TypeConstraintDefaultsToTypeNode SyntaxOak.TypeConstraintEnumOrDelegateNode TypeConstraintEnumOrDelegateNode SyntaxOak.TypeConstraintSingleNode TypeConstraintSingleNode SyntaxOak.TypeConstraintSubtypeOfTypeNode TypeConstraintSubtypeOfTypeNode SyntaxOak.TypeConstraintSupportsMemberNode TypeConstraintSupportsMemberNode SyntaxOak.TypeConstraintWhereNotSupportsNull TypeConstraintWhereNotSupportsNull SyntaxOak.TypeDefn TypeDefn SyntaxOak.TypeDefnAbbrevNode TypeDefnAbbrevNode SyntaxOak.TypeDefnAugmentationNode TypeDefnAugmentationNode SyntaxOak.TypeDefnDelegateNode TypeDefnDelegateNode SyntaxOak.TypeDefnEnumNode TypeDefnEnumNode SyntaxOak.TypeDefnExplicitBodyNode TypeDefnExplicitBodyNode SyntaxOak.TypeDefnExplicitNode TypeDefnExplicitNode SyntaxOak.TypeDefnRecordFieldOrSpread TypeDefnRecordFieldOrSpread SyntaxOak.TypeDefnRecordNode TypeDefnRecordNode SyntaxOak.TypeDefnRegularNode TypeDefnRegularNode SyntaxOak.TypeDefnUnionNode TypeDefnUnionNode SyntaxOak.TypeFunsNode TypeFunsNode SyntaxOak.TypeHashConstraintNode TypeHashConstraintNode SyntaxOak.TypeIntersectionNode TypeIntersectionNode SyntaxOak.TypeLongIdentAppNode TypeLongIdentAppNode SyntaxOak.TypeMeasurePowerNode TypeMeasurePowerNode SyntaxOak.TypeNameNode TypeNameNode SyntaxOak.TypeOrNode TypeOrNode SyntaxOak.TypeParenNode TypeParenNode SyntaxOak.TypeSignatureParameterNode TypeSignatureParameterNode SyntaxOak.TypeSpreadNode TypeSpreadNode SyntaxOak.TypeStaticConstantExprNode TypeStaticConstantExprNode SyntaxOak.TypeStaticConstantNamedNode TypeStaticConstantNamedNode SyntaxOak.TypeStructTupleNode TypeStructTupleNode SyntaxOak.TypeTupleNode TypeTupleNode SyntaxOak.TypeWithGlobalConstraintsNode TypeWithGlobalConstraintsNode SyntaxOak.UnionCaseNode UnionCaseNode SyntaxOak.UnitNode UnitNode SyntaxOak.UnitOfMeasureNode UnitOfMeasureNode SyntaxOak.ValNode ValNode SyntaxOak.XmlDocNode XmlDocNode SyntaxOak.noa noa SyntaxOak.nodes nodes SyntaxOak.nodeRange nodeRange SyntaxOak.combineRanges combineRanges SyntaxOak.membersAroundWith membersAroundWith ### [SyntaxOak.noa](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak.html#noa) SyntaxOak.noa noa ### [SyntaxOak.nodes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak.html#nodes) SyntaxOak.nodes nodes ### [SyntaxOak.nodeRange](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak.html#nodeRange) SyntaxOak.nodeRange nodeRange ### [SyntaxOak.combineRanges](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak.html#combineRanges) SyntaxOak.combineRanges combineRanges ### [SyntaxOak.membersAroundWith](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak.html#membersAroundWith) SyntaxOak.membersAroundWith membersAroundWith The members of a type definition with its `with` among them, in source order. The `with` precedes the members, except in a class whose body has members of its own, `type T() = member … with member …`, where it stands between the two. ### [AsSelfIdentifierNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-asselfidentifiernode.html) AsSelfIdentifierNode Example: `as self` β€” the self-identifier binding at the end of an implicit constructor parameter list. AsSelfIdentifierNode.``.ctor`` ``.ctor`` AsSelfIdentifierNode.Self Self AsSelfIdentifierNode.As As ### [AsSelfIdentifierNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-asselfidentifiernode.html#``.ctor``) AsSelfIdentifierNode.``.ctor`` ``.ctor`` ### [AsSelfIdentifierNode.Self](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-asselfidentifiernode.html#Self) AsSelfIdentifierNode.Self Self ### [AsSelfIdentifierNode.As](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-asselfidentifiernode.html#As) AsSelfIdentifierNode.As As ### [AttributeListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributelistnode.html) AttributeListNode The content from [< to >] AttributeListNode.``.ctor`` ``.ctor`` AttributeListNode.Attributes Attributes AttributeListNode.Closing Closing AttributeListNode.Opening Opening ### [AttributeListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributelistnode.html#``.ctor``) AttributeListNode.``.ctor`` ``.ctor`` ### [AttributeListNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributelistnode.html#Attributes) AttributeListNode.Attributes Attributes ### [AttributeListNode.Closing](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributelistnode.html#Closing) AttributeListNode.Closing Closing ### [AttributeListNode.Opening](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributelistnode.html#Opening) AttributeListNode.Opening Opening ### [AttributeNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributenode.html) AttributeNode Example: `[]` β€” a single attribute inside an attribute list. Target is the optional `return:`, `assembly:`, etc. prefix. AttributeNode.``.ctor`` ``.ctor`` AttributeNode.TypeName TypeName AttributeNode.Expr Expr AttributeNode.Target Target ### [AttributeNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributenode.html#``.ctor``) AttributeNode.``.ctor`` ``.ctor`` ### [AttributeNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributenode.html#TypeName) AttributeNode.TypeName TypeName ### [AttributeNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributenode.html#Expr) AttributeNode.Expr Expr ### [AttributeNode.Target](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-attributenode.html#Target) AttributeNode.Target Target ### [BindingListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindinglistnode.html) BindingListNode A `let … and …` group of mutually recursive bindings, or a sequence of `use` bindings. BindingListNode.``.ctor`` ``.ctor`` BindingListNode.Bindings Bindings ### [BindingListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindinglistnode.html#``.ctor``) BindingListNode.``.ctor`` ``.ctor`` ### [BindingListNode.Bindings](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindinglistnode.html#Bindings) BindingListNode.Bindings Bindings ### [BindingNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html) BindingNode Example: `let inline private f<'T> (x: 'T) : int = ...` β€” a value/function/member binding. Covers `let`, `use`, `and`, `member`, `static member`, etc. depending on LeadingKeyword. BindingNode.``.ctor`` ``.ctor`` BindingNode.Equals Equals BindingNode.Accessibility Accessibility BindingNode.LeadingKeyword LeadingKeyword BindingNode.GenericTypeParameters GenericTypeParameters BindingNode.Attributes Attributes BindingNode.ReturnType ReturnType BindingNode.Expr Expr BindingNode.In In BindingNode.Parameters Parameters BindingNode.FunctionName FunctionName BindingNode.IsMutable IsMutable BindingNode.XmlDoc XmlDoc BindingNode.Inline Inline ### [BindingNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#``.ctor``) BindingNode.``.ctor`` ``.ctor`` ### [BindingNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#Equals) BindingNode.Equals Equals ### [BindingNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#Accessibility) BindingNode.Accessibility Accessibility ### [BindingNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#LeadingKeyword) BindingNode.LeadingKeyword LeadingKeyword ### [BindingNode.GenericTypeParameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#GenericTypeParameters) BindingNode.GenericTypeParameters GenericTypeParameters ### [BindingNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#Attributes) BindingNode.Attributes Attributes ### [BindingNode.ReturnType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#ReturnType) BindingNode.ReturnType ReturnType ### [BindingNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#Expr) BindingNode.Expr Expr ### [BindingNode.In](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#In) BindingNode.In In ### [BindingNode.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#Parameters) BindingNode.Parameters Parameters ### [BindingNode.FunctionName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#FunctionName) BindingNode.FunctionName FunctionName ### [BindingNode.IsMutable](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#IsMutable) BindingNode.IsMutable IsMutable ### [BindingNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#XmlDoc) BindingNode.XmlDoc XmlDoc ### [BindingNode.Inline](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingnode.html#Inline) BindingNode.Inline Inline ### [BindingReturnInfoNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingreturninfonode.html) BindingReturnInfoNode Example: `: int` β€” the explicit return type annotation on a binding (the colon token + type). BindingReturnInfoNode.``.ctor`` ``.ctor`` BindingReturnInfoNode.Type Type BindingReturnInfoNode.Colon Colon ### [BindingReturnInfoNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingreturninfonode.html#``.ctor``) BindingReturnInfoNode.``.ctor`` ``.ctor`` ### [BindingReturnInfoNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingreturninfonode.html#Type) BindingReturnInfoNode.Type Type ### [BindingReturnInfoNode.Colon](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-bindingreturninfonode.html#Colon) BindingReturnInfoNode.Colon Colon ### [ChainCall](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chaincall.html) ChainCall The argument of a call within a chain β€” either a parenthesised expression or unit. ChainCall.Paren Paren ChainCall.Unit Unit ### [ChainCall.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chaincall.html#Paren) ChainCall.Paren Paren ### [ChainCall.Unit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chaincall.html#Unit) ChainCall.Unit Unit ### [ChainSegment](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainsegment.html) ChainSegment A single dot-prefixed step in a member-access or call chain. Every step is reached through a .; the dot is an explicit so that trivia (comments, blank lines) attached to it are preserved during formatting. A segment is always intermediate: the final call of a chain is the ExprChain.Terminal, never a segment here. That is why DotApplication (an intermediate call) is distinct from DotMember (plain access) β€” the distinction the layout cares about (navigation vs. action) is then visible in the shape of the data itself. ChainSegment.DotMember DotMember ChainSegment.DotApplication DotApplication ChainSegment.DotIndex DotIndex ### [ChainSegment.DotMember](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainsegment.html#DotMember) ChainSegment.DotMember DotMember .Foo β€” plain property access (navigation) .Items[0] β€” expr = IndexWithoutDot(Items, [0]), no dedicated case needed ### [ChainSegment.DotApplication](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainsegment.html#DotApplication) ChainSegment.DotApplication DotApplication
   .Foo(x)     β€” intermediate call β€” always tight, never a space before (
   .Foo()      β€” intermediate unit call β€” always tight
 e.g. the `.Foo(x)` in `a.Foo(x).Bar`.  The terminal call of a chain is not a segment.
### [ChainSegment.DotIndex](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainsegment.html#DotIndex) ChainSegment.DotIndex DotIndex Old dot-bracket index syntax: arr.[i]. DotIndex is a separate case rather than DotMember because the [ and ] brackets are not part of indexExpr in the AST β€” genExpr indexExpr produces only the content (e.g. 0), not [0]. No existing Expr type naturally renders bracketed index content, so the printer must add [ and ] explicitly. From a layout perspective DotIndex is identical to DotMember β€” both are navigation segments with no call. ### [ChainTerminal](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainterminal.html) ChainTerminal Controls whether and how a space is emitted before the terminal call's parenthesis. The terminal call is the only position in a chain where a space is negotiable; intermediate calls are always tight (adding a space before their parens changes the parse tree). ChainTerminal.SpaceAllowed SpaceAllowed ChainTerminal.NoSpaceAllowed NoSpaceAllowed ChainTerminal.NoTerminal NoTerminal ### [ChainTerminal.SpaceAllowed](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainterminal.html#SpaceAllowed) ChainTerminal.SpaceAllowed SpaceAllowed ### [ChainTerminal.NoSpaceAllowed](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainterminal.html#NoSpaceAllowed) ChainTerminal.NoSpaceAllowed NoSpaceAllowed ### [ChainTerminal.NoTerminal](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-chainterminal.html#NoTerminal) ChainTerminal.NoTerminal NoTerminal ### [ComputationExpressionStatement](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-computationexpressionstatement.html) ComputationExpressionStatement A single statement inside a computation-expression body. BindingStatement covers let!, let, use! etc. bindings; OtherStatement covers any other expression (e.g. return, do!, yield). ComputationExpressionStatement.Node Node ComputationExpressionStatement.BindingStatement BindingStatement ComputationExpressionStatement.OtherStatement OtherStatement ### [ComputationExpressionStatement.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-computationexpressionstatement.html#Node) ComputationExpressionStatement.Node Node ### [ComputationExpressionStatement.BindingStatement](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-computationexpressionstatement.html#BindingStatement) ComputationExpressionStatement.BindingStatement BindingStatement ### [ComputationExpressionStatement.OtherStatement](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-computationexpressionstatement.html#OtherStatement) ComputationExpressionStatement.OtherStatement OtherStatement ### [Constant](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constant.html) Constant Discriminated union for the three forms of constant literal in the Oak representation. FromText covers all ordinary literals (integers, strings, booleans, etc.); Unit is the () literal; Measure is a numeric literal with a unit annotation. Constant.Node Node Constant.FromText FromText Constant.Unit Unit Constant.Measure Measure ### [Constant.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constant.html#Node) Constant.Node Node ### [Constant.FromText](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constant.html#FromText) Constant.FromText FromText ### [Constant.Unit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constant.html#Unit) Constant.Unit Unit ### [Constant.Measure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constant.html#Measure) Constant.Measure Measure ### [ConstantMeasureNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constantmeasurenode.html) ConstantMeasureNode Example: `1.0` β€” a numeric constant annotated with a unit of measure. ConstantMeasureNode.``.ctor`` ``.ctor`` ConstantMeasureNode.Measure Measure ConstantMeasureNode.Constant Constant ### [ConstantMeasureNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constantmeasurenode.html#``.ctor``) ConstantMeasureNode.``.ctor`` ``.ctor`` ### [ConstantMeasureNode.Measure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constantmeasurenode.html#Measure) ConstantMeasureNode.Measure Measure ### [ConstantMeasureNode.Constant](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-constantmeasurenode.html#Constant) ConstantMeasureNode.Constant Constant ### [EnumCaseNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html) EnumCaseNode Example: `| Red = 0` β€” a single enum case declaration. EnumCaseNode.``.ctor`` ``.ctor`` EnumCaseNode.Equals Equals EnumCaseNode.Bar Bar EnumCaseNode.Attributes Attributes EnumCaseNode.Identifier Identifier EnumCaseNode.Constant Constant EnumCaseNode.XmlDoc XmlDoc ### [EnumCaseNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#``.ctor``) EnumCaseNode.``.ctor`` ``.ctor`` ### [EnumCaseNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#Equals) EnumCaseNode.Equals Equals ### [EnumCaseNode.Bar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#Bar) EnumCaseNode.Bar Bar ### [EnumCaseNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#Attributes) EnumCaseNode.Attributes Attributes ### [EnumCaseNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#Identifier) EnumCaseNode.Identifier Identifier ### [EnumCaseNode.Constant](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#Constant) EnumCaseNode.Constant Constant ### [EnumCaseNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-enumcasenode.html#XmlDoc) EnumCaseNode.XmlDoc XmlDoc ### [ExceptionDefnNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html) ExceptionDefnNode Example: `exception MyError of string` β€” an exception type definition with an optional member block. `exception MyError = System.Exception` abbreviates an existing exception. ExceptionDefnNode.``.ctor`` ``.ctor`` ExceptionDefnNode.Accessibility Accessibility ExceptionDefnNode.UnionCase UnionCase ExceptionDefnNode.Attributes Attributes ExceptionDefnNode.Members Members ExceptionDefnNode.Abbreviation Abbreviation ExceptionDefnNode.ExceptionKeyword ExceptionKeyword ExceptionDefnNode.WithKeyword WithKeyword ExceptionDefnNode.XmlDoc XmlDoc ### [ExceptionDefnNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#``.ctor``) ExceptionDefnNode.``.ctor`` ``.ctor`` ### [ExceptionDefnNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#Accessibility) ExceptionDefnNode.Accessibility Accessibility ### [ExceptionDefnNode.UnionCase](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#UnionCase) ExceptionDefnNode.UnionCase UnionCase ### [ExceptionDefnNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#Attributes) ExceptionDefnNode.Attributes Attributes ### [ExceptionDefnNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#Members) ExceptionDefnNode.Members Members ### [ExceptionDefnNode.Abbreviation](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#Abbreviation) ExceptionDefnNode.Abbreviation Abbreviation ### [ExceptionDefnNode.ExceptionKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#ExceptionKeyword) ExceptionDefnNode.ExceptionKeyword ExceptionKeyword ### [ExceptionDefnNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#WithKeyword) ExceptionDefnNode.WithKeyword WithKeyword ### [ExceptionDefnNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exceptiondefnnode.html#XmlDoc) ExceptionDefnNode.XmlDoc XmlDoc ### [Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html) Expr Discriminated union of all F# expressions in the Oak intermediate representation. Each case wraps a strongly-typed node that captures the exact sub-structure needed for formatting. Use Expr.Node to obtain the underlying for printer dispatch, and Expr.NodeRange for range queries. Expr.HasParentheses HasParentheses Expr.Node Node Expr.Lazy Lazy Expr.Single Single Expr.Constant Constant Expr.Null Null Expr.Quote Quote Expr.Typed Typed Expr.New New Expr.Tuple Tuple Expr.StructTuple StructTuple Expr.ArrayOrList ArrayOrList Expr.Record Record Expr.InheritRecord InheritRecord Expr.AnonStructRecord AnonStructRecord Expr.ObjExpr ObjExpr Expr.While While Expr.For For Expr.ForEach ForEach Expr.NamedComputation NamedComputation Expr.Computation Computation Expr.CompExprBody CompExprBody Expr.JoinIn JoinIn Expr.ParenLambda ParenLambda Expr.Lambda Lambda Expr.MatchLambda MatchLambda Expr.Match Match Expr.TraitCall TraitCall Expr.ParenILEmbedded ParenILEmbedded Expr.ParenFunctionNameWithStar ParenFunctionNameWithStar Expr.Paren Paren Expr.Dynamic Dynamic Expr.DynamicChain DynamicChain Expr.PrefixApp PrefixApp Expr.SameInfixApps SameInfixApps Expr.InfixApp InfixApp Expr.IndexWithoutDot IndexWithoutDot Expr.AppSingleParenArg AppSingleParenArg Expr.AppWithLambda AppWithLambda Expr.App App Expr.TypeApp TypeApp Expr.TryWithSingleClause TryWithSingleClause Expr.TryWith TryWith Expr.TryFinally TryFinally Expr.IfThen IfThen Expr.IfThenElse IfThenElse Expr.IfThenElif IfThenElif Expr.Ident Ident Expr.OptVar OptVar Expr.LongIdentSet LongIdentSet Expr.DotIndexedSet DotIndexedSet Expr.NamedIndexedPropertySet NamedIndexedPropertySet Expr.DotNamedIndexedPropertySet DotNamedIndexedPropertySet Expr.Set Set Expr.LibraryOnlyStaticOptimization LibraryOnlyStaticOptimization Expr.InterpolatedStringExpr InterpolatedStringExpr Expr.IndexRangeWildcard IndexRangeWildcard Expr.TripleNumberIndexRange TripleNumberIndexRange Expr.IndexRange IndexRange Expr.IndexFromEnd IndexFromEnd Expr.Typar Typar Expr.Chain Chain Expr.BeginEnd BeginEnd Expr.ExplicitConstructorThenExpr ExplicitConstructorThenExpr ### [Expr.HasParentheses](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#HasParentheses) Expr.HasParentheses HasParentheses ### [Expr.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Node) Expr.Node Node ### [Expr.Lazy](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Lazy) Expr.Lazy Lazy ### [Expr.Single](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Single) Expr.Single Single ### [Expr.Constant](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Constant) Expr.Constant Constant ### [Expr.Null](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Null) Expr.Null Null ### [Expr.Quote](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Quote) Expr.Quote Quote ### [Expr.Typed](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Typed) Expr.Typed Typed ### [Expr.New](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#New) Expr.New New ### [Expr.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Tuple) Expr.Tuple Tuple ### [Expr.StructTuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#StructTuple) Expr.StructTuple StructTuple ### [Expr.ArrayOrList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ArrayOrList) Expr.ArrayOrList ArrayOrList ### [Expr.Record](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Record) Expr.Record Record ### [Expr.InheritRecord](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#InheritRecord) Expr.InheritRecord InheritRecord ### [Expr.AnonStructRecord](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#AnonStructRecord) Expr.AnonStructRecord AnonStructRecord ### [Expr.ObjExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ObjExpr) Expr.ObjExpr ObjExpr ### [Expr.While](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#While) Expr.While While ### [Expr.For](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#For) Expr.For For ### [Expr.ForEach](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ForEach) Expr.ForEach ForEach ### [Expr.NamedComputation](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#NamedComputation) Expr.NamedComputation NamedComputation ### [Expr.Computation](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Computation) Expr.Computation Computation ### [Expr.CompExprBody](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#CompExprBody) Expr.CompExprBody CompExprBody ### [Expr.JoinIn](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#JoinIn) Expr.JoinIn JoinIn ### [Expr.ParenLambda](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ParenLambda) Expr.ParenLambda ParenLambda ### [Expr.Lambda](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Lambda) Expr.Lambda Lambda ### [Expr.MatchLambda](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#MatchLambda) Expr.MatchLambda MatchLambda ### [Expr.Match](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Match) Expr.Match Match ### [Expr.TraitCall](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#TraitCall) Expr.TraitCall TraitCall ### [Expr.ParenILEmbedded](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ParenILEmbedded) Expr.ParenILEmbedded ParenILEmbedded ### [Expr.ParenFunctionNameWithStar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ParenFunctionNameWithStar) Expr.ParenFunctionNameWithStar ParenFunctionNameWithStar ### [Expr.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Paren) Expr.Paren Paren ### [Expr.Dynamic](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Dynamic) Expr.Dynamic Dynamic ### [Expr.DynamicChain](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#DynamicChain) Expr.DynamicChain DynamicChain ### [Expr.PrefixApp](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#PrefixApp) Expr.PrefixApp PrefixApp ### [Expr.SameInfixApps](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#SameInfixApps) Expr.SameInfixApps SameInfixApps ### [Expr.InfixApp](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#InfixApp) Expr.InfixApp InfixApp ### [Expr.IndexWithoutDot](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IndexWithoutDot) Expr.IndexWithoutDot IndexWithoutDot ### [Expr.AppSingleParenArg](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#AppSingleParenArg) Expr.AppSingleParenArg AppSingleParenArg ### [Expr.AppWithLambda](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#AppWithLambda) Expr.AppWithLambda AppWithLambda ### [Expr.App](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#App) Expr.App App ### [Expr.TypeApp](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#TypeApp) Expr.TypeApp TypeApp ### [Expr.TryWithSingleClause](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#TryWithSingleClause) Expr.TryWithSingleClause TryWithSingleClause ### [Expr.TryWith](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#TryWith) Expr.TryWith TryWith ### [Expr.TryFinally](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#TryFinally) Expr.TryFinally TryFinally ### [Expr.IfThen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IfThen) Expr.IfThen IfThen ### [Expr.IfThenElse](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IfThenElse) Expr.IfThenElse IfThenElse ### [Expr.IfThenElif](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IfThenElif) Expr.IfThenElif IfThenElif ### [Expr.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Ident) Expr.Ident Ident ### [Expr.OptVar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#OptVar) Expr.OptVar OptVar A name used as an expression: `value`, `Module.value`. See . ### [Expr.LongIdentSet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#LongIdentSet) Expr.LongIdentSet LongIdentSet ### [Expr.DotIndexedSet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#DotIndexedSet) Expr.DotIndexedSet DotIndexedSet ### [Expr.NamedIndexedPropertySet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#NamedIndexedPropertySet) Expr.NamedIndexedPropertySet NamedIndexedPropertySet ### [Expr.DotNamedIndexedPropertySet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#DotNamedIndexedPropertySet) Expr.DotNamedIndexedPropertySet DotNamedIndexedPropertySet ### [Expr.Set](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Set) Expr.Set Set ### [Expr.LibraryOnlyStaticOptimization](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#LibraryOnlyStaticOptimization) Expr.LibraryOnlyStaticOptimization LibraryOnlyStaticOptimization ### [Expr.InterpolatedStringExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#InterpolatedStringExpr) Expr.InterpolatedStringExpr InterpolatedStringExpr ### [Expr.IndexRangeWildcard](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IndexRangeWildcard) Expr.IndexRangeWildcard IndexRangeWildcard ### [Expr.TripleNumberIndexRange](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#TripleNumberIndexRange) Expr.TripleNumberIndexRange TripleNumberIndexRange ### [Expr.IndexRange](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IndexRange) Expr.IndexRange IndexRange ### [Expr.IndexFromEnd](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#IndexFromEnd) Expr.IndexFromEnd IndexFromEnd ### [Expr.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Typar) Expr.Typar Typar ### [Expr.Chain](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#Chain) Expr.Chain Chain ### [Expr.BeginEnd](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#BeginEnd) Expr.BeginEnd BeginEnd ### [Expr.ExplicitConstructorThenExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expr.html#ExplicitConstructorThenExpr) Expr.ExplicitConstructorThenExpr ExplicitConstructorThenExpr ### [ExprAnonStructRecordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expranonstructrecordnode.html) ExprAnonStructRecordNode Example: `struct {| Name = "Alice"; Age = 30 |}` β€” an anonymous struct record expression. Extends `ExprRecordNode` by prepending the `struct` keyword. ExprAnonStructRecordNode.``.ctor`` ``.ctor`` ExprAnonStructRecordNode.Struct Struct ### [ExprAnonStructRecordNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expranonstructrecordnode.html#``.ctor``) ExprAnonStructRecordNode.``.ctor`` ``.ctor`` ### [ExprAnonStructRecordNode.Struct](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-expranonstructrecordnode.html#Struct) ExprAnonStructRecordNode.Struct Struct ### [ExprAppNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappnode.html) ExprAppNode Example: `List.map f xs` β€” a function applied to two or more space-separated arguments ExprAppNode.``.ctor`` ``.ctor`` ExprAppNode.Arguments Arguments ExprAppNode.FunctionExpr FunctionExpr ### [ExprAppNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappnode.html#``.ctor``) ExprAppNode.``.ctor`` ``.ctor`` ### [ExprAppNode.Arguments](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappnode.html#Arguments) ExprAppNode.Arguments Arguments ### [ExprAppNode.FunctionExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappnode.html#FunctionExpr) ExprAppNode.FunctionExpr FunctionExpr ### [ExprAppSingleParenArgNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappsingleparenargnode.html) ExprAppSingleParenArgNode Example: `f(a)` β€” a general expression (not a simple dotted name) applied to a single parenthesised argument ExprAppSingleParenArgNode.``.ctor`` ``.ctor`` ExprAppSingleParenArgNode.ArgExpr ArgExpr ExprAppSingleParenArgNode.FunctionExpr FunctionExpr ### [ExprAppSingleParenArgNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappsingleparenargnode.html#``.ctor``) ExprAppSingleParenArgNode.``.ctor`` ``.ctor`` ### [ExprAppSingleParenArgNode.ArgExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappsingleparenargnode.html#ArgExpr) ExprAppSingleParenArgNode.ArgExpr ArgExpr ### [ExprAppSingleParenArgNode.FunctionExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappsingleparenargnode.html#FunctionExpr) ExprAppSingleParenArgNode.FunctionExpr FunctionExpr ### [ExprAppWithLambdaNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html) ExprAppWithLambdaNode Example: `f a b (fun y -> y)`, a function applied to zero or more prefix arguments followed by a parenthesised lambda or `function` expression as the last argument. ExprAppWithLambdaNode.``.ctor`` ``.ctor`` ExprAppWithLambdaNode.Arguments Arguments ExprAppWithLambdaNode.Lambda Lambda ExprAppWithLambdaNode.FunctionName FunctionName ExprAppWithLambdaNode.OpeningParen OpeningParen ExprAppWithLambdaNode.ClosingParen ClosingParen ### [ExprAppWithLambdaNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html#``.ctor``) ExprAppWithLambdaNode.``.ctor`` ``.ctor`` ### [ExprAppWithLambdaNode.Arguments](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html#Arguments) ExprAppWithLambdaNode.Arguments Arguments ### [ExprAppWithLambdaNode.Lambda](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html#Lambda) ExprAppWithLambdaNode.Lambda Lambda ### [ExprAppWithLambdaNode.FunctionName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html#FunctionName) ExprAppWithLambdaNode.FunctionName FunctionName ### [ExprAppWithLambdaNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html#OpeningParen) ExprAppWithLambdaNode.OpeningParen OpeningParen ### [ExprAppWithLambdaNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprappwithlambdanode.html#ClosingParen) ExprAppWithLambdaNode.ClosingParen ClosingParen ### [ExprArrayOrListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprarrayorlistnode.html) ExprArrayOrListNode Example: `[a; b; c]` for a list, `[|a; b; c|]` for an array β€” determined by the opening/closing tokens ExprArrayOrListNode.``.ctor`` ``.ctor`` ExprArrayOrListNode.Elements Elements ExprArrayOrListNode.Closing Closing ExprArrayOrListNode.Opening Opening ### [ExprArrayOrListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprarrayorlistnode.html#``.ctor``) ExprArrayOrListNode.``.ctor`` ``.ctor`` ### [ExprArrayOrListNode.Elements](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprarrayorlistnode.html#Elements) ExprArrayOrListNode.Elements Elements ### [ExprArrayOrListNode.Closing](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprarrayorlistnode.html#Closing) ExprArrayOrListNode.Closing Closing ### [ExprArrayOrListNode.Opening](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprarrayorlistnode.html#Opening) ExprArrayOrListNode.Opening Opening ### [ExprBeginEndNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprbeginendnode.html) ExprBeginEndNode Example: `begin expr end` β€” explicit `begin`/`end` block delimiters (equivalent to parentheses). ExprBeginEndNode.``.ctor`` ``.ctor`` ExprBeginEndNode.Begin Begin ExprBeginEndNode.Expr Expr ExprBeginEndNode.End End ### [ExprBeginEndNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprbeginendnode.html#``.ctor``) ExprBeginEndNode.``.ctor`` ``.ctor`` ### [ExprBeginEndNode.Begin](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprbeginendnode.html#Begin) ExprBeginEndNode.Begin Begin ### [ExprBeginEndNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprbeginendnode.html#Expr) ExprBeginEndNode.Expr Expr ### [ExprBeginEndNode.End](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprbeginendnode.html#End) ExprBeginEndNode.End End ### [ExprChain](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprchain.html) ExprChain Example: `person.Address.City.ToUpper()` β€” a chain of dot-separated member accesses and calls. Head is the leading receiver expression (fully decomposed; no dotted content remains in it). Segments are the dot-paired steps. Terminal is the optional outermost call. ExprChain.``.ctor`` ``.ctor`` ExprChain.Head Head ExprChain.Segments Segments ExprChain.Terminal Terminal ### [ExprChain.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprchain.html#``.ctor``) ExprChain.``.ctor`` ``.ctor`` ### [ExprChain.Head](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprchain.html#Head) ExprChain.Head Head ### [ExprChain.Segments](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprchain.html#Segments) ExprChain.Segments Segments ### [ExprChain.Terminal](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprchain.html#Terminal) ExprChain.Terminal Terminal ### [ExprCompExprBodyNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcompexprbodynode.html) ExprCompExprBodyNode The body of a computation expression, consisting of an ordered list of binding statements (e.g. `let! x = …`) and other expressions (e.g. `return x`, `do! f()`). ExprCompExprBodyNode.``.ctor`` ``.ctor`` ExprCompExprBodyNode.Statements Statements ### [ExprCompExprBodyNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcompexprbodynode.html#``.ctor``) ExprCompExprBodyNode.``.ctor`` ``.ctor`` ### [ExprCompExprBodyNode.Statements](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcompexprbodynode.html#Statements) ExprCompExprBodyNode.Statements Statements ### [ExprComputationNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcomputationnode.html) ExprComputationNode Example: `{ let x = 1; yield x }` β€” an anonymous computation expression (no explicit builder name). ExprComputationNode.``.ctor`` ``.ctor`` ExprComputationNode.OpeningBrace OpeningBrace ExprComputationNode.ClosingBrace ClosingBrace ExprComputationNode.Body Body ### [ExprComputationNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcomputationnode.html#``.ctor``) ExprComputationNode.``.ctor`` ``.ctor`` ### [ExprComputationNode.OpeningBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcomputationnode.html#OpeningBrace) ExprComputationNode.OpeningBrace OpeningBrace ### [ExprComputationNode.ClosingBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcomputationnode.html#ClosingBrace) ExprComputationNode.ClosingBrace ClosingBrace ### [ExprComputationNode.Body](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprcomputationnode.html#Body) ExprComputationNode.Body Body ### [ExprConstantNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprconstantnode.html) ExprConstantNode A constant (literal) expression leaf node such as `42`, `"hello"`, `true`, or `3.14`. This node has no child nodes; all textual content is carried by the source range. ExprConstantNode.``.ctor`` ``.ctor`` ### [ExprConstantNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprconstantnode.html#``.ctor``) ExprConstantNode.``.ctor`` ``.ctor`` ### [ExprDotIndexedSetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotindexedsetnode.html) ExprDotIndexedSetNode Example: `arr.[i] <- value` β€” indexed set using the older dot-bracket syntax (deprecated in F# 6). ExprDotIndexedSetNode.``.ctor`` ``.ctor`` ExprDotIndexedSetNode.ObjectExpr ObjectExpr ExprDotIndexedSetNode.Index Index ExprDotIndexedSetNode.Value Value ### [ExprDotIndexedSetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotindexedsetnode.html#``.ctor``) ExprDotIndexedSetNode.``.ctor`` ``.ctor`` ### [ExprDotIndexedSetNode.ObjectExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotindexedsetnode.html#ObjectExpr) ExprDotIndexedSetNode.ObjectExpr ObjectExpr ### [ExprDotIndexedSetNode.Index](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotindexedsetnode.html#Index) ExprDotIndexedSetNode.Index Index ### [ExprDotIndexedSetNode.Value](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotindexedsetnode.html#Value) ExprDotIndexedSetNode.Value Value ### [ExprDotNamedIndexedPropertySetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotnamedindexedpropertysetnode.html) ExprDotNamedIndexedPropertySetNode Example: `obj.Item[key] <- value` β€” sets a named indexed property accessed through a dotted expression. ExprDotNamedIndexedPropertySetNode.``.ctor`` ``.ctor`` ExprDotNamedIndexedPropertySetNode.Property Property ExprDotNamedIndexedPropertySetNode.Set Set ExprDotNamedIndexedPropertySetNode.Identifier Identifier ExprDotNamedIndexedPropertySetNode.Name Name ### [ExprDotNamedIndexedPropertySetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotnamedindexedpropertysetnode.html#``.ctor``) ExprDotNamedIndexedPropertySetNode.``.ctor`` ``.ctor`` ### [ExprDotNamedIndexedPropertySetNode.Property](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotnamedindexedpropertysetnode.html#Property) ExprDotNamedIndexedPropertySetNode.Property Property ### [ExprDotNamedIndexedPropertySetNode.Set](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotnamedindexedpropertysetnode.html#Set) ExprDotNamedIndexedPropertySetNode.Set Set ### [ExprDotNamedIndexedPropertySetNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotnamedindexedpropertysetnode.html#Identifier) ExprDotNamedIndexedPropertySetNode.Identifier Identifier ### [ExprDotNamedIndexedPropertySetNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdotnamedindexedpropertysetnode.html#Name) ExprDotNamedIndexedPropertySetNode.Name Name ### [ExprDynamicChainItemNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainitemnode.html) ExprDynamicChainItemNode A single `?member` (with optional paren or unit argument) inside a . ExprDynamicChainItemNode.``.ctor`` ``.ctor`` ExprDynamicChainItemNode.ParenArg ParenArg ExprDynamicChainItemNode.MemberExpr MemberExpr ### [ExprDynamicChainItemNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainitemnode.html#``.ctor``) ExprDynamicChainItemNode.``.ctor`` ``.ctor`` ### [ExprDynamicChainItemNode.ParenArg](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainitemnode.html#ParenArg) ExprDynamicChainItemNode.ParenArg ParenArg ### [ExprDynamicChainItemNode.MemberExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainitemnode.html#MemberExpr) ExprDynamicChainItemNode.MemberExpr MemberExpr ### [ExprDynamicChainNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainnode.html) ExprDynamicChainNode Example: `x?a("")?b(t)` β€” a chain of two or more `?` operator accesses. Captured as a dedicated node so the printer can keep `?member(arg)` tight, because adding a space before the paren argument changes parsing of the following `?member`. See #3159. ExprDynamicChainNode.``.ctor`` ``.ctor`` ExprDynamicChainNode.Items Items ExprDynamicChainNode.LeadingExpr LeadingExpr ### [ExprDynamicChainNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainnode.html#``.ctor``) ExprDynamicChainNode.``.ctor`` ``.ctor`` ### [ExprDynamicChainNode.Items](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainnode.html#Items) ExprDynamicChainNode.Items Items ### [ExprDynamicChainNode.LeadingExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicchainnode.html#LeadingExpr) ExprDynamicChainNode.LeadingExpr LeadingExpr ### [ExprDynamicNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicnode.html) ExprDynamicNode Example: `obj?Property` β€” dynamic member access using the `?` operator. `FuncExpr` is the object; `ArgExpr` is the property name (often a string constant). ExprDynamicNode.``.ctor`` ``.ctor`` ExprDynamicNode.ArgExpr ArgExpr ExprDynamicNode.FuncExpr FuncExpr ### [ExprDynamicNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicnode.html#``.ctor``) ExprDynamicNode.``.ctor`` ``.ctor`` ### [ExprDynamicNode.ArgExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicnode.html#ArgExpr) ExprDynamicNode.ArgExpr ArgExpr ### [ExprDynamicNode.FuncExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprdynamicnode.html#FuncExpr) ExprDynamicNode.FuncExpr FuncExpr ### [ExprExplicitConstructorThenExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprexplicitconstructorthenexpr.html) ExprExplicitConstructorThenExpr then Only valid in secondary constructors, original coming from SynExpr.Sequential(trivia = { SeparatorRange = Some mThen }) ExprExplicitConstructorThenExpr.``.ctor`` ``.ctor`` ExprExplicitConstructorThenExpr.Then Then ExprExplicitConstructorThenExpr.Expr Expr ### [ExprExplicitConstructorThenExpr.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprexplicitconstructorthenexpr.html#``.ctor``) ExprExplicitConstructorThenExpr.``.ctor`` ``.ctor`` ### [ExprExplicitConstructorThenExpr.Then](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprexplicitconstructorthenexpr.html#Then) ExprExplicitConstructorThenExpr.Then Then ### [ExprExplicitConstructorThenExpr.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprexplicitconstructorthenexpr.html#Expr) ExprExplicitConstructorThenExpr.Expr Expr ### [ExprForEachNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html) ExprForEachNode Example: `for x in xs do printfn "%A" x` β€” a `for … in` loop over a sequence. `IsArrow` is `true` when using arrow syntax (`for x in xs -> expr`) instead of `do`. ExprForEachNode.``.ctor`` ``.ctor`` ExprForEachNode.BodyExpr BodyExpr ExprForEachNode.IsArrow IsArrow ExprForEachNode.Pattern Pattern ExprForEachNode.EnumExpr EnumExpr ExprForEachNode.For For ### [ExprForEachNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html#``.ctor``) ExprForEachNode.``.ctor`` ``.ctor`` ### [ExprForEachNode.BodyExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html#BodyExpr) ExprForEachNode.BodyExpr BodyExpr ### [ExprForEachNode.IsArrow](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html#IsArrow) ExprForEachNode.IsArrow IsArrow ### [ExprForEachNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html#Pattern) ExprForEachNode.Pattern Pattern ### [ExprForEachNode.EnumExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html#EnumExpr) ExprForEachNode.EnumExpr EnumExpr ### [ExprForEachNode.For](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprforeachnode.html#For) ExprForEachNode.For For ### [ExprForNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html) ExprForNode Example: `for i = 1 to 10 do printfn "%d" i` or `for i = 10 downto 1 do …`. `Direction` is `true` for ascending (`to`) and `false` for descending (`downto`). ExprForNode.``.ctor`` ``.ctor`` ExprForNode.Equals Equals ExprForNode.IdentBody IdentBody ExprForNode.Direction Direction ExprForNode.ToBody ToBody ExprForNode.For For ExprForNode.DoBody DoBody ExprForNode.Ident Ident ### [ExprForNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#``.ctor``) ExprForNode.``.ctor`` ``.ctor`` ### [ExprForNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#Equals) ExprForNode.Equals Equals ### [ExprForNode.IdentBody](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#IdentBody) ExprForNode.IdentBody IdentBody ### [ExprForNode.Direction](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#Direction) ExprForNode.Direction Direction ### [ExprForNode.ToBody](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#ToBody) ExprForNode.ToBody ToBody ### [ExprForNode.For](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#For) ExprForNode.For For ### [ExprForNode.DoBody](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#DoBody) ExprForNode.DoBody DoBody ### [ExprForNode.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprfornode.html#Ident) ExprForNode.Ident Ident ### [ExprIfThenElifNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelifnode.html) ExprIfThenElifNode Example: `if a then x elif b then y else z` β€” contains one or more `if/elif` branches and an optional `else` ExprIfThenElifNode.``.ctor`` ``.ctor`` ExprIfThenElifNode.Branches Branches ExprIfThenElifNode.Else Else ### [ExprIfThenElifNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelifnode.html#``.ctor``) ExprIfThenElifNode.``.ctor`` ``.ctor`` ### [ExprIfThenElifNode.Branches](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelifnode.html#Branches) ExprIfThenElifNode.Branches Branches ### [ExprIfThenElifNode.Else](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelifnode.html#Else) ExprIfThenElifNode.Else Else ### [ExprIfThenElseNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html) ExprIfThenElseNode Example: `if condition then trueResult else falseResult` ExprIfThenElseNode.``.ctor`` ``.ctor`` ExprIfThenElseNode.IfExpr IfExpr ExprIfThenElseNode.Then Then ExprIfThenElseNode.ThenExpr ThenExpr ExprIfThenElseNode.ElseExpr ElseExpr ExprIfThenElseNode.If If ExprIfThenElseNode.Else Else ### [ExprIfThenElseNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#``.ctor``) ExprIfThenElseNode.``.ctor`` ``.ctor`` ### [ExprIfThenElseNode.IfExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#IfExpr) ExprIfThenElseNode.IfExpr IfExpr ### [ExprIfThenElseNode.Then](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#Then) ExprIfThenElseNode.Then Then ### [ExprIfThenElseNode.ThenExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#ThenExpr) ExprIfThenElseNode.ThenExpr ThenExpr ### [ExprIfThenElseNode.ElseExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#ElseExpr) ExprIfThenElseNode.ElseExpr ElseExpr ### [ExprIfThenElseNode.If](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#If) ExprIfThenElseNode.If If ### [ExprIfThenElseNode.Else](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthenelsenode.html#Else) ExprIfThenElseNode.Else Else ### [ExprIfThenNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthennode.html) ExprIfThenNode Example: `if condition then result` ExprIfThenNode.``.ctor`` ``.ctor`` ExprIfThenNode.IfExpr IfExpr ExprIfThenNode.Then Then ExprIfThenNode.ThenExpr ThenExpr ExprIfThenNode.If If ### [ExprIfThenNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthennode.html#``.ctor``) ExprIfThenNode.``.ctor`` ``.ctor`` ### [ExprIfThenNode.IfExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthennode.html#IfExpr) ExprIfThenNode.IfExpr IfExpr ### [ExprIfThenNode.Then](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthennode.html#Then) ExprIfThenNode.Then Then ### [ExprIfThenNode.ThenExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthennode.html#ThenExpr) ExprIfThenNode.ThenExpr ThenExpr ### [ExprIfThenNode.If](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprifthennode.html#If) ExprIfThenNode.If If ### [ExprIndexFromEndNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexfromendnode.html) ExprIndexFromEndNode Example: `^1` or `^0` β€” an end-relative index expression (from-end indexer, F# 6+). ExprIndexFromEndNode.``.ctor`` ``.ctor`` ExprIndexFromEndNode.Expr Expr ### [ExprIndexFromEndNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexfromendnode.html#``.ctor``) ExprIndexFromEndNode.``.ctor`` ``.ctor`` ### [ExprIndexFromEndNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexfromendnode.html#Expr) ExprIndexFromEndNode.Expr Expr ### [ExprIndexRangeNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexrangenode.html) ExprIndexRangeNode Example: `0..10`, `..10`, `0..`, `..` β€” a two-part index range (used in slice expressions and list comprehensions). Either `From` or `To` (or both) may be absent, producing an open-ended range. ExprIndexRangeNode.``.ctor`` ``.ctor`` ExprIndexRangeNode.From From ExprIndexRangeNode.Dots Dots ExprIndexRangeNode.To To ### [ExprIndexRangeNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexrangenode.html#``.ctor``) ExprIndexRangeNode.``.ctor`` ``.ctor`` ### [ExprIndexRangeNode.From](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexrangenode.html#From) ExprIndexRangeNode.From From ### [ExprIndexRangeNode.Dots](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexrangenode.html#Dots) ExprIndexRangeNode.Dots Dots ### [ExprIndexRangeNode.To](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexrangenode.html#To) ExprIndexRangeNode.To To ### [ExprIndexWithoutDotNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexwithoutdotnode.html) ExprIndexWithoutDotNode Example: `xs[i]` β€” index access using the new F# 6+ dot-free bracket syntax. `Identifier` is the collection; `Index` is the index expression inside `[…]`. ExprIndexWithoutDotNode.``.ctor`` ``.ctor`` ExprIndexWithoutDotNode.Identifier Identifier ExprIndexWithoutDotNode.Index Index ### [ExprIndexWithoutDotNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexwithoutdotnode.html#``.ctor``) ExprIndexWithoutDotNode.``.ctor`` ``.ctor`` ### [ExprIndexWithoutDotNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexwithoutdotnode.html#Identifier) ExprIndexWithoutDotNode.Identifier Identifier ### [ExprIndexWithoutDotNode.Index](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprindexwithoutdotnode.html#Index) ExprIndexWithoutDotNode.Index Index ### [ExprInfixAppNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinfixappnode.html) ExprInfixAppNode Example: `a + b` β€” a single binary infix application with two different operands or operators ExprInfixAppNode.``.ctor`` ``.ctor`` ExprInfixAppNode.LeftHandSide LeftHandSide ExprInfixAppNode.Operator Operator ExprInfixAppNode.RightHandSide RightHandSide ### [ExprInfixAppNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinfixappnode.html#``.ctor``) ExprInfixAppNode.``.ctor`` ``.ctor`` ### [ExprInfixAppNode.LeftHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinfixappnode.html#LeftHandSide) ExprInfixAppNode.LeftHandSide LeftHandSide ### [ExprInfixAppNode.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinfixappnode.html#Operator) ExprInfixAppNode.Operator Operator ### [ExprInfixAppNode.RightHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinfixappnode.html#RightHandSide) ExprInfixAppNode.RightHandSide RightHandSide ### [ExprInheritRecordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinheritrecordnode.html) ExprInheritRecordNode Example: `{ inherit Base(args); Field = value }` β€” a record with an `inherit` constructor call. ExprInheritRecordNode.``.ctor`` ``.ctor`` ExprInheritRecordNode.InheritConstructor InheritConstructor ### [ExprInheritRecordNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinheritrecordnode.html#``.ctor``) ExprInheritRecordNode.``.ctor`` ``.ctor`` ### [ExprInheritRecordNode.InheritConstructor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinheritrecordnode.html#InheritConstructor) ExprInheritRecordNode.InheritConstructor InheritConstructor ### [ExprInterpolatedStringExprNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinterpolatedstringexprnode.html) ExprInterpolatedStringExprNode Example: `$"hello {name}, you are {age} years old"` β€” an interpolated string expression. `Parts` interleaves raw string `SingleTextNode` segments with `FillExprNode` interpolation holes. ExprInterpolatedStringExprNode.``.ctor`` ``.ctor`` ExprInterpolatedStringExprNode.Parts Parts ### [ExprInterpolatedStringExprNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinterpolatedstringexprnode.html#``.ctor``) ExprInterpolatedStringExprNode.``.ctor`` ``.ctor`` ### [ExprInterpolatedStringExprNode.Parts](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprinterpolatedstringexprnode.html#Parts) ExprInterpolatedStringExprNode.Parts Parts ### [ExprJoinInNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprjoininnode.html) ExprJoinInNode Example: `e1 in e2` β€” used in query-expression `join … in …` clauses; represents the `in` operator. ExprJoinInNode.``.ctor`` ``.ctor`` ExprJoinInNode.LeftHandSide LeftHandSide ExprJoinInNode.In In ExprJoinInNode.RightHandSide RightHandSide ### [ExprJoinInNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprjoininnode.html#``.ctor``) ExprJoinInNode.``.ctor`` ``.ctor`` ### [ExprJoinInNode.LeftHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprjoininnode.html#LeftHandSide) ExprJoinInNode.LeftHandSide LeftHandSide ### [ExprJoinInNode.In](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprjoininnode.html#In) ExprJoinInNode.In In ### [ExprJoinInNode.RightHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprjoininnode.html#RightHandSide) ExprJoinInNode.RightHandSide RightHandSide ### [ExprLambdaNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlambdanode.html) ExprLambdaNode Example: `fun x y -> x + y` ExprLambdaNode.``.ctor`` ``.ctor`` ExprLambdaNode.Fun Fun ExprLambdaNode.Expr Expr ExprLambdaNode.Parameters Parameters ExprLambdaNode.Arrow Arrow ### [ExprLambdaNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlambdanode.html#``.ctor``) ExprLambdaNode.``.ctor`` ``.ctor`` ### [ExprLambdaNode.Fun](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlambdanode.html#Fun) ExprLambdaNode.Fun Fun ### [ExprLambdaNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlambdanode.html#Expr) ExprLambdaNode.Expr Expr ### [ExprLambdaNode.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlambdanode.html#Parameters) ExprLambdaNode.Parameters Parameters ### [ExprLambdaNode.Arrow](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlambdanode.html#Arrow) ExprLambdaNode.Arrow Arrow ### [ExprLazyNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlazynode.html) ExprLazyNode Example: `lazy computeExpensiveValue` ExprLazyNode.``.ctor`` ``.ctor`` ExprLazyNode.Expr Expr ExprLazyNode.LazyWord LazyWord ExprLazyNode.ExprIsInfix ExprIsInfix ### [ExprLazyNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlazynode.html#``.ctor``) ExprLazyNode.``.ctor`` ``.ctor`` ### [ExprLazyNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlazynode.html#Expr) ExprLazyNode.Expr Expr ### [ExprLazyNode.LazyWord](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlazynode.html#LazyWord) ExprLazyNode.LazyWord LazyWord ### [ExprLazyNode.ExprIsInfix](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlazynode.html#ExprIsInfix) ExprLazyNode.ExprIsInfix ExprIsInfix ### [ExprLibraryOnlyStaticOptimizationNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlibraryonlystaticoptimizationnode.html) ExprLibraryOnlyStaticOptimizationNode Internal compiler node for static optimisation hints (library/compiler use only, not user-facing). Emits an expression with attached `StaticOptimizationConstraint` conditions. ExprLibraryOnlyStaticOptimizationNode.``.ctor`` ``.ctor`` ExprLibraryOnlyStaticOptimizationNode.Constraints Constraints ExprLibraryOnlyStaticOptimizationNode.OptimizedExpr OptimizedExpr ExprLibraryOnlyStaticOptimizationNode.Expr Expr ### [ExprLibraryOnlyStaticOptimizationNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlibraryonlystaticoptimizationnode.html#``.ctor``) ExprLibraryOnlyStaticOptimizationNode.``.ctor`` ``.ctor`` ### [ExprLibraryOnlyStaticOptimizationNode.Constraints](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlibraryonlystaticoptimizationnode.html#Constraints) ExprLibraryOnlyStaticOptimizationNode.Constraints Constraints ### [ExprLibraryOnlyStaticOptimizationNode.OptimizedExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlibraryonlystaticoptimizationnode.html#OptimizedExpr) ExprLibraryOnlyStaticOptimizationNode.OptimizedExpr OptimizedExpr ### [ExprLibraryOnlyStaticOptimizationNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlibraryonlystaticoptimizationnode.html#Expr) ExprLibraryOnlyStaticOptimizationNode.Expr Expr ### [ExprLongIdentSetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlongidentsetnode.html) ExprLongIdentSetNode Example: `Module.mutableValue <- newValue` β€” mutation via a long (dotted) identifier. ExprLongIdentSetNode.``.ctor`` ``.ctor`` ExprLongIdentSetNode.Expr Expr ExprLongIdentSetNode.Identifier Identifier ### [ExprLongIdentSetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlongidentsetnode.html#``.ctor``) ExprLongIdentSetNode.``.ctor`` ``.ctor`` ### [ExprLongIdentSetNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlongidentsetnode.html#Expr) ExprLongIdentSetNode.Expr Expr ### [ExprLongIdentSetNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprlongidentsetnode.html#Identifier) ExprLongIdentSetNode.Identifier Identifier ### [ExprMatchLambdaNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchlambdanode.html) ExprMatchLambdaNode Example: `function | Some x -> x | None -> defaultValue` ExprMatchLambdaNode.``.ctor`` ``.ctor`` ExprMatchLambdaNode.Clauses Clauses ExprMatchLambdaNode.Function Function ### [ExprMatchLambdaNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchlambdanode.html#``.ctor``) ExprMatchLambdaNode.``.ctor`` ``.ctor`` ### [ExprMatchLambdaNode.Clauses](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchlambdanode.html#Clauses) ExprMatchLambdaNode.Clauses Clauses ### [ExprMatchLambdaNode.Function](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchlambdanode.html#Function) ExprMatchLambdaNode.Function Function ### [ExprMatchNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchnode.html) ExprMatchNode Example: `match x with | Some v -> v | None -> 0` ExprMatchNode.``.ctor`` ``.ctor`` ExprMatchNode.MatchExpr MatchExpr ExprMatchNode.With With ExprMatchNode.Match Match ExprMatchNode.Clauses Clauses ### [ExprMatchNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchnode.html#``.ctor``) ExprMatchNode.``.ctor`` ``.ctor`` ### [ExprMatchNode.MatchExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchnode.html#MatchExpr) ExprMatchNode.MatchExpr MatchExpr ### [ExprMatchNode.With](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchnode.html#With) ExprMatchNode.With With ### [ExprMatchNode.Match](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchnode.html#Match) ExprMatchNode.Match Match ### [ExprMatchNode.Clauses](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprmatchnode.html#Clauses) ExprMatchNode.Clauses Clauses ### [ExprNamedComputationNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedcomputationnode.html) ExprNamedComputationNode Example: `task { … }` or `async { … }` β€” a named computation expression with an explicit builder. The builder expression (`Name`) precedes the braces of the computation body. ExprNamedComputationNode.``.ctor`` ``.ctor`` ExprNamedComputationNode.Name Name ExprNamedComputationNode.OpeningBrace OpeningBrace ExprNamedComputationNode.ClosingBrace ClosingBrace ExprNamedComputationNode.Body Body ### [ExprNamedComputationNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedcomputationnode.html#``.ctor``) ExprNamedComputationNode.``.ctor`` ``.ctor`` ### [ExprNamedComputationNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedcomputationnode.html#Name) ExprNamedComputationNode.Name Name ### [ExprNamedComputationNode.OpeningBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedcomputationnode.html#OpeningBrace) ExprNamedComputationNode.OpeningBrace OpeningBrace ### [ExprNamedComputationNode.ClosingBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedcomputationnode.html#ClosingBrace) ExprNamedComputationNode.ClosingBrace ClosingBrace ### [ExprNamedComputationNode.Body](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedcomputationnode.html#Body) ExprNamedComputationNode.Body Body ### [ExprNamedIndexedPropertySetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedindexedpropertysetnode.html) ExprNamedIndexedPropertySetNode Example: `myProp[key] <- value` β€” sets a named indexed property on a type. ExprNamedIndexedPropertySetNode.``.ctor`` ``.ctor`` ExprNamedIndexedPropertySetNode.Identifier Identifier ExprNamedIndexedPropertySetNode.Index Index ExprNamedIndexedPropertySetNode.Value Value ### [ExprNamedIndexedPropertySetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedindexedpropertysetnode.html#``.ctor``) ExprNamedIndexedPropertySetNode.``.ctor`` ``.ctor`` ### [ExprNamedIndexedPropertySetNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedindexedpropertysetnode.html#Identifier) ExprNamedIndexedPropertySetNode.Identifier Identifier ### [ExprNamedIndexedPropertySetNode.Index](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedindexedpropertysetnode.html#Index) ExprNamedIndexedPropertySetNode.Index Index ### [ExprNamedIndexedPropertySetNode.Value](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnamedindexedpropertysetnode.html#Value) ExprNamedIndexedPropertySetNode.Value Value ### [ExprNewNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnewnode.html) ExprNewNode Example: `new StringBuilder(capacity)` ExprNewNode.``.ctor`` ``.ctor`` ExprNewNode.Type Type ExprNewNode.Arguments Arguments ExprNewNode.NewKeyword NewKeyword ### [ExprNewNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnewnode.html#``.ctor``) ExprNewNode.``.ctor`` ``.ctor`` ### [ExprNewNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnewnode.html#Type) ExprNewNode.Type Type ### [ExprNewNode.Arguments](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnewnode.html#Arguments) ExprNewNode.Arguments Arguments ### [ExprNewNode.NewKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprnewnode.html#NewKeyword) ExprNewNode.NewKeyword NewKeyword ### [ExprObjExprNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html) ExprObjExprNode Example: `{ new IDisposable with member _.Dispose() = () }` β€” an object expression that implements an interface or inherits a base class inline. ExprObjExprNode.``.ctor`` ``.ctor`` ExprObjExprNode.Type Type ExprObjExprNode.Bindings Bindings ExprObjExprNode.Interfaces Interfaces ExprObjExprNode.Members Members ExprObjExprNode.Expr Expr ExprObjExprNode.With With ExprObjExprNode.New New ExprObjExprNode.OpeningBrace OpeningBrace ExprObjExprNode.ClosingBrace ClosingBrace ### [ExprObjExprNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#``.ctor``) ExprObjExprNode.``.ctor`` ``.ctor`` ### [ExprObjExprNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#Type) ExprObjExprNode.Type Type ### [ExprObjExprNode.Bindings](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#Bindings) ExprObjExprNode.Bindings Bindings ### [ExprObjExprNode.Interfaces](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#Interfaces) ExprObjExprNode.Interfaces Interfaces ### [ExprObjExprNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#Members) ExprObjExprNode.Members Members ### [ExprObjExprNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#Expr) ExprObjExprNode.Expr Expr ### [ExprObjExprNode.With](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#With) ExprObjExprNode.With With ### [ExprObjExprNode.New](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#New) ExprObjExprNode.New New ### [ExprObjExprNode.OpeningBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#OpeningBrace) ExprObjExprNode.OpeningBrace OpeningBrace ### [ExprObjExprNode.ClosingBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprobjexprnode.html#ClosingBrace) ExprObjExprNode.ClosingBrace ClosingBrace ### [ExprOptVarNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exproptvarnode.html) ExprOptVarNode A name used as an expression, the compiler's SynExpr.LongIdent. Despite the case name, IsOptional is true only for the last shape below. value // a name Module.value // two of these inside a chain: `Module`, then `.value` f (?x = 1) // the `?x`, the one shape IsOptional is true for ExprOptVarNode.``.ctor`` ``.ctor`` ExprOptVarNode.IsOptional IsOptional ExprOptVarNode.Identifier Identifier ### [ExprOptVarNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exproptvarnode.html#``.ctor``) ExprOptVarNode.``.ctor`` ``.ctor`` ### [ExprOptVarNode.IsOptional](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exproptvarnode.html#IsOptional) ExprOptVarNode.IsOptional IsOptional ### [ExprOptVarNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exproptvarnode.html#Identifier) ExprOptVarNode.Identifier Identifier ### [ExprParenFunctionNameWithStarNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenfunctionnamewithstarnode.html) ExprParenFunctionNameWithStarNode Example: `( * )` or `( + )` β€” an operator name wrapped in parentheses, used as a first-class function value. ExprParenFunctionNameWithStarNode.``.ctor`` ``.ctor`` ExprParenFunctionNameWithStarNode.FunctionName FunctionName ExprParenFunctionNameWithStarNode.OpeningParen OpeningParen ExprParenFunctionNameWithStarNode.ClosingParen ClosingParen ### [ExprParenFunctionNameWithStarNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenfunctionnamewithstarnode.html#``.ctor``) ExprParenFunctionNameWithStarNode.``.ctor`` ``.ctor`` ### [ExprParenFunctionNameWithStarNode.FunctionName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenfunctionnamewithstarnode.html#FunctionName) ExprParenFunctionNameWithStarNode.FunctionName FunctionName ### [ExprParenFunctionNameWithStarNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenfunctionnamewithstarnode.html#OpeningParen) ExprParenFunctionNameWithStarNode.OpeningParen OpeningParen ### [ExprParenFunctionNameWithStarNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenfunctionnamewithstarnode.html#ClosingParen) ExprParenFunctionNameWithStarNode.ClosingParen ClosingParen ### [ExprParenLambdaNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenlambdanode.html) ExprParenLambdaNode Example: `(fun x -> x + 1)` β€” a lambda expression wrapped in parentheses. Distinct from `ExprLambdaNode` in that the parens are explicit and tracked as nodes. ExprParenLambdaNode.``.ctor`` ``.ctor`` ExprParenLambdaNode.Lambda Lambda ExprParenLambdaNode.OpeningParen OpeningParen ExprParenLambdaNode.ClosingParen ClosingParen ### [ExprParenLambdaNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenlambdanode.html#``.ctor``) ExprParenLambdaNode.``.ctor`` ``.ctor`` ### [ExprParenLambdaNode.Lambda](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenlambdanode.html#Lambda) ExprParenLambdaNode.Lambda Lambda ### [ExprParenLambdaNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenlambdanode.html#OpeningParen) ExprParenLambdaNode.OpeningParen OpeningParen ### [ExprParenLambdaNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparenlambdanode.html#ClosingParen) ExprParenLambdaNode.ClosingParen ClosingParen ### [ExprParenNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparennode.html) ExprParenNode Example: `(expr)` β€” an expression explicitly wrapped in parentheses for grouping or disambiguation. ExprParenNode.``.ctor`` ``.ctor`` ExprParenNode.Expr Expr ExprParenNode.OpeningParen OpeningParen ExprParenNode.ClosingParen ClosingParen ### [ExprParenNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparennode.html#``.ctor``) ExprParenNode.``.ctor`` ``.ctor`` ### [ExprParenNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparennode.html#Expr) ExprParenNode.Expr Expr ### [ExprParenNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparennode.html#OpeningParen) ExprParenNode.OpeningParen OpeningParen ### [ExprParenNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprparennode.html#ClosingParen) ExprParenNode.ClosingParen ClosingParen ### [ExprPrefixAppNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprprefixappnode.html) ExprPrefixAppNode Example: `!x`, `-x`, `~~~x` β€” a prefix (unary) operator applied to an expression. ExprPrefixAppNode.``.ctor`` ``.ctor`` ExprPrefixAppNode.Expr Expr ExprPrefixAppNode.Operator Operator ### [ExprPrefixAppNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprprefixappnode.html#``.ctor``) ExprPrefixAppNode.``.ctor`` ``.ctor`` ### [ExprPrefixAppNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprprefixappnode.html#Expr) ExprPrefixAppNode.Expr Expr ### [ExprPrefixAppNode.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprprefixappnode.html#Operator) ExprPrefixAppNode.Operator Operator ### [ExprQuoteNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprquotenode.html) ExprQuoteNode Example: `<@ expr @>` β€” a typed quotation; `<@@ expr @@>` β€” an untyped quotation. The opening and closing tokens capture the bracket pair; `Expr` is the quoted expression. ExprQuoteNode.``.ctor`` ``.ctor`` ExprQuoteNode.Expr Expr ExprQuoteNode.OpenToken OpenToken ExprQuoteNode.CloseToken CloseToken ### [ExprQuoteNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprquotenode.html#``.ctor``) ExprQuoteNode.``.ctor`` ``.ctor`` ### [ExprQuoteNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprquotenode.html#Expr) ExprQuoteNode.Expr Expr ### [ExprQuoteNode.OpenToken](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprquotenode.html#OpenToken) ExprQuoteNode.OpenToken OpenToken ### [ExprQuoteNode.CloseToken](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprquotenode.html#CloseToken) ExprQuoteNode.CloseToken CloseToken ### [ExprRecordBaseNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordbasenode.html) ExprRecordBaseNode Abstract base for all record expression nodes, providing shared access to the braces and content. ExprRecordBaseNode.``.ctor`` ``.ctor`` ExprRecordBaseNode.OpeningBrace OpeningBrace ExprRecordBaseNode.ClosingBrace ClosingBrace ExprRecordBaseNode.HasItems HasItems ExprRecordBaseNode.Fields Fields ### [ExprRecordBaseNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordbasenode.html#``.ctor``) ExprRecordBaseNode.``.ctor`` ``.ctor`` ### [ExprRecordBaseNode.OpeningBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordbasenode.html#OpeningBrace) ExprRecordBaseNode.OpeningBrace OpeningBrace ### [ExprRecordBaseNode.ClosingBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordbasenode.html#ClosingBrace) ExprRecordBaseNode.ClosingBrace ClosingBrace ### [ExprRecordBaseNode.HasItems](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordbasenode.html#HasItems) ExprRecordBaseNode.HasItems HasItems True when the braces hold anything at all, a field assignment or a spread. ### [ExprRecordBaseNode.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordbasenode.html#Fields) ExprRecordBaseNode.Fields Fields ### [ExprRecordFieldOrSpread](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordfieldorspread.html) ExprRecordFieldOrSpread A single item inside a record or anonymous record expression, in source order. ExprRecordFieldOrSpread.Node Node ExprRecordFieldOrSpread.Field Field ExprRecordFieldOrSpread.Spread Spread ### [ExprRecordFieldOrSpread.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordfieldorspread.html#Node) ExprRecordFieldOrSpread.Node Node ### [ExprRecordFieldOrSpread.Field](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordfieldorspread.html#Field) ExprRecordFieldOrSpread.Field Field ### [ExprRecordFieldOrSpread.Spread](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordfieldorspread.html#Spread) ExprRecordFieldOrSpread.Spread Spread ### [ExprRecordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordnode.html) ExprRecordNode Represents a record instance, parsed from both `SynExpr.Record` and `SynExpr.AnonRecd`. ExprRecordNode.``.ctor`` ``.ctor`` ExprRecordNode.CopyInfo CopyInfo ### [ExprRecordNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordnode.html#``.ctor``) ExprRecordNode.``.ctor`` ``.ctor`` ### [ExprRecordNode.CopyInfo](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprrecordnode.html#CopyInfo) ExprRecordNode.CopyInfo CopyInfo ### [ExprSameInfixAppsNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsameinfixappsnode.html) ExprSameInfixAppsNode Example: `a + b + c` β€” a sequence of the *same* operator applied repeatedly (avoids redundant nesting) ExprSameInfixAppsNode.``.ctor`` ``.ctor`` ExprSameInfixAppsNode.SubsequentExpressions SubsequentExpressions ExprSameInfixAppsNode.LeadingExpr LeadingExpr ### [ExprSameInfixAppsNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsameinfixappsnode.html#``.ctor``) ExprSameInfixAppsNode.``.ctor`` ``.ctor`` ### [ExprSameInfixAppsNode.SubsequentExpressions](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsameinfixappsnode.html#SubsequentExpressions) ExprSameInfixAppsNode.SubsequentExpressions SubsequentExpressions ### [ExprSameInfixAppsNode.LeadingExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsameinfixappsnode.html#LeadingExpr) ExprSameInfixAppsNode.LeadingExpr LeadingExpr ### [ExprSetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsetnode.html) ExprSetNode Example: `x <- newValue` β€” an imperative assignment (mutation) expression. ExprSetNode.``.ctor`` ``.ctor`` ExprSetNode.Set Set ExprSetNode.Identifier Identifier ### [ExprSetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsetnode.html#``.ctor``) ExprSetNode.``.ctor`` ``.ctor`` ### [ExprSetNode.Set](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsetnode.html#Set) ExprSetNode.Set Set ### [ExprSetNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsetnode.html#Identifier) ExprSetNode.Identifier Identifier ### [ExprSingleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsinglenode.html) ExprSingleNode A single expression prefixed by a keyword, e.g. `assert condition`, `yield value`, `return result`, `upcast expr`, `downcast expr`, `do expr`, `do! asyncExpr`, `return! asyncExpr`. `AddSpace` controls whether a space is emitted between the keyword and the expression. ExprSingleNode.``.ctor`` ``.ctor`` ExprSingleNode.SupportsStroustrup SupportsStroustrup ExprSingleNode.Expr Expr ExprSingleNode.AddSpace AddSpace ExprSingleNode.Leading Leading ### [ExprSingleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsinglenode.html#``.ctor``) ExprSingleNode.``.ctor`` ``.ctor`` ### [ExprSingleNode.SupportsStroustrup](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsinglenode.html#SupportsStroustrup) ExprSingleNode.SupportsStroustrup SupportsStroustrup ### [ExprSingleNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsinglenode.html#Expr) ExprSingleNode.Expr Expr ### [ExprSingleNode.AddSpace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsinglenode.html#AddSpace) ExprSingleNode.AddSpace AddSpace ### [ExprSingleNode.Leading](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprsinglenode.html#Leading) ExprSingleNode.Leading Leading ### [ExprSpreadNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprspreadnode.html) ExprSpreadNode Example: `...source` β€” a spread of an existing value into a record or anonymous record expression. The source is an arbitrary expression, the same grammar as the right-hand side of a field. ExprSpreadNode.``.ctor`` ``.ctor`` ExprSpreadNode.Expr Expr ExprSpreadNode.Dots Dots ### [ExprSpreadNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprspreadnode.html#``.ctor``) ExprSpreadNode.``.ctor`` ``.ctor`` ### [ExprSpreadNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprspreadnode.html#Expr) ExprSpreadNode.Expr Expr ### [ExprSpreadNode.Dots](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprspreadnode.html#Dots) ExprSpreadNode.Dots Dots ### [ExprStructTupleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprstructtuplenode.html) ExprStructTupleNode Example: `struct (a, b, c)` β€” a struct tuple expression. Wraps an `ExprTupleNode` and adds the `struct` keyword and a closing parenthesis. ExprStructTupleNode.``.ctor`` ``.ctor`` ExprStructTupleNode.Struct Struct ExprStructTupleNode.ClosingParen ClosingParen ExprStructTupleNode.Tuple Tuple ### [ExprStructTupleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprstructtuplenode.html#``.ctor``) ExprStructTupleNode.``.ctor`` ``.ctor`` ### [ExprStructTupleNode.Struct](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprstructtuplenode.html#Struct) ExprStructTupleNode.Struct Struct ### [ExprStructTupleNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprstructtuplenode.html#ClosingParen) ExprStructTupleNode.ClosingParen ClosingParen ### [ExprStructTupleNode.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprstructtuplenode.html#Tuple) ExprStructTupleNode.Tuple Tuple ### [ExprTraitCallNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtraitcallnode.html) ExprTraitCallNode Example: `(^T : (member Get : unit -> int) t)` β€” a statically-resolved type parameter (SRTP) trait call. Invokes `MemberDefn` on value `Expr` constrained to type `Type` at compile time. ExprTraitCallNode.``.ctor`` ``.ctor`` ExprTraitCallNode.Type Type ExprTraitCallNode.Expr Expr ExprTraitCallNode.MemberDefn MemberDefn ### [ExprTraitCallNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtraitcallnode.html#``.ctor``) ExprTraitCallNode.``.ctor`` ``.ctor`` ### [ExprTraitCallNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtraitcallnode.html#Type) ExprTraitCallNode.Type Type ### [ExprTraitCallNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtraitcallnode.html#Expr) ExprTraitCallNode.Expr Expr ### [ExprTraitCallNode.MemberDefn](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtraitcallnode.html#MemberDefn) ExprTraitCallNode.MemberDefn MemberDefn ### [ExprTripleNumberIndexRangeNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html) ExprTripleNumberIndexRangeNode Example: `0..2..10` β€” a three-part numeric range with start, step, and end values (used in slice expressions). ExprTripleNumberIndexRangeNode.``.ctor`` ``.ctor`` ExprTripleNumberIndexRangeNode.Start Start ExprTripleNumberIndexRangeNode.End End ExprTripleNumberIndexRangeNode.StartDots StartDots ExprTripleNumberIndexRangeNode.Center Center ExprTripleNumberIndexRangeNode.EndDots EndDots ### [ExprTripleNumberIndexRangeNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html#``.ctor``) ExprTripleNumberIndexRangeNode.``.ctor`` ``.ctor`` ### [ExprTripleNumberIndexRangeNode.Start](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html#Start) ExprTripleNumberIndexRangeNode.Start Start ### [ExprTripleNumberIndexRangeNode.End](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html#End) ExprTripleNumberIndexRangeNode.End End ### [ExprTripleNumberIndexRangeNode.StartDots](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html#StartDots) ExprTripleNumberIndexRangeNode.StartDots StartDots ### [ExprTripleNumberIndexRangeNode.Center](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html#Center) ExprTripleNumberIndexRangeNode.Center Center ### [ExprTripleNumberIndexRangeNode.EndDots](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtriplenumberindexrangenode.html#EndDots) ExprTripleNumberIndexRangeNode.EndDots EndDots ### [ExprTryFinallyNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtryfinallynode.html) ExprTryFinallyNode Example: `try riskyOp() finally cleanup()` β€” a try/finally expression that always runs `FinallyExpr`. ExprTryFinallyNode.``.ctor`` ``.ctor`` ExprTryFinallyNode.TryExpr TryExpr ExprTryFinallyNode.Finally Finally ExprTryFinallyNode.FinallyExpr FinallyExpr ExprTryFinallyNode.Try Try ### [ExprTryFinallyNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtryfinallynode.html#``.ctor``) ExprTryFinallyNode.``.ctor`` ``.ctor`` ### [ExprTryFinallyNode.TryExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtryfinallynode.html#TryExpr) ExprTryFinallyNode.TryExpr TryExpr ### [ExprTryFinallyNode.Finally](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtryfinallynode.html#Finally) ExprTryFinallyNode.Finally Finally ### [ExprTryFinallyNode.FinallyExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtryfinallynode.html#FinallyExpr) ExprTryFinallyNode.FinallyExpr FinallyExpr ### [ExprTryFinallyNode.Try](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtryfinallynode.html#Try) ExprTryFinallyNode.Try Try ### [ExprTryWithNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithnode.html) ExprTryWithNode Example: `try riskyOp() with | :? IOException -> "IO" | ex -> sprintf "other: %O" ex` β€” a try/with with multiple match clauses. ExprTryWithNode.``.ctor`` ``.ctor`` ExprTryWithNode.TryExpr TryExpr ExprTryWithNode.With With ExprTryWithNode.Clauses Clauses ExprTryWithNode.Try Try ### [ExprTryWithNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithnode.html#``.ctor``) ExprTryWithNode.``.ctor`` ``.ctor`` ### [ExprTryWithNode.TryExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithnode.html#TryExpr) ExprTryWithNode.TryExpr TryExpr ### [ExprTryWithNode.With](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithnode.html#With) ExprTryWithNode.With With ### [ExprTryWithNode.Clauses](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithnode.html#Clauses) ExprTryWithNode.Clauses Clauses ### [ExprTryWithNode.Try](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithnode.html#Try) ExprTryWithNode.Try Try ### [ExprTryWithSingleClauseNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithsingleclausenode.html) ExprTryWithSingleClauseNode Example: `try riskyOp() with :? IOException -> "IO error"` β€” a try/with with exactly one match clause. Used as an optimised form when a single pattern covers all exception cases. ExprTryWithSingleClauseNode.``.ctor`` ``.ctor`` ExprTryWithSingleClauseNode.Clause Clause ExprTryWithSingleClauseNode.TryExpr TryExpr ExprTryWithSingleClauseNode.With With ExprTryWithSingleClauseNode.Try Try ### [ExprTryWithSingleClauseNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithsingleclausenode.html#``.ctor``) ExprTryWithSingleClauseNode.``.ctor`` ``.ctor`` ### [ExprTryWithSingleClauseNode.Clause](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithsingleclausenode.html#Clause) ExprTryWithSingleClauseNode.Clause Clause ### [ExprTryWithSingleClauseNode.TryExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithsingleclausenode.html#TryExpr) ExprTryWithSingleClauseNode.TryExpr TryExpr ### [ExprTryWithSingleClauseNode.With](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithsingleclausenode.html#With) ExprTryWithSingleClauseNode.With With ### [ExprTryWithSingleClauseNode.Try](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtrywithsingleclausenode.html#Try) ExprTryWithSingleClauseNode.Try Try ### [ExprTupleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtuplenode.html) ExprTupleNode Example: `(a, b, c)` β€” items are interleaved with comma `SingleTextNode` separators ExprTupleNode.``.ctor`` ``.ctor`` ExprTupleNode.Items Items ### [ExprTupleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtuplenode.html#``.ctor``) ExprTupleNode.``.ctor`` ``.ctor`` ### [ExprTupleNode.Items](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtuplenode.html#Items) ExprTupleNode.Items Items ### [ExprTypeAppNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypeappnode.html) ExprTypeAppNode Example: `id` or `List.empty` β€” a generic type application using angle-bracket syntax. ExprTypeAppNode.``.ctor`` ``.ctor`` ExprTypeAppNode.TypeParameters TypeParameters ExprTypeAppNode.GreaterThan GreaterThan ExprTypeAppNode.Identifier Identifier ExprTypeAppNode.LessThan LessThan ### [ExprTypeAppNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypeappnode.html#``.ctor``) ExprTypeAppNode.``.ctor`` ``.ctor`` ### [ExprTypeAppNode.TypeParameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypeappnode.html#TypeParameters) ExprTypeAppNode.TypeParameters TypeParameters ### [ExprTypeAppNode.GreaterThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypeappnode.html#GreaterThan) ExprTypeAppNode.GreaterThan GreaterThan ### [ExprTypeAppNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypeappnode.html#Identifier) ExprTypeAppNode.Identifier Identifier ### [ExprTypeAppNode.LessThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypeappnode.html#LessThan) ExprTypeAppNode.LessThan LessThan ### [ExprTypedNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypednode.html) ExprTypedNode Example: `expr : Type` (type annotation), `expr :? Type` (type test / downcast), `expr :>> Type` (upcast). `Operator` holds the specific type operator string (`:`, `:?`, `:>`, `:>>`). ExprTypedNode.``.ctor`` ``.ctor`` ExprTypedNode.Type Type ExprTypedNode.Expr Expr ExprTypedNode.Operator Operator ### [ExprTypedNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypednode.html#``.ctor``) ExprTypedNode.``.ctor`` ``.ctor`` ### [ExprTypedNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypednode.html#Type) ExprTypedNode.Type Type ### [ExprTypedNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypednode.html#Expr) ExprTypedNode.Expr Expr ### [ExprTypedNode.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprtypednode.html#Operator) ExprTypedNode.Operator Operator ### [ExprWhileNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprwhilenode.html) ExprWhileNode Example: `while i < 10 do printfn "%d" i; i <- i + 1` β€” a while loop. ExprWhileNode.``.ctor`` ``.ctor`` ExprWhileNode.While While ExprWhileNode.WhileExpr WhileExpr ExprWhileNode.DoExpr DoExpr ### [ExprWhileNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprwhilenode.html#``.ctor``) ExprWhileNode.``.ctor`` ``.ctor`` ### [ExprWhileNode.While](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprwhilenode.html#While) ExprWhileNode.While While ### [ExprWhileNode.WhileExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprwhilenode.html#WhileExpr) ExprWhileNode.WhileExpr WhileExpr ### [ExprWhileNode.DoExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-exprwhilenode.html#DoExpr) ExprWhileNode.DoExpr DoExpr ### [ExternBindingNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html) ExternBindingNode Example: `[] extern int myFunc(int a, string b)` β€” a P/Invoke extern binding. ExternBindingNode.``.ctor`` ``.ctor`` ExternBindingNode.Extern Extern ExternBindingNode.Type Type ExternBindingNode.Accessibility Accessibility ExternBindingNode.Attributes Attributes ExternBindingNode.Parameters Parameters ExternBindingNode.AttributesOfType AttributesOfType ExternBindingNode.Identifier Identifier ExternBindingNode.OpeningParen OpeningParen ExternBindingNode.ClosingParen ClosingParen ExternBindingNode.XmlDoc XmlDoc ExternBindingNode.Static Static ### [ExternBindingNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#``.ctor``) ExternBindingNode.``.ctor`` ``.ctor`` ### [ExternBindingNode.Extern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Extern) ExternBindingNode.Extern Extern ### [ExternBindingNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Type) ExternBindingNode.Type Type ### [ExternBindingNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Accessibility) ExternBindingNode.Accessibility Accessibility ### [ExternBindingNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Attributes) ExternBindingNode.Attributes Attributes ### [ExternBindingNode.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Parameters) ExternBindingNode.Parameters Parameters ### [ExternBindingNode.AttributesOfType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#AttributesOfType) ExternBindingNode.AttributesOfType AttributesOfType ### [ExternBindingNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Identifier) ExternBindingNode.Identifier Identifier ### [ExternBindingNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#OpeningParen) ExternBindingNode.OpeningParen OpeningParen ### [ExternBindingNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#ClosingParen) ExternBindingNode.ClosingParen ClosingParen ### [ExternBindingNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#XmlDoc) ExternBindingNode.XmlDoc XmlDoc ### [ExternBindingNode.Static](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingnode.html#Static) ExternBindingNode.Static Static ### [ExternBindingPatternNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingpatternnode.html) ExternBindingPatternNode A single parameter in an `extern` binding: optional attributes, an optional type, and an optional pattern name. ExternBindingPatternNode.``.ctor`` ``.ctor`` ExternBindingPatternNode.Type Type ExternBindingPatternNode.Attributes Attributes ExternBindingPatternNode.Pattern Pattern ### [ExternBindingPatternNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingpatternnode.html#``.ctor``) ExternBindingPatternNode.``.ctor`` ``.ctor`` ### [ExternBindingPatternNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingpatternnode.html#Type) ExternBindingPatternNode.Type Type ### [ExternBindingPatternNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingpatternnode.html#Attributes) ExternBindingPatternNode.Attributes Attributes ### [ExternBindingPatternNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-externbindingpatternnode.html#Pattern) ExternBindingPatternNode.Pattern Pattern ### [FieldNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html) FieldNode Example: `val mutable private name: int` β€” a field declaration inside a type definition. Used for record fields, union-case fields, and `val`-style class fields. FieldNode.``.ctor`` ``.ctor`` FieldNode.Type Type FieldNode.Accessibility Accessibility FieldNode.LeadingKeyword LeadingKeyword FieldNode.Attributes Attributes FieldNode.Name Name FieldNode.MutableKeyword MutableKeyword FieldNode.XmlDoc XmlDoc ### [FieldNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#``.ctor``) FieldNode.``.ctor`` ``.ctor`` ### [FieldNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#Type) FieldNode.Type Type ### [FieldNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#Accessibility) FieldNode.Accessibility Accessibility ### [FieldNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#LeadingKeyword) FieldNode.LeadingKeyword LeadingKeyword ### [FieldNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#Attributes) FieldNode.Attributes Attributes ### [FieldNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#Name) FieldNode.Name Name ### [FieldNode.MutableKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#MutableKeyword) FieldNode.MutableKeyword MutableKeyword ### [FieldNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fieldnode.html#XmlDoc) FieldNode.XmlDoc XmlDoc ### [FillExprNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fillexprnode.html) FillExprNode An interpolated-string fill hole: an expression together with an optional format identifier (e.g., `{x:N2}`). FillExprNode.``.ctor`` ``.ctor`` FillExprNode.Expr Expr FillExprNode.Ident Ident ### [FillExprNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fillexprnode.html#``.ctor``) FillExprNode.``.ctor`` ``.ctor`` ### [FillExprNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fillexprnode.html#Expr) FillExprNode.Expr Expr ### [FillExprNode.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-fillexprnode.html#Ident) FillExprNode.Ident Ident ### [HashDirectiveListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-hashdirectivelistnode.html) HashDirectiveListNode A group of consecutive hash directives (e.g. `#r "..."` followed by `#load "..."`) treated as a single declaration. HashDirectiveListNode.``.ctor`` ``.ctor`` HashDirectiveListNode.HashDirectives HashDirectives ### [HashDirectiveListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-hashdirectivelistnode.html#``.ctor``) HashDirectiveListNode.``.ctor`` ``.ctor`` ### [HashDirectiveListNode.HashDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-hashdirectivelistnode.html#HashDirectives) HashDirectiveListNode.HashDirectives HashDirectives ### [IdentListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identlistnode.html) IdentListNode Example: `A.B.C` or `A` β€” a qualified identifier (sequence of idents and dots). Used wherever a dotted name appears: module names, type names, open statements, etc. IdentListNode.``.ctor`` ``.ctor`` IdentListNode.Content Content IdentListNode.IsEmpty IsEmpty IdentListNode.Empty Empty ### [IdentListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identlistnode.html#``.ctor``) IdentListNode.``.ctor`` ``.ctor`` ### [IdentListNode.Content](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identlistnode.html#Content) IdentListNode.Content Content ### [IdentListNode.IsEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identlistnode.html#IsEmpty) IdentListNode.IsEmpty IsEmpty ### [IdentListNode.Empty](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identlistnode.html#Empty) IdentListNode.Empty Empty ### [IdentifierOrDot](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identifierordot.html) IdentifierOrDot A single element of a dotted identifier path, either an identifier token or a dot separator. KnownDot carries the source range of the . when it is present in the source; UnknownDot is used as a synthetic separator when the original range is unavailable. IdentifierOrDot.Range Range IdentifierOrDot.Ident Ident IdentifierOrDot.KnownDot KnownDot IdentifierOrDot.UnknownDot UnknownDot ### [IdentifierOrDot.Range](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identifierordot.html#Range) IdentifierOrDot.Range Range ### [IdentifierOrDot.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identifierordot.html#Ident) IdentifierOrDot.Ident Ident ### [IdentifierOrDot.KnownDot](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identifierordot.html#KnownDot) IdentifierOrDot.KnownDot KnownDot ### [IdentifierOrDot.UnknownDot](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-identifierordot.html#UnknownDot) IdentifierOrDot.UnknownDot UnknownDot ### [IfKeywordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-ifkeywordnode.html) IfKeywordNode The leading keyword of an `if` expression: a single `if` or `elif` token, or the two tokens of `else if`. CodePrinter writes `else if` as one piece and moves the trivia that sat between the two keywords. IfKeywordNode.Range Range IfKeywordNode.Nodes Nodes IfKeywordNode.SingleWord SingleWord IfKeywordNode.ElseIf ElseIf ### [IfKeywordNode.Range](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-ifkeywordnode.html#Range) IfKeywordNode.Range Range ### [IfKeywordNode.Nodes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-ifkeywordnode.html#Nodes) IfKeywordNode.Nodes Nodes ### [IfKeywordNode.SingleWord](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-ifkeywordnode.html#SingleWord) IfKeywordNode.SingleWord SingleWord ### [IfKeywordNode.ElseIf](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-ifkeywordnode.html#ElseIf) IfKeywordNode.ElseIf ElseIf ### [ImplicitConstructorNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html) ImplicitConstructorNode Example: `(x: int, y: string) as self` β€” the primary constructor definition directly following the type name. ImplicitConstructorNode.``.ctor`` ``.ctor`` ImplicitConstructorNode.Accessibility Accessibility ImplicitConstructorNode.Attributes Attributes ImplicitConstructorNode.Pattern Pattern ImplicitConstructorNode.Self Self ImplicitConstructorNode.XmlDoc XmlDoc ### [ImplicitConstructorNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html#``.ctor``) ImplicitConstructorNode.``.ctor`` ``.ctor`` ### [ImplicitConstructorNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html#Accessibility) ImplicitConstructorNode.Accessibility Accessibility ### [ImplicitConstructorNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html#Attributes) ImplicitConstructorNode.Attributes Attributes ### [ImplicitConstructorNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html#Pattern) ImplicitConstructorNode.Pattern Pattern ### [ImplicitConstructorNode.Self](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html#Self) ImplicitConstructorNode.Self Self ### [ImplicitConstructorNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-implicitconstructornode.html#XmlDoc) ImplicitConstructorNode.XmlDoc XmlDoc ### [InfixApp](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-infixapp.html) InfixApp Marker interface implemented by and to allow the printer to treat both infix-application forms uniformly when deciding layout (e.g. newline-infix formatting). ### [InheritConstructor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html) InheritConstructor Discriminated union for the argument form following an inherit declaration. Covers the four constructor syntax variants: bare type, unit (), parenthesised argument list, and any other expression argument form. InheritConstructor.InheritKeyword InheritKeyword InheritConstructor.Node Node InheritConstructor.TypeOnly TypeOnly InheritConstructor.Unit Unit InheritConstructor.Paren Paren InheritConstructor.Other Other ### [InheritConstructor.InheritKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html#InheritKeyword) InheritConstructor.InheritKeyword InheritKeyword ### [InheritConstructor.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html#Node) InheritConstructor.Node Node ### [InheritConstructor.TypeOnly](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html#TypeOnly) InheritConstructor.TypeOnly TypeOnly ### [InheritConstructor.Unit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html#Unit) InheritConstructor.Unit Unit ### [InheritConstructor.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html#Paren) InheritConstructor.Paren Paren ### [InheritConstructor.Other](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructor.html#Other) InheritConstructor.Other Other ### [InheritConstructorOtherNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorothernode.html) InheritConstructorOtherNode Example: `inherit Base arg1 arg2` β€” inherits from a type with non-parenthesised constructor arguments. InheritConstructorOtherNode.``.ctor`` ``.ctor`` InheritConstructorOtherNode.Type Type InheritConstructorOtherNode.Expr Expr InheritConstructorOtherNode.InheritKeyword InheritKeyword ### [InheritConstructorOtherNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorothernode.html#``.ctor``) InheritConstructorOtherNode.``.ctor`` ``.ctor`` ### [InheritConstructorOtherNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorothernode.html#Type) InheritConstructorOtherNode.Type Type ### [InheritConstructorOtherNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorothernode.html#Expr) InheritConstructorOtherNode.Expr Expr ### [InheritConstructorOtherNode.InheritKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorothernode.html#InheritKeyword) InheritConstructorOtherNode.InheritKeyword InheritKeyword ### [InheritConstructorParenNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorparennode.html) InheritConstructorParenNode Example: `inherit Base(arg)` β€” inherits from a type with a single parenthesised constructor argument. InheritConstructorParenNode.``.ctor`` ``.ctor`` InheritConstructorParenNode.Type Type InheritConstructorParenNode.Expr Expr InheritConstructorParenNode.InheritKeyword InheritKeyword ### [InheritConstructorParenNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorparennode.html#``.ctor``) InheritConstructorParenNode.``.ctor`` ``.ctor`` ### [InheritConstructorParenNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorparennode.html#Type) InheritConstructorParenNode.Type Type ### [InheritConstructorParenNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorparennode.html#Expr) InheritConstructorParenNode.Expr Expr ### [InheritConstructorParenNode.InheritKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorparennode.html#InheritKeyword) InheritConstructorParenNode.InheritKeyword InheritKeyword ### [InheritConstructorTypeOnlyNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructortypeonlynode.html) InheritConstructorTypeOnlyNode Example: `inherit Base` β€” inherits from a type with no constructor arguments. InheritConstructorTypeOnlyNode.``.ctor`` ``.ctor`` InheritConstructorTypeOnlyNode.Type Type InheritConstructorTypeOnlyNode.InheritKeyword InheritKeyword ### [InheritConstructorTypeOnlyNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructortypeonlynode.html#``.ctor``) InheritConstructorTypeOnlyNode.``.ctor`` ``.ctor`` ### [InheritConstructorTypeOnlyNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructortypeonlynode.html#Type) InheritConstructorTypeOnlyNode.Type Type ### [InheritConstructorTypeOnlyNode.InheritKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructortypeonlynode.html#InheritKeyword) InheritConstructorTypeOnlyNode.InheritKeyword InheritKeyword ### [InheritConstructorUnitNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorunitnode.html) InheritConstructorUnitNode Example: `inherit Base()` β€” inherits from a type with an explicit unit constructor. InheritConstructorUnitNode.``.ctor`` ``.ctor`` InheritConstructorUnitNode.Type Type InheritConstructorUnitNode.InheritKeyword InheritKeyword InheritConstructorUnitNode.OpeningParen OpeningParen InheritConstructorUnitNode.ClosingParen ClosingParen ### [InheritConstructorUnitNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorunitnode.html#``.ctor``) InheritConstructorUnitNode.``.ctor`` ``.ctor`` ### [InheritConstructorUnitNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorunitnode.html#Type) InheritConstructorUnitNode.Type Type ### [InheritConstructorUnitNode.InheritKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorunitnode.html#InheritKeyword) InheritConstructorUnitNode.InheritKeyword InheritKeyword ### [InheritConstructorUnitNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorunitnode.html#OpeningParen) InheritConstructorUnitNode.OpeningParen OpeningParen ### [InheritConstructorUnitNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-inheritconstructorunitnode.html#ClosingParen) InheritConstructorUnitNode.ClosingParen ClosingParen ### [InterfaceImplNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html) InterfaceImplNode Example: `interface IDisposable with member _.Dispose() = ()` β€” an interface implementation clause inside an object expression or type definition. InterfaceImplNode.``.ctor`` ``.ctor`` InterfaceImplNode.Interface Interface InterfaceImplNode.Type Type InterfaceImplNode.Bindings Bindings InterfaceImplNode.Members Members InterfaceImplNode.With With ### [InterfaceImplNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html#``.ctor``) InterfaceImplNode.``.ctor`` ``.ctor`` ### [InterfaceImplNode.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html#Interface) InterfaceImplNode.Interface Interface ### [InterfaceImplNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html#Type) InterfaceImplNode.Type Type ### [InterfaceImplNode.Bindings](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html#Bindings) InterfaceImplNode.Bindings Bindings ### [InterfaceImplNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html#Members) InterfaceImplNode.Members Members ### [InterfaceImplNode.With](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-interfaceimplnode.html#With) InterfaceImplNode.With With ### [MatchClauseNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html) MatchClauseNode Example: `| pat when guard -> body` β€” a single arm of a `match` or `try…with` expression. The leading bar, guard (`when` clause), and arrow are all optional depending on context. MatchClauseNode.``.ctor`` ``.ctor`` MatchClauseNode.Bar Bar MatchClauseNode.BodyExpr BodyExpr MatchClauseNode.Arrow Arrow MatchClauseNode.Pattern Pattern MatchClauseNode.WhenExpr WhenExpr ### [MatchClauseNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html#``.ctor``) MatchClauseNode.``.ctor`` ``.ctor`` ### [MatchClauseNode.Bar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html#Bar) MatchClauseNode.Bar Bar ### [MatchClauseNode.BodyExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html#BodyExpr) MatchClauseNode.BodyExpr BodyExpr ### [MatchClauseNode.Arrow](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html#Arrow) MatchClauseNode.Arrow Arrow ### [MatchClauseNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html#Pattern) MatchClauseNode.Pattern Pattern ### [MatchClauseNode.WhenExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-matchclausenode.html#WhenExpr) MatchClauseNode.WhenExpr WhenExpr ### [Measure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html) Measure Measure.Node Node Measure.Single Single Measure.Operator Operator Measure.Divide Divide Measure.Power Power Measure.Multiple Multiple Measure.Seq Seq Measure.Paren Paren ### [Measure.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Node) Measure.Node Node ### [Measure.Single](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Single) Measure.Single Single ### [Measure.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Operator) Measure.Operator Operator ### [Measure.Divide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Divide) Measure.Divide Divide ### [Measure.Power](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Power) Measure.Power Power ### [Measure.Multiple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Multiple) Measure.Multiple Multiple ### [Measure.Seq](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Seq) Measure.Seq Seq ### [Measure.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measure.html#Paren) Measure.Paren Paren ### [MeasureDivideNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuredividenode.html) MeasureDivideNode Example: `m / s` or `1 / s` (when LeftHandSide is None, represents the reciprocal `/ s`). MeasureDivideNode.``.ctor`` ``.ctor`` MeasureDivideNode.LeftHandSide LeftHandSide MeasureDivideNode.Operator Operator MeasureDivideNode.RightHandSide RightHandSide ### [MeasureDivideNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuredividenode.html#``.ctor``) MeasureDivideNode.``.ctor`` ``.ctor`` ### [MeasureDivideNode.LeftHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuredividenode.html#LeftHandSide) MeasureDivideNode.LeftHandSide LeftHandSide ### [MeasureDivideNode.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuredividenode.html#Operator) MeasureDivideNode.Operator Operator ### [MeasureDivideNode.RightHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuredividenode.html#RightHandSide) MeasureDivideNode.RightHandSide RightHandSide ### [MeasureOperatorNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureoperatornode.html) MeasureOperatorNode Example: `m * s` or `m / s` β€” a binary operator expression between two unit-of-measure terms. MeasureOperatorNode.``.ctor`` ``.ctor`` MeasureOperatorNode.LeftHandSide LeftHandSide MeasureOperatorNode.Operator Operator MeasureOperatorNode.RightHandSide RightHandSide ### [MeasureOperatorNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureoperatornode.html#``.ctor``) MeasureOperatorNode.``.ctor`` ``.ctor`` ### [MeasureOperatorNode.LeftHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureoperatornode.html#LeftHandSide) MeasureOperatorNode.LeftHandSide LeftHandSide ### [MeasureOperatorNode.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureoperatornode.html#Operator) MeasureOperatorNode.Operator Operator ### [MeasureOperatorNode.RightHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureoperatornode.html#RightHandSide) MeasureOperatorNode.RightHandSide RightHandSide ### [MeasureParenNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureparennode.html) MeasureParenNode Example: `(m * s)` β€” a parenthesised unit-of-measure expression for grouping. MeasureParenNode.``.ctor`` ``.ctor`` MeasureParenNode.Measure Measure MeasureParenNode.OpeningParen OpeningParen MeasureParenNode.ClosingParen ClosingParen ### [MeasureParenNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureparennode.html#``.ctor``) MeasureParenNode.``.ctor`` ``.ctor`` ### [MeasureParenNode.Measure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureparennode.html#Measure) MeasureParenNode.Measure Measure ### [MeasureParenNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureparennode.html#OpeningParen) MeasureParenNode.OpeningParen OpeningParen ### [MeasureParenNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measureparennode.html#ClosingParen) MeasureParenNode.ClosingParen ClosingParen ### [MeasurePowerNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measurepowernode.html) MeasurePowerNode Example: `m^2` β€” a unit-of-measure raised to a rational power. MeasurePowerNode.``.ctor`` ``.ctor`` MeasurePowerNode.Exponent Exponent MeasurePowerNode.Caret Caret MeasurePowerNode.Measure Measure ### [MeasurePowerNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measurepowernode.html#``.ctor``) MeasurePowerNode.``.ctor`` ``.ctor`` ### [MeasurePowerNode.Exponent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measurepowernode.html#Exponent) MeasurePowerNode.Exponent Exponent ### [MeasurePowerNode.Caret](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measurepowernode.html#Caret) MeasurePowerNode.Caret Caret ### [MeasurePowerNode.Measure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measurepowernode.html#Measure) MeasurePowerNode.Measure Measure ### [MeasureSequenceNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuresequencenode.html) MeasureSequenceNode Example: `m s` β€” a sequence of juxtaposed unit-of-measure terms (implicit multiplication). MeasureSequenceNode.``.ctor`` ``.ctor`` MeasureSequenceNode.Measures Measures ### [MeasureSequenceNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuresequencenode.html#``.ctor``) MeasureSequenceNode.``.ctor`` ``.ctor`` ### [MeasureSequenceNode.Measures](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-measuresequencenode.html#Measures) MeasureSequenceNode.Measures Measures ### [MemberDefn](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html) MemberDefn Discriminated union of all member definitions that can appear inside a type body. Covers everything from inherit and val fields to explicit constructors, abstract slots, auto-properties, and interface implementations. MemberDefn.Node Node MemberDefn.ImplicitInherit ImplicitInherit MemberDefn.Inherit Inherit MemberDefn.ValField ValField MemberDefn.Member Member MemberDefn.ExternBinding ExternBinding MemberDefn.DoExpr DoExpr MemberDefn.LetBinding LetBinding MemberDefn.ExplicitCtor ExplicitCtor MemberDefn.Interface Interface MemberDefn.AutoProperty AutoProperty MemberDefn.AbstractSlot AbstractSlot MemberDefn.PropertyGetSet PropertyGetSet MemberDefn.SigMember SigMember ### [MemberDefn.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#Node) MemberDefn.Node Node ### [MemberDefn.ImplicitInherit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#ImplicitInherit) MemberDefn.ImplicitInherit ImplicitInherit ### [MemberDefn.Inherit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#Inherit) MemberDefn.Inherit Inherit ### [MemberDefn.ValField](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#ValField) MemberDefn.ValField ValField ### [MemberDefn.Member](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#Member) MemberDefn.Member Member ### [MemberDefn.ExternBinding](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#ExternBinding) MemberDefn.ExternBinding ExternBinding ### [MemberDefn.DoExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#DoExpr) MemberDefn.DoExpr DoExpr ### [MemberDefn.LetBinding](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#LetBinding) MemberDefn.LetBinding LetBinding ### [MemberDefn.ExplicitCtor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#ExplicitCtor) MemberDefn.ExplicitCtor ExplicitCtor ### [MemberDefn.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#Interface) MemberDefn.Interface Interface ### [MemberDefn.AutoProperty](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#AutoProperty) MemberDefn.AutoProperty AutoProperty ### [MemberDefn.AbstractSlot](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#AbstractSlot) MemberDefn.AbstractSlot AbstractSlot ### [MemberDefn.PropertyGetSet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#PropertyGetSet) MemberDefn.PropertyGetSet PropertyGetSet ### [MemberDefn.SigMember](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefn.html#SigMember) MemberDefn.SigMember SigMember ### [MemberDefnAbstractSlotNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html) MemberDefnAbstractSlotNode Example: `abstract member Area: float` β€” an abstract member declaration specifying a name and type signature. MemberDefnAbstractSlotNode.``.ctor`` ``.ctor`` MemberDefnAbstractSlotNode.Type Type MemberDefnAbstractSlotNode.LeadingKeyword LeadingKeyword MemberDefnAbstractSlotNode.WithGetSet WithGetSet MemberDefnAbstractSlotNode.Attributes Attributes MemberDefnAbstractSlotNode.Identifier Identifier MemberDefnAbstractSlotNode.TypeParams TypeParams MemberDefnAbstractSlotNode.XmlDoc XmlDoc ### [MemberDefnAbstractSlotNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#``.ctor``) MemberDefnAbstractSlotNode.``.ctor`` ``.ctor`` ### [MemberDefnAbstractSlotNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#Type) MemberDefnAbstractSlotNode.Type Type ### [MemberDefnAbstractSlotNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#LeadingKeyword) MemberDefnAbstractSlotNode.LeadingKeyword LeadingKeyword ### [MemberDefnAbstractSlotNode.WithGetSet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#WithGetSet) MemberDefnAbstractSlotNode.WithGetSet WithGetSet ### [MemberDefnAbstractSlotNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#Attributes) MemberDefnAbstractSlotNode.Attributes Attributes ### [MemberDefnAbstractSlotNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#Identifier) MemberDefnAbstractSlotNode.Identifier Identifier ### [MemberDefnAbstractSlotNode.TypeParams](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#TypeParams) MemberDefnAbstractSlotNode.TypeParams TypeParams ### [MemberDefnAbstractSlotNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnabstractslotnode.html#XmlDoc) MemberDefnAbstractSlotNode.XmlDoc XmlDoc ### [MemberDefnAutoPropertyNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html) MemberDefnAutoPropertyNode Example: `member val Name = "" with get, set` β€” an auto-implemented property that generates a backing field automatically. MemberDefnAutoPropertyNode.``.ctor`` ``.ctor`` MemberDefnAutoPropertyNode.Equals Equals MemberDefnAutoPropertyNode.Type Type MemberDefnAutoPropertyNode.Accessibility Accessibility MemberDefnAutoPropertyNode.LeadingKeyword LeadingKeyword MemberDefnAutoPropertyNode.WithGetSet WithGetSet MemberDefnAutoPropertyNode.Attributes Attributes MemberDefnAutoPropertyNode.Expr Expr MemberDefnAutoPropertyNode.Identifier Identifier MemberDefnAutoPropertyNode.XmlDoc XmlDoc ### [MemberDefnAutoPropertyNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#``.ctor``) MemberDefnAutoPropertyNode.``.ctor`` ``.ctor`` ### [MemberDefnAutoPropertyNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#Equals) MemberDefnAutoPropertyNode.Equals Equals ### [MemberDefnAutoPropertyNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#Type) MemberDefnAutoPropertyNode.Type Type ### [MemberDefnAutoPropertyNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#Accessibility) MemberDefnAutoPropertyNode.Accessibility Accessibility ### [MemberDefnAutoPropertyNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#LeadingKeyword) MemberDefnAutoPropertyNode.LeadingKeyword LeadingKeyword ### [MemberDefnAutoPropertyNode.WithGetSet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#WithGetSet) MemberDefnAutoPropertyNode.WithGetSet WithGetSet ### [MemberDefnAutoPropertyNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#Attributes) MemberDefnAutoPropertyNode.Attributes Attributes ### [MemberDefnAutoPropertyNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#Expr) MemberDefnAutoPropertyNode.Expr Expr ### [MemberDefnAutoPropertyNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#Identifier) MemberDefnAutoPropertyNode.Identifier Identifier ### [MemberDefnAutoPropertyNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnautopropertynode.html#XmlDoc) MemberDefnAutoPropertyNode.XmlDoc XmlDoc ### [MemberDefnExplicitCtorNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html) MemberDefnExplicitCtorNode Secondary constructor new (pat: type) = expr MemberDefnExplicitCtorNode.``.ctor`` ``.ctor`` MemberDefnExplicitCtorNode.Equals Equals MemberDefnExplicitCtorNode.Accessibility Accessibility MemberDefnExplicitCtorNode.Attributes Attributes MemberDefnExplicitCtorNode.Expr Expr MemberDefnExplicitCtorNode.Alias Alias MemberDefnExplicitCtorNode.Pattern Pattern MemberDefnExplicitCtorNode.New New MemberDefnExplicitCtorNode.XmlDoc XmlDoc ### [MemberDefnExplicitCtorNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#``.ctor``) MemberDefnExplicitCtorNode.``.ctor`` ``.ctor`` ### [MemberDefnExplicitCtorNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#Equals) MemberDefnExplicitCtorNode.Equals Equals ### [MemberDefnExplicitCtorNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#Accessibility) MemberDefnExplicitCtorNode.Accessibility Accessibility ### [MemberDefnExplicitCtorNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#Attributes) MemberDefnExplicitCtorNode.Attributes Attributes ### [MemberDefnExplicitCtorNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#Expr) MemberDefnExplicitCtorNode.Expr Expr ### [MemberDefnExplicitCtorNode.Alias](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#Alias) MemberDefnExplicitCtorNode.Alias Alias ### [MemberDefnExplicitCtorNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#Pattern) MemberDefnExplicitCtorNode.Pattern Pattern ### [MemberDefnExplicitCtorNode.New](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#New) MemberDefnExplicitCtorNode.New New ### [MemberDefnExplicitCtorNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnexplicitctornode.html#XmlDoc) MemberDefnExplicitCtorNode.XmlDoc XmlDoc ### [MemberDefnInheritNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninheritnode.html) MemberDefnInheritNode Example: `inherit Base()` β€” an `inherit` member declaration inside a class body that specifies the base class. MemberDefnInheritNode.``.ctor`` ``.ctor`` MemberDefnInheritNode.BaseType BaseType MemberDefnInheritNode.Inherit Inherit ### [MemberDefnInheritNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninheritnode.html#``.ctor``) MemberDefnInheritNode.``.ctor`` ``.ctor`` ### [MemberDefnInheritNode.BaseType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninheritnode.html#BaseType) MemberDefnInheritNode.BaseType BaseType ### [MemberDefnInheritNode.Inherit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninheritnode.html#Inherit) MemberDefnInheritNode.Inherit Inherit ### [MemberDefnInterfaceNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninterfacenode.html) MemberDefnInterfaceNode Example: `interface IDisposable with member _.Dispose() = ()` β€” an `interface` implementation clause inside a class or struct definition. MemberDefnInterfaceNode.``.ctor`` ``.ctor`` MemberDefnInterfaceNode.Interface Interface MemberDefnInterfaceNode.Type Type MemberDefnInterfaceNode.Members Members MemberDefnInterfaceNode.With With ### [MemberDefnInterfaceNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninterfacenode.html#``.ctor``) MemberDefnInterfaceNode.``.ctor`` ``.ctor`` ### [MemberDefnInterfaceNode.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninterfacenode.html#Interface) MemberDefnInterfaceNode.Interface Interface ### [MemberDefnInterfaceNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninterfacenode.html#Type) MemberDefnInterfaceNode.Type Type ### [MemberDefnInterfaceNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninterfacenode.html#Members) MemberDefnInterfaceNode.Members Members ### [MemberDefnInterfaceNode.With](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefninterfacenode.html#With) MemberDefnInterfaceNode.With With ### [MemberDefnPropertyGetSetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html) MemberDefnPropertyGetSetNode Example: `member x.Prop with get() = … and set v = …` β€” a property member with explicit `get` and/or `set` accessor bodies. MemberDefnPropertyGetSetNode.``.ctor`` ``.ctor`` MemberDefnPropertyGetSetNode.LastBinding LastBinding MemberDefnPropertyGetSetNode.Accessibility Accessibility MemberDefnPropertyGetSetNode.LeadingKeyword LeadingKeyword MemberDefnPropertyGetSetNode.Attributes Attributes MemberDefnPropertyGetSetNode.FirstBinding FirstBinding MemberDefnPropertyGetSetNode.MemberName MemberName MemberDefnPropertyGetSetNode.WithKeyword WithKeyword MemberDefnPropertyGetSetNode.AndKeyword AndKeyword MemberDefnPropertyGetSetNode.XmlDoc XmlDoc MemberDefnPropertyGetSetNode.Inline Inline ### [MemberDefnPropertyGetSetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#``.ctor``) MemberDefnPropertyGetSetNode.``.ctor`` ``.ctor`` ### [MemberDefnPropertyGetSetNode.LastBinding](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#LastBinding) MemberDefnPropertyGetSetNode.LastBinding LastBinding ### [MemberDefnPropertyGetSetNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#Accessibility) MemberDefnPropertyGetSetNode.Accessibility Accessibility ### [MemberDefnPropertyGetSetNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#LeadingKeyword) MemberDefnPropertyGetSetNode.LeadingKeyword LeadingKeyword ### [MemberDefnPropertyGetSetNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#Attributes) MemberDefnPropertyGetSetNode.Attributes Attributes ### [MemberDefnPropertyGetSetNode.FirstBinding](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#FirstBinding) MemberDefnPropertyGetSetNode.FirstBinding FirstBinding ### [MemberDefnPropertyGetSetNode.MemberName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#MemberName) MemberDefnPropertyGetSetNode.MemberName MemberName ### [MemberDefnPropertyGetSetNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#WithKeyword) MemberDefnPropertyGetSetNode.WithKeyword WithKeyword ### [MemberDefnPropertyGetSetNode.AndKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#AndKeyword) MemberDefnPropertyGetSetNode.AndKeyword AndKeyword ### [MemberDefnPropertyGetSetNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#XmlDoc) MemberDefnPropertyGetSetNode.XmlDoc XmlDoc ### [MemberDefnPropertyGetSetNode.Inline](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnpropertygetsetnode.html#Inline) MemberDefnPropertyGetSetNode.Inline Inline ### [MemberDefnSigMemberNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnsigmembernode.html) MemberDefnSigMemberNode Example: `abstract member Name: string with get, set` β€” a `val` declaration in a signature used as an abstract or interface member. MemberDefnSigMemberNode.``.ctor`` ``.ctor`` MemberDefnSigMemberNode.WithGetSet WithGetSet MemberDefnSigMemberNode.Val Val ### [MemberDefnSigMemberNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnsigmembernode.html#``.ctor``) MemberDefnSigMemberNode.``.ctor`` ``.ctor`` ### [MemberDefnSigMemberNode.WithGetSet](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnsigmembernode.html#WithGetSet) MemberDefnSigMemberNode.WithGetSet WithGetSet ### [MemberDefnSigMemberNode.Val](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-memberdefnsigmembernode.html#Val) MemberDefnSigMemberNode.Val Val ### [ModuleAbbrevNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleabbrevnode.html) ModuleAbbrevNode Example: `module M = Ns.OtherModule` β€” a module abbreviation that creates a short alias for a qualified module. ModuleAbbrevNode.``.ctor`` ``.ctor`` ModuleAbbrevNode.Module Module ModuleAbbrevNode.Alias Alias ModuleAbbrevNode.Name Name ### [ModuleAbbrevNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleabbrevnode.html#``.ctor``) ModuleAbbrevNode.``.ctor`` ``.ctor`` ### [ModuleAbbrevNode.Module](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleabbrevnode.html#Module) ModuleAbbrevNode.Module Module ### [ModuleAbbrevNode.Alias](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleabbrevnode.html#Alias) ModuleAbbrevNode.Alias Alias ### [ModuleAbbrevNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleabbrevnode.html#Name) ModuleAbbrevNode.Name Name ### [ModuleDecl](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html) ModuleDecl Each case in this DU should have a container node ModuleDecl.Node Node ModuleDecl.OpenList OpenList ModuleDecl.HashDirectiveList HashDirectiveList ModuleDecl.Attributes Attributes ModuleDecl.DeclExpr DeclExpr ModuleDecl.Exception Exception ModuleDecl.ExternBinding ExternBinding ModuleDecl.TopLevelBinding TopLevelBinding ModuleDecl.ModuleAbbrev ModuleAbbrev ModuleDecl.NestedModule NestedModule ModuleDecl.TypeDefn TypeDefn ModuleDecl.Val Val ### [ModuleDecl.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#Node) ModuleDecl.Node Node ### [ModuleDecl.OpenList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#OpenList) ModuleDecl.OpenList OpenList ### [ModuleDecl.HashDirectiveList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#HashDirectiveList) ModuleDecl.HashDirectiveList HashDirectiveList ### [ModuleDecl.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#Attributes) ModuleDecl.Attributes Attributes ### [ModuleDecl.DeclExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#DeclExpr) ModuleDecl.DeclExpr DeclExpr ### [ModuleDecl.Exception](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#Exception) ModuleDecl.Exception Exception ### [ModuleDecl.ExternBinding](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#ExternBinding) ModuleDecl.ExternBinding ExternBinding ### [ModuleDecl.TopLevelBinding](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#TopLevelBinding) ModuleDecl.TopLevelBinding TopLevelBinding ### [ModuleDecl.ModuleAbbrev](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#ModuleAbbrev) ModuleDecl.ModuleAbbrev ModuleAbbrev ### [ModuleDecl.NestedModule](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#NestedModule) ModuleDecl.NestedModule NestedModule ### [ModuleDecl.TypeDefn](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#TypeDefn) ModuleDecl.TypeDefn TypeDefn ### [ModuleDecl.Val](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledecl.html#Val) ModuleDecl.Val Val ### [ModuleDeclAttributesNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledeclattributesnode.html) ModuleDeclAttributesNode Top-level attributes with an optional `do` expression (e.g., `[]`) β€” module-level attribute declarations. ModuleDeclAttributesNode.``.ctor`` ``.ctor`` ModuleDeclAttributesNode.Attributes Attributes ModuleDeclAttributesNode.Expr Expr ### [ModuleDeclAttributesNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledeclattributesnode.html#``.ctor``) ModuleDeclAttributesNode.``.ctor`` ``.ctor`` ### [ModuleDeclAttributesNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledeclattributesnode.html#Attributes) ModuleDeclAttributesNode.Attributes Attributes ### [ModuleDeclAttributesNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduledeclattributesnode.html#Expr) ModuleDeclAttributesNode.Expr Expr ### [ModuleOrNamespaceHeaderNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html) ModuleOrNamespaceHeaderNode The header of a module or namespace declaration: optional doc, attributes, leading keyword (`module`/`namespace`), optional accessibility, optional recursive flag, and the qualified name. Example: `module rec MyApp.Utils` or `namespace global`. ModuleOrNamespaceHeaderNode.``.ctor`` ``.ctor`` ModuleOrNamespaceHeaderNode.Accessibility Accessibility ModuleOrNamespaceHeaderNode.LeadingKeyword LeadingKeyword ModuleOrNamespaceHeaderNode.Attributes Attributes ModuleOrNamespaceHeaderNode.Name Name ModuleOrNamespaceHeaderNode.IsRecursive IsRecursive ModuleOrNamespaceHeaderNode.XmlDoc XmlDoc ### [ModuleOrNamespaceHeaderNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#``.ctor``) ModuleOrNamespaceHeaderNode.``.ctor`` ``.ctor`` ### [ModuleOrNamespaceHeaderNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#Accessibility) ModuleOrNamespaceHeaderNode.Accessibility Accessibility ### [ModuleOrNamespaceHeaderNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#LeadingKeyword) ModuleOrNamespaceHeaderNode.LeadingKeyword LeadingKeyword ### [ModuleOrNamespaceHeaderNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#Attributes) ModuleOrNamespaceHeaderNode.Attributes Attributes ### [ModuleOrNamespaceHeaderNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#Name) ModuleOrNamespaceHeaderNode.Name Name ### [ModuleOrNamespaceHeaderNode.IsRecursive](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#IsRecursive) ModuleOrNamespaceHeaderNode.IsRecursive IsRecursive ### [ModuleOrNamespaceHeaderNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespaceheadernode.html#XmlDoc) ModuleOrNamespaceHeaderNode.XmlDoc XmlDoc ### [ModuleOrNamespaceNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespacenode.html) ModuleOrNamespaceNode A top-level module or namespace containing an optional header and a list of declarations. Corresponds to a `SynModuleOrNamespace` in the FCS untyped AST. ModuleOrNamespaceNode.``.ctor`` ``.ctor`` ModuleOrNamespaceNode.Declarations Declarations ModuleOrNamespaceNode.Header Header ModuleOrNamespaceNode.IsNamed IsNamed ### [ModuleOrNamespaceNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespacenode.html#``.ctor``) ModuleOrNamespaceNode.``.ctor`` ``.ctor`` ### [ModuleOrNamespaceNode.Declarations](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespacenode.html#Declarations) ModuleOrNamespaceNode.Declarations Declarations ### [ModuleOrNamespaceNode.Header](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespacenode.html#Header) ModuleOrNamespaceNode.Header Header ### [ModuleOrNamespaceNode.IsNamed](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-moduleornamespacenode.html#IsNamed) ModuleOrNamespaceNode.IsNamed IsNamed ### [MultipleAttributeListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipleattributelistnode.html) MultipleAttributeListNode All attribute lists on a declaration: zero or more [< ... >] blocks each containing one or more attributes. MultipleAttributeListNode.``.ctor`` ``.ctor`` MultipleAttributeListNode.AttributeLists AttributeLists MultipleAttributeListNode.IsEmpty IsEmpty ### [MultipleAttributeListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipleattributelistnode.html#``.ctor``) MultipleAttributeListNode.``.ctor`` ``.ctor`` ### [MultipleAttributeListNode.AttributeLists](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipleattributelistnode.html#AttributeLists) MultipleAttributeListNode.AttributeLists AttributeLists ### [MultipleAttributeListNode.IsEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipleattributelistnode.html#IsEmpty) MultipleAttributeListNode.IsEmpty IsEmpty ### [MultipleTextsNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipletextsnode.html) MultipleTextsNode A node holding two or more adjacent text tokens that logically form one keyword or modifier sequence. Example: `static member` (two tokens), `abstract default` (access + keyword). MultipleTextsNode.``.ctor`` ``.ctor`` MultipleTextsNode.Content Content ### [MultipleTextsNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipletextsnode.html#``.ctor``) MultipleTextsNode.``.ctor`` ``.ctor`` ### [MultipleTextsNode.Content](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-multipletextsnode.html#Content) MultipleTextsNode.Content Content ### [NamePatPairNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-namepatpairnode.html) NamePatPairNode Example: `field1 = x` β€” a named field–pattern pair used in union-case destructuring (e.g. `Point(x = px; y = py)`). NamePatPairNode.``.ctor`` ``.ctor`` NamePatPairNode.Equals Equals NamePatPairNode.Pattern Pattern NamePatPairNode.FieldName FieldName ### [NamePatPairNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-namepatpairnode.html#``.ctor``) NamePatPairNode.``.ctor`` ``.ctor`` ### [NamePatPairNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-namepatpairnode.html#Equals) NamePatPairNode.Equals Equals ### [NamePatPairNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-namepatpairnode.html#Pattern) NamePatPairNode.Pattern Pattern ### [NamePatPairNode.FieldName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-namepatpairnode.html#FieldName) NamePatPairNode.FieldName FieldName ### [NegateRationalNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-negaterationalnode.html) NegateRationalNode Example: `-2` or `-(3/2)` β€” a negated rational constant used as a unit-of-measure exponent. NegateRationalNode.``.ctor`` ``.ctor`` NegateRationalNode.Minus Minus NegateRationalNode.Rational Rational ### [NegateRationalNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-negaterationalnode.html#``.ctor``) NegateRationalNode.``.ctor`` ``.ctor`` ### [NegateRationalNode.Minus](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-negaterationalnode.html#Minus) NegateRationalNode.Minus Minus ### [NegateRationalNode.Rational](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-negaterationalnode.html#Rational) NegateRationalNode.Rational Rational ### [NestedModuleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html) NestedModuleNode Example: `module rec Utils = …` β€” a nested module definition (non-top-level) with its declarations. NestedModuleNode.``.ctor`` ``.ctor`` NestedModuleNode.Equals Equals NestedModuleNode.Declarations Declarations NestedModuleNode.Accessibility Accessibility NestedModuleNode.Attributes Attributes NestedModuleNode.Module Module NestedModuleNode.Identifier Identifier NestedModuleNode.IsRecursive IsRecursive NestedModuleNode.XmlDoc XmlDoc ### [NestedModuleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#``.ctor``) NestedModuleNode.``.ctor`` ``.ctor`` ### [NestedModuleNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#Equals) NestedModuleNode.Equals Equals ### [NestedModuleNode.Declarations](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#Declarations) NestedModuleNode.Declarations Declarations ### [NestedModuleNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#Accessibility) NestedModuleNode.Accessibility Accessibility ### [NestedModuleNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#Attributes) NestedModuleNode.Attributes Attributes ### [NestedModuleNode.Module](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#Module) NestedModuleNode.Module Module ### [NestedModuleNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#Identifier) NestedModuleNode.Identifier Identifier ### [NestedModuleNode.IsRecursive](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#IsRecursive) NestedModuleNode.IsRecursive IsRecursive ### [NestedModuleNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nestedmodulenode.html#XmlDoc) NestedModuleNode.XmlDoc XmlDoc ### [Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html) Node The core interface implemented by every node in the Oak intermediate representation. Each node carries trivia (comments, blank lines, directives) that were attached to it during the AST β†’ Oak transformation, together with its source range and child nodes. The printer reads ContentBefore / ContentAfter when emitting each node so that all non-code content is reproduced in the output. Node.AddAfter AddAfter Node.AddBefore AddBefore Node.ContentAfter ContentAfter Node.Range Range Node.Children Children Node.HasContentAfter HasContentAfter Node.HasAnyContentAfter HasAnyContentAfter Node.ContentBefore ContentBefore Node.HasAnyContentBefore HasAnyContentBefore Node.HasContentBefore HasContentBefore ### [Node.AddAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#AddAfter) Node.AddAfter AddAfter ### [Node.AddBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#AddBefore) Node.AddBefore AddBefore ### [Node.ContentAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#ContentAfter) Node.ContentAfter ContentAfter ### [Node.Range](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#Range) Node.Range Range ### [Node.Children](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#Children) Node.Children Children ### [Node.HasContentAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#HasContentAfter) Node.HasContentAfter HasContentAfter See HasContentBefore. ### [Node.HasAnyContentAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#HasAnyContentAfter) Node.HasAnyContentAfter HasAnyContentAfter See HasAnyContentBefore. ### [Node.ContentBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#ContentBefore) Node.ContentBefore ContentBefore ### [Node.HasAnyContentBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#HasAnyContentBefore) Node.HasAnyContentBefore HasAnyContentBefore True when there is any trivia before this node at all, Cursor included. Use this to decide whether generating trivia can be skipped entirely: a node whose only trivia is a Cursor still has to be generated, so HasContentBefore is the wrong test for that and would silently drop the cursor. O(1), where HasContentBefore enumerates. ### [Node.HasContentBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-node.html#HasContentBefore) Node.HasContentBefore HasContentBefore True when there is trivia before this node that should influence layout. Cursor trivia is excluded on purpose: the caret position must never change the formatted output. Use this to decide indentation, newlines and spacing. This is NOT the negation of HasAnyContentBefore β€” see that member. ### [NodeBase](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html) NodeBase Base implementation of shared by all concrete Oak node types. Manages the mutable trivia queues (ContentBefore / ContentAfter). Concrete node types inherit from this class and supply their Children override. NodeBase.``.ctor`` ``.ctor`` NodeBase.AddAfter AddAfter NodeBase.AddBefore AddBefore NodeBase.ContentAfter ContentAfter NodeBase.Range Range NodeBase.Children Children NodeBase.HasContentAfter HasContentAfter NodeBase.HasAnyContentAfter HasAnyContentAfter NodeBase.ContentBefore ContentBefore NodeBase.HasAnyContentBefore HasAnyContentBefore NodeBase.HasContentBefore HasContentBefore ### [NodeBase.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#``.ctor``) NodeBase.``.ctor`` ``.ctor`` ### [NodeBase.AddAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#AddAfter) NodeBase.AddAfter AddAfter ### [NodeBase.AddBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#AddBefore) NodeBase.AddBefore AddBefore ### [NodeBase.ContentAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#ContentAfter) NodeBase.ContentAfter ContentAfter ### [NodeBase.Range](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#Range) NodeBase.Range Range ### [NodeBase.Children](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#Children) NodeBase.Children Children ### [NodeBase.HasContentAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#HasContentAfter) NodeBase.HasContentAfter HasContentAfter ### [NodeBase.HasAnyContentAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#HasAnyContentAfter) NodeBase.HasAnyContentAfter HasAnyContentAfter ### [NodeBase.ContentBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#ContentBefore) NodeBase.ContentBefore ContentBefore ### [NodeBase.HasAnyContentBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#HasAnyContentBefore) NodeBase.HasAnyContentBefore HasAnyContentBefore ### [NodeBase.HasContentBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-nodebase.html#HasContentBefore) NodeBase.HasContentBefore HasContentBefore ### [Oak](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-oak.html) Oak Oak.``.ctor`` ``.ctor`` Oak.ParsedHashDirectives ParsedHashDirectives Oak.ModulesOrNamespaces ModulesOrNamespaces ### [Oak.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-oak.html#``.ctor``) Oak.``.ctor`` ``.ctor`` ### [Oak.ParsedHashDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-oak.html#ParsedHashDirectives) Oak.ParsedHashDirectives ParsedHashDirectives ### [Oak.ModulesOrNamespaces](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-oak.html#ModulesOrNamespaces) Oak.ModulesOrNamespaces ModulesOrNamespaces ### [Open](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-open.html) Open Discriminated union for the two forms of open declaration. ModuleOrNamespace represents open System.IO; Target represents open type System.Math. Open.Node Node Open.ModuleOrNamespace ModuleOrNamespace Open.Target Target ### [Open.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-open.html#Node) Open.Node Node ### [Open.ModuleOrNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-open.html#ModuleOrNamespace) Open.ModuleOrNamespace ModuleOrNamespace ### [Open.Target](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-open.html#Target) Open.Target Target ### [OpenListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-openlistnode.html) OpenListNode A group of consecutive `open` statements (module/namespace opens and type-directed opens). OpenListNode.``.ctor`` ``.ctor`` OpenListNode.Opens Opens ### [OpenListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-openlistnode.html#``.ctor``) OpenListNode.``.ctor`` ``.ctor`` ### [OpenListNode.Opens](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-openlistnode.html#Opens) OpenListNode.Opens Opens ### [OpenModuleOrNamespaceNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-openmoduleornamespacenode.html) OpenModuleOrNamespaceNode Example: `open System.IO` β€” an `open` declaration that brings a module or namespace into scope by qualified name. OpenModuleOrNamespaceNode.``.ctor`` ``.ctor`` OpenModuleOrNamespaceNode.Name Name ### [OpenModuleOrNamespaceNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-openmoduleornamespacenode.html#``.ctor``) OpenModuleOrNamespaceNode.``.ctor`` ``.ctor`` ### [OpenModuleOrNamespaceNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-openmoduleornamespacenode.html#Name) OpenModuleOrNamespaceNode.Name Name ### [OpenTargetNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-opentargetnode.html) OpenTargetNode Example: `open type System.Math` β€” an `open type` declaration that brings static members and nested types into scope. OpenTargetNode.``.ctor`` ``.ctor`` OpenTargetNode.Target Target ### [OpenTargetNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-opentargetnode.html#``.ctor``) OpenTargetNode.``.ctor`` ``.ctor`` ### [OpenTargetNode.Target](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-opentargetnode.html#Target) OpenTargetNode.Target Target ### [ParsedHashDirectiveNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-parsedhashdirectivenode.html) ParsedHashDirectiveNode Example: `#r "nuget: Newtonsoft.Json"` or `#load "Utils.fs"` β€” a hash directive at the file level. Ident is the directive keyword (e.g. `r`, `load`, `nowarn`); Args are its arguments. ParsedHashDirectiveNode.``.ctor`` ``.ctor`` ParsedHashDirectiveNode.Args Args ParsedHashDirectiveNode.Ident Ident ### [ParsedHashDirectiveNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-parsedhashdirectivenode.html#``.ctor``) ParsedHashDirectiveNode.``.ctor`` ``.ctor`` ### [ParsedHashDirectiveNode.Args](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-parsedhashdirectivenode.html#Args) ParsedHashDirectiveNode.Args Args ### [ParsedHashDirectiveNode.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-parsedhashdirectivenode.html#Ident) ParsedHashDirectiveNode.Ident Ident ### [PatAndsNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patandsnode.html) PatAndsNode Example: `pat1 & pat2 & pat3` PatAndsNode.``.ctor`` ``.ctor`` PatAndsNode.Patterns Patterns ### [PatAndsNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patandsnode.html#``.ctor``) PatAndsNode.``.ctor`` ``.ctor`` ### [PatAndsNode.Patterns](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patandsnode.html#Patterns) PatAndsNode.Patterns Patterns ### [PatArrayOrListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patarrayorlistnode.html) PatArrayOrListNode Example: `[a; b; c]` (list pattern) or `[| a; b; c |]` (array pattern) PatArrayOrListNode.``.ctor`` ``.ctor`` PatArrayOrListNode.Patterns Patterns PatArrayOrListNode.OpenToken OpenToken PatArrayOrListNode.CloseToken CloseToken ### [PatArrayOrListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patarrayorlistnode.html#``.ctor``) PatArrayOrListNode.``.ctor`` ``.ctor`` ### [PatArrayOrListNode.Patterns](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patarrayorlistnode.html#Patterns) PatArrayOrListNode.Patterns Patterns ### [PatArrayOrListNode.OpenToken](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patarrayorlistnode.html#OpenToken) PatArrayOrListNode.OpenToken OpenToken ### [PatArrayOrListNode.CloseToken](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patarrayorlistnode.html#CloseToken) PatArrayOrListNode.CloseToken CloseToken ### [PatIsInstNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patisinstnode.html) PatIsInstNode Example: `:? SomeType` (a type-test pattern) PatIsInstNode.``.ctor`` ``.ctor`` PatIsInstNode.Type Type PatIsInstNode.Token Token ### [PatIsInstNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patisinstnode.html#``.ctor``) PatIsInstNode.``.ctor`` ``.ctor`` ### [PatIsInstNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patisinstnode.html#Type) PatIsInstNode.Type Type ### [PatIsInstNode.Token](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patisinstnode.html#Token) PatIsInstNode.Token Token ### [PatLeftMiddleRight](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patleftmiddleright.html) PatLeftMiddleRight A pattern composed from a left hand-side pattern, a single text token/operator and a right hand-side pattern. Example (Or): `A | B` Example (As): `x as y` Example (ListCons): `head :: tail` PatLeftMiddleRight.``.ctor`` ``.ctor`` PatLeftMiddleRight.LeftHandSide LeftHandSide PatLeftMiddleRight.Middle Middle PatLeftMiddleRight.RightHandSide RightHandSide ### [PatLeftMiddleRight.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patleftmiddleright.html#``.ctor``) PatLeftMiddleRight.``.ctor`` ``.ctor`` ### [PatLeftMiddleRight.LeftHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patleftmiddleright.html#LeftHandSide) PatLeftMiddleRight.LeftHandSide LeftHandSide ### [PatLeftMiddleRight.Middle](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patleftmiddleright.html#Middle) PatLeftMiddleRight.Middle Middle ### [PatLeftMiddleRight.RightHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patleftmiddleright.html#RightHandSide) PatLeftMiddleRight.RightHandSide RightHandSide ### [PatLongIdentNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patlongidentnode.html) PatLongIdentNode Example: `Some x` or `MyModule.MyDU value` (a union case or long-ident pattern with optional sub-patterns) PatLongIdentNode.``.ctor`` ``.ctor`` PatLongIdentNode.Accessibility Accessibility PatLongIdentNode.TyparDecls TyparDecls PatLongIdentNode.Parameters Parameters PatLongIdentNode.Identifier Identifier ### [PatLongIdentNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patlongidentnode.html#``.ctor``) PatLongIdentNode.``.ctor`` ``.ctor`` ### [PatLongIdentNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patlongidentnode.html#Accessibility) PatLongIdentNode.Accessibility Accessibility ### [PatLongIdentNode.TyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patlongidentnode.html#TyparDecls) PatLongIdentNode.TyparDecls TyparDecls ### [PatLongIdentNode.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patlongidentnode.html#Parameters) PatLongIdentNode.Parameters Parameters ### [PatLongIdentNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patlongidentnode.html#Identifier) PatLongIdentNode.Identifier Identifier ### [PatNamePatPairsNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html) PatNamePatPairsNode Example: `MyUnion(field1 = x; field2 = y)` (named field patterns on a union case) PatNamePatPairsNode.``.ctor`` ``.ctor`` PatNamePatPairsNode.TyparDecls TyparDecls PatNamePatPairsNode.Identifier Identifier PatNamePatPairsNode.OpeningParen OpeningParen PatNamePatPairsNode.ClosingParen ClosingParen PatNamePatPairsNode.Pairs Pairs ### [PatNamePatPairsNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html#``.ctor``) PatNamePatPairsNode.``.ctor`` ``.ctor`` ### [PatNamePatPairsNode.TyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html#TyparDecls) PatNamePatPairsNode.TyparDecls TyparDecls ### [PatNamePatPairsNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html#Identifier) PatNamePatPairsNode.Identifier Identifier ### [PatNamePatPairsNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html#OpeningParen) PatNamePatPairsNode.OpeningParen OpeningParen ### [PatNamePatPairsNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html#ClosingParen) PatNamePatPairsNode.ClosingParen ClosingParen ### [PatNamePatPairsNode.Pairs](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamepatpairsnode.html#Pairs) PatNamePatPairsNode.Pairs Pairs ### [PatNamedNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamednode.html) PatNamedNode Example: `x` or `private x` (a simple named binding pattern) PatNamedNode.``.ctor`` ``.ctor`` PatNamedNode.Accessibility Accessibility PatNamedNode.Name Name ### [PatNamedNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamednode.html#``.ctor``) PatNamedNode.``.ctor`` ``.ctor`` ### [PatNamedNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamednode.html#Accessibility) PatNamedNode.Accessibility Accessibility ### [PatNamedNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamednode.html#Name) PatNamedNode.Name Name ### [PatNamedParenStarIdentNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamedparenstaridentnode.html) PatNamedParenStarIdentNode Example: `( * )` (operator name used as a pattern in member definitions) PatNamedParenStarIdentNode.``.ctor`` ``.ctor`` PatNamedParenStarIdentNode.Accessibility Accessibility PatNamedParenStarIdentNode.Name Name PatNamedParenStarIdentNode.OpeningParen OpeningParen PatNamedParenStarIdentNode.ClosingParen ClosingParen ### [PatNamedParenStarIdentNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamedparenstaridentnode.html#``.ctor``) PatNamedParenStarIdentNode.``.ctor`` ``.ctor`` ### [PatNamedParenStarIdentNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamedparenstaridentnode.html#Accessibility) PatNamedParenStarIdentNode.Accessibility Accessibility ### [PatNamedParenStarIdentNode.Name](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamedparenstaridentnode.html#Name) PatNamedParenStarIdentNode.Name Name ### [PatNamedParenStarIdentNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamedparenstaridentnode.html#OpeningParen) PatNamedParenStarIdentNode.OpeningParen OpeningParen ### [PatNamedParenStarIdentNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patnamedparenstaridentnode.html#ClosingParen) PatNamedParenStarIdentNode.ClosingParen ClosingParen ### [PatParameterNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparameternode.html) PatParameterNode Example: `[] pat: Type` (attributed/typed parameter pattern) PatParameterNode.``.ctor`` ``.ctor`` PatParameterNode.Type Type PatParameterNode.Attributes Attributes PatParameterNode.Pattern Pattern ### [PatParameterNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparameternode.html#``.ctor``) PatParameterNode.``.ctor`` ``.ctor`` ### [PatParameterNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparameternode.html#Type) PatParameterNode.Type Type ### [PatParameterNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparameternode.html#Attributes) PatParameterNode.Attributes Attributes ### [PatParameterNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparameternode.html#Pattern) PatParameterNode.Pattern Pattern ### [PatParenNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparennode.html) PatParenNode Example: `(pat)` (a parenthesised pattern) PatParenNode.``.ctor`` ``.ctor`` PatParenNode.Pattern Pattern PatParenNode.OpeningParen OpeningParen PatParenNode.ClosingParen ClosingParen ### [PatParenNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparennode.html#``.ctor``) PatParenNode.``.ctor`` ``.ctor`` ### [PatParenNode.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparennode.html#Pattern) PatParenNode.Pattern Pattern ### [PatParenNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparennode.html#OpeningParen) PatParenNode.OpeningParen OpeningParen ### [PatParenNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patparennode.html#ClosingParen) PatParenNode.ClosingParen ClosingParen ### [PatRecordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patrecordnode.html) PatRecordNode Example: `{ Field1 = x; Field2 = y }` (a record pattern) PatRecordNode.``.ctor`` ``.ctor`` PatRecordNode.ClosingNode ClosingNode PatRecordNode.OpeningNode OpeningNode PatRecordNode.Fields Fields ### [PatRecordNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patrecordnode.html#``.ctor``) PatRecordNode.``.ctor`` ``.ctor`` ### [PatRecordNode.ClosingNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patrecordnode.html#ClosingNode) PatRecordNode.ClosingNode ClosingNode ### [PatRecordNode.OpeningNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patrecordnode.html#OpeningNode) PatRecordNode.OpeningNode OpeningNode ### [PatRecordNode.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patrecordnode.html#Fields) PatRecordNode.Fields Fields ### [PatStructTupleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patstructtuplenode.html) PatStructTupleNode Example: `struct (a, b)` (a struct tuple pattern) PatStructTupleNode.``.ctor`` ``.ctor`` PatStructTupleNode.Patterns Patterns ### [PatStructTupleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patstructtuplenode.html#``.ctor``) PatStructTupleNode.``.ctor`` ``.ctor`` ### [PatStructTupleNode.Patterns](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-patstructtuplenode.html#Patterns) PatStructTupleNode.Patterns Patterns ### [PatTupleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattuplenode.html) PatTupleNode Example: `a, b, c` (a tuple pattern) PatTupleNode.``.ctor`` ``.ctor`` PatTupleNode.Items Items ### [PatTupleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattuplenode.html#``.ctor``) PatTupleNode.``.ctor`` ``.ctor`` ### [PatTupleNode.Items](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattuplenode.html#Items) PatTupleNode.Items Items ### [Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html) Pattern Discriminated union of all F# patterns in the Oak intermediate representation. Each case wraps a strongly-typed node. Use Pattern.Node for printer dispatch. Pattern.Node Node Pattern.OptionalVal OptionalVal Pattern.Or Or Pattern.Ands Ands Pattern.Null Null Pattern.Wild Wild Pattern.Parameter Parameter Pattern.NamedParenStarIdent NamedParenStarIdent Pattern.Named Named Pattern.As As Pattern.ListCons ListCons Pattern.NamePatPairs NamePatPairs Pattern.LongIdent LongIdent Pattern.Unit Unit Pattern.Paren Paren Pattern.Tuple Tuple Pattern.StructTuple StructTuple Pattern.ArrayOrList ArrayOrList Pattern.Record Record Pattern.Const Const Pattern.IsInst IsInst Pattern.QuoteExpr QuoteExpr ### [Pattern.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Node) Pattern.Node Node ### [Pattern.OptionalVal](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#OptionalVal) Pattern.OptionalVal OptionalVal ### [Pattern.Or](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Or) Pattern.Or Or ### [Pattern.Ands](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Ands) Pattern.Ands Ands ### [Pattern.Null](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Null) Pattern.Null Null ### [Pattern.Wild](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Wild) Pattern.Wild Wild ### [Pattern.Parameter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Parameter) Pattern.Parameter Parameter ### [Pattern.NamedParenStarIdent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#NamedParenStarIdent) Pattern.NamedParenStarIdent NamedParenStarIdent ### [Pattern.Named](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Named) Pattern.Named Named ### [Pattern.As](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#As) Pattern.As As ### [Pattern.ListCons](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#ListCons) Pattern.ListCons ListCons ### [Pattern.NamePatPairs](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#NamePatPairs) Pattern.NamePatPairs NamePatPairs ### [Pattern.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#LongIdent) Pattern.LongIdent LongIdent ### [Pattern.Unit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Unit) Pattern.Unit Unit ### [Pattern.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Paren) Pattern.Paren Paren ### [Pattern.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Tuple) Pattern.Tuple Tuple ### [Pattern.StructTuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#StructTuple) Pattern.StructTuple StructTuple ### [Pattern.ArrayOrList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#ArrayOrList) Pattern.ArrayOrList ArrayOrList ### [Pattern.Record](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Record) Pattern.Record Record ### [Pattern.Const](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#Const) Pattern.Const Const ### [Pattern.IsInst](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#IsInst) Pattern.IsInst IsInst ### [Pattern.QuoteExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-pattern.html#QuoteExpr) Pattern.QuoteExpr QuoteExpr ### [PropertyGetSetBindingNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html) PropertyGetSetBindingNode A single `get` or `set` accessor body inside a `member … with get/set` property declaration. PropertyGetSetBindingNode.``.ctor`` ``.ctor`` PropertyGetSetBindingNode.Equals Equals PropertyGetSetBindingNode.Accessibility Accessibility PropertyGetSetBindingNode.LeadingKeyword LeadingKeyword PropertyGetSetBindingNode.Attributes Attributes PropertyGetSetBindingNode.ReturnType ReturnType PropertyGetSetBindingNode.Expr Expr PropertyGetSetBindingNode.Parameters Parameters PropertyGetSetBindingNode.Inline Inline ### [PropertyGetSetBindingNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#``.ctor``) PropertyGetSetBindingNode.``.ctor`` ``.ctor`` ### [PropertyGetSetBindingNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#Equals) PropertyGetSetBindingNode.Equals Equals ### [PropertyGetSetBindingNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#Accessibility) PropertyGetSetBindingNode.Accessibility Accessibility ### [PropertyGetSetBindingNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#LeadingKeyword) PropertyGetSetBindingNode.LeadingKeyword LeadingKeyword ### [PropertyGetSetBindingNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#Attributes) PropertyGetSetBindingNode.Attributes Attributes ### [PropertyGetSetBindingNode.ReturnType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#ReturnType) PropertyGetSetBindingNode.ReturnType ReturnType ### [PropertyGetSetBindingNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#Expr) PropertyGetSetBindingNode.Expr Expr ### [PropertyGetSetBindingNode.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#Parameters) PropertyGetSetBindingNode.Parameters Parameters ### [PropertyGetSetBindingNode.Inline](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-propertygetsetbindingnode.html#Inline) PropertyGetSetBindingNode.Inline Inline ### [RationalConstNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalconstnode.html) RationalConstNode Discriminated union for the three forms of a rational-number exponent in a unit-of-measure type annotation (e.g. m/s^2). An exponent can be a plain integer, a rational fraction 3/2, or a negated form of either. RationalConstNode.Node Node RationalConstNode.Integer Integer RationalConstNode.Rational Rational RationalConstNode.Negate Negate ### [RationalConstNode.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalconstnode.html#Node) RationalConstNode.Node Node ### [RationalConstNode.Integer](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalconstnode.html#Integer) RationalConstNode.Integer Integer ### [RationalConstNode.Rational](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalconstnode.html#Rational) RationalConstNode.Rational Rational ### [RationalConstNode.Negate](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalconstnode.html#Negate) RationalConstNode.Negate Negate ### [RationalNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html) RationalNode Example: `(3/2)` β€” a rational-number exponent in a unit-of-measure power expression such as `m^(3/2)`. RationalNode.``.ctor`` ``.ctor`` RationalNode.DivOp DivOp RationalNode.Denominator Denominator RationalNode.Numerator Numerator RationalNode.OpeningParen OpeningParen RationalNode.ClosingParen ClosingParen ### [RationalNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html#``.ctor``) RationalNode.``.ctor`` ``.ctor`` ### [RationalNode.DivOp](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html#DivOp) RationalNode.DivOp DivOp ### [RationalNode.Denominator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html#Denominator) RationalNode.Denominator Denominator ### [RationalNode.Numerator](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html#Numerator) RationalNode.Numerator Numerator ### [RationalNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html#OpeningParen) RationalNode.OpeningParen OpeningParen ### [RationalNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-rationalnode.html#ClosingParen) RationalNode.ClosingParen ClosingParen ### [RecordFieldNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-recordfieldnode.html) RecordFieldNode Example: `Name = expr` β€” a single record field assignment inside a record expression or update. RecordFieldNode.``.ctor`` ``.ctor`` RecordFieldNode.Equals Equals RecordFieldNode.Expr Expr RecordFieldNode.FieldName FieldName ### [RecordFieldNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-recordfieldnode.html#``.ctor``) RecordFieldNode.``.ctor`` ``.ctor`` ### [RecordFieldNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-recordfieldnode.html#Equals) RecordFieldNode.Equals Equals ### [RecordFieldNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-recordfieldnode.html#Expr) RecordFieldNode.Expr Expr ### [RecordFieldNode.FieldName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-recordfieldnode.html#FieldName) RecordFieldNode.FieldName FieldName ### [SingleTextNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-singletextnode.html) SingleTextNode The most fundamental leaf node β€” a single token of source text (keyword, operator, identifier, punctuation, etc.). Examples: `let`, `=`, `->`, `(`, `myVar`. SingleTextNode.``.ctor`` ``.ctor`` SingleTextNode.AddCursor AddCursor SingleTextNode.Text Text SingleTextNode.TryGetCursor TryGetCursor ### [SingleTextNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-singletextnode.html#``.ctor``) SingleTextNode.``.ctor`` ``.ctor`` ### [SingleTextNode.AddCursor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-singletextnode.html#AddCursor) SingleTextNode.AddCursor AddCursor Of all nodes, only a `SingleTextNode` holds the editor's cursor, see `Trivia.insertCursor`. ### [SingleTextNode.Text](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-singletextnode.html#Text) SingleTextNode.Text Text ### [SingleTextNode.TryGetCursor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-singletextnode.html#TryGetCursor) SingleTextNode.TryGetCursor TryGetCursor ### [StaticOptimizationConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraint.html) StaticOptimizationConstraint A static optimisation constraint attached to an Expr.LibraryOnlyStaticOptimization node (internal compiler use, not user-facing F# syntax). WhenTyparTyconEqualsTycon represents when 'T = SomeType; WhenTyparIsStruct represents when 'T: struct. StaticOptimizationConstraint.Node Node StaticOptimizationConstraint.WhenTyparTyconEqualsTycon WhenTyparTyconEqualsTycon StaticOptimizationConstraint.WhenTyparIsStruct WhenTyparIsStruct ### [StaticOptimizationConstraint.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraint.html#Node) StaticOptimizationConstraint.Node Node ### [StaticOptimizationConstraint.WhenTyparTyconEqualsTycon](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraint.html#WhenTyparTyconEqualsTycon) StaticOptimizationConstraint.WhenTyparTyconEqualsTycon WhenTyparTyconEqualsTycon ### [StaticOptimizationConstraint.WhenTyparIsStruct](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraint.html#WhenTyparIsStruct) StaticOptimizationConstraint.WhenTyparIsStruct WhenTyparIsStruct ### [StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraintwhentypartyconequalstyconnode.html) StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode Example: `when 'T = int` β€” a static optimisation constraint that requires a type parameter to equal a specific type constructor. StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.``.ctor`` ``.ctor`` StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.Type Type StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.TypeParameter TypeParameter ### [StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraintwhentypartyconequalstyconnode.html#``.ctor``) StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.``.ctor`` ``.ctor`` ### [StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraintwhentypartyconequalstyconnode.html#Type) StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.Type Type ### [StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.TypeParameter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-staticoptimizationconstraintwhentypartyconequalstyconnode.html#TypeParameter) StaticOptimizationConstraintWhenTyparTyconEqualsTyconNode.TypeParameter TypeParameter ### [StringNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-stringnode.html) StringNode A leaf node holding a plain string value with no sub-nodes (e.g. a verbatim string token or source text fragment). StringNode.``.ctor`` ``.ctor`` StringNode.Content Content ### [StringNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-stringnode.html#``.ctor``) StringNode.``.ctor`` ``.ctor`` ### [StringNode.Content](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-stringnode.html#Content) StringNode.Content Content ### [TriviaContent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html) TriviaContent The kind of non-code content that can be attached to a node as trivia. Single-line and line-after-source-code comments carry their text; block comments also record whether blank lines should surround them. Directive covers preprocessor directives and Cursor is used by editor tooling to track the caret position during formatting. TriviaContent.CommentOnSingleLine CommentOnSingleLine TriviaContent.CommentOnSingleLineWithLeadingNewlines CommentOnSingleLineWithLeadingNewlines TriviaContent.LineCommentAfterSourceCode LineCommentAfterSourceCode TriviaContent.BlockComment BlockComment TriviaContent.Newline Newline TriviaContent.Directive Directive TriviaContent.Cursor Cursor ### [TriviaContent.CommentOnSingleLine](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#CommentOnSingleLine) TriviaContent.CommentOnSingleLine CommentOnSingleLine ### [TriviaContent.CommentOnSingleLineWithLeadingNewlines](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#CommentOnSingleLineWithLeadingNewlines) TriviaContent.CommentOnSingleLineWithLeadingNewlines CommentOnSingleLineWithLeadingNewlines A single-line comment preceded by one or more blank lines in the source. Unlike a plain CommentOnSingleLine + separate Newline trivia, this combined case ensures the blank lines and comment are assigned to the same Oak node during trivia assignment. Without this, the Newline (at column 0) and the indented comment (at column > 0) would be assigned to different nodes via different matching paths, causing the blank line to be lost or misplaced after formatting. ### [TriviaContent.LineCommentAfterSourceCode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#LineCommentAfterSourceCode) TriviaContent.LineCommentAfterSourceCode LineCommentAfterSourceCode ### [TriviaContent.BlockComment](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#BlockComment) TriviaContent.BlockComment BlockComment ### [TriviaContent.Newline](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#Newline) TriviaContent.Newline Newline ### [TriviaContent.Directive](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#Directive) TriviaContent.Directive Directive ### [TriviaContent.Cursor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-triviacontent.html#Cursor) TriviaContent.Cursor Cursor ### [TriviaNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-trivianode.html) TriviaNode A node carrying trivia content (comment, blank line, directive, or cursor) and its source range. Trivia nodes are attached to instances as ContentBefore or ContentAfter and are emitted by the code printer around the owning node's output. TriviaNode.``.ctor`` ``.ctor`` TriviaNode.Content Content TriviaNode.Range Range ### [TriviaNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-trivianode.html#``.ctor``) TriviaNode.``.ctor`` ``.ctor`` ### [TriviaNode.Content](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-trivianode.html#Content) TriviaNode.Content Content ### [TriviaNode.Range](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-trivianode.html#Range) TriviaNode.Range Range ### [TyparDeclNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclnode.html) TyparDeclNode Example: `'T` or `[] 'T & IDisposable` β€” a type parameter declaration with optional attributes and optional intersection constraints (F# 8+). Used in `<'T>` or `('T)` postfix/prefix type parameter lists. TyparDeclNode.``.ctor`` ``.ctor`` TyparDeclNode.Attributes Attributes TyparDeclNode.TypeParameter TypeParameter TyparDeclNode.IntersectionConstraints IntersectionConstraints ### [TyparDeclNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclnode.html#``.ctor``) TyparDeclNode.``.ctor`` ``.ctor`` ### [TyparDeclNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclnode.html#Attributes) TyparDeclNode.Attributes Attributes ### [TyparDeclNode.TypeParameter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclnode.html#TypeParameter) TyparDeclNode.TypeParameter TypeParameter ### [TyparDeclNode.IntersectionConstraints](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclnode.html#IntersectionConstraints) TyparDeclNode.IntersectionConstraints IntersectionConstraints ### [TyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardecls.html) TyparDecls Discriminated union for the three syntactic forms of type-parameter declaration. PostfixList is the {'T, 'U} style; PrefixList is ('T, 'U); SinglePrefix is a bare 'T in contexts where only one parameter is present. TyparDecls.Node Node TyparDecls.PostfixList PostfixList TyparDecls.PrefixList PrefixList TyparDecls.SinglePrefix SinglePrefix ### [TyparDecls.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardecls.html#Node) TyparDecls.Node Node ### [TyparDecls.PostfixList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardecls.html#PostfixList) TyparDecls.PostfixList PostfixList ### [TyparDecls.PrefixList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardecls.html#PrefixList) TyparDecls.PrefixList PrefixList ### [TyparDecls.SinglePrefix](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardecls.html#SinglePrefix) TyparDecls.SinglePrefix SinglePrefix ### [TyparDeclsPostfixListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclspostfixlistnode.html) TyparDeclsPostfixListNode Example: `<'T, 'U when 'T: equality>` β€” a postfix (angle-bracket) list of type parameter declarations with constraints. TyparDeclsPostfixListNode.``.ctor`` ``.ctor`` TyparDeclsPostfixListNode.Constraints Constraints TyparDeclsPostfixListNode.Decls Decls TyparDeclsPostfixListNode.GreaterThan GreaterThan TyparDeclsPostfixListNode.LessThan LessThan ### [TyparDeclsPostfixListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclspostfixlistnode.html#``.ctor``) TyparDeclsPostfixListNode.``.ctor`` ``.ctor`` ### [TyparDeclsPostfixListNode.Constraints](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclspostfixlistnode.html#Constraints) TyparDeclsPostfixListNode.Constraints Constraints ### [TyparDeclsPostfixListNode.Decls](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclspostfixlistnode.html#Decls) TyparDeclsPostfixListNode.Decls Decls ### [TyparDeclsPostfixListNode.GreaterThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclspostfixlistnode.html#GreaterThan) TyparDeclsPostfixListNode.GreaterThan GreaterThan ### [TyparDeclsPostfixListNode.LessThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclspostfixlistnode.html#LessThan) TyparDeclsPostfixListNode.LessThan LessThan ### [TyparDeclsPrefixListNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclsprefixlistnode.html) TyparDeclsPrefixListNode Example: `('T, 'U)` β€” a prefix (parenthesised) list of type parameter declarations. TyparDeclsPrefixListNode.``.ctor`` ``.ctor`` TyparDeclsPrefixListNode.Decls Decls TyparDeclsPrefixListNode.OpeningParen OpeningParen TyparDeclsPrefixListNode.ClosingParen ClosingParen ### [TyparDeclsPrefixListNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclsprefixlistnode.html#``.ctor``) TyparDeclsPrefixListNode.``.ctor`` ``.ctor`` ### [TyparDeclsPrefixListNode.Decls](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclsprefixlistnode.html#Decls) TyparDeclsPrefixListNode.Decls Decls ### [TyparDeclsPrefixListNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclsprefixlistnode.html#OpeningParen) TyparDeclsPrefixListNode.OpeningParen OpeningParen ### [TyparDeclsPrefixListNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typardeclsprefixlistnode.html#ClosingParen) TyparDeclsPrefixListNode.ClosingParen ClosingParen ### [Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html) Type Discriminated union of all F# type expressions in the Oak intermediate representation. Each case wraps a strongly-typed node that carries the substructure of that type form. Use Type.Node to obtain the underlying for printer dispatch. Type.Node Node Type.Funs Funs Type.Tuple Tuple Type.HashConstraint HashConstraint Type.MeasurePower MeasurePower Type.StaticConstant StaticConstant Type.StaticConstantExpr StaticConstantExpr Type.StaticConstantNamed StaticConstantNamed Type.Array Array Type.Anon Anon Type.Var Var Type.AppPostfix AppPostfix Type.AppPrefix AppPrefix Type.StructTuple StructTuple Type.WithSubTypeConstraint WithSubTypeConstraint Type.WithGlobalConstraints WithGlobalConstraints Type.LongIdent LongIdent Type.AnonRecord AnonRecord Type.Paren Paren Type.SignatureParameter SignatureParameter Type.Or Or Type.LongIdentApp LongIdentApp Type.Intersection Intersection ### [Type.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Node) Type.Node Node ### [Type.Funs](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Funs) Type.Funs Funs ### [Type.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Tuple) Type.Tuple Tuple ### [Type.HashConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#HashConstraint) Type.HashConstraint HashConstraint ### [Type.MeasurePower](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#MeasurePower) Type.MeasurePower MeasurePower ### [Type.StaticConstant](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#StaticConstant) Type.StaticConstant StaticConstant ### [Type.StaticConstantExpr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#StaticConstantExpr) Type.StaticConstantExpr StaticConstantExpr ### [Type.StaticConstantNamed](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#StaticConstantNamed) Type.StaticConstantNamed StaticConstantNamed ### [Type.Array](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Array) Type.Array Array ### [Type.Anon](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Anon) Type.Anon Anon ### [Type.Var](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Var) Type.Var Var ### [Type.AppPostfix](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#AppPostfix) Type.AppPostfix AppPostfix ### [Type.AppPrefix](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#AppPrefix) Type.AppPrefix AppPrefix ### [Type.StructTuple](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#StructTuple) Type.StructTuple StructTuple ### [Type.WithSubTypeConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#WithSubTypeConstraint) Type.WithSubTypeConstraint WithSubTypeConstraint ### [Type.WithGlobalConstraints](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#WithGlobalConstraints) Type.WithGlobalConstraints WithGlobalConstraints ### [Type.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#LongIdent) Type.LongIdent LongIdent ### [Type.AnonRecord](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#AnonRecord) Type.AnonRecord AnonRecord ### [Type.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Paren) Type.Paren Paren ### [Type.SignatureParameter](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#SignatureParameter) Type.SignatureParameter SignatureParameter ### [Type.Or](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Or) Type.Or Or ### [Type.LongIdentApp](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#LongIdentApp) Type.LongIdentApp LongIdentApp ### [Type.Intersection](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-type.html#Intersection) Type.Intersection Intersection ### [TypeAnonRecordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeanonrecordnode.html) TypeAnonRecordNode Example: `{| Name: string; Age: int |}` or `struct {| X: float |}` β€” an anonymous record type. TypeAnonRecordNode.``.ctor`` ``.ctor`` TypeAnonRecordNode.Closing Closing TypeAnonRecordNode.Opening Opening TypeAnonRecordNode.Struct Struct TypeAnonRecordNode.Fields Fields ### [TypeAnonRecordNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeanonrecordnode.html#``.ctor``) TypeAnonRecordNode.``.ctor`` ``.ctor`` ### [TypeAnonRecordNode.Closing](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeanonrecordnode.html#Closing) TypeAnonRecordNode.Closing Closing ### [TypeAnonRecordNode.Opening](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeanonrecordnode.html#Opening) TypeAnonRecordNode.Opening Opening ### [TypeAnonRecordNode.Struct](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeanonrecordnode.html#Struct) TypeAnonRecordNode.Struct Struct ### [TypeAnonRecordNode.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeanonrecordnode.html#Fields) TypeAnonRecordNode.Fields Fields ### [TypeAppPostFixNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeapppostfixnode.html) TypeAppPostFixNode Example: `int list` or `string option` β€” a postfix type application where the type argument precedes the type name. TypeAppPostFixNode.``.ctor`` ``.ctor`` TypeAppPostFixNode.First First TypeAppPostFixNode.Last Last ### [TypeAppPostFixNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeapppostfixnode.html#``.ctor``) TypeAppPostFixNode.``.ctor`` ``.ctor`` ### [TypeAppPostFixNode.First](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeapppostfixnode.html#First) TypeAppPostFixNode.First First ### [TypeAppPostFixNode.Last](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeapppostfixnode.html#Last) TypeAppPostFixNode.Last Last ### [TypeAppPrefixNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html) TypeAppPrefixNode Example: `List` or `Dictionary` β€” a prefix type application with angle-bracket type arguments. TypeAppPrefixNode.``.ctor`` ``.ctor`` TypeAppPrefixNode.Arguments Arguments TypeAppPrefixNode.PostIdentifier PostIdentifier TypeAppPrefixNode.GreaterThan GreaterThan TypeAppPrefixNode.Identifier Identifier TypeAppPrefixNode.LessThen LessThen ### [TypeAppPrefixNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html#``.ctor``) TypeAppPrefixNode.``.ctor`` ``.ctor`` ### [TypeAppPrefixNode.Arguments](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html#Arguments) TypeAppPrefixNode.Arguments Arguments ### [TypeAppPrefixNode.PostIdentifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html#PostIdentifier) TypeAppPrefixNode.PostIdentifier PostIdentifier ### [TypeAppPrefixNode.GreaterThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html#GreaterThan) TypeAppPrefixNode.GreaterThan GreaterThan ### [TypeAppPrefixNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html#Identifier) TypeAppPrefixNode.Identifier Identifier ### [TypeAppPrefixNode.LessThen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeappprefixnode.html#LessThen) TypeAppPrefixNode.LessThen LessThen ### [TypeArrayNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typearraynode.html) TypeArrayNode Example: `int[]` (rank 1) or `int[,]` (rank 2) β€” an array type with a base element type and a rank. TypeArrayNode.``.ctor`` ``.ctor`` TypeArrayNode.Type Type TypeArrayNode.Rank Rank ### [TypeArrayNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typearraynode.html#``.ctor``) TypeArrayNode.``.ctor`` ``.ctor`` ### [TypeArrayNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typearraynode.html#Type) TypeArrayNode.Type Type ### [TypeArrayNode.Rank](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typearraynode.html#Rank) TypeArrayNode.Rank Rank ### [TypeConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html) TypeConstraint Discriminated union of all type-constraint forms that can appear in when clauses. Covers simple constraints ('T: comparison), subtype constraints ('T :> T), member constraints, enum/delegate constraints, and F# 9 null-related constraints. TypeConstraint.Node Node TypeConstraint.Single Single TypeConstraint.DefaultsToType DefaultsToType TypeConstraint.SubtypeOfType SubtypeOfType TypeConstraint.SupportsMember SupportsMember TypeConstraint.EnumOrDelegate EnumOrDelegate TypeConstraint.WhereSelfConstrained WhereSelfConstrained TypeConstraint.WhereNotSupportsNull WhereNotSupportsNull ### [TypeConstraint.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#Node) TypeConstraint.Node Node ### [TypeConstraint.Single](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#Single) TypeConstraint.Single Single ### [TypeConstraint.DefaultsToType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#DefaultsToType) TypeConstraint.DefaultsToType DefaultsToType ### [TypeConstraint.SubtypeOfType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#SubtypeOfType) TypeConstraint.SubtypeOfType SubtypeOfType ### [TypeConstraint.SupportsMember](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#SupportsMember) TypeConstraint.SupportsMember SupportsMember ### [TypeConstraint.EnumOrDelegate](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#EnumOrDelegate) TypeConstraint.EnumOrDelegate EnumOrDelegate ### [TypeConstraint.WhereSelfConstrained](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#WhereSelfConstrained) TypeConstraint.WhereSelfConstrained WhereSelfConstrained ### [TypeConstraint.WhereNotSupportsNull](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraint.html#WhereNotSupportsNull) TypeConstraint.WhereNotSupportsNull WhereNotSupportsNull ### [TypeConstraintDefaultsToTypeNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintdefaultstotypenode.html) TypeConstraintDefaultsToTypeNode Example: `default 'T: int` β€” a default type constraint used in statically-resolved type parameters. TypeConstraintDefaultsToTypeNode.``.ctor`` ``.ctor`` TypeConstraintDefaultsToTypeNode.Type Type TypeConstraintDefaultsToTypeNode.Typar Typar TypeConstraintDefaultsToTypeNode.Default Default ### [TypeConstraintDefaultsToTypeNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintdefaultstotypenode.html#``.ctor``) TypeConstraintDefaultsToTypeNode.``.ctor`` ``.ctor`` ### [TypeConstraintDefaultsToTypeNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintdefaultstotypenode.html#Type) TypeConstraintDefaultsToTypeNode.Type Type ### [TypeConstraintDefaultsToTypeNode.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintdefaultstotypenode.html#Typar) TypeConstraintDefaultsToTypeNode.Typar Typar ### [TypeConstraintDefaultsToTypeNode.Default](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintdefaultstotypenode.html#Default) TypeConstraintDefaultsToTypeNode.Default Default ### [TypeConstraintEnumOrDelegateNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintenumordelegatenode.html) TypeConstraintEnumOrDelegateNode Example: `'T: enum` or `'T: delegate` β€” an enum or delegate constraint on a type parameter. TypeConstraintEnumOrDelegateNode.``.ctor`` ``.ctor`` TypeConstraintEnumOrDelegateNode.Types Types TypeConstraintEnumOrDelegateNode.Typar Typar TypeConstraintEnumOrDelegateNode.Verb Verb ### [TypeConstraintEnumOrDelegateNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintenumordelegatenode.html#``.ctor``) TypeConstraintEnumOrDelegateNode.``.ctor`` ``.ctor`` ### [TypeConstraintEnumOrDelegateNode.Types](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintenumordelegatenode.html#Types) TypeConstraintEnumOrDelegateNode.Types Types ### [TypeConstraintEnumOrDelegateNode.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintenumordelegatenode.html#Typar) TypeConstraintEnumOrDelegateNode.Typar Typar ### [TypeConstraintEnumOrDelegateNode.Verb](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintenumordelegatenode.html#Verb) TypeConstraintEnumOrDelegateNode.Verb Verb ### [TypeConstraintSingleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsinglenode.html) TypeConstraintSingleNode Example: `'T: comparison` or `'T: null` β€” a simple single-token type constraint. TypeConstraintSingleNode.``.ctor`` ``.ctor`` TypeConstraintSingleNode.Typar Typar TypeConstraintSingleNode.Kind Kind ### [TypeConstraintSingleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsinglenode.html#``.ctor``) TypeConstraintSingleNode.``.ctor`` ``.ctor`` ### [TypeConstraintSingleNode.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsinglenode.html#Typar) TypeConstraintSingleNode.Typar Typar ### [TypeConstraintSingleNode.Kind](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsinglenode.html#Kind) TypeConstraintSingleNode.Kind Kind ### [TypeConstraintSubtypeOfTypeNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsubtypeoftypenode.html) TypeConstraintSubtypeOfTypeNode Example: `'T :> IDisposable` β€” a subtype constraint. TypeConstraintSubtypeOfTypeNode.``.ctor`` ``.ctor`` TypeConstraintSubtypeOfTypeNode.Type Type TypeConstraintSubtypeOfTypeNode.Typar Typar ### [TypeConstraintSubtypeOfTypeNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsubtypeoftypenode.html#``.ctor``) TypeConstraintSubtypeOfTypeNode.``.ctor`` ``.ctor`` ### [TypeConstraintSubtypeOfTypeNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsubtypeoftypenode.html#Type) TypeConstraintSubtypeOfTypeNode.Type Type ### [TypeConstraintSubtypeOfTypeNode.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsubtypeoftypenode.html#Typar) TypeConstraintSubtypeOfTypeNode.Typar Typar ### [TypeConstraintSupportsMemberNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsupportsmembernode.html) TypeConstraintSupportsMemberNode Example: `'T: (member Foo: int)` β€” a member constraint on a statically resolved type parameter. TypeConstraintSupportsMemberNode.``.ctor`` ``.ctor`` TypeConstraintSupportsMemberNode.Type Type TypeConstraintSupportsMemberNode.MemberSig MemberSig ### [TypeConstraintSupportsMemberNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsupportsmembernode.html#``.ctor``) TypeConstraintSupportsMemberNode.``.ctor`` ``.ctor`` ### [TypeConstraintSupportsMemberNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsupportsmembernode.html#Type) TypeConstraintSupportsMemberNode.Type Type ### [TypeConstraintSupportsMemberNode.MemberSig](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintsupportsmembernode.html#MemberSig) TypeConstraintSupportsMemberNode.MemberSig MemberSig ### [TypeConstraintWhereNotSupportsNull](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintwherenotsupportsnull.html) TypeConstraintWhereNotSupportsNull `'T: not null` in `type C<'T when 'T: not null> = class end` TypeConstraintWhereNotSupportsNull.``.ctor`` ``.ctor`` TypeConstraintWhereNotSupportsNull.Typar Typar TypeConstraintWhereNotSupportsNull.Colon Colon TypeConstraintWhereNotSupportsNull.Not Not TypeConstraintWhereNotSupportsNull.Null Null ### [TypeConstraintWhereNotSupportsNull.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintwherenotsupportsnull.html#``.ctor``) TypeConstraintWhereNotSupportsNull.``.ctor`` ``.ctor`` ### [TypeConstraintWhereNotSupportsNull.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintwherenotsupportsnull.html#Typar) TypeConstraintWhereNotSupportsNull.Typar Typar ### [TypeConstraintWhereNotSupportsNull.Colon](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintwherenotsupportsnull.html#Colon) TypeConstraintWhereNotSupportsNull.Colon Colon ### [TypeConstraintWhereNotSupportsNull.Not](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintwherenotsupportsnull.html#Not) TypeConstraintWhereNotSupportsNull.Not Not ### [TypeConstraintWhereNotSupportsNull.Null](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeconstraintwherenotsupportsnull.html#Null) TypeConstraintWhereNotSupportsNull.Null Null ### [TypeDefn](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html) TypeDefn Discriminated union of all F# type-definition forms in the Oak representation. None is used for a bare type name with no body (e.g. type T in a signature); all other cases wrap a dedicated node type. TypeDefn.Members Members TypeDefn.Node Node TypeDefn.TypeName TypeName TypeDefn.WithKeyword WithKeyword TypeDefn.Enum Enum TypeDefn.Union Union TypeDefn.Record Record TypeDefn.None None TypeDefn.Abbrev Abbrev TypeDefn.Explicit Explicit TypeDefn.Augmentation Augmentation TypeDefn.Delegate Delegate TypeDefn.Regular Regular ### [TypeDefn.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Members) TypeDefn.Members Members The members after the body, or all of them for a type without one. ### [TypeDefn.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Node) TypeDefn.Node Node ### [TypeDefn.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#TypeName) TypeDefn.TypeName TypeName The header every case has. ### [TypeDefn.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#WithKeyword) TypeDefn.WithKeyword WithKeyword The `with` before the members: `type T with`, or after the body, `type T = { X: int } with`. ### [TypeDefn.Enum](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Enum) TypeDefn.Enum Enum ### [TypeDefn.Union](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Union) TypeDefn.Union Union ### [TypeDefn.Record](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Record) TypeDefn.Record Record ### [TypeDefn.None](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#None) TypeDefn.None None ### [TypeDefn.Abbrev](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Abbrev) TypeDefn.Abbrev Abbrev ### [TypeDefn.Explicit](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Explicit) TypeDefn.Explicit Explicit ### [TypeDefn.Augmentation](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Augmentation) TypeDefn.Augmentation Augmentation ### [TypeDefn.Delegate](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Delegate) TypeDefn.Delegate Delegate ### [TypeDefn.Regular](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefn.html#Regular) TypeDefn.Regular Regular ### [TypeDefnAbbrevNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnabbrevnode.html) TypeDefnAbbrevNode Example: `type Alias = OtherType` β€” a type abbreviation. TypeDefnAbbrevNode.``.ctor`` ``.ctor`` TypeDefnAbbrevNode.Type Type TypeDefnAbbrevNode.Members Members TypeDefnAbbrevNode.TypeName TypeName TypeDefnAbbrevNode.WithKeyword WithKeyword ### [TypeDefnAbbrevNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnabbrevnode.html#``.ctor``) TypeDefnAbbrevNode.``.ctor`` ``.ctor`` ### [TypeDefnAbbrevNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnabbrevnode.html#Type) TypeDefnAbbrevNode.Type Type ### [TypeDefnAbbrevNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnabbrevnode.html#Members) TypeDefnAbbrevNode.Members Members ### [TypeDefnAbbrevNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnabbrevnode.html#TypeName) TypeDefnAbbrevNode.TypeName TypeName ### [TypeDefnAbbrevNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnabbrevnode.html#WithKeyword) TypeDefnAbbrevNode.WithKeyword WithKeyword ### [TypeDefnAugmentationNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnaugmentationnode.html) TypeDefnAugmentationNode Example: `type MyClass with` β€” a type augmentation (intrinsic extension) adding members to an existing type. TypeDefnAugmentationNode.``.ctor`` ``.ctor`` TypeDefnAugmentationNode.Members Members TypeDefnAugmentationNode.TypeName TypeName TypeDefnAugmentationNode.WithKeyword WithKeyword ### [TypeDefnAugmentationNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnaugmentationnode.html#``.ctor``) TypeDefnAugmentationNode.``.ctor`` ``.ctor`` ### [TypeDefnAugmentationNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnaugmentationnode.html#Members) TypeDefnAugmentationNode.Members Members ### [TypeDefnAugmentationNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnaugmentationnode.html#TypeName) TypeDefnAugmentationNode.TypeName TypeName ### [TypeDefnAugmentationNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnaugmentationnode.html#WithKeyword) TypeDefnAugmentationNode.WithKeyword WithKeyword ### [TypeDefnDelegateNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefndelegatenode.html) TypeDefnDelegateNode Example: `type MyDelegate = delegate of int * string -> bool` β€” a delegate type declaration. TypeDefnDelegateNode.``.ctor`` ``.ctor`` TypeDefnDelegateNode.TypeList TypeList TypeDefnDelegateNode.TypeName TypeName TypeDefnDelegateNode.DelegateNode DelegateNode ### [TypeDefnDelegateNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefndelegatenode.html#``.ctor``) TypeDefnDelegateNode.``.ctor`` ``.ctor`` ### [TypeDefnDelegateNode.TypeList](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefndelegatenode.html#TypeList) TypeDefnDelegateNode.TypeList TypeList ### [TypeDefnDelegateNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefndelegatenode.html#TypeName) TypeDefnDelegateNode.TypeName TypeName ### [TypeDefnDelegateNode.DelegateNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefndelegatenode.html#DelegateNode) TypeDefnDelegateNode.DelegateNode DelegateNode ### [TypeDefnEnumNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnenumnode.html) TypeDefnEnumNode Example: `type Color = Red | Green | Blue` β€” an enum-style type definition with integer-valued cases. TypeDefnEnumNode.``.ctor`` ``.ctor`` TypeDefnEnumNode.EnumCases EnumCases TypeDefnEnumNode.Members Members TypeDefnEnumNode.TypeName TypeName TypeDefnEnumNode.WithKeyword WithKeyword ### [TypeDefnEnumNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnenumnode.html#``.ctor``) TypeDefnEnumNode.``.ctor`` ``.ctor`` ### [TypeDefnEnumNode.EnumCases](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnenumnode.html#EnumCases) TypeDefnEnumNode.EnumCases EnumCases ### [TypeDefnEnumNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnenumnode.html#Members) TypeDefnEnumNode.Members Members ### [TypeDefnEnumNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnenumnode.html#TypeName) TypeDefnEnumNode.TypeName TypeName ### [TypeDefnEnumNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnenumnode.html#WithKeyword) TypeDefnEnumNode.WithKeyword WithKeyword ### [TypeDefnExplicitBodyNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitbodynode.html) TypeDefnExplicitBodyNode The body of a `class … end` / `struct … end` / `interface … end` explicit type definition block. TypeDefnExplicitBodyNode.``.ctor`` ``.ctor`` TypeDefnExplicitBodyNode.Members Members TypeDefnExplicitBodyNode.End End TypeDefnExplicitBodyNode.Kind Kind ### [TypeDefnExplicitBodyNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitbodynode.html#``.ctor``) TypeDefnExplicitBodyNode.``.ctor`` ``.ctor`` ### [TypeDefnExplicitBodyNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitbodynode.html#Members) TypeDefnExplicitBodyNode.Members Members ### [TypeDefnExplicitBodyNode.End](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitbodynode.html#End) TypeDefnExplicitBodyNode.End End ### [TypeDefnExplicitBodyNode.Kind](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitbodynode.html#Kind) TypeDefnExplicitBodyNode.Kind Kind ### [TypeDefnExplicitNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitnode.html) TypeDefnExplicitNode Example: `type MyClass() = class … end` β€” a type definition using an explicit `class`/`struct`/`interface` block. TypeDefnExplicitNode.``.ctor`` ``.ctor`` TypeDefnExplicitNode.Members Members TypeDefnExplicitNode.TypeName TypeName TypeDefnExplicitNode.WithKeyword WithKeyword TypeDefnExplicitNode.Body Body ### [TypeDefnExplicitNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitnode.html#``.ctor``) TypeDefnExplicitNode.``.ctor`` ``.ctor`` ### [TypeDefnExplicitNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitnode.html#Members) TypeDefnExplicitNode.Members Members ### [TypeDefnExplicitNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitnode.html#TypeName) TypeDefnExplicitNode.TypeName TypeName ### [TypeDefnExplicitNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitnode.html#WithKeyword) TypeDefnExplicitNode.WithKeyword WithKeyword ### [TypeDefnExplicitNode.Body](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnexplicitnode.html#Body) TypeDefnExplicitNode.Body Body ### [TypeDefnRecordFieldOrSpread](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordfieldorspread.html) TypeDefnRecordFieldOrSpread A single item inside the record representation of a type definition, in source order. TypeDefnRecordFieldOrSpread.Node Node TypeDefnRecordFieldOrSpread.Field Field TypeDefnRecordFieldOrSpread.Spread Spread ### [TypeDefnRecordFieldOrSpread.Node](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordfieldorspread.html#Node) TypeDefnRecordFieldOrSpread.Node Node ### [TypeDefnRecordFieldOrSpread.Field](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordfieldorspread.html#Field) TypeDefnRecordFieldOrSpread.Field Field ### [TypeDefnRecordFieldOrSpread.Spread](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordfieldorspread.html#Spread) TypeDefnRecordFieldOrSpread.Spread Spread ### [TypeDefnRecordNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html) TypeDefnRecordNode Example: `type Point = { X: float; Y: float }` β€” a record type definition. TypeDefnRecordNode.``.ctor`` ``.ctor`` TypeDefnRecordNode.Accessibility Accessibility TypeDefnRecordNode.Members Members TypeDefnRecordNode.TypeName TypeName TypeDefnRecordNode.WithKeyword WithKeyword TypeDefnRecordNode.OpeningBrace OpeningBrace TypeDefnRecordNode.ClosingBrace ClosingBrace TypeDefnRecordNode.Fields Fields ### [TypeDefnRecordNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#``.ctor``) TypeDefnRecordNode.``.ctor`` ``.ctor`` ### [TypeDefnRecordNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#Accessibility) TypeDefnRecordNode.Accessibility Accessibility ### [TypeDefnRecordNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#Members) TypeDefnRecordNode.Members Members ### [TypeDefnRecordNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#TypeName) TypeDefnRecordNode.TypeName TypeName ### [TypeDefnRecordNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#WithKeyword) TypeDefnRecordNode.WithKeyword WithKeyword ### [TypeDefnRecordNode.OpeningBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#OpeningBrace) TypeDefnRecordNode.OpeningBrace OpeningBrace ### [TypeDefnRecordNode.ClosingBrace](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#ClosingBrace) TypeDefnRecordNode.ClosingBrace ClosingBrace ### [TypeDefnRecordNode.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnrecordnode.html#Fields) TypeDefnRecordNode.Fields Fields ### [TypeDefnRegularNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnregularnode.html) TypeDefnRegularNode A regular type definition (class, interface, or abstract class without an explicit `class … end` block). Example: `type MyClass() =\n member _.Foo() = …` TypeDefnRegularNode.``.ctor`` ``.ctor`` TypeDefnRegularNode.Members Members TypeDefnRegularNode.TypeName TypeName TypeDefnRegularNode.WithKeyword WithKeyword ### [TypeDefnRegularNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnregularnode.html#``.ctor``) TypeDefnRegularNode.``.ctor`` ``.ctor`` ### [TypeDefnRegularNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnregularnode.html#Members) TypeDefnRegularNode.Members Members ### [TypeDefnRegularNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnregularnode.html#TypeName) TypeDefnRegularNode.TypeName TypeName ### [TypeDefnRegularNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnregularnode.html#WithKeyword) TypeDefnRegularNode.WithKeyword WithKeyword ### [TypeDefnUnionNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html) TypeDefnUnionNode Example: `type Result<'T> = Ok of 'T | Error of string` β€” a discriminated union type definition. TypeDefnUnionNode.``.ctor`` ``.ctor`` TypeDefnUnionNode.Accessibility Accessibility TypeDefnUnionNode.Members Members TypeDefnUnionNode.TypeName TypeName TypeDefnUnionNode.WithKeyword WithKeyword TypeDefnUnionNode.UnionCases UnionCases ### [TypeDefnUnionNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html#``.ctor``) TypeDefnUnionNode.``.ctor`` ``.ctor`` ### [TypeDefnUnionNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html#Accessibility) TypeDefnUnionNode.Accessibility Accessibility ### [TypeDefnUnionNode.Members](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html#Members) TypeDefnUnionNode.Members Members ### [TypeDefnUnionNode.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html#TypeName) TypeDefnUnionNode.TypeName TypeName ### [TypeDefnUnionNode.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html#WithKeyword) TypeDefnUnionNode.WithKeyword WithKeyword ### [TypeDefnUnionNode.UnionCases](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typedefnunionnode.html#UnionCases) TypeDefnUnionNode.UnionCases UnionCases ### [TypeFunsNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typefunsnode.html) TypeFunsNode Example: `int -> string -> bool` β€” a function type with one or more parameters and a return type. Each parameter is paired with its arrow token; the final element is the return type. TypeFunsNode.``.ctor`` ``.ctor`` TypeFunsNode.ReturnType ReturnType TypeFunsNode.Parameters Parameters ### [TypeFunsNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typefunsnode.html#``.ctor``) TypeFunsNode.``.ctor`` ``.ctor`` ### [TypeFunsNode.ReturnType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typefunsnode.html#ReturnType) TypeFunsNode.ReturnType ReturnType ### [TypeFunsNode.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typefunsnode.html#Parameters) TypeFunsNode.Parameters Parameters Type + arrow ### [TypeHashConstraintNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typehashconstraintnode.html) TypeHashConstraintNode Example: `#IDisposable` β€” a flexible/hash constraint type that matches any subtype. TypeHashConstraintNode.``.ctor`` ``.ctor`` TypeHashConstraintNode.Type Type TypeHashConstraintNode.Hash Hash ### [TypeHashConstraintNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typehashconstraintnode.html#``.ctor``) TypeHashConstraintNode.``.ctor`` ``.ctor`` ### [TypeHashConstraintNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typehashconstraintnode.html#Type) TypeHashConstraintNode.Type Type ### [TypeHashConstraintNode.Hash](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typehashconstraintnode.html#Hash) TypeHashConstraintNode.Hash Hash ### [TypeIntersectionNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeintersectionnode.html) TypeIntersectionNode Example: `IFoo & IBar` β€” an intersection type (F# 9+), combining multiple types with `&` separators. TypeIntersectionNode.``.ctor`` ``.ctor`` TypeIntersectionNode.TypesAndSeparators TypesAndSeparators ### [TypeIntersectionNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeintersectionnode.html#``.ctor``) TypeIntersectionNode.``.ctor`` ``.ctor`` ### [TypeIntersectionNode.TypesAndSeparators](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeintersectionnode.html#TypesAndSeparators) TypeIntersectionNode.TypesAndSeparators TypesAndSeparators ### [TypeLongIdentAppNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typelongidentappnode.html) TypeLongIdentAppNode Example: `Map SomeAlias` β€” a long identifier applied to a (possibly generic) type expression, used for type aliases or module-qualified types. TypeLongIdentAppNode.``.ctor`` ``.ctor`` TypeLongIdentAppNode.AppType AppType TypeLongIdentAppNode.LongIdent LongIdent ### [TypeLongIdentAppNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typelongidentappnode.html#``.ctor``) TypeLongIdentAppNode.``.ctor`` ``.ctor`` ### [TypeLongIdentAppNode.AppType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typelongidentappnode.html#AppType) TypeLongIdentAppNode.AppType AppType ### [TypeLongIdentAppNode.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typelongidentappnode.html#LongIdent) TypeLongIdentAppNode.LongIdent LongIdent ### [TypeMeasurePowerNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typemeasurepowernode.html) TypeMeasurePowerNode Example: `m^2` β€” a measure type raised to a rational power (used in units of measure). TypeMeasurePowerNode.``.ctor`` ``.ctor`` TypeMeasurePowerNode.Exponent Exponent TypeMeasurePowerNode.BaseMeasure BaseMeasure ### [TypeMeasurePowerNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typemeasurepowernode.html#``.ctor``) TypeMeasurePowerNode.``.ctor`` ``.ctor`` ### [TypeMeasurePowerNode.Exponent](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typemeasurepowernode.html#Exponent) TypeMeasurePowerNode.Exponent Exponent ### [TypeMeasurePowerNode.BaseMeasure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typemeasurepowernode.html#BaseMeasure) TypeMeasurePowerNode.BaseMeasure BaseMeasure ### [TypeNameNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html) TypeNameNode The shared header of a type definition: `type` / `and` keyword, optional doc, attributes, name, type parameters, constraints, optional implicit constructor, and `=` / `with` tokens. Example: `type private MyType<'T when 'T: equality>(x: int) =` TypeNameNode.``.ctor`` ``.ctor`` TypeNameNode.IsFirstType IsFirstType TypeNameNode.Constraints Constraints TypeNameNode.Accessibility Accessibility TypeNameNode.LeadingKeyword LeadingKeyword TypeNameNode.Attributes Attributes TypeNameNode.EqualsToken EqualsToken TypeNameNode.TypeParameters TypeParameters TypeNameNode.Identifier Identifier TypeNameNode.XmlDoc XmlDoc TypeNameNode.ImplicitConstructor ImplicitConstructor ### [TypeNameNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#``.ctor``) TypeNameNode.``.ctor`` ``.ctor`` ### [TypeNameNode.IsFirstType](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#IsFirstType) TypeNameNode.IsFirstType IsFirstType ### [TypeNameNode.Constraints](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#Constraints) TypeNameNode.Constraints Constraints ### [TypeNameNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#Accessibility) TypeNameNode.Accessibility Accessibility ### [TypeNameNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#LeadingKeyword) TypeNameNode.LeadingKeyword LeadingKeyword ### [TypeNameNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#Attributes) TypeNameNode.Attributes Attributes ### [TypeNameNode.EqualsToken](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#EqualsToken) TypeNameNode.EqualsToken EqualsToken ### [TypeNameNode.TypeParameters](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#TypeParameters) TypeNameNode.TypeParameters TypeParameters ### [TypeNameNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#Identifier) TypeNameNode.Identifier Identifier ### [TypeNameNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#XmlDoc) TypeNameNode.XmlDoc XmlDoc ### [TypeNameNode.ImplicitConstructor](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typenamenode.html#ImplicitConstructor) TypeNameNode.ImplicitConstructor ImplicitConstructor ### [TypeOrNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeornode.html) TypeOrNode Example: `A or B` β€” an F# 9+ type union (disjunction) used in type constraints and signatures. TypeOrNode.``.ctor`` ``.ctor`` TypeOrNode.LeftHandSide LeftHandSide TypeOrNode.Or Or TypeOrNode.RightHandSide RightHandSide ### [TypeOrNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeornode.html#``.ctor``) TypeOrNode.``.ctor`` ``.ctor`` ### [TypeOrNode.LeftHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeornode.html#LeftHandSide) TypeOrNode.LeftHandSide LeftHandSide ### [TypeOrNode.Or](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeornode.html#Or) TypeOrNode.Or Or ### [TypeOrNode.RightHandSide](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeornode.html#RightHandSide) TypeOrNode.RightHandSide RightHandSide ### [TypeParenNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeparennode.html) TypeParenNode Example: `(int -> string)` β€” a parenthesised type, used to clarify precedence or wrap a type in parens. TypeParenNode.``.ctor`` ``.ctor`` TypeParenNode.Type Type TypeParenNode.OpeningParen OpeningParen TypeParenNode.ClosingParen ClosingParen ### [TypeParenNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeparennode.html#``.ctor``) TypeParenNode.``.ctor`` ``.ctor`` ### [TypeParenNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeparennode.html#Type) TypeParenNode.Type Type ### [TypeParenNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeparennode.html#OpeningParen) TypeParenNode.OpeningParen OpeningParen ### [TypeParenNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typeparennode.html#ClosingParen) TypeParenNode.ClosingParen ClosingParen ### [TypeSignatureParameterNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typesignatureparameternode.html) TypeSignatureParameterNode Example: `?x: int` or `[] name: string` β€” a parameter type in a signature, optionally with attributes and an identifier label. TypeSignatureParameterNode.``.ctor`` ``.ctor`` TypeSignatureParameterNode.Type Type TypeSignatureParameterNode.Attributes Attributes TypeSignatureParameterNode.Identifier Identifier ### [TypeSignatureParameterNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typesignatureparameternode.html#``.ctor``) TypeSignatureParameterNode.``.ctor`` ``.ctor`` ### [TypeSignatureParameterNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typesignatureparameternode.html#Type) TypeSignatureParameterNode.Type Type ### [TypeSignatureParameterNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typesignatureparameternode.html#Attributes) TypeSignatureParameterNode.Attributes Attributes ### [TypeSignatureParameterNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typesignatureparameternode.html#Identifier) TypeSignatureParameterNode.Identifier Identifier ### [TypeSpreadNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typespreadnode.html) TypeSpreadNode Example: `...Source` β€” a spread of an existing record type into a record type definition. TypeSpreadNode.``.ctor`` ``.ctor`` TypeSpreadNode.Type Type TypeSpreadNode.Dots Dots ### [TypeSpreadNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typespreadnode.html#``.ctor``) TypeSpreadNode.``.ctor`` ``.ctor`` ### [TypeSpreadNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typespreadnode.html#Type) TypeSpreadNode.Type Type ### [TypeSpreadNode.Dots](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typespreadnode.html#Dots) TypeSpreadNode.Dots Dots ### [TypeStaticConstantExprNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantexprnode.html) TypeStaticConstantExprNode Example: `const 42` β€” a static constant expression used as a type argument (e.g. in inline F# code or SRTP). TypeStaticConstantExprNode.``.ctor`` ``.ctor`` TypeStaticConstantExprNode.Const Const TypeStaticConstantExprNode.Expr Expr ### [TypeStaticConstantExprNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantexprnode.html#``.ctor``) TypeStaticConstantExprNode.``.ctor`` ``.ctor`` ### [TypeStaticConstantExprNode.Const](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantexprnode.html#Const) TypeStaticConstantExprNode.Const Const ### [TypeStaticConstantExprNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantexprnode.html#Expr) TypeStaticConstantExprNode.Expr Expr ### [TypeStaticConstantNamedNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantnamednode.html) TypeStaticConstantNamedNode Example: `N=3` β€” a named static constant type, pairing an identifier type with a value type (e.g. in SRTP constraints). TypeStaticConstantNamedNode.``.ctor`` ``.ctor`` TypeStaticConstantNamedNode.Identifier Identifier TypeStaticConstantNamedNode.Value Value ### [TypeStaticConstantNamedNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantnamednode.html#``.ctor``) TypeStaticConstantNamedNode.``.ctor`` ``.ctor`` ### [TypeStaticConstantNamedNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantnamednode.html#Identifier) TypeStaticConstantNamedNode.Identifier Identifier ### [TypeStaticConstantNamedNode.Value](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestaticconstantnamednode.html#Value) TypeStaticConstantNamedNode.Value Value ### [TypeStructTupleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestructtuplenode.html) TypeStructTupleNode Example: `struct (int * string)` β€” a struct tuple type, distinguishable from a reference tuple by the `struct` keyword. TypeStructTupleNode.``.ctor`` ``.ctor`` TypeStructTupleNode.Path Path TypeStructTupleNode.Keyword Keyword TypeStructTupleNode.ClosingParen ClosingParen ### [TypeStructTupleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestructtuplenode.html#``.ctor``) TypeStructTupleNode.``.ctor`` ``.ctor`` ### [TypeStructTupleNode.Path](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestructtuplenode.html#Path) TypeStructTupleNode.Path Path ### [TypeStructTupleNode.Keyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestructtuplenode.html#Keyword) TypeStructTupleNode.Keyword Keyword ### [TypeStructTupleNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typestructtuplenode.html#ClosingParen) TypeStructTupleNode.ClosingParen ClosingParen ### [TypeTupleNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typetuplenode.html) TypeTupleNode Example: `int * string * bool` β€” a tuple type. Path interleaves the component types with `*` separators. TypeTupleNode.``.ctor`` ``.ctor`` TypeTupleNode.Path Path ### [TypeTupleNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typetuplenode.html#``.ctor``) TypeTupleNode.``.ctor`` ``.ctor`` ### [TypeTupleNode.Path](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typetuplenode.html#Path) TypeTupleNode.Path Path ### [TypeWithGlobalConstraintsNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typewithglobalconstraintsnode.html) TypeWithGlobalConstraintsNode Example: `'T when 'T : equality` β€” a type paired with one or more type constraints that apply globally. TypeWithGlobalConstraintsNode.``.ctor`` ``.ctor`` TypeWithGlobalConstraintsNode.Type Type TypeWithGlobalConstraintsNode.TypeConstraints TypeConstraints ### [TypeWithGlobalConstraintsNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typewithglobalconstraintsnode.html#``.ctor``) TypeWithGlobalConstraintsNode.``.ctor`` ``.ctor`` ### [TypeWithGlobalConstraintsNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typewithglobalconstraintsnode.html#Type) TypeWithGlobalConstraintsNode.Type Type ### [TypeWithGlobalConstraintsNode.TypeConstraints](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-typewithglobalconstraintsnode.html#TypeConstraints) TypeWithGlobalConstraintsNode.TypeConstraints TypeConstraints ### [UnionCaseNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html) UnionCaseNode Example: `| MyCase of int * string` β€” a discriminated union case declaration. UnionCaseNode.``.ctor`` ``.ctor`` UnionCaseNode.Bar Bar UnionCaseNode.Attributes Attributes UnionCaseNode.OfKeyword OfKeyword UnionCaseNode.Identifier Identifier UnionCaseNode.XmlDoc XmlDoc UnionCaseNode.Fields Fields ### [UnionCaseNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#``.ctor``) UnionCaseNode.``.ctor`` ``.ctor`` ### [UnionCaseNode.Bar](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#Bar) UnionCaseNode.Bar Bar ### [UnionCaseNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#Attributes) UnionCaseNode.Attributes Attributes ### [UnionCaseNode.OfKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#OfKeyword) UnionCaseNode.OfKeyword OfKeyword ### [UnionCaseNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#Identifier) UnionCaseNode.Identifier Identifier ### [UnionCaseNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#XmlDoc) UnionCaseNode.XmlDoc XmlDoc ### [UnionCaseNode.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unioncasenode.html#Fields) UnionCaseNode.Fields Fields ### [UnitNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitnode.html) UnitNode Example: `()` β€” a unit value consisting of an opening and closing parenthesis. UnitNode.``.ctor`` ``.ctor`` UnitNode.OpeningParen OpeningParen UnitNode.ClosingParen ClosingParen ### [UnitNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitnode.html#``.ctor``) UnitNode.``.ctor`` ``.ctor`` ### [UnitNode.OpeningParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitnode.html#OpeningParen) UnitNode.OpeningParen OpeningParen ### [UnitNode.ClosingParen](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitnode.html#ClosingParen) UnitNode.ClosingParen ClosingParen ### [UnitOfMeasureNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitofmeasurenode.html) UnitOfMeasureNode Example: `` β€” a unit-of-measure annotation enclosed in angle brackets, used in type annotations. UnitOfMeasureNode.``.ctor`` ``.ctor`` UnitOfMeasureNode.GreaterThan GreaterThan UnitOfMeasureNode.Measure Measure UnitOfMeasureNode.LessThan LessThan ### [UnitOfMeasureNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitofmeasurenode.html#``.ctor``) UnitOfMeasureNode.``.ctor`` ``.ctor`` ### [UnitOfMeasureNode.GreaterThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitofmeasurenode.html#GreaterThan) UnitOfMeasureNode.GreaterThan GreaterThan ### [UnitOfMeasureNode.Measure](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitofmeasurenode.html#Measure) UnitOfMeasureNode.Measure Measure ### [UnitOfMeasureNode.LessThan](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-unitofmeasurenode.html#LessThan) UnitOfMeasureNode.LessThan LessThan ### [ValNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html) ValNode Example: `val mutable x: int` β€” a value declaration in a class or signature file, optionally mutable and with an initial expression. ValNode.``.ctor`` ``.ctor`` ValNode.Equals Equals ValNode.Type Type ValNode.Accessibility Accessibility ValNode.LeadingKeyword LeadingKeyword ValNode.Attributes Attributes ValNode.Expr Expr ValNode.Identifier Identifier ValNode.TypeParams TypeParams ValNode.IsMutable IsMutable ValNode.XmlDoc XmlDoc ValNode.Inline Inline ### [ValNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#``.ctor``) ValNode.``.ctor`` ``.ctor`` ### [ValNode.Equals](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Equals) ValNode.Equals Equals ### [ValNode.Type](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Type) ValNode.Type Type ### [ValNode.Accessibility](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Accessibility) ValNode.Accessibility Accessibility ### [ValNode.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#LeadingKeyword) ValNode.LeadingKeyword LeadingKeyword ### [ValNode.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Attributes) ValNode.Attributes Attributes ### [ValNode.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Expr) ValNode.Expr Expr ### [ValNode.Identifier](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Identifier) ValNode.Identifier Identifier ### [ValNode.TypeParams](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#TypeParams) ValNode.TypeParams TypeParams ### [ValNode.IsMutable](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#IsMutable) ValNode.IsMutable IsMutable ### [ValNode.XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#XmlDoc) ValNode.XmlDoc XmlDoc ### [ValNode.Inline](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-valnode.html#Inline) ValNode.Inline Inline ### [XmlDocNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-xmldocnode.html) XmlDocNode Example: `/// Summary line.\n/// More detail.` β€” an XML documentation comment block. Each element of Lines is one raw source line of the doc comment. XmlDocNode.``.ctor`` ``.ctor`` XmlDocNode.Lines Lines ### [XmlDocNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-xmldocnode.html#``.ctor``) XmlDocNode.``.ctor`` ``.ctor`` ### [XmlDocNode.Lines](https://fsprojects.github.io/fantomas/reference/fantomas-core-syntaxoak-xmldocnode.html#Lines) XmlDocNode.Lines Lines ### [UnionCase](https://fsprojects.github.io/fantomas/reference/fantomas-core-unioncase.html) UnionCase UnionCase.name name ### [UnionCase.name](https://fsprojects.github.io/fantomas/reference/fantomas-core-unioncase.html#name) UnionCase.name name The qualified name of the union case `value` is, such as `SynType.App`. Names a syntax tree node in an error message without dumping every field it carries, which is what the reader of the message needs and what `%A` buries. Falls back to the type's own name when `value` is not a union. ### [CodeFormatter](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html) CodeFormatter CodeFormatter.FormatASTAsync FormatASTAsync CodeFormatter.FormatASTAsync FormatASTAsync CodeFormatter.FormatASTAsync FormatASTAsync CodeFormatter.FormatASTAsync FormatASTAsync CodeFormatter.FormatDocumentAsync FormatDocumentAsync CodeFormatter.FormatDocumentAsync FormatDocumentAsync CodeFormatter.FormatDocumentAsync FormatDocumentAsync CodeFormatter.FormatOakAsync FormatOakAsync CodeFormatter.FormatOakAsync FormatOakAsync CodeFormatter.FormatSelectionAsync FormatSelectionAsync CodeFormatter.FormatSelectionAsync FormatSelectionAsync CodeFormatter.GetVersion GetVersion CodeFormatter.GetWriterEventsAsync GetWriterEventsAsync CodeFormatter.GetWriterEventsAsync GetWriterEventsAsync CodeFormatter.GetWriterEventsAsync GetWriterEventsAsync CodeFormatter.MakePosition MakePosition CodeFormatter.MakeRange MakeRange CodeFormatter.ParseAsync ParseAsync CodeFormatter.ParseOakAsync ParseOakAsync CodeFormatter.TransformAST TransformAST CodeFormatter.TransformAST TransformAST CodeFormatter.ValidateFSharpCodeAsync ValidateFSharpCodeAsync ### [CodeFormatter.FormatASTAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatASTAsync) CodeFormatter.FormatASTAsync FormatASTAsync Format an abstract syntax tree with the original source for trivia processing ### [CodeFormatter.FormatASTAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatASTAsync) CodeFormatter.FormatASTAsync FormatASTAsync Format an abstract syntax tree with the original source for trivia processing ### [CodeFormatter.FormatASTAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatASTAsync) CodeFormatter.FormatASTAsync FormatASTAsync Format an abstract syntax tree using a given config. Without the source, comments and blank lines are not in the tree and cannot be printed, and literals are re-rendered from their values rather than kept as they were spelled. ### [CodeFormatter.FormatASTAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatASTAsync) CodeFormatter.FormatASTAsync FormatASTAsync Format an abstract syntax tree. Without the source, comments and blank lines are not in the tree and cannot be printed, and literals are re-rendered from their values rather than kept as they were spelled. ### [CodeFormatter.FormatDocumentAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatDocumentAsync) CodeFormatter.FormatDocumentAsync FormatDocumentAsync Format a source string using an optional config. ### [CodeFormatter.FormatDocumentAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatDocumentAsync) CodeFormatter.FormatDocumentAsync FormatDocumentAsync Format a source string using an optional config. ### [CodeFormatter.FormatDocumentAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatDocumentAsync) CodeFormatter.FormatDocumentAsync FormatDocumentAsync Format a source string using an optional config. ### [CodeFormatter.FormatOakAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatOakAsync) CodeFormatter.FormatOakAsync FormatOakAsync Format SyntaxOak to string using given config ### [CodeFormatter.FormatOakAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatOakAsync) CodeFormatter.FormatOakAsync FormatOakAsync Format SyntaxOak to string ### [CodeFormatter.FormatSelectionAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatSelectionAsync) CodeFormatter.FormatSelectionAsync FormatSelectionAsync Format a part of source string using given config, and return the (formatted) selected part only. Beware that the range argument is inclusive. The closest expression inside the selection will be formatted if possible. ### [CodeFormatter.FormatSelectionAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#FormatSelectionAsync) CodeFormatter.FormatSelectionAsync FormatSelectionAsync Format a part of a source string and return the (formatted) selected part only. Beware that the range argument is inclusive. The closest expression inside the selection will be formatted if possible. ### [CodeFormatter.GetVersion](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#GetVersion) CodeFormatter.GetVersion GetVersion Returns the version of Fantomas found in the AssemblyInfo ### [CodeFormatter.GetWriterEventsAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#GetWriterEventsAsync) CodeFormatter.GetWriterEventsAsync GetWriterEventsAsync Debug only: returns the writer events produced during formatting of a source string with specific defines. ### [CodeFormatter.GetWriterEventsAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#GetWriterEventsAsync) CodeFormatter.GetWriterEventsAsync GetWriterEventsAsync Debug only: returns the writer events produced during formatting of a source string. ### [CodeFormatter.GetWriterEventsAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#GetWriterEventsAsync) CodeFormatter.GetWriterEventsAsync GetWriterEventsAsync Debug only: returns the writer events produced during formatting of a source string. ### [CodeFormatter.MakePosition](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#MakePosition) CodeFormatter.MakePosition MakePosition Make a pos from line and column ### [CodeFormatter.MakeRange](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#MakeRange) CodeFormatter.MakeRange MakeRange Make a range from (startLine, startCol) to (endLine, endCol) to select some text ### [CodeFormatter.ParseAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#ParseAsync) CodeFormatter.ParseAsync ParseAsync Parse a source string using given config ### [CodeFormatter.ParseOakAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#ParseOakAsync) CodeFormatter.ParseOakAsync ParseOakAsync Parse a source string to SyntaxOak ### [CodeFormatter.TransformAST](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#TransformAST) CodeFormatter.TransformAST TransformAST Transform a ParsedInput to an Oak, with the trivia found in the source attached to its nodes. ### [CodeFormatter.TransformAST](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#TransformAST) CodeFormatter.TransformAST TransformAST Transform a ParsedInput to an Oak without trivia; the source is needed to attach comments and blank lines and to keep the spelling of literals. ### [CodeFormatter.ValidateFSharpCodeAsync](https://fsprojects.github.io/fantomas/reference/fantomas-core-codeformatter.html#ValidateFSharpCodeAsync) CodeFormatter.ValidateFSharpCodeAsync ValidateFSharpCodeAsync Check whether an input string is valid F# by attempting to parse the code, and report what about it is not when it is not. This replaces IsValidFSharpCodeAsync, which answered with a bare boolean. A caller that has to tell somebody why the source was refused could not reconstruct the reason from that answer, and asking a second time would parse the source a second time. Read IsValid off the result where the verdict alone is what was wanted. ### [DefineParseException](https://fsprojects.github.io/fantomas/reference/fantomas-core-defineparseexception.html) DefineParseException Raised when one or more conditional compilation define combinations produce invalid syntax trees. DefineParseException.``.ctor`` ``.ctor`` DefineParseException.Combinations Combinations ### [DefineParseException.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-defineparseexception.html#``.ctor``) DefineParseException.``.ctor`` ``.ctor`` ### [DefineParseException.Combinations](https://fsprojects.github.io/fantomas/reference/fantomas-core-defineparseexception.html#Combinations) DefineParseException.Combinations Combinations The define combinations that failed to parse. ### [EndOfLineStyle](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html) EndOfLineStyle EndOfLineStyle.NewLineString NewLineString EndOfLineStyle.OfConfigString OfConfigString EndOfLineStyle.ToConfigString ToConfigString EndOfLineStyle.FromEnvironment FromEnvironment EndOfLineStyle.LF LF EndOfLineStyle.CR CR EndOfLineStyle.CRLF CRLF ### [EndOfLineStyle.NewLineString](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#NewLineString) EndOfLineStyle.NewLineString NewLineString ### [EndOfLineStyle.OfConfigString](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#OfConfigString) EndOfLineStyle.OfConfigString OfConfigString ### [EndOfLineStyle.ToConfigString](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#ToConfigString) EndOfLineStyle.ToConfigString ToConfigString ### [EndOfLineStyle.FromEnvironment](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#FromEnvironment) EndOfLineStyle.FromEnvironment FromEnvironment ### [EndOfLineStyle.LF](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#LF) EndOfLineStyle.LF LF ### [EndOfLineStyle.CR](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#CR) EndOfLineStyle.CR CR ### [EndOfLineStyle.CRLF](https://fsprojects.github.io/fantomas/reference/fantomas-core-endoflinestyle.html#CRLF) EndOfLineStyle.CRLF CRLF ### [EventList](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html) EventList Mutable doubly-linked list of WriterEvents. Supports O(1) append, insert, remove, and truncation. EventList.``.ctor`` ``.ctor`` EventList.Append Append EventList.CreateBackupPoint CreateBackupPoint EventList.CurrentLineContent CurrentLineContent EventList.InsertAfter InsertAfter EventList.InsertBefore InsertBefore EventList.Remove Remove EventList.RollbackTo RollbackTo EventList.ToRevSeq ToRevSeq EventList.ToSeq ToSeq EventList.Tail Tail EventList.Head Head ### [EventList.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#``.ctor``) EventList.``.ctor`` ``.ctor`` ### [EventList.Append](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#Append) EventList.Append Append O(1) append β€” returns the node for future reference. ### [EventList.CreateBackupPoint](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#CreateBackupPoint) EventList.CreateBackupPoint CreateBackupPoint O(1) β€” mark the current end of the list so we can later discard everything appended after it. Used by speculative formatting: create a backup point, try an expression, and RollbackTo if it doesn't fit. ### [EventList.CurrentLineContent](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#CurrentLineContent) EventList.CurrentLineContent CurrentLineContent Collect the text content of the current (last) line by walking backward from the tail to the nearest newline event. Returns the concatenated Write texts in forward order. ### [EventList.InsertAfter](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#InsertAfter) EventList.InsertAfter InsertAfter O(1) insert after a given node β€” returns the new node. ### [EventList.InsertBefore](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#InsertBefore) EventList.InsertBefore InsertBefore O(1) insert before a given node β€” returns the new node. ### [EventList.Remove](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#Remove) EventList.Remove Remove O(1) remove a node from the list. ### [EventList.RollbackTo](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#RollbackTo) EventList.RollbackTo RollbackTo O(1) β€” discard every node appended after `point`, restoring the list to where it was when CreateBackupPoint was called. Pass null to clear the entire list (when the backup point was created on an empty list). ### [EventList.ToRevSeq](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#ToRevSeq) EventList.ToRevSeq ToRevSeq Iterate events from tail to head (reverse order). ### [EventList.ToSeq](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#ToSeq) EventList.ToSeq ToSeq Iterate events from head to tail. ### [EventList.Tail](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#Tail) EventList.Tail Tail ### [EventList.Head](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventlist.html#Head) EventList.Head Head ### [EventNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventnode.html) EventNode A node in the mutable doubly-linked list of WriterEvents. We use [] instead of option for Prev/Next links because this is a hot path β€” every formatting operation appends nodes. Option would allocate a Some wrapper on every link assignment, adding GC pressure for no functional benefit. The null checks are contained within EventList's methods; callers work with non-null EventNode references returned by Append/InsertAfter/InsertBefore. EventNode.``.ctor`` ``.ctor`` EventNode.Prev Prev EventNode.Next Next EventNode.Event Event ### [EventNode.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventnode.html#``.ctor``) EventNode.``.ctor`` ``.ctor`` ### [EventNode.Prev](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventnode.html#Prev) EventNode.Prev Prev ### [EventNode.Next](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventnode.html#Next) EventNode.Next Next ### [EventNode.Event](https://fsprojects.github.io/fantomas/reference/fantomas-core-eventnode.html#Event) EventNode.Event Event ### [FormatConfig](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html) FormatConfig FormatConfig.IsStroustrupStyle IsStroustrupStyle FormatConfig.Default Default FormatConfig.IndentSize IndentSize FormatConfig.MaxLineLength MaxLineLength FormatConfig.EndOfLine EndOfLine FormatConfig.InsertFinalNewline InsertFinalNewline FormatConfig.SpaceBeforeParameter SpaceBeforeParameter FormatConfig.SpaceBeforeLowercaseInvocation SpaceBeforeLowercaseInvocation FormatConfig.SpaceBeforeUppercaseInvocation SpaceBeforeUppercaseInvocation FormatConfig.SpaceBeforeClassConstructor SpaceBeforeClassConstructor FormatConfig.SpaceBeforeMember SpaceBeforeMember FormatConfig.SpaceBeforeColon SpaceBeforeColon FormatConfig.SpaceAfterComma SpaceAfterComma FormatConfig.SpaceBeforeSemicolon SpaceBeforeSemicolon FormatConfig.SpaceAfterSemicolon SpaceAfterSemicolon FormatConfig.SpaceAroundDelimiter SpaceAroundDelimiter FormatConfig.MaxIfThenShortWidth MaxIfThenShortWidth FormatConfig.MaxIfThenElseShortWidth MaxIfThenElseShortWidth FormatConfig.MaxInfixOperatorExpression MaxInfixOperatorExpression FormatConfig.MaxRecordWidth MaxRecordWidth FormatConfig.MaxRecordNumberOfItems MaxRecordNumberOfItems FormatConfig.RecordMultilineFormatter RecordMultilineFormatter FormatConfig.MaxArrayOrListWidth MaxArrayOrListWidth FormatConfig.MaxArrayOrListNumberOfItems MaxArrayOrListNumberOfItems FormatConfig.ArrayOrListMultilineFormatter ArrayOrListMultilineFormatter FormatConfig.MaxValueBindingWidth MaxValueBindingWidth FormatConfig.MaxFunctionBindingWidth MaxFunctionBindingWidth FormatConfig.NewlineBetweenTypeDefinitionAndMembers NewlineBetweenTypeDefinitionAndMembers FormatConfig.AlignFunctionSignatureToIndentation AlignFunctionSignatureToIndentation FormatConfig.AlternativeLongMemberDefinitions AlternativeLongMemberDefinitions FormatConfig.MultiLineLambdaClosingNewline MultiLineLambdaClosingNewline FormatConfig.ExperimentalKeepIndentInBranch ExperimentalKeepIndentInBranch FormatConfig.BlankLinesAroundNestedMultilineExpressions BlankLinesAroundNestedMultilineExpressions FormatConfig.BarBeforeDiscriminatedUnionDeclaration BarBeforeDiscriminatedUnionDeclaration FormatConfig.MultilineBracketStyle MultilineBracketStyle FormatConfig.KeepMaxNumberOfBlankLines KeepMaxNumberOfBlankLines FormatConfig.NewlineBeforeMultilineComputationExpression NewlineBeforeMultilineComputationExpression FormatConfig.ExperimentalElmish ExperimentalElmish ### [FormatConfig.IsStroustrupStyle](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#IsStroustrupStyle) FormatConfig.IsStroustrupStyle IsStroustrupStyle ### [FormatConfig.Default](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#Default) FormatConfig.Default Default ### [FormatConfig.IndentSize](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#IndentSize) FormatConfig.IndentSize IndentSize ### [FormatConfig.MaxLineLength](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxLineLength) FormatConfig.MaxLineLength MaxLineLength ### [FormatConfig.EndOfLine](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#EndOfLine) FormatConfig.EndOfLine EndOfLine ### [FormatConfig.InsertFinalNewline](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#InsertFinalNewline) FormatConfig.InsertFinalNewline InsertFinalNewline ### [FormatConfig.SpaceBeforeParameter](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeParameter) FormatConfig.SpaceBeforeParameter SpaceBeforeParameter ### [FormatConfig.SpaceBeforeLowercaseInvocation](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeLowercaseInvocation) FormatConfig.SpaceBeforeLowercaseInvocation SpaceBeforeLowercaseInvocation ### [FormatConfig.SpaceBeforeUppercaseInvocation](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeUppercaseInvocation) FormatConfig.SpaceBeforeUppercaseInvocation SpaceBeforeUppercaseInvocation ### [FormatConfig.SpaceBeforeClassConstructor](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeClassConstructor) FormatConfig.SpaceBeforeClassConstructor SpaceBeforeClassConstructor ### [FormatConfig.SpaceBeforeMember](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeMember) FormatConfig.SpaceBeforeMember SpaceBeforeMember ### [FormatConfig.SpaceBeforeColon](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeColon) FormatConfig.SpaceBeforeColon SpaceBeforeColon ### [FormatConfig.SpaceAfterComma](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceAfterComma) FormatConfig.SpaceAfterComma SpaceAfterComma ### [FormatConfig.SpaceBeforeSemicolon](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceBeforeSemicolon) FormatConfig.SpaceBeforeSemicolon SpaceBeforeSemicolon ### [FormatConfig.SpaceAfterSemicolon](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceAfterSemicolon) FormatConfig.SpaceAfterSemicolon SpaceAfterSemicolon ### [FormatConfig.SpaceAroundDelimiter](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#SpaceAroundDelimiter) FormatConfig.SpaceAroundDelimiter SpaceAroundDelimiter ### [FormatConfig.MaxIfThenShortWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxIfThenShortWidth) FormatConfig.MaxIfThenShortWidth MaxIfThenShortWidth ### [FormatConfig.MaxIfThenElseShortWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxIfThenElseShortWidth) FormatConfig.MaxIfThenElseShortWidth MaxIfThenElseShortWidth ### [FormatConfig.MaxInfixOperatorExpression](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxInfixOperatorExpression) FormatConfig.MaxInfixOperatorExpression MaxInfixOperatorExpression ### [FormatConfig.MaxRecordWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxRecordWidth) FormatConfig.MaxRecordWidth MaxRecordWidth ### [FormatConfig.MaxRecordNumberOfItems](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxRecordNumberOfItems) FormatConfig.MaxRecordNumberOfItems MaxRecordNumberOfItems ### [FormatConfig.RecordMultilineFormatter](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#RecordMultilineFormatter) FormatConfig.RecordMultilineFormatter RecordMultilineFormatter ### [FormatConfig.MaxArrayOrListWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxArrayOrListWidth) FormatConfig.MaxArrayOrListWidth MaxArrayOrListWidth ### [FormatConfig.MaxArrayOrListNumberOfItems](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxArrayOrListNumberOfItems) FormatConfig.MaxArrayOrListNumberOfItems MaxArrayOrListNumberOfItems ### [FormatConfig.ArrayOrListMultilineFormatter](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#ArrayOrListMultilineFormatter) FormatConfig.ArrayOrListMultilineFormatter ArrayOrListMultilineFormatter ### [FormatConfig.MaxValueBindingWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxValueBindingWidth) FormatConfig.MaxValueBindingWidth MaxValueBindingWidth ### [FormatConfig.MaxFunctionBindingWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MaxFunctionBindingWidth) FormatConfig.MaxFunctionBindingWidth MaxFunctionBindingWidth ### [FormatConfig.NewlineBetweenTypeDefinitionAndMembers](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#NewlineBetweenTypeDefinitionAndMembers) FormatConfig.NewlineBetweenTypeDefinitionAndMembers NewlineBetweenTypeDefinitionAndMembers ### [FormatConfig.AlignFunctionSignatureToIndentation](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#AlignFunctionSignatureToIndentation) FormatConfig.AlignFunctionSignatureToIndentation AlignFunctionSignatureToIndentation ### [FormatConfig.AlternativeLongMemberDefinitions](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#AlternativeLongMemberDefinitions) FormatConfig.AlternativeLongMemberDefinitions AlternativeLongMemberDefinitions ### [FormatConfig.MultiLineLambdaClosingNewline](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MultiLineLambdaClosingNewline) FormatConfig.MultiLineLambdaClosingNewline MultiLineLambdaClosingNewline ### [FormatConfig.ExperimentalKeepIndentInBranch](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#ExperimentalKeepIndentInBranch) FormatConfig.ExperimentalKeepIndentInBranch ExperimentalKeepIndentInBranch ### [FormatConfig.BlankLinesAroundNestedMultilineExpressions](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#BlankLinesAroundNestedMultilineExpressions) FormatConfig.BlankLinesAroundNestedMultilineExpressions BlankLinesAroundNestedMultilineExpressions ### [FormatConfig.BarBeforeDiscriminatedUnionDeclaration](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#BarBeforeDiscriminatedUnionDeclaration) FormatConfig.BarBeforeDiscriminatedUnionDeclaration BarBeforeDiscriminatedUnionDeclaration ### [FormatConfig.MultilineBracketStyle](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#MultilineBracketStyle) FormatConfig.MultilineBracketStyle MultilineBracketStyle ### [FormatConfig.KeepMaxNumberOfBlankLines](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#KeepMaxNumberOfBlankLines) FormatConfig.KeepMaxNumberOfBlankLines KeepMaxNumberOfBlankLines ### [FormatConfig.NewlineBeforeMultilineComputationExpression](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#NewlineBeforeMultilineComputationExpression) FormatConfig.NewlineBeforeMultilineComputationExpression NewlineBeforeMultilineComputationExpression ### [FormatConfig.ExperimentalElmish](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatconfig.html#ExperimentalElmish) FormatConfig.ExperimentalElmish ExperimentalElmish ### [FormatException](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatexception.html) FormatException Raised when Fantomas encounters a problem during formatting. FormatException.``.ctor`` ``.ctor`` ### [FormatException.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatexception.html#``.ctor``) FormatException.``.ctor`` ``.ctor`` ### [FormatResult](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatresult.html) FormatResult FormatResult.Code Code FormatResult.Cursor Cursor ### [FormatResult.Code](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatresult.html#Code) FormatResult.Code Code Formatted code ### [FormatResult.Cursor](https://fsprojects.github.io/fantomas/reference/fantomas-core-formatresult.html#Cursor) FormatResult.Cursor Cursor New position of the input cursor. This can be None when no cursor was passed as input or no position was resolved. ### [InvariantViolationException](https://fsprojects.github.io/fantomas/reference/fantomas-core-invariantviolationexception.html) InvariantViolationException Raised when Fantomas reaches a state that its own model says is impossible, for example a chain whose parts do not fit the shape the transformer guarantees. Unlike the other exceptions here, this never indicates a problem with the code being formatted: it is a bug in Fantomas, or a change in how the F# parser groups expressions. Failing loudly is deliberate β€” the alternative is silently dropping parts of the source. InvariantViolationException.``.ctor`` ``.ctor`` InvariantViolationException.``.ctor`` ``.ctor`` InvariantViolationException.SyntaxNode SyntaxNode InvariantViolationException.Range Range InvariantViolationException.Invariant Invariant ### [InvariantViolationException.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-invariantviolationexception.html#``.ctor``) InvariantViolationException.``.ctor`` ``.ctor`` ### [InvariantViolationException.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-invariantviolationexception.html#``.ctor``) InvariantViolationException.``.ctor`` ``.ctor`` ### [InvariantViolationException.SyntaxNode](https://fsprojects.github.io/fantomas/reference/fantomas-core-invariantviolationexception.html#SyntaxNode) InvariantViolationException.SyntaxNode SyntaxNode The syntax tree node that triggered the violation, dumped in full, or an empty string when there is none to show. This is what a maintainer triaging the issue needs and what whoever filed it does not, so it is kept off the message and reported at detailed verbosity. ### [InvariantViolationException.Range](https://fsprojects.github.io/fantomas/reference/fantomas-core-invariantviolationexception.html#Range) InvariantViolationException.Range Range The source range of the construct that triggered the violation. ### [InvariantViolationException.Invariant](https://fsprojects.github.io/fantomas/reference/fantomas-core-invariantviolationexception.html#Invariant) InvariantViolationException.Invariant Invariant The invariant that was violated, on one line, without the location or the "please report" suffix. A caller that positions the violation against the source itself reports this and draws the rest from `Range`. ### [MultilineBracketStyle](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilinebracketstyle.html) MultilineBracketStyle MultilineBracketStyle.OfConfigString OfConfigString MultilineBracketStyle.ToConfigString ToConfigString MultilineBracketStyle.Cramped Cramped MultilineBracketStyle.Aligned Aligned MultilineBracketStyle.Stroustrup Stroustrup ### [MultilineBracketStyle.OfConfigString](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilinebracketstyle.html#OfConfigString) MultilineBracketStyle.OfConfigString OfConfigString ### [MultilineBracketStyle.ToConfigString](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilinebracketstyle.html#ToConfigString) MultilineBracketStyle.ToConfigString ToConfigString ### [MultilineBracketStyle.Cramped](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilinebracketstyle.html#Cramped) MultilineBracketStyle.Cramped Cramped ### [MultilineBracketStyle.Aligned](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilinebracketstyle.html#Aligned) MultilineBracketStyle.Aligned Aligned ### [MultilineBracketStyle.Stroustrup](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilinebracketstyle.html#Stroustrup) MultilineBracketStyle.Stroustrup Stroustrup ### [MultilineFormatterType](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilineformattertype.html) MultilineFormatterType MultilineFormatterType.OfConfigString OfConfigString MultilineFormatterType.ToConfigString ToConfigString MultilineFormatterType.CharacterWidth CharacterWidth MultilineFormatterType.NumberOfItems NumberOfItems ### [MultilineFormatterType.OfConfigString](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilineformattertype.html#OfConfigString) MultilineFormatterType.OfConfigString OfConfigString ### [MultilineFormatterType.ToConfigString](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilineformattertype.html#ToConfigString) MultilineFormatterType.ToConfigString ToConfigString ### [MultilineFormatterType.CharacterWidth](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilineformattertype.html#CharacterWidth) MultilineFormatterType.CharacterWidth CharacterWidth ### [MultilineFormatterType.NumberOfItems](https://fsprojects.github.io/fantomas/reference/fantomas-core-multilineformattertype.html#NumberOfItems) MultilineFormatterType.NumberOfItems NumberOfItems ### [Num](https://fsprojects.github.io/fantomas/reference/fantomas-core-num.html) Num ### [ParseException](https://fsprojects.github.io/fantomas/reference/fantomas-core-parseexception.html) ParseException Raised when the F# parser produces errors for source code without conditional directives. ParseException.``.ctor`` ``.ctor`` ParseException.Diagnostics Diagnostics ### [ParseException.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-parseexception.html#``.ctor``) ParseException.``.ctor`` ``.ctor`` ### [ParseException.Diagnostics](https://fsprojects.github.io/fantomas/reference/fantomas-core-parseexception.html#Diagnostics) ParseException.Diagnostics Diagnostics Every diagnostic the parser produced, warnings included. A warning is often what explains the error, and which of them are worth showing is the reporter's decision rather than this type's. ### [Queue<'T>](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html) Queue<'T> append only collection optimized for quick append of block of data and query operations data - list of blocks in reverse order Queue<'T>.``.ctor`` ``.ctor`` Queue<'T>.Append Append Queue<'T>.Rev Rev Queue<'T>.SkipExists SkipExists Queue<'T>.Tail Tail Queue<'T>.Head Head Queue<'T>.IsEmpty IsEmpty Queue<'T>.TryHead TryHead Queue<'T>.Length Length ### [Queue<'T>.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#``.ctor``) Queue<'T>.``.ctor`` ``.ctor`` ### [Queue<'T>.Append](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#Append) Queue<'T>.Append Append ### [Queue<'T>.Rev](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#Rev) Queue<'T>.Rev Rev ### [Queue<'T>.SkipExists](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#SkipExists) Queue<'T>.SkipExists SkipExists Equivalent of q |> Queue.toSeq |> Seq.skip n |> Seq.skipWhile p |> Seq.exists f, optimized for speed ### [Queue<'T>.Tail](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#Tail) Queue<'T>.Tail Tail ### [Queue<'T>.Head](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#Head) Queue<'T>.Head Head ### [Queue<'T>.IsEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#IsEmpty) Queue<'T>.IsEmpty IsEmpty ### [Queue<'T>.TryHead](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#TryHead) Queue<'T>.TryHead TryHead ### [Queue<'T>.Length](https://fsprojects.github.io/fantomas/reference/fantomas-core-queue-1.html#Length) Queue<'T>.Length Length ### [ValidationResult](https://fsprojects.github.io/fantomas/reference/fantomas-core-validationresult.html) ValidationResult What Fantomas made of a piece of F# source when it was asked whether that source is valid. The verdict and the reason for it together, because a caller that has to tell somebody why cannot reconstruct it from a boolean, and asking twice would parse the source twice. ValidationResult.IsValid IsValid ValidationResult.Diagnostics Diagnostics ### [ValidationResult.IsValid](https://fsprojects.github.io/fantomas/reference/fantomas-core-validationresult.html#IsValid) ValidationResult.IsValid IsValid Whether the source is valid F# as far as Fantomas is concerned. ### [ValidationResult.Diagnostics](https://fsprojects.github.io/fantomas/reference/fantomas-core-validationresult.html#Diagnostics) ValidationResult.Diagnostics Diagnostics The diagnostics that make the source invalid: every error, and every warning Fantomas does not tolerate. Everything the parser was willing to overlook is left out, so this is empty exactly when the source is valid rather than being all the parser had to say. When the source carries conditional directives, these come from the first define combination that failed. Every combination is parsed from the same text, so the positions are positions in that text whichever combination produced them. ### [WriterEvent](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html) WriterEvent Represents a single event emitted during the code formatting process. The sequence of writer events captures how the formatter produces its output. WriterEvent.Write Write WriterEvent.WriteTrivia WriteTrivia WriterEvent.WriteLine WriteLine WriterEvent.WriteLineInsideStringConst WriteLineInsideStringConst WriterEvent.WriteBeforeNewline WriteBeforeNewline WriterEvent.WriteLineBecauseOfTrivia WriteLineBecauseOfTrivia WriterEvent.WriteLineInsideTrivia WriteLineInsideTrivia WriterEvent.IndentBy IndentBy WriterEvent.UnIndentBy UnIndentBy WriterEvent.SetIndent SetIndent WriterEvent.RestoreIndent RestoreIndent WriterEvent.SetAtColumn SetAtColumn WriterEvent.RestoreAtColumn RestoreAtColumn WriterEvent.NodeStart NodeStart WriterEvent.NodeEnd NodeEnd WriterEvent.Start Start WriterEvent.Placeholder Placeholder ### [WriterEvent.Write](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#Write) WriterEvent.Write Write Append literal text to the current line. ### [WriterEvent.WriteTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#WriteTrivia) WriterEvent.WriteTrivia WriteTrivia Emit text that originated from trivia (comments, XML doc lines, or compiler directives). Behaves identically to Write in dump output, but allows the formatting engine to recognise trivia events without fragile string-prefix checks (e.g. "starts with //"). ### [WriterEvent.WriteLine](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#WriteLine) WriterEvent.WriteLine WriteLine End the current line and start a new one at the current indentation level. ### [WriterEvent.WriteLineInsideStringConst](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#WriteLineInsideStringConst) WriterEvent.WriteLineInsideStringConst WriteLineInsideStringConst Newline inside a multiline string constant β€” no indentation is applied. ### [WriterEvent.WriteBeforeNewline](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#WriteBeforeNewline) WriterEvent.WriteBeforeNewline WriteBeforeNewline Queue text to be appended just before the next newline (e.g. trailing line comments). ### [WriterEvent.WriteLineBecauseOfTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#WriteLineBecauseOfTrivia) WriterEvent.WriteLineBecauseOfTrivia WriteLineBecauseOfTrivia Newline introduced by trivia (comments, directives) rather than by the formatter itself. Distinguished from WriteLine so colWithNlnWhenItemIsMultiline can ignore trivia-induced newlines. ### [WriterEvent.WriteLineInsideTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#WriteLineInsideTrivia) WriterEvent.WriteLineInsideTrivia WriteLineInsideTrivia Newline inside a trivia block (e.g. inside a block comment or directive). ### [WriterEvent.IndentBy](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#IndentBy) WriterEvent.IndentBy IndentBy Increase indentation by the given number of spaces. Takes effect on the next newline. ### [WriterEvent.UnIndentBy](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#UnIndentBy) WriterEvent.UnIndentBy UnIndentBy Decrease indentation by the given number of spaces. ### [WriterEvent.SetIndent](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#SetIndent) WriterEvent.SetIndent SetIndent Set indentation to an absolute column position. ### [WriterEvent.RestoreIndent](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#RestoreIndent) WriterEvent.RestoreIndent RestoreIndent Restore indentation to a previously saved value. ### [WriterEvent.SetAtColumn](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#SetAtColumn) WriterEvent.SetAtColumn SetAtColumn Set the AtColumn value β€” the minimum indentation floor for subsequent newlines. ### [WriterEvent.RestoreAtColumn](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#RestoreAtColumn) WriterEvent.RestoreAtColumn RestoreAtColumn Restore AtColumn to a previously saved value. ### [WriterEvent.NodeStart](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#NodeStart) WriterEvent.NodeStart NodeStart Diagnostic marker: beginning of an Oak node. Only emitted when DebugMode is enabled. ### [WriterEvent.NodeEnd](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#NodeEnd) WriterEvent.NodeEnd NodeEnd Diagnostic marker: end of an Oak node. Only emitted when DebugMode is enabled. ### [WriterEvent.Start](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#Start) WriterEvent.Start Start Marks the beginning of a colWithNlnWhenItemIsMultiline block. No-op during WriterModel.update and dump β€” used only as a DLL position marker. ### [WriterEvent.Placeholder](https://fsprojects.github.io/fantomas/reference/fantomas-core-writerevent.html#Placeholder) WriterEvent.Placeholder Placeholder Placeholder separator between items in a colWithNlnWhenItemIsMultiline block. After all items are emitted, each Placeholder is inspected to determine if the item that follows it was multiline, and then replaced with the appropriate separator. No-op during WriterModel.update and dump. ### [Parse](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse.html) Parse Parse.FSharpParserDiagnostic FSharpParserDiagnostic Parse.parseFile parseFile ### [Parse.parseFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse.html#parseFile) Parse.parseFile parseFile ### [FSharpParserDiagnostic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse-fsharpparserdiagnostic.html) FSharpParserDiagnostic FSharpParserDiagnostic.Severity Severity FSharpParserDiagnostic.SubCategory SubCategory FSharpParserDiagnostic.Range Range FSharpParserDiagnostic.ErrorNumber ErrorNumber FSharpParserDiagnostic.Message Message ### [FSharpParserDiagnostic.Severity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse-fsharpparserdiagnostic.html#Severity) FSharpParserDiagnostic.Severity Severity ### [FSharpParserDiagnostic.SubCategory](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse-fsharpparserdiagnostic.html#SubCategory) FSharpParserDiagnostic.SubCategory SubCategory ### [FSharpParserDiagnostic.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse-fsharpparserdiagnostic.html#Range) FSharpParserDiagnostic.Range Range ### [FSharpParserDiagnostic.ErrorNumber](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse-fsharpparserdiagnostic.html#ErrorNumber) FSharpParserDiagnostic.ErrorNumber ErrorNumber ### [FSharpParserDiagnostic.Message](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-parse-fsharpparserdiagnostic.html#Message) FSharpParserDiagnostic.Message Message ### [Cancellable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-cancellable.html) Cancellable Cancellable.CheckAndThrow CheckAndThrow Cancellable.TryCheckAndThrow TryCheckAndThrow Cancellable.Token Token Cancellable.HasCancellationToken HasCancellationToken ### [Cancellable.CheckAndThrow](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-cancellable.html#CheckAndThrow) Cancellable.CheckAndThrow CheckAndThrow ### [Cancellable.TryCheckAndThrow](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-cancellable.html#TryCheckAndThrow) Cancellable.TryCheckAndThrow TryCheckAndThrow ### [Cancellable.Token](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-cancellable.html#Token) Cancellable.Token Token ### [Cancellable.HasCancellationToken](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-cancellable.html#HasCancellationToken) Cancellable.HasCancellationToken HasCancellationToken ### [IL](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html) IL The "unlinked" view of .NET metadata and code. Central to the Abstract IL library IL.ILArgConvention ILArgConvention IL.ILArrayShape ILArrayShape IL.ILAssemblyLongevity ILAssemblyLongevity IL.ILAssemblyManifest ILAssemblyManifest IL.ILAssemblyRef ILAssemblyRef IL.ILAttribElem ILAttribElem IL.ILAttribute ILAttribute IL.ILAttributeNamedArg ILAttributeNamedArg IL.ILAttributes ILAttributes IL.ILAttributesStored ILAttributesStored IL.ILCallingConv ILCallingConv IL.ILCallingSignature ILCallingSignature IL.ILDebugImport ILDebugImport IL.ILDebugImports ILDebugImports IL.ILDefaultPInvokeEncoding ILDefaultPInvokeEncoding IL.ILEventDef ILEventDef IL.ILEventDefs ILEventDefs IL.ILExportedTypeOrForwarder ILExportedTypeOrForwarder IL.ILExportedTypesAndForwarders ILExportedTypesAndForwarders IL.ILFieldDef ILFieldDef IL.ILFieldDefs ILFieldDefs IL.ILFieldInit ILFieldInit IL.ILFieldRef ILFieldRef IL.ILFieldSpec ILFieldSpec IL.ILGenericArgs ILGenericArgs IL.ILGenericParameterDef ILGenericParameterDef IL.ILGenericParameterDefs ILGenericParameterDefs IL.ILGenericVariance ILGenericVariance IL.ILGuid ILGuid IL.ILMemberAccess ILMemberAccess IL.ILMethodDef ILMethodDef IL.ILMethodDefs ILMethodDefs IL.ILMethodImplDef ILMethodImplDef IL.ILMethodImplDefs ILMethodImplDefs IL.ILMethodRef ILMethodRef IL.ILMethodSpec ILMethodSpec IL.ILModuleDef ILModuleDef IL.ILModuleRef ILModuleRef IL.ILNativeResource ILNativeResource IL.ILNativeType ILNativeType IL.ILNestedExportedType ILNestedExportedType IL.ILNestedExportedTypes ILNestedExportedTypes IL.ILParameter ILParameter IL.ILParameters ILParameters IL.ILPlatform ILPlatform IL.ILPreNamespace ILPreNamespace IL.ILPreTypeDef ILPreTypeDef IL.ILPropertyDef ILPropertyDef IL.ILPropertyDefs ILPropertyDefs IL.ILReferences ILReferences IL.ILResources ILResources IL.ILReturn ILReturn IL.ILScopeRef ILScopeRef IL.ILSecurityDeclsStored ILSecurityDeclsStored IL.ILSourceDocument ILSourceDocument IL.ILThisConvention ILThisConvention IL.ILType ILType IL.ILTypeDef ILTypeDef IL.ILTypeDefAccess ILTypeDefAccess IL.ILTypeDefAdditionalFlags ILTypeDefAdditionalFlags IL.ILTypeDefLayout ILTypeDefLayout IL.ILTypeDefs ILTypeDefs IL.ILTypeInit ILTypeInit IL.ILTypeRef ILTypeRef IL.ILTypeSpec ILTypeSpec IL.ILTypes ILTypes IL.ILVersionInfo ILVersionInfo IL.InterfaceImpl InterfaceImpl IL.MethodBody MethodBody IL.PublicKey PublicKey IL.WellKnownILAttributes WellKnownILAttributes IL.mkILPreNamespaceComputed mkILPreNamespaceComputed IL.mkILReturn mkILReturn IL.emptyILInterfaceImpls emptyILInterfaceImpls IL.emptyILExtends emptyILExtends IL.mkILCustomAttrs mkILCustomAttrs IL.mkILCustomAttrsFromArray mkILCustomAttrsFromArray IL.storeILCustomAttrs storeILCustomAttrs IL.mkILCustomAttrsComputed mkILCustomAttrsComputed IL.emptyILCustomAttrs emptyILCustomAttrs IL.emptyILCustomAttrsStored emptyILCustomAttrsStored IL.mkILSecurityDecls mkILSecurityDecls IL.emptyILSecurityDecls emptyILSecurityDecls IL.storeILSecurityDecls storeILSecurityDecls IL.mkILEvents mkILEvents IL.mkILEventsLazy mkILEventsLazy IL.emptyILEvents emptyILEvents IL.mkILProperties mkILProperties IL.mkILPropertiesLazy mkILPropertiesLazy IL.emptyILProperties emptyILProperties IL.mkILMethods mkILMethods IL.mkILMethodsFromArray mkILMethodsFromArray IL.mkILMethodsComputed mkILMethodsComputed IL.emptyILMethods emptyILMethods IL.mkILFields mkILFields IL.mkILFieldsLazy mkILFieldsLazy IL.emptyILFields emptyILFields IL.mkILMethodImpls mkILMethodImpls IL.mkILMethodImplsLazy mkILMethodImplsLazy IL.emptyILMethodImpls emptyILMethodImpls IL.mkILTypeDefs mkILTypeDefs IL.mkILTypeDefsFromArray mkILTypeDefsFromArray IL.emptyILTypeDefs emptyILTypeDefs IL.mkILTypeDefsComputed mkILTypeDefsComputed IL.mkILTypeDefsOfNamespace mkILTypeDefsOfNamespace IL.mkILTypeDefsGroupedComputed mkILTypeDefsGroupedComputed IL.mkILNestedExportedTypes mkILNestedExportedTypes IL.mkILExportedTypes mkILExportedTypes IL.emptyILResources emptyILResources IL.mkILSimpleModule mkILSimpleModule IL.NoMetadataIdx NoMetadataIdx IL.(|HasFlag|_|) (|HasFlag|_|) ### [IL.mkILPreNamespaceComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILPreNamespaceComputed) IL.mkILPreNamespaceComputed mkILPreNamespaceComputed ### [IL.mkILReturn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILReturn) IL.mkILReturn mkILReturn ### [IL.emptyILInterfaceImpls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILInterfaceImpls) IL.emptyILInterfaceImpls emptyILInterfaceImpls ### [IL.emptyILExtends](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILExtends) IL.emptyILExtends emptyILExtends ### [IL.mkILCustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILCustomAttrs) IL.mkILCustomAttrs mkILCustomAttrs Making tables of custom attributes, etc. ### [IL.mkILCustomAttrsFromArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILCustomAttrsFromArray) IL.mkILCustomAttrsFromArray mkILCustomAttrsFromArray ### [IL.storeILCustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#storeILCustomAttrs) IL.storeILCustomAttrs storeILCustomAttrs ### [IL.mkILCustomAttrsComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILCustomAttrsComputed) IL.mkILCustomAttrsComputed mkILCustomAttrsComputed ### [IL.emptyILCustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILCustomAttrs) IL.emptyILCustomAttrs emptyILCustomAttrs ### [IL.emptyILCustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILCustomAttrsStored) IL.emptyILCustomAttrsStored emptyILCustomAttrsStored ### [IL.mkILSecurityDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILSecurityDecls) IL.mkILSecurityDecls mkILSecurityDecls ### [IL.emptyILSecurityDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILSecurityDecls) IL.emptyILSecurityDecls emptyILSecurityDecls ### [IL.storeILSecurityDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#storeILSecurityDecls) IL.storeILSecurityDecls storeILSecurityDecls ### [IL.mkILEvents](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILEvents) IL.mkILEvents mkILEvents ### [IL.mkILEventsLazy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILEventsLazy) IL.mkILEventsLazy mkILEventsLazy ### [IL.emptyILEvents](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILEvents) IL.emptyILEvents emptyILEvents ### [IL.mkILProperties](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILProperties) IL.mkILProperties mkILProperties ### [IL.mkILPropertiesLazy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILPropertiesLazy) IL.mkILPropertiesLazy mkILPropertiesLazy ### [IL.emptyILProperties](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILProperties) IL.emptyILProperties emptyILProperties ### [IL.mkILMethods](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILMethods) IL.mkILMethods mkILMethods ### [IL.mkILMethodsFromArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILMethodsFromArray) IL.mkILMethodsFromArray mkILMethodsFromArray ### [IL.mkILMethodsComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILMethodsComputed) IL.mkILMethodsComputed mkILMethodsComputed ### [IL.emptyILMethods](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILMethods) IL.emptyILMethods emptyILMethods ### [IL.mkILFields](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILFields) IL.mkILFields mkILFields ### [IL.mkILFieldsLazy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILFieldsLazy) IL.mkILFieldsLazy mkILFieldsLazy ### [IL.emptyILFields](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILFields) IL.emptyILFields emptyILFields ### [IL.mkILMethodImpls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILMethodImpls) IL.mkILMethodImpls mkILMethodImpls ### [IL.mkILMethodImplsLazy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILMethodImplsLazy) IL.mkILMethodImplsLazy mkILMethodImplsLazy ### [IL.emptyILMethodImpls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILMethodImpls) IL.emptyILMethodImpls emptyILMethodImpls ### [IL.mkILTypeDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILTypeDefs) IL.mkILTypeDefs mkILTypeDefs ### [IL.mkILTypeDefsFromArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILTypeDefsFromArray) IL.mkILTypeDefsFromArray mkILTypeDefsFromArray ### [IL.emptyILTypeDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILTypeDefs) IL.emptyILTypeDefs emptyILTypeDefs ### [IL.mkILTypeDefsComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILTypeDefsComputed) IL.mkILTypeDefsComputed mkILTypeDefsComputed Create table of types which is loaded/computed on-demand, and whose individual elements are also loaded/computed on-demand. Any call to tdefs.AsList will result in the laziness being forced. Operations can examine the custom attributes and name of each type in order to decide whether to proceed with examining the other details of the type. Note that individual type definitions may contain further delays in their method, field and other tables. The types all sit in this one namespace; a store that knows its namespaces inherits ILPreNamespace instead. ### [IL.mkILTypeDefsOfNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILTypeDefsOfNamespace) IL.mkILTypeDefsOfNamespace mkILTypeDefsOfNamespace A level as a type table, for where one is needed: a module's own level, and a type's nested types. ### [IL.mkILTypeDefsGroupedComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILTypeDefsGroupedComputed) IL.mkILTypeDefsGroupedComputed mkILTypeDefsGroupedComputed For a store with no namespace structure to hand - a metadata table in row order, say. Each type comes with its namespace path below this level ([] for the level's own types); those are grouped into children on demand, in first-seen order, with a split namespace becoming one child. ### [IL.mkILNestedExportedTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILNestedExportedTypes) IL.mkILNestedExportedTypes mkILNestedExportedTypes ### [IL.mkILExportedTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILExportedTypes) IL.mkILExportedTypes mkILExportedTypes ### [IL.emptyILResources](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#emptyILResources) IL.emptyILResources emptyILResources ### [IL.mkILSimpleModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#mkILSimpleModule) IL.mkILSimpleModule mkILSimpleModule Making modules. ### [IL.NoMetadataIdx](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#NoMetadataIdx) IL.NoMetadataIdx NoMetadataIdx ### [IL.(|HasFlag|_|)](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il.html#(|HasFlag|_|)) IL.(|HasFlag|_|) (|HasFlag|_|) ### [ILArgConvention](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html) ILArgConvention ILArgConvention.Default Default ILArgConvention.CDecl CDecl ILArgConvention.StdCall StdCall ILArgConvention.ThisCall ThisCall ILArgConvention.FastCall FastCall ILArgConvention.VarArg VarArg ### [ILArgConvention.Default](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html#Default) ILArgConvention.Default Default ### [ILArgConvention.CDecl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html#CDecl) ILArgConvention.CDecl CDecl ### [ILArgConvention.StdCall](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html#StdCall) ILArgConvention.StdCall StdCall ### [ILArgConvention.ThisCall](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html#ThisCall) ILArgConvention.ThisCall ThisCall ### [ILArgConvention.FastCall](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html#FastCall) ILArgConvention.FastCall FastCall ### [ILArgConvention.VarArg](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilargconvention.html#VarArg) ILArgConvention.VarArg VarArg ### [ILArrayShape](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilarrayshape.html) ILArrayShape ILArrayShape.Rank Rank ILArrayShape.FromRank FromRank ILArrayShape.SingleDimensional SingleDimensional ### [ILArrayShape.Rank](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilarrayshape.html#Rank) ILArrayShape.Rank Rank ### [ILArrayShape.FromRank](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilarrayshape.html#FromRank) ILArrayShape.FromRank FromRank ### [ILArrayShape.SingleDimensional](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilarrayshape.html#SingleDimensional) ILArrayShape.SingleDimensional SingleDimensional Bounds for a single dimensional, zero based array ### [ILAssemblyLongevity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblylongevity.html) ILAssemblyLongevity ILAssemblyLongevity.Default Default ### [ILAssemblyLongevity.Default](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblylongevity.html#Default) ILAssemblyLongevity.Default Default ### [ILAssemblyManifest](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html) ILAssemblyManifest The main module of an assembly is a module plus some manifest information. ILAssemblyManifest.CustomAttrs CustomAttrs ILAssemblyManifest.SecurityDecls SecurityDecls ILAssemblyManifest.Name Name ILAssemblyManifest.AuxModuleHashAlgorithm AuxModuleHashAlgorithm ILAssemblyManifest.SecurityDeclsStored SecurityDeclsStored ILAssemblyManifest.PublicKey PublicKey ILAssemblyManifest.Version Version ILAssemblyManifest.Locale Locale ILAssemblyManifest.CustomAttrsStored CustomAttrsStored ILAssemblyManifest.AssemblyLongevity AssemblyLongevity ILAssemblyManifest.DisableJitOptimizations DisableJitOptimizations ILAssemblyManifest.JitTracking JitTracking ILAssemblyManifest.IgnoreSymbolStoreSequencePoints IgnoreSymbolStoreSequencePoints ILAssemblyManifest.Retargetable Retargetable ILAssemblyManifest.ExportedTypes ExportedTypes ILAssemblyManifest.EntrypointElsewhere EntrypointElsewhere ILAssemblyManifest.MetadataIndex MetadataIndex ### [ILAssemblyManifest.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#CustomAttrs) ILAssemblyManifest.CustomAttrs CustomAttrs ### [ILAssemblyManifest.SecurityDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#SecurityDecls) ILAssemblyManifest.SecurityDecls SecurityDecls ### [ILAssemblyManifest.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#Name) ILAssemblyManifest.Name Name ### [ILAssemblyManifest.AuxModuleHashAlgorithm](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#AuxModuleHashAlgorithm) ILAssemblyManifest.AuxModuleHashAlgorithm AuxModuleHashAlgorithm This is the ID of the algorithm used for the hashes of auxiliary files in the assembly. These hashes are stored in the ILModuleRef.Hash fields of this assembly. These are not cryptographic hashes: they are simple file hashes. The algorithm is normally 0x00008004 indicating the SHA1 hash algorithm. ### [ILAssemblyManifest.SecurityDeclsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#SecurityDeclsStored) ILAssemblyManifest.SecurityDeclsStored SecurityDeclsStored ### [ILAssemblyManifest.PublicKey](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#PublicKey) ILAssemblyManifest.PublicKey PublicKey This is the public key used to sign this assembly (the signature itself is stored elsewhere: see the binary format, and may not have been written if delay signing is used). (member Name, member PublicKey) forms the full public name of the assembly. ### [ILAssemblyManifest.Version](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#Version) ILAssemblyManifest.Version Version ### [ILAssemblyManifest.Locale](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#Locale) ILAssemblyManifest.Locale Locale ### [ILAssemblyManifest.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#CustomAttrsStored) ILAssemblyManifest.CustomAttrsStored CustomAttrsStored ### [ILAssemblyManifest.AssemblyLongevity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#AssemblyLongevity) ILAssemblyManifest.AssemblyLongevity AssemblyLongevity ### [ILAssemblyManifest.DisableJitOptimizations](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#DisableJitOptimizations) ILAssemblyManifest.DisableJitOptimizations DisableJitOptimizations ### [ILAssemblyManifest.JitTracking](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#JitTracking) ILAssemblyManifest.JitTracking JitTracking ### [ILAssemblyManifest.IgnoreSymbolStoreSequencePoints](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#IgnoreSymbolStoreSequencePoints) ILAssemblyManifest.IgnoreSymbolStoreSequencePoints IgnoreSymbolStoreSequencePoints ### [ILAssemblyManifest.Retargetable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#Retargetable) ILAssemblyManifest.Retargetable Retargetable ### [ILAssemblyManifest.ExportedTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#ExportedTypes) ILAssemblyManifest.ExportedTypes ExportedTypes Records the types implemented by this assembly in auxiliary modules. ### [ILAssemblyManifest.EntrypointElsewhere](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#EntrypointElsewhere) ILAssemblyManifest.EntrypointElsewhere EntrypointElsewhere Records whether the entrypoint resides in another module. ### [ILAssemblyManifest.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblymanifest.html#MetadataIndex) ILAssemblyManifest.MetadataIndex MetadataIndex ### [ILAssemblyRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html) ILAssemblyRef ILAssemblyRef.EqualsIgnoringVersion EqualsIgnoringVersion ILAssemblyRef.QualifiedName QualifiedName ILAssemblyRef.Locale Locale ILAssemblyRef.PublicKey PublicKey ILAssemblyRef.Name Name ILAssemblyRef.Retargetable Retargetable ILAssemblyRef.Version Version ILAssemblyRef.Hash Hash ILAssemblyRef.Create Create ILAssemblyRef.FromAssemblyName FromAssemblyName ### [ILAssemblyRef.EqualsIgnoringVersion](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#EqualsIgnoringVersion) ILAssemblyRef.EqualsIgnoringVersion EqualsIgnoringVersion ### [ILAssemblyRef.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#QualifiedName) ILAssemblyRef.QualifiedName QualifiedName The fully qualified name of the assembly reference, e.g. mscorlib, Version=1.0.3705 etc. ### [ILAssemblyRef.Locale](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#Locale) ILAssemblyRef.Locale Locale ### [ILAssemblyRef.PublicKey](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#PublicKey) ILAssemblyRef.PublicKey PublicKey ### [ILAssemblyRef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#Name) ILAssemblyRef.Name Name ### [ILAssemblyRef.Retargetable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#Retargetable) ILAssemblyRef.Retargetable Retargetable CLI says this indicates if the assembly can be retargeted (at runtime) to be from a different publisher. ### [ILAssemblyRef.Version](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#Version) ILAssemblyRef.Version Version ### [ILAssemblyRef.Hash](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#Hash) ILAssemblyRef.Hash Hash ### [ILAssemblyRef.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#Create) ILAssemblyRef.Create Create ### [ILAssemblyRef.FromAssemblyName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilassemblyref.html#FromAssemblyName) ILAssemblyRef.FromAssemblyName FromAssemblyName ### [ILAttribElem](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html) ILAttribElem ILAttribElem.String String ILAttribElem.Bool Bool ILAttribElem.Char Char ILAttribElem.SByte SByte ILAttribElem.Int16 Int16 ILAttribElem.Int32 Int32 ILAttribElem.Int64 Int64 ILAttribElem.Byte Byte ILAttribElem.UInt16 UInt16 ILAttribElem.UInt32 UInt32 ILAttribElem.UInt64 UInt64 ILAttribElem.Single Single ILAttribElem.Double Double ILAttribElem.Null Null ILAttribElem.Type Type ILAttribElem.TypeRef TypeRef ILAttribElem.Array Array ILAttribElem.Enum Enum ### [ILAttribElem.String](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#String) ILAttribElem.String String Represents a custom attribute parameter of type 'string'. These may be null, in which case they are encoded in a special way as indicated by Ecma-335 Partition II. ### [ILAttribElem.Bool](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Bool) ILAttribElem.Bool Bool ### [ILAttribElem.Char](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Char) ILAttribElem.Char Char ### [ILAttribElem.SByte](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#SByte) ILAttribElem.SByte SByte ### [ILAttribElem.Int16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Int16) ILAttribElem.Int16 Int16 ### [ILAttribElem.Int32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Int32) ILAttribElem.Int32 Int32 ### [ILAttribElem.Int64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Int64) ILAttribElem.Int64 Int64 ### [ILAttribElem.Byte](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Byte) ILAttribElem.Byte Byte ### [ILAttribElem.UInt16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#UInt16) ILAttribElem.UInt16 UInt16 ### [ILAttribElem.UInt32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#UInt32) ILAttribElem.UInt32 UInt32 ### [ILAttribElem.UInt64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#UInt64) ILAttribElem.UInt64 UInt64 ### [ILAttribElem.Single](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Single) ILAttribElem.Single Single ### [ILAttribElem.Double](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Double) ILAttribElem.Double Double ### [ILAttribElem.Null](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Null) ILAttribElem.Null Null ### [ILAttribElem.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Type) ILAttribElem.Type Type ### [ILAttribElem.TypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#TypeRef) ILAttribElem.TypeRef TypeRef ### [ILAttribElem.Array](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Array) ILAttribElem.Array Array ### [ILAttribElem.Enum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribelem.html#Enum) ILAttribElem.Enum Enum Represents an enum value together with its enum type. Used when an enum is stored in a custom-attribute argument of type 'object', so the enum type is preserved in the encoded blob (ECMA-335 II.23.3) instead of being collapsed to its underlying integer. The second element is the underlying integer value (e.g. ILAttribElem.Int32). ### [ILAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribute.html) ILAttribute Custom attribute. ILAttribute.Encoded Encoded ILAttribute.Decoded Decoded ### [ILAttribute.Encoded](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribute.html#Encoded) ILAttribute.Encoded Encoded Attribute with args encoded to a binary blob according to ECMA-335 II.21 and II.23.3. 'decodeILAttribData' is used to parse the byte[] blob to ILAttribElem's as best as possible. ### [ILAttribute.Decoded](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattribute.html#Decoded) ILAttribute.Decoded Decoded Attribute with args in decoded form. ### [ILAttributeNamedArg](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributenamedarg.html) ILAttributeNamedArg Named args: values and flags indicating if they are fields or properties. ### [ILAttributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributes.html) ILAttributes ILAttributes.AsArray AsArray ILAttributes.AsList AsList ### [ILAttributes.AsArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributes.html#AsArray) ILAttributes.AsArray AsArray ### [ILAttributes.AsList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributes.html#AsList) ILAttributes.AsList AsList ### [ILAttributesStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributesstored.html) ILAttributesStored Represents the efficiency-oriented storage of ILAttributes in another item. ILAttributesStored.HasWellKnownAttribute HasWellKnownAttribute ILAttributesStored.CustomAttrs CustomAttrs ILAttributesStored.CreateGiven CreateGiven ILAttributesStored.CreateReader CreateReader ### [ILAttributesStored.HasWellKnownAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributesstored.html#HasWellKnownAttribute) ILAttributesStored.HasWellKnownAttribute HasWellKnownAttribute ### [ILAttributesStored.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributesstored.html#CustomAttrs) ILAttributesStored.CustomAttrs CustomAttrs ### [ILAttributesStored.CreateGiven](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributesstored.html#CreateGiven) ILAttributesStored.CreateGiven CreateGiven ### [ILAttributesStored.CreateReader](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilattributesstored.html#CreateReader) ILAttributesStored.CreateReader CreateReader ### [ILCallingConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html) ILCallingConv ILCallingConv.IsInstanceExplicit IsInstanceExplicit ILCallingConv.IsInstance IsInstance ILCallingConv.ThisConv ThisConv ILCallingConv.IsStatic IsStatic ILCallingConv.BasicConv BasicConv ILCallingConv.Create Create ILCallingConv.Instance Instance ILCallingConv.Static Static ### [ILCallingConv.IsInstanceExplicit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#IsInstanceExplicit) ILCallingConv.IsInstanceExplicit IsInstanceExplicit ### [ILCallingConv.IsInstance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#IsInstance) ILCallingConv.IsInstance IsInstance ### [ILCallingConv.ThisConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#ThisConv) ILCallingConv.ThisConv ThisConv ### [ILCallingConv.IsStatic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#IsStatic) ILCallingConv.IsStatic IsStatic ### [ILCallingConv.BasicConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#BasicConv) ILCallingConv.BasicConv BasicConv ### [ILCallingConv.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#Create) ILCallingConv.Create Create Returns the shared instance for this combination. Since the representation is private and there are only 18 combinations, no calling convention is ever allocated per method signature. ### [ILCallingConv.Instance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#Instance) ILCallingConv.Instance Instance ### [ILCallingConv.Static](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingconv.html#Static) ILCallingConv.Static Static ### [ILCallingSignature](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingsignature.html) ILCallingSignature ILCallingSignature.CallingConv CallingConv ILCallingSignature.ArgTypes ArgTypes ILCallingSignature.ReturnType ReturnType ### [ILCallingSignature.CallingConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingsignature.html#CallingConv) ILCallingSignature.CallingConv CallingConv ### [ILCallingSignature.ArgTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingsignature.html#ArgTypes) ILCallingSignature.ArgTypes ArgTypes ### [ILCallingSignature.ReturnType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilcallingsignature.html#ReturnType) ILCallingSignature.ReturnType ReturnType ### [ILDebugImport](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildebugimport.html) ILDebugImport Defines an opened namespace, type relevant to a code location. Emitted to the PortablePDB format. Note the format supports additional variations on imported things that are not yet emitted in F#. ILDebugImport.ImportType ImportType ILDebugImport.ImportNamespace ImportNamespace ### [ILDebugImport.ImportType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildebugimport.html#ImportType) ILDebugImport.ImportType ImportType Represents an 'open type XYZ' opening a type ### [ILDebugImport.ImportNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildebugimport.html#ImportNamespace) ILDebugImport.ImportNamespace ImportNamespace Represents an 'open XYZ' opening a namespace ### [ILDebugImports](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildebugimports.html) ILDebugImports Defines a set of opened namespace, type relevant to a code location. Emitted to the PortablePDB format. ILDebugImports.Parent Parent ILDebugImports.Imports Imports ### [ILDebugImports.Parent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildebugimports.html#Parent) ILDebugImports.Parent Parent ### [ILDebugImports.Imports](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildebugimports.html#Imports) ILDebugImports.Imports Imports ### [ILDefaultPInvokeEncoding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildefaultpinvokeencoding.html) ILDefaultPInvokeEncoding Default Unicode encoding for P/Invoke within a type. ILDefaultPInvokeEncoding.Ansi Ansi ILDefaultPInvokeEncoding.Auto Auto ILDefaultPInvokeEncoding.Unicode Unicode ### [ILDefaultPInvokeEncoding.Ansi](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildefaultpinvokeencoding.html#Ansi) ILDefaultPInvokeEncoding.Ansi Ansi ### [ILDefaultPInvokeEncoding.Auto](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildefaultpinvokeencoding.html#Auto) ILDefaultPInvokeEncoding.Auto Auto ### [ILDefaultPInvokeEncoding.Unicode](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ildefaultpinvokeencoding.html#Unicode) ILDefaultPInvokeEncoding.Unicode Unicode ### [ILEventDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html) ILEventDef Event definitions. ILEventDef.``.ctor`` ``.ctor`` ILEventDef.CustomAttrsStored CustomAttrsStored ILEventDef.IsSpecialName IsSpecialName ILEventDef.RemoveMethod RemoveMethod ILEventDef.Attributes Attributes ILEventDef.EventType EventType ILEventDef.CustomAttrs CustomAttrs ILEventDef.AddMethod AddMethod ILEventDef.OtherMethods OtherMethods ILEventDef.Name Name ILEventDef.IsRTSpecialName IsRTSpecialName ILEventDef.MetadataIndex MetadataIndex ILEventDef.FireMethod FireMethod ### [ILEventDef.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#``.ctor``) ILEventDef.``.ctor`` ``.ctor`` Functional creation of a value, immediate ### [ILEventDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#CustomAttrsStored) ILEventDef.CustomAttrsStored CustomAttrsStored ### [ILEventDef.IsSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#IsSpecialName) ILEventDef.IsSpecialName IsSpecialName ### [ILEventDef.RemoveMethod](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#RemoveMethod) ILEventDef.RemoveMethod RemoveMethod ### [ILEventDef.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#Attributes) ILEventDef.Attributes Attributes ### [ILEventDef.EventType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#EventType) ILEventDef.EventType EventType ### [ILEventDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#CustomAttrs) ILEventDef.CustomAttrs CustomAttrs ### [ILEventDef.AddMethod](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#AddMethod) ILEventDef.AddMethod AddMethod ### [ILEventDef.OtherMethods](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#OtherMethods) ILEventDef.OtherMethods OtherMethods ### [ILEventDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#Name) ILEventDef.Name Name ### [ILEventDef.IsRTSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#IsRTSpecialName) ILEventDef.IsRTSpecialName IsRTSpecialName ### [ILEventDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#MetadataIndex) ILEventDef.MetadataIndex MetadataIndex ### [ILEventDef.FireMethod](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdef.html#FireMethod) ILEventDef.FireMethod FireMethod ### [ILEventDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ileventdefs.html) ILEventDefs Table of those events in a type definition. ### [ILExportedTypeOrForwarder](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html) ILExportedTypeOrForwarder these are only found in the ILExportedTypesAndForwarders table in the manifest ILExportedTypeOrForwarder.Access Access ILExportedTypeOrForwarder.CustomAttrs CustomAttrs ILExportedTypeOrForwarder.IsForwarder IsForwarder ILExportedTypeOrForwarder.ScopeRef ScopeRef ILExportedTypeOrForwarder.Name Name ILExportedTypeOrForwarder.Attributes Attributes ILExportedTypeOrForwarder.Nested Nested ILExportedTypeOrForwarder.CustomAttrsStored CustomAttrsStored ILExportedTypeOrForwarder.MetadataIndex MetadataIndex ### [ILExportedTypeOrForwarder.Access](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#Access) ILExportedTypeOrForwarder.Access Access ### [ILExportedTypeOrForwarder.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#CustomAttrs) ILExportedTypeOrForwarder.CustomAttrs CustomAttrs ### [ILExportedTypeOrForwarder.IsForwarder](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#IsForwarder) ILExportedTypeOrForwarder.IsForwarder IsForwarder ### [ILExportedTypeOrForwarder.ScopeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#ScopeRef) ILExportedTypeOrForwarder.ScopeRef ScopeRef ### [ILExportedTypeOrForwarder.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#Name) ILExportedTypeOrForwarder.Name Name [Namespace.]Name ### [ILExportedTypeOrForwarder.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#Attributes) ILExportedTypeOrForwarder.Attributes Attributes ### [ILExportedTypeOrForwarder.Nested](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#Nested) ILExportedTypeOrForwarder.Nested Nested ### [ILExportedTypeOrForwarder.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#CustomAttrsStored) ILExportedTypeOrForwarder.CustomAttrsStored CustomAttrsStored ### [ILExportedTypeOrForwarder.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypeorforwarder.html#MetadataIndex) ILExportedTypeOrForwarder.MetadataIndex MetadataIndex ### [ILExportedTypesAndForwarders](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilexportedtypesandforwarders.html) ILExportedTypesAndForwarders ### [ILFieldDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html) ILFieldDef Field definitions. ILFieldDef.``.ctor`` ``.ctor`` ILFieldDef.Access Access ILFieldDef.CustomAttrsStored CustomAttrsStored ILFieldDef.IsSpecialName IsSpecialName ILFieldDef.FieldType FieldType ILFieldDef.Marshal Marshal ILFieldDef.Offset Offset ILFieldDef.Attributes Attributes ILFieldDef.CustomAttrs CustomAttrs ILFieldDef.IsStatic IsStatic ILFieldDef.Name Name ILFieldDef.IsInitOnly IsInitOnly ILFieldDef.NotSerialized NotSerialized ILFieldDef.Data Data ILFieldDef.IsLiteral IsLiteral ILFieldDef.MetadataIndex MetadataIndex ILFieldDef.LiteralValue LiteralValue ### [ILFieldDef.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#``.ctor``) ILFieldDef.``.ctor`` ``.ctor`` Functional creation of a value, immediate ### [ILFieldDef.Access](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#Access) ILFieldDef.Access Access ### [ILFieldDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#CustomAttrsStored) ILFieldDef.CustomAttrsStored CustomAttrsStored ### [ILFieldDef.IsSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#IsSpecialName) ILFieldDef.IsSpecialName IsSpecialName ### [ILFieldDef.FieldType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#FieldType) ILFieldDef.FieldType FieldType ### [ILFieldDef.Marshal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#Marshal) ILFieldDef.Marshal Marshal ### [ILFieldDef.Offset](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#Offset) ILFieldDef.Offset Offset The explicit offset in bytes when explicit layout is used. ### [ILFieldDef.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#Attributes) ILFieldDef.Attributes Attributes ### [ILFieldDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#CustomAttrs) ILFieldDef.CustomAttrs CustomAttrs ### [ILFieldDef.IsStatic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#IsStatic) ILFieldDef.IsStatic IsStatic ### [ILFieldDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#Name) ILFieldDef.Name Name ### [ILFieldDef.IsInitOnly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#IsInitOnly) ILFieldDef.IsInitOnly IsInitOnly ### [ILFieldDef.NotSerialized](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#NotSerialized) ILFieldDef.NotSerialized NotSerialized ### [ILFieldDef.Data](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#Data) ILFieldDef.Data Data ### [ILFieldDef.IsLiteral](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#IsLiteral) ILFieldDef.IsLiteral IsLiteral ### [ILFieldDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#MetadataIndex) ILFieldDef.MetadataIndex MetadataIndex ### [ILFieldDef.LiteralValue](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddef.html#LiteralValue) ILFieldDef.LiteralValue LiteralValue ### [ILFieldDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfielddefs.html) ILFieldDefs Tables of fields. Logically equivalent to a list of fields but the table is kept in a form to allow efficient looking up fields by name. ### [ILFieldInit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html) ILFieldInit Field Init ILFieldInit.AsObject AsObject ILFieldInit.String String ILFieldInit.Bool Bool ILFieldInit.Char Char ILFieldInit.Int8 Int8 ILFieldInit.Int16 Int16 ILFieldInit.Int32 Int32 ILFieldInit.Int64 Int64 ILFieldInit.UInt8 UInt8 ILFieldInit.UInt16 UInt16 ILFieldInit.UInt32 UInt32 ILFieldInit.UInt64 UInt64 ILFieldInit.Single Single ILFieldInit.Double Double ILFieldInit.Null Null ### [ILFieldInit.AsObject](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#AsObject) ILFieldInit.AsObject AsObject ### [ILFieldInit.String](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#String) ILFieldInit.String String ### [ILFieldInit.Bool](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Bool) ILFieldInit.Bool Bool ### [ILFieldInit.Char](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Char) ILFieldInit.Char Char ### [ILFieldInit.Int8](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Int8) ILFieldInit.Int8 Int8 ### [ILFieldInit.Int16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Int16) ILFieldInit.Int16 Int16 ### [ILFieldInit.Int32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Int32) ILFieldInit.Int32 Int32 ### [ILFieldInit.Int64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Int64) ILFieldInit.Int64 Int64 ### [ILFieldInit.UInt8](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#UInt8) ILFieldInit.UInt8 UInt8 ### [ILFieldInit.UInt16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#UInt16) ILFieldInit.UInt16 UInt16 ### [ILFieldInit.UInt32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#UInt32) ILFieldInit.UInt32 UInt32 ### [ILFieldInit.UInt64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#UInt64) ILFieldInit.UInt64 UInt64 ### [ILFieldInit.Single](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Single) ILFieldInit.Single Single ### [ILFieldInit.Double](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Double) ILFieldInit.Double Double ### [ILFieldInit.Null](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldinit.html#Null) ILFieldInit.Null Null ### [ILFieldRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldref.html) ILFieldRef Formal identities of fields. ILFieldRef.DeclaringTypeRef DeclaringTypeRef ILFieldRef.Name Name ILFieldRef.Type Type ### [ILFieldRef.DeclaringTypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldref.html#DeclaringTypeRef) ILFieldRef.DeclaringTypeRef DeclaringTypeRef ### [ILFieldRef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldref.html#Name) ILFieldRef.Name Name ### [ILFieldRef.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldref.html#Type) ILFieldRef.Type Type ### [ILFieldSpec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html) ILFieldSpec Field specs. The data given for a ldfld, stfld etc. instruction. ILFieldSpec.ActualType ActualType ILFieldSpec.Name Name ILFieldSpec.DeclaringTypeRef DeclaringTypeRef ILFieldSpec.FormalType FormalType ILFieldSpec.FieldRef FieldRef ILFieldSpec.DeclaringType DeclaringType ### [ILFieldSpec.ActualType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html#ActualType) ILFieldSpec.ActualType ActualType ### [ILFieldSpec.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html#Name) ILFieldSpec.Name Name ### [ILFieldSpec.DeclaringTypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html#DeclaringTypeRef) ILFieldSpec.DeclaringTypeRef DeclaringTypeRef ### [ILFieldSpec.FormalType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html#FormalType) ILFieldSpec.FormalType FormalType ### [ILFieldSpec.FieldRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html#FieldRef) ILFieldSpec.FieldRef FieldRef ### [ILFieldSpec.DeclaringType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilfieldspec.html#DeclaringType) ILFieldSpec.DeclaringType DeclaringType ### [ILGenericArgs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericargs.html) ILGenericArgs Actual generic parameters are always types. ### [ILGenericParameterDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html) ILGenericParameterDef Generic parameters. Formal generic parameter declarations may include the bounds, if any, on the generic parameter. ILGenericParameterDef.CustomAttrs CustomAttrs ILGenericParameterDef.Name Name ILGenericParameterDef.Constraints Constraints ILGenericParameterDef.Variance Variance ILGenericParameterDef.HasReferenceTypeConstraint HasReferenceTypeConstraint ILGenericParameterDef.HasNotNullableValueTypeConstraint HasNotNullableValueTypeConstraint ILGenericParameterDef.HasDefaultConstructorConstraint HasDefaultConstructorConstraint ILGenericParameterDef.HasAllowsRefStruct HasAllowsRefStruct ILGenericParameterDef.CustomAttrsStored CustomAttrsStored ILGenericParameterDef.MetadataIndex MetadataIndex ### [ILGenericParameterDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#CustomAttrs) ILGenericParameterDef.CustomAttrs CustomAttrs ### [ILGenericParameterDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#Name) ILGenericParameterDef.Name Name ### [ILGenericParameterDef.Constraints](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#Constraints) ILGenericParameterDef.Constraints Constraints At most one is the parent type, the others are interface types. ### [ILGenericParameterDef.Variance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#Variance) ILGenericParameterDef.Variance Variance Variance of type parameters, only applicable to generic parameters for generic interfaces and delegates. ### [ILGenericParameterDef.HasReferenceTypeConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#HasReferenceTypeConstraint) ILGenericParameterDef.HasReferenceTypeConstraint HasReferenceTypeConstraint Indicates the type argument must be a reference type. ### [ILGenericParameterDef.HasNotNullableValueTypeConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#HasNotNullableValueTypeConstraint) ILGenericParameterDef.HasNotNullableValueTypeConstraint HasNotNullableValueTypeConstraint Indicates the type argument must be a value type, but not Nullable. ### [ILGenericParameterDef.HasDefaultConstructorConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#HasDefaultConstructorConstraint) ILGenericParameterDef.HasDefaultConstructorConstraint HasDefaultConstructorConstraint Indicates the type argument must have a public nullary constructor. ### [ILGenericParameterDef.HasAllowsRefStruct](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#HasAllowsRefStruct) ILGenericParameterDef.HasAllowsRefStruct HasAllowsRefStruct Indicates the type parameter allows ref struct, i.e. an anti constraint. ### [ILGenericParameterDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#CustomAttrsStored) ILGenericParameterDef.CustomAttrsStored CustomAttrsStored Do not use this ### [ILGenericParameterDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdef.html#MetadataIndex) ILGenericParameterDef.MetadataIndex MetadataIndex Do not use this ### [ILGenericParameterDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericparameterdefs.html) ILGenericParameterDefs ### [ILGenericVariance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericvariance.html) ILGenericVariance ILGenericVariance.NonVariant NonVariant ILGenericVariance.CoVariant CoVariant ILGenericVariance.ContraVariant ContraVariant ### [ILGenericVariance.NonVariant](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericvariance.html#NonVariant) ILGenericVariance.NonVariant NonVariant ### [ILGenericVariance.CoVariant](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericvariance.html#CoVariant) ILGenericVariance.CoVariant CoVariant ### [ILGenericVariance.ContraVariant](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilgenericvariance.html#ContraVariant) ILGenericVariance.ContraVariant ContraVariant ### [ILGuid](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilguid.html) ILGuid Represents guids ### [ILMemberAccess](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html) ILMemberAccess Member Access ILMemberAccess.Assembly Assembly ILMemberAccess.CompilerControlled CompilerControlled ILMemberAccess.FamilyAndAssembly FamilyAndAssembly ILMemberAccess.FamilyOrAssembly FamilyOrAssembly ILMemberAccess.Family Family ILMemberAccess.Private Private ILMemberAccess.Public Public ### [ILMemberAccess.Assembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#Assembly) ILMemberAccess.Assembly Assembly Assembly - Indicates that the method is accessible to any class of this assembly. (internal) ### [ILMemberAccess.CompilerControlled](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#CompilerControlled) ILMemberAccess.CompilerControlled CompilerControlled ### [ILMemberAccess.FamilyAndAssembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#FamilyAndAssembly) ILMemberAccess.FamilyAndAssembly FamilyAndAssembly FamilyAndAssembly - Indicates that the method is accessible to members of this type and its derived types that are in _this assembly only_. (private protected) ### [ILMemberAccess.FamilyOrAssembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#FamilyOrAssembly) ILMemberAccess.FamilyOrAssembly FamilyOrAssembly FamilyOrAssembly - Indicates that the method is accessible to derived classes anywhere, as well as to any class _in the assembly_. (protected internal) ### [ILMemberAccess.Family](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#Family) ILMemberAccess.Family Family Family - Indicates that the method is accessible only to members of this class and its derived classes. (protected) ### [ILMemberAccess.Private](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#Private) ILMemberAccess.Private Private ### [ILMemberAccess.Public](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmemberaccess.html#Public) ILMemberAccess.Public Public ### [ILMethodDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html) ILMethodDef IL Method definitions. ILMethodDef.``.ctor`` ``.ctor`` ILMethodDef.GetCallingSignature GetCallingSignature ILMethodDef.IsIL IsIL ILMethodDef.MaxStack MaxStack ILMethodDef.Code Code ILMethodDef.SecurityDecls SecurityDecls ILMethodDef.IsEntryPoint IsEntryPoint ILMethodDef.ImplAttributes ImplAttributes ILMethodDef.IsAggressiveInline IsAggressiveInline ILMethodDef.IsInternalCall IsInternalCall ILMethodDef.IsCheckAccessOnOverride IsCheckAccessOnOverride ILMethodDef.IsForwardRef IsForwardRef ILMethodDef.Name Name ILMethodDef.IsHideBySig IsHideBySig ILMethodDef.IsStatic IsStatic ILMethodDef.MethodBody MethodBody ILMethodDef.IsNewSlot IsNewSlot ILMethodDef.IsConstructor IsConstructor ILMethodDef.Body Body ILMethodDef.IsPreserveSig IsPreserveSig ILMethodDef.IsMustRun IsMustRun ILMethodDef.CallingConv CallingConv ILMethodDef.IsReqSecObj IsReqSecObj ILMethodDef.IsClassInitializer IsClassInitializer ILMethodDef.CustomAttrsStored CustomAttrsStored ILMethodDef.IsSpecialName IsSpecialName ILMethodDef.IsNoInline IsNoInline ILMethodDef.IsNonVirtualInstance IsNonVirtualInstance ILMethodDef.Return Return ILMethodDef.IsAbstract IsAbstract ILMethodDef.Attributes Attributes ILMethodDef.IsSynchronized IsSynchronized ILMethodDef.Parameters Parameters ILMethodDef.IsFinal IsFinal ILMethodDef.IsVirtual IsVirtual ILMethodDef.MetadataIndex MetadataIndex ILMethodDef.Access Access ILMethodDef.IsZeroInit IsZeroInit ILMethodDef.ParameterTypes ParameterTypes ILMethodDef.GenericParams GenericParams ILMethodDef.HasSecurity HasSecurity ILMethodDef.IsUnmanagedExport IsUnmanagedExport ILMethodDef.CustomAttrs CustomAttrs ILMethodDef.Locals Locals ILMethodDef.IsManaged IsManaged ### [ILMethodDef.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#``.ctor``) ILMethodDef.``.ctor`` ``.ctor`` Functional creation of a value, immediate ### [ILMethodDef.GetCallingSignature](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#GetCallingSignature) ILMethodDef.GetCallingSignature GetCallingSignature ### [ILMethodDef.IsIL](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsIL) ILMethodDef.IsIL IsIL ### [ILMethodDef.MaxStack](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#MaxStack) ILMethodDef.MaxStack MaxStack ### [ILMethodDef.Code](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Code) ILMethodDef.Code Code ### [ILMethodDef.SecurityDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#SecurityDecls) ILMethodDef.SecurityDecls SecurityDecls ### [ILMethodDef.IsEntryPoint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsEntryPoint) ILMethodDef.IsEntryPoint IsEntryPoint ### [ILMethodDef.ImplAttributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#ImplAttributes) ILMethodDef.ImplAttributes ImplAttributes ### [ILMethodDef.IsAggressiveInline](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsAggressiveInline) ILMethodDef.IsAggressiveInline IsAggressiveInline ### [ILMethodDef.IsInternalCall](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsInternalCall) ILMethodDef.IsInternalCall IsInternalCall ### [ILMethodDef.IsCheckAccessOnOverride](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsCheckAccessOnOverride) ILMethodDef.IsCheckAccessOnOverride IsCheckAccessOnOverride ### [ILMethodDef.IsForwardRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsForwardRef) ILMethodDef.IsForwardRef IsForwardRef ### [ILMethodDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Name) ILMethodDef.Name Name ### [ILMethodDef.IsHideBySig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsHideBySig) ILMethodDef.IsHideBySig IsHideBySig ### [ILMethodDef.IsStatic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsStatic) ILMethodDef.IsStatic IsStatic Indicates a static method. ### [ILMethodDef.MethodBody](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#MethodBody) ILMethodDef.MethodBody MethodBody ### [ILMethodDef.IsNewSlot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsNewSlot) ILMethodDef.IsNewSlot IsNewSlot ### [ILMethodDef.IsConstructor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsConstructor) ILMethodDef.IsConstructor IsConstructor Indicates a .ctor method. ### [ILMethodDef.Body](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Body) ILMethodDef.Body Body ### [ILMethodDef.IsPreserveSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsPreserveSig) ILMethodDef.IsPreserveSig IsPreserveSig ### [ILMethodDef.IsMustRun](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsMustRun) ILMethodDef.IsMustRun IsMustRun SafeHandle finalizer must be run. ### [ILMethodDef.CallingConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#CallingConv) ILMethodDef.CallingConv CallingConv ### [ILMethodDef.IsReqSecObj](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsReqSecObj) ILMethodDef.IsReqSecObj IsReqSecObj ### [ILMethodDef.IsClassInitializer](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsClassInitializer) ILMethodDef.IsClassInitializer IsClassInitializer Indicates a .cctor method. ### [ILMethodDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#CustomAttrsStored) ILMethodDef.CustomAttrsStored CustomAttrsStored ### [ILMethodDef.IsSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsSpecialName) ILMethodDef.IsSpecialName IsSpecialName ### [ILMethodDef.IsNoInline](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsNoInline) ILMethodDef.IsNoInline IsNoInline ### [ILMethodDef.IsNonVirtualInstance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsNonVirtualInstance) ILMethodDef.IsNonVirtualInstance IsNonVirtualInstance Indicates this is an instance methods that is not virtual. ### [ILMethodDef.Return](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Return) ILMethodDef.Return Return ### [ILMethodDef.IsAbstract](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsAbstract) ILMethodDef.IsAbstract IsAbstract ### [ILMethodDef.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Attributes) ILMethodDef.Attributes Attributes ### [ILMethodDef.IsSynchronized](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsSynchronized) ILMethodDef.IsSynchronized IsSynchronized ### [ILMethodDef.Parameters](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Parameters) ILMethodDef.Parameters Parameters ### [ILMethodDef.IsFinal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsFinal) ILMethodDef.IsFinal IsFinal ### [ILMethodDef.IsVirtual](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsVirtual) ILMethodDef.IsVirtual IsVirtual Indicates an instance methods that is virtual or abstract or implements an interface slot. ### [ILMethodDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#MetadataIndex) ILMethodDef.MetadataIndex MetadataIndex ### [ILMethodDef.Access](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Access) ILMethodDef.Access Access ### [ILMethodDef.IsZeroInit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsZeroInit) ILMethodDef.IsZeroInit IsZeroInit ### [ILMethodDef.ParameterTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#ParameterTypes) ILMethodDef.ParameterTypes ParameterTypes ### [ILMethodDef.GenericParams](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#GenericParams) ILMethodDef.GenericParams GenericParams ### [ILMethodDef.HasSecurity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#HasSecurity) ILMethodDef.HasSecurity HasSecurity Some methods are marked "HasSecurity" even if there are no permissions attached, e.g. if they use SuppressUnmanagedCodeSecurityAttribute ### [ILMethodDef.IsUnmanagedExport](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsUnmanagedExport) ILMethodDef.IsUnmanagedExport IsUnmanagedExport The method is exported to unmanaged code using COM interop. ### [ILMethodDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#CustomAttrs) ILMethodDef.CustomAttrs CustomAttrs ### [ILMethodDef.Locals](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#Locals) ILMethodDef.Locals Locals ### [ILMethodDef.IsManaged](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddef.html#IsManaged) ILMethodDef.IsManaged IsManaged ### [ILMethodDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddefs.html) ILMethodDefs Tables of methods. Logically equivalent to a list of methods but the table is kept in a form optimized for looking up methods by name and arity. ILMethodDefs.AsArray AsArray ILMethodDefs.AsList AsList ILMethodDefs.FindByName FindByName ILMethodDefs.TryFindInstanceByNameAndCallingSignature TryFindInstanceByNameAndCallingSignature ### [ILMethodDefs.AsArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddefs.html#AsArray) ILMethodDefs.AsArray AsArray ### [ILMethodDefs.AsList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddefs.html#AsList) ILMethodDefs.AsList AsList ### [ILMethodDefs.FindByName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddefs.html#FindByName) ILMethodDefs.FindByName FindByName ### [ILMethodDefs.TryFindInstanceByNameAndCallingSignature](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethoddefs.html#TryFindInstanceByNameAndCallingSignature) ILMethodDefs.TryFindInstanceByNameAndCallingSignature TryFindInstanceByNameAndCallingSignature ### [ILMethodImplDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodimpldef.html) ILMethodImplDef Method Impls ILMethodImplDef.Overrides Overrides ILMethodImplDef.OverrideBy OverrideBy ### [ILMethodImplDef.Overrides](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodimpldef.html#Overrides) ILMethodImplDef.Overrides Overrides ### [ILMethodImplDef.OverrideBy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodimpldef.html#OverrideBy) ILMethodImplDef.OverrideBy OverrideBy ### [ILMethodImplDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodimpldefs.html) ILMethodImplDefs ### [ILMethodRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html) ILMethodRef Formal identities of methods. ILMethodRef.GetCallingSignature GetCallingSignature ILMethodRef.ReturnType ReturnType ILMethodRef.CallingConv CallingConv ILMethodRef.ArgCount ArgCount ILMethodRef.GenericArity GenericArity ILMethodRef.Name Name ILMethodRef.DeclaringTypeRef DeclaringTypeRef ILMethodRef.ArgTypes ArgTypes ILMethodRef.Create Create ### [ILMethodRef.GetCallingSignature](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#GetCallingSignature) ILMethodRef.GetCallingSignature GetCallingSignature ### [ILMethodRef.ReturnType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#ReturnType) ILMethodRef.ReturnType ReturnType ### [ILMethodRef.CallingConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#CallingConv) ILMethodRef.CallingConv CallingConv ### [ILMethodRef.ArgCount](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#ArgCount) ILMethodRef.ArgCount ArgCount ### [ILMethodRef.GenericArity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#GenericArity) ILMethodRef.GenericArity GenericArity ### [ILMethodRef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#Name) ILMethodRef.Name Name ### [ILMethodRef.DeclaringTypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#DeclaringTypeRef) ILMethodRef.DeclaringTypeRef DeclaringTypeRef ### [ILMethodRef.ArgTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#ArgTypes) ILMethodRef.ArgTypes ArgTypes ### [ILMethodRef.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodref.html#Create) ILMethodRef.Create Create Functional creation ### [ILMethodSpec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html) ILMethodSpec The information at the callsite of a method ILMethodSpec.FormalReturnType FormalReturnType ILMethodSpec.CallingConv CallingConv ILMethodSpec.DeclaringType DeclaringType ILMethodSpec.GenericArity GenericArity ILMethodSpec.Name Name ILMethodSpec.MethodRef MethodRef ILMethodSpec.GenericArgs GenericArgs ILMethodSpec.FormalArgTypes FormalArgTypes ILMethodSpec.Create Create ### [ILMethodSpec.FormalReturnType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#FormalReturnType) ILMethodSpec.FormalReturnType FormalReturnType ### [ILMethodSpec.CallingConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#CallingConv) ILMethodSpec.CallingConv CallingConv ### [ILMethodSpec.DeclaringType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#DeclaringType) ILMethodSpec.DeclaringType DeclaringType ### [ILMethodSpec.GenericArity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#GenericArity) ILMethodSpec.GenericArity GenericArity ### [ILMethodSpec.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#Name) ILMethodSpec.Name Name ### [ILMethodSpec.MethodRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#MethodRef) ILMethodSpec.MethodRef MethodRef ### [ILMethodSpec.GenericArgs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#GenericArgs) ILMethodSpec.GenericArgs GenericArgs ### [ILMethodSpec.FormalArgTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#FormalArgTypes) ILMethodSpec.FormalArgTypes FormalArgTypes ### [ILMethodSpec.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmethodspec.html#Create) ILMethodSpec.Create Create Functional creation ### [ILModuleDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html) ILModuleDef One module in the "current" assembly, either a main-module or an auxiliary module. The main module will have a manifest. An assembly is built by joining together a "main" module plus several auxiliary modules. ILModuleDef.ManifestOfAssembly ManifestOfAssembly ILModuleDef.CustomAttrs CustomAttrs ILModuleDef.HasManifest HasManifest ILModuleDef.Manifest Manifest ILModuleDef.Name Name ILModuleDef.TypeDefs TypeDefs ILModuleDef.SubsystemVersion SubsystemVersion ILModuleDef.UseHighEntropyVA UseHighEntropyVA ILModuleDef.SubSystemFlags SubSystemFlags ILModuleDef.IsDLL IsDLL ILModuleDef.IsILOnly IsILOnly ILModuleDef.Platform Platform ILModuleDef.StackReserveSize StackReserveSize ILModuleDef.Is32Bit Is32Bit ILModuleDef.Is32BitPreferred Is32BitPreferred ILModuleDef.Is64Bit Is64Bit ILModuleDef.VirtualAlignment VirtualAlignment ILModuleDef.PhysicalAlignment PhysicalAlignment ILModuleDef.ImageBase ImageBase ILModuleDef.MetadataVersion MetadataVersion ILModuleDef.Resources Resources ILModuleDef.NativeResources NativeResources ILModuleDef.CustomAttrsStored CustomAttrsStored ILModuleDef.MetadataIndex MetadataIndex ### [ILModuleDef.ManifestOfAssembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#ManifestOfAssembly) ILModuleDef.ManifestOfAssembly ManifestOfAssembly ### [ILModuleDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#CustomAttrs) ILModuleDef.CustomAttrs CustomAttrs ### [ILModuleDef.HasManifest](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#HasManifest) ILModuleDef.HasManifest HasManifest ### [ILModuleDef.Manifest](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Manifest) ILModuleDef.Manifest Manifest ### [ILModuleDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Name) ILModuleDef.Name Name ### [ILModuleDef.TypeDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#TypeDefs) ILModuleDef.TypeDefs TypeDefs ### [ILModuleDef.SubsystemVersion](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#SubsystemVersion) ILModuleDef.SubsystemVersion SubsystemVersion ### [ILModuleDef.UseHighEntropyVA](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#UseHighEntropyVA) ILModuleDef.UseHighEntropyVA UseHighEntropyVA ### [ILModuleDef.SubSystemFlags](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#SubSystemFlags) ILModuleDef.SubSystemFlags SubSystemFlags ### [ILModuleDef.IsDLL](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#IsDLL) ILModuleDef.IsDLL IsDLL ### [ILModuleDef.IsILOnly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#IsILOnly) ILModuleDef.IsILOnly IsILOnly ### [ILModuleDef.Platform](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Platform) ILModuleDef.Platform Platform ### [ILModuleDef.StackReserveSize](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#StackReserveSize) ILModuleDef.StackReserveSize StackReserveSize ### [ILModuleDef.Is32Bit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Is32Bit) ILModuleDef.Is32Bit Is32Bit ### [ILModuleDef.Is32BitPreferred](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Is32BitPreferred) ILModuleDef.Is32BitPreferred Is32BitPreferred ### [ILModuleDef.Is64Bit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Is64Bit) ILModuleDef.Is64Bit Is64Bit ### [ILModuleDef.VirtualAlignment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#VirtualAlignment) ILModuleDef.VirtualAlignment VirtualAlignment ### [ILModuleDef.PhysicalAlignment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#PhysicalAlignment) ILModuleDef.PhysicalAlignment PhysicalAlignment ### [ILModuleDef.ImageBase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#ImageBase) ILModuleDef.ImageBase ImageBase ### [ILModuleDef.MetadataVersion](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#MetadataVersion) ILModuleDef.MetadataVersion MetadataVersion ### [ILModuleDef.Resources](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#Resources) ILModuleDef.Resources Resources ### [ILModuleDef.NativeResources](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#NativeResources) ILModuleDef.NativeResources NativeResources e.g. win86 resources, as the exact contents of a .res or .obj file. Must be unlinked manually. ### [ILModuleDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#CustomAttrsStored) ILModuleDef.CustomAttrsStored CustomAttrsStored ### [ILModuleDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduledef.html#MetadataIndex) ILModuleDef.MetadataIndex MetadataIndex ### [ILModuleRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduleref.html) ILModuleRef ILModuleRef.HasMetadata HasMetadata ILModuleRef.Name Name ILModuleRef.Hash Hash ILModuleRef.Create Create ### [ILModuleRef.HasMetadata](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduleref.html#HasMetadata) ILModuleRef.HasMetadata HasMetadata ### [ILModuleRef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduleref.html#Name) ILModuleRef.Name Name ### [ILModuleRef.Hash](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduleref.html#Hash) ILModuleRef.Hash Hash ### [ILModuleRef.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilmoduleref.html#Create) ILModuleRef.Create Create ### [ILNativeResource](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativeresource.html) ILNativeResource ### [ILNativeType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html) ILNativeType Native Types, for marshalling to the native C interface. These are taken directly from the ILASM syntax. Most of these are listed in the CLI ECMA-335 Spec (Partition II, 7.4). ILNativeType.Empty Empty ILNativeType.Custom Custom ILNativeType.FixedSysString FixedSysString ILNativeType.FixedArray FixedArray ILNativeType.Currency Currency ILNativeType.LPSTR LPSTR ILNativeType.LPWSTR LPWSTR ILNativeType.LPTSTR LPTSTR ILNativeType.LPUTF8STR LPUTF8STR ILNativeType.ByValStr ByValStr ILNativeType.TBSTR TBSTR ILNativeType.LPSTRUCT LPSTRUCT ILNativeType.Struct Struct ILNativeType.Void Void ILNativeType.Bool Bool ILNativeType.Int8 Int8 ILNativeType.Int16 Int16 ILNativeType.Int32 Int32 ILNativeType.Int64 Int64 ILNativeType.Single Single ILNativeType.Double Double ILNativeType.Byte Byte ILNativeType.UInt16 UInt16 ILNativeType.UInt32 UInt32 ILNativeType.UInt64 UInt64 ILNativeType.Array Array ILNativeType.Int Int ILNativeType.UInt UInt ILNativeType.Method Method ILNativeType.AsAny AsAny ILNativeType.BSTR BSTR ILNativeType.IUnknown IUnknown ILNativeType.IDispatch IDispatch ILNativeType.Interface Interface ILNativeType.Error Error ILNativeType.SafeArray SafeArray ILNativeType.ANSIBSTR ANSIBSTR ILNativeType.VariantBool VariantBool ### [ILNativeType.Empty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Empty) ILNativeType.Empty Empty ### [ILNativeType.Custom](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Custom) ILNativeType.Custom Custom ### [ILNativeType.FixedSysString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#FixedSysString) ILNativeType.FixedSysString FixedSysString ### [ILNativeType.FixedArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#FixedArray) ILNativeType.FixedArray FixedArray ### [ILNativeType.Currency](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Currency) ILNativeType.Currency Currency ### [ILNativeType.LPSTR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#LPSTR) ILNativeType.LPSTR LPSTR ### [ILNativeType.LPWSTR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#LPWSTR) ILNativeType.LPWSTR LPWSTR ### [ILNativeType.LPTSTR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#LPTSTR) ILNativeType.LPTSTR LPTSTR ### [ILNativeType.LPUTF8STR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#LPUTF8STR) ILNativeType.LPUTF8STR LPUTF8STR ### [ILNativeType.ByValStr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#ByValStr) ILNativeType.ByValStr ByValStr ### [ILNativeType.TBSTR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#TBSTR) ILNativeType.TBSTR TBSTR ### [ILNativeType.LPSTRUCT](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#LPSTRUCT) ILNativeType.LPSTRUCT LPSTRUCT ### [ILNativeType.Struct](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Struct) ILNativeType.Struct Struct ### [ILNativeType.Void](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Void) ILNativeType.Void Void ### [ILNativeType.Bool](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Bool) ILNativeType.Bool Bool ### [ILNativeType.Int8](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Int8) ILNativeType.Int8 Int8 ### [ILNativeType.Int16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Int16) ILNativeType.Int16 Int16 ### [ILNativeType.Int32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Int32) ILNativeType.Int32 Int32 ### [ILNativeType.Int64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Int64) ILNativeType.Int64 Int64 ### [ILNativeType.Single](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Single) ILNativeType.Single Single ### [ILNativeType.Double](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Double) ILNativeType.Double Double ### [ILNativeType.Byte](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Byte) ILNativeType.Byte Byte ### [ILNativeType.UInt16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#UInt16) ILNativeType.UInt16 UInt16 ### [ILNativeType.UInt32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#UInt32) ILNativeType.UInt32 UInt32 ### [ILNativeType.UInt64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#UInt64) ILNativeType.UInt64 UInt64 ### [ILNativeType.Array](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Array) ILNativeType.Array Array optional idx of parameter giving size plus optional additive i.e. num elems ### [ILNativeType.Int](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Int) ILNativeType.Int Int ### [ILNativeType.UInt](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#UInt) ILNativeType.UInt UInt ### [ILNativeType.Method](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Method) ILNativeType.Method Method ### [ILNativeType.AsAny](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#AsAny) ILNativeType.AsAny AsAny ### [ILNativeType.BSTR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#BSTR) ILNativeType.BSTR BSTR ### [ILNativeType.IUnknown](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#IUnknown) ILNativeType.IUnknown IUnknown ### [ILNativeType.IDispatch](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#IDispatch) ILNativeType.IDispatch IDispatch ### [ILNativeType.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Interface) ILNativeType.Interface Interface ### [ILNativeType.Error](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#Error) ILNativeType.Error Error ### [ILNativeType.SafeArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#SafeArray) ILNativeType.SafeArray SafeArray ### [ILNativeType.ANSIBSTR](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#ANSIBSTR) ILNativeType.ANSIBSTR ANSIBSTR ### [ILNativeType.VariantBool](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnativetype.html#VariantBool) ILNativeType.VariantBool VariantBool ### [ILNestedExportedType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html) ILNestedExportedType "Classes Elsewhere" - classes in auxiliary modules. Manifests include declarations for all the classes in an assembly, regardless of which module they are in. The ".class extern" construct describes so-called exported types -- these are public classes defined in the auxiliary modules of this assembly, i.e. modules other than the manifest-carrying module. For example, if you have a two-module assembly (A.DLL and B.DLL), and the manifest resides in the A.DLL, then in the manifest all the public classes declared in B.DLL should be defined as exported types, i.e., as ".class extern". The public classes defined in A.DLL should not be defined as ".class extern" -- they are already available in the manifest-carrying module. The union of all public classes defined in the manifest-carrying module and all exported types defined there is the set of all classes exposed by this assembly. Thus, by analysing the metadata of the manifest-carrying module of an assembly, you can identify all the classes exposed by this assembly, and where to find them. Nested classes found in external modules should also be located in this table, suitably nested inside another "ILExportedTypeOrForwarder" definition. these are only found in the "Nested" field of ILExportedTypeOrForwarder objects ILNestedExportedType.CustomAttrs CustomAttrs ILNestedExportedType.Name Name ILNestedExportedType.Access Access ILNestedExportedType.Nested Nested ILNestedExportedType.CustomAttrsStored CustomAttrsStored ILNestedExportedType.MetadataIndex MetadataIndex ### [ILNestedExportedType.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html#CustomAttrs) ILNestedExportedType.CustomAttrs CustomAttrs ### [ILNestedExportedType.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html#Name) ILNestedExportedType.Name Name ### [ILNestedExportedType.Access](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html#Access) ILNestedExportedType.Access Access ### [ILNestedExportedType.Nested](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html#Nested) ILNestedExportedType.Nested Nested ### [ILNestedExportedType.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html#CustomAttrsStored) ILNestedExportedType.CustomAttrsStored CustomAttrsStored ### [ILNestedExportedType.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtype.html#MetadataIndex) ILNestedExportedType.MetadataIndex MetadataIndex ### [ILNestedExportedTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilnestedexportedtypes.html) ILNestedExportedTypes ### [ILParameter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html) ILParameter Method parameters and return values. ILParameter.CustomAttrs CustomAttrs ILParameter.Name Name ILParameter.Type Type ILParameter.Default Default ILParameter.Marshal Marshal ILParameter.IsIn IsIn ILParameter.IsOut IsOut ILParameter.IsOptional IsOptional ILParameter.CustomAttrsStored CustomAttrsStored ILParameter.MetadataIndex MetadataIndex ### [ILParameter.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#CustomAttrs) ILParameter.CustomAttrs CustomAttrs ### [ILParameter.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#Name) ILParameter.Name Name ### [ILParameter.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#Type) ILParameter.Type Type ### [ILParameter.Default](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#Default) ILParameter.Default Default ### [ILParameter.Marshal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#Marshal) ILParameter.Marshal Marshal Marshalling map for parameters. COM Interop only. ### [ILParameter.IsIn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#IsIn) ILParameter.IsIn IsIn ### [ILParameter.IsOut](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#IsOut) ILParameter.IsOut IsOut ### [ILParameter.IsOptional](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#IsOptional) ILParameter.IsOptional IsOptional ### [ILParameter.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#CustomAttrsStored) ILParameter.CustomAttrsStored CustomAttrsStored ### [ILParameter.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameter.html#MetadataIndex) ILParameter.MetadataIndex MetadataIndex ### [ILParameters](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilparameters.html) ILParameters ### [ILPlatform](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilplatform.html) ILPlatform ### [ILPreNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html) ILPreNamespace One namespace of a type table, read only once something looks inside it. Inherit this to back a namespace with your own store; see also mkILPreNamespaceComputed. ILPreNamespace.``.ctor`` ``.ctor`` ILPreNamespace.ComputeNamespaces ComputeNamespaces ILPreNamespace.ComputeTypes ComputeTypes ILPreNamespace.GetNamespaces GetNamespaces ILPreNamespace.GetTypes GetTypes ILPreNamespace.Name Name ### [ILPreNamespace.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html#``.ctor``) ILPreNamespace.``.ctor`` ``.ctor`` ### [ILPreNamespace.ComputeNamespaces](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html#ComputeNamespaces) ILPreNamespace.ComputeNamespaces ComputeNamespaces Called at most once, and independently of the types: importing a level's types must not read its children, nor the other way round. ### [ILPreNamespace.ComputeTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html#ComputeTypes) ILPreNamespace.ComputeTypes ComputeTypes Called at most once. ### [ILPreNamespace.GetNamespaces](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html#GetNamespaces) ILPreNamespace.GetNamespaces GetNamespaces Realised independently of the types. ### [ILPreNamespace.GetTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html#GetTypes) ILPreNamespace.GetTypes GetTypes Forces neither the children nor anything deeper. ### [ILPreNamespace.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilprenamespace.html#Name) ILPreNamespace.Name Name ### [ILPreTypeDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpretypedef.html) ILPreTypeDef Represents a prefix of information for ILTypeDef. The information is enough to perform name resolution for the F# compiler, probe attributes for ExtensionAttribute etc. This is key to the on-demand exploration of .NET metadata. This information has to be "Goldilocks" - not too much, not too little, just right. ILPreTypeDef.GetTypeDef GetTypeDef ILPreTypeDef.Name Name ### [ILPreTypeDef.GetTypeDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpretypedef.html#GetTypeDef) ILPreTypeDef.GetTypeDef GetTypeDef Realise the actual full typedef ### [ILPreTypeDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpretypedef.html#Name) ILPreTypeDef.Name Name ### [ILPropertyDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html) ILPropertyDef Property definitions ILPropertyDef.``.ctor`` ``.ctor`` ILPropertyDef.CustomAttrsStored CustomAttrsStored ILPropertyDef.IsSpecialName IsSpecialName ILPropertyDef.SetMethod SetMethod ILPropertyDef.Attributes Attributes ILPropertyDef.CustomAttrs CustomAttrs ILPropertyDef.PropertyType PropertyType ILPropertyDef.CallingConv CallingConv ILPropertyDef.Init Init ILPropertyDef.Name Name ILPropertyDef.Args Args ILPropertyDef.IsRTSpecialName IsRTSpecialName ILPropertyDef.MetadataIndex MetadataIndex ILPropertyDef.GetMethod GetMethod ### [ILPropertyDef.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#``.ctor``) ILPropertyDef.``.ctor`` ``.ctor`` Functional creation of a value, immediate ### [ILPropertyDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#CustomAttrsStored) ILPropertyDef.CustomAttrsStored CustomAttrsStored ### [ILPropertyDef.IsSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#IsSpecialName) ILPropertyDef.IsSpecialName IsSpecialName ### [ILPropertyDef.SetMethod](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#SetMethod) ILPropertyDef.SetMethod SetMethod ### [ILPropertyDef.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#Attributes) ILPropertyDef.Attributes Attributes ### [ILPropertyDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#CustomAttrs) ILPropertyDef.CustomAttrs CustomAttrs ### [ILPropertyDef.PropertyType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#PropertyType) ILPropertyDef.PropertyType PropertyType ### [ILPropertyDef.CallingConv](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#CallingConv) ILPropertyDef.CallingConv CallingConv ### [ILPropertyDef.Init](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#Init) ILPropertyDef.Init Init ### [ILPropertyDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#Name) ILPropertyDef.Name Name ### [ILPropertyDef.Args](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#Args) ILPropertyDef.Args Args ### [ILPropertyDef.IsRTSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#IsRTSpecialName) ILPropertyDef.IsRTSpecialName IsRTSpecialName ### [ILPropertyDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#MetadataIndex) ILPropertyDef.MetadataIndex MetadataIndex ### [ILPropertyDef.GetMethod](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydef.html#GetMethod) ILPropertyDef.GetMethod GetMethod ### [ILPropertyDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilpropertydefs.html) ILPropertyDefs Table of properties in an IL type definition. ### [ILReferences](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreferences.html) ILReferences ILReferences.AssemblyReferences AssemblyReferences ILReferences.ModuleReferences ModuleReferences ILReferences.TypeReferences TypeReferences ILReferences.MethodReferences MethodReferences ILReferences.FieldReferences FieldReferences ### [ILReferences.AssemblyReferences](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreferences.html#AssemblyReferences) ILReferences.AssemblyReferences AssemblyReferences ### [ILReferences.ModuleReferences](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreferences.html#ModuleReferences) ILReferences.ModuleReferences ModuleReferences ### [ILReferences.TypeReferences](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreferences.html#TypeReferences) ILReferences.TypeReferences TypeReferences ### [ILReferences.MethodReferences](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreferences.html#MethodReferences) ILReferences.MethodReferences MethodReferences ### [ILReferences.FieldReferences](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreferences.html#FieldReferences) ILReferences.FieldReferences FieldReferences ### [ILResources](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilresources.html) ILResources Table of resources in a module. ### [ILReturn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html) ILReturn Method return values. ILReturn.WithCustomAttrs WithCustomAttrs ILReturn.CustomAttrs CustomAttrs ILReturn.Marshal Marshal ILReturn.Type Type ILReturn.CustomAttrsStored CustomAttrsStored ILReturn.MetadataIndex MetadataIndex ### [ILReturn.WithCustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html#WithCustomAttrs) ILReturn.WithCustomAttrs WithCustomAttrs ### [ILReturn.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html#CustomAttrs) ILReturn.CustomAttrs CustomAttrs ### [ILReturn.Marshal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html#Marshal) ILReturn.Marshal Marshal ### [ILReturn.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html#Type) ILReturn.Type Type ### [ILReturn.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html#CustomAttrsStored) ILReturn.CustomAttrsStored CustomAttrsStored ### [ILReturn.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilreturn.html#MetadataIndex) ILReturn.MetadataIndex MetadataIndex ### [ILScopeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html) ILScopeRef ILScopeRef.QualifiedName QualifiedName ILScopeRef.IsLocalRef IsLocalRef ILScopeRef.Local Local ILScopeRef.Module Module ILScopeRef.Assembly Assembly ILScopeRef.PrimaryAssembly PrimaryAssembly ### [ILScopeRef.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html#QualifiedName) ILScopeRef.QualifiedName QualifiedName ### [ILScopeRef.IsLocalRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html#IsLocalRef) ILScopeRef.IsLocalRef IsLocalRef ### [ILScopeRef.Local](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html#Local) ILScopeRef.Local Local A reference to the type in the current module ### [ILScopeRef.Module](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html#Module) ILScopeRef.Module Module A reference to a type in a module in the same assembly ### [ILScopeRef.Assembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html#Assembly) ILScopeRef.Assembly Assembly A reference to a type in another assembly ### [ILScopeRef.PrimaryAssembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilscoperef.html#PrimaryAssembly) ILScopeRef.PrimaryAssembly PrimaryAssembly A reference to a type in the primary assembly ### [ILSecurityDeclsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsecuritydeclsstored.html) ILSecurityDeclsStored Represents the efficiency-oriented storage of ILSecurityDecls in another item. ### [ILSourceDocument](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsourcedocument.html) ILSourceDocument Debug info. Values of type "source" can be attached at sequence points and some other locations. ILSourceDocument.Vendor Vendor ILSourceDocument.File File ILSourceDocument.Language Language ILSourceDocument.DocumentType DocumentType ILSourceDocument.Create Create ### [ILSourceDocument.Vendor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsourcedocument.html#Vendor) ILSourceDocument.Vendor Vendor ### [ILSourceDocument.File](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsourcedocument.html#File) ILSourceDocument.File File ### [ILSourceDocument.Language](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsourcedocument.html#Language) ILSourceDocument.Language Language ### [ILSourceDocument.DocumentType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsourcedocument.html#DocumentType) ILSourceDocument.DocumentType DocumentType ### [ILSourceDocument.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilsourcedocument.html#Create) ILSourceDocument.Create Create ### [ILThisConvention](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilthisconvention.html) ILThisConvention ILThisConvention.Instance Instance ILThisConvention.InstanceExplicit InstanceExplicit ILThisConvention.Static Static ### [ILThisConvention.Instance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilthisconvention.html#Instance) ILThisConvention.Instance Instance accepts an implicit 'this' pointer ### [ILThisConvention.InstanceExplicit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilthisconvention.html#InstanceExplicit) ILThisConvention.InstanceExplicit InstanceExplicit accepts an explicit 'this' pointer ### [ILThisConvention.Static](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilthisconvention.html#Static) ILThisConvention.Static Static no 'this' pointer is passed ### [ILType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html) ILType ILType.TypeRef TypeRef ILType.QualifiedName QualifiedName ILType.IsNominal IsNominal ILType.IsTyvar IsTyvar ILType.BasicQualifiedName BasicQualifiedName ILType.TypeSpec TypeSpec ILType.GenericArgs GenericArgs ILType.Void Void ILType.Array Array ILType.Value Value ILType.Boxed Boxed ILType.Ptr Ptr ILType.Byref Byref ILType.FunctionPointer FunctionPointer ILType.TypeVar TypeVar ILType.Modified Modified ### [ILType.TypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#TypeRef) ILType.TypeRef TypeRef ### [ILType.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#QualifiedName) ILType.QualifiedName QualifiedName ### [ILType.IsNominal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#IsNominal) ILType.IsNominal IsNominal ### [ILType.IsTyvar](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#IsTyvar) ILType.IsTyvar IsTyvar ### [ILType.BasicQualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#BasicQualifiedName) ILType.BasicQualifiedName BasicQualifiedName ### [ILType.TypeSpec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#TypeSpec) ILType.TypeSpec TypeSpec ### [ILType.GenericArgs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#GenericArgs) ILType.GenericArgs GenericArgs ### [ILType.Void](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Void) ILType.Void Void Used only in return and pointer types. ### [ILType.Array](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Array) ILType.Array Array Array types ### [ILType.Value](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Value) ILType.Value Value Unboxed types, including builtin types. ### [ILType.Boxed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Boxed) ILType.Boxed Boxed Reference types. Also may be used for parents of members even if for members in value types. ### [ILType.Ptr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Ptr) ILType.Ptr Ptr Unmanaged pointers. Nb. the type is used by tools and for binding only, not by the verifier. ### [ILType.Byref](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Byref) ILType.Byref Byref Managed pointers. ### [ILType.FunctionPointer](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#FunctionPointer) ILType.FunctionPointer FunctionPointer ILCode pointers. ### [ILType.TypeVar](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#TypeVar) ILType.TypeVar TypeVar Reference a generic arg. ### [ILType.Modified](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltype.html#Modified) ILType.Modified Modified Custom modifiers. ### [ILTypeDef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html) ILTypeDef Represents IL Type Definitions. ILTypeDef.``.ctor`` ``.ctor`` ILTypeDef.``.ctor`` ``.ctor`` ILTypeDef.With With ILTypeDef.Events Events ILTypeDef.Methods Methods ILTypeDef.IsStructOrEnum IsStructOrEnum ILTypeDef.IsSerializable IsSerializable ILTypeDef.IsDelegate IsDelegate ILTypeDef.SecurityDecls SecurityDecls ILTypeDef.IsEnum IsEnum ILTypeDef.IsStruct IsStruct ILTypeDef.Fields Fields ILTypeDef.Name Name ILTypeDef.NestedTypes NestedTypes ILTypeDef.Layout Layout ILTypeDef.Properties Properties ILTypeDef.IsComInterop IsComInterop ILTypeDef.IsInterface IsInterface ILTypeDef.Extends Extends ILTypeDef.CustomAttrsStored CustomAttrsStored ILTypeDef.IsSpecialName IsSpecialName ILTypeDef.Implements Implements ILTypeDef.IsAbstract IsAbstract ILTypeDef.Attributes Attributes ILTypeDef.MethodImpls MethodImpls ILTypeDef.IsClass IsClass ILTypeDef.IsSealed IsSealed ILTypeDef.MetadataIndex MetadataIndex ILTypeDef.IsKnownToBeAttribute IsKnownToBeAttribute ILTypeDef.Encoding Encoding ILTypeDef.Access Access ILTypeDef.GenericParams GenericParams ILTypeDef.CanContainExtensionMethods CanContainExtensionMethods ILTypeDef.HasSecurity HasSecurity ILTypeDef.CustomAttrs CustomAttrs ### [ILTypeDef.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#``.ctor``) ILTypeDef.``.ctor`` ``.ctor`` Functional creation of a value, immediate ### [ILTypeDef.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#``.ctor``) ILTypeDef.``.ctor`` ``.ctor`` Functional creation of a value with lazy calculated data ### [ILTypeDef.With](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#With) ILTypeDef.With With Functional update ### [ILTypeDef.Events](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Events) ILTypeDef.Events Events ### [ILTypeDef.Methods](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Methods) ILTypeDef.Methods Methods ### [ILTypeDef.IsStructOrEnum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsStructOrEnum) ILTypeDef.IsStructOrEnum IsStructOrEnum ### [ILTypeDef.IsSerializable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsSerializable) ILTypeDef.IsSerializable IsSerializable ### [ILTypeDef.IsDelegate](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsDelegate) ILTypeDef.IsDelegate IsDelegate ### [ILTypeDef.SecurityDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#SecurityDecls) ILTypeDef.SecurityDecls SecurityDecls ### [ILTypeDef.IsEnum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsEnum) ILTypeDef.IsEnum IsEnum ### [ILTypeDef.IsStruct](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsStruct) ILTypeDef.IsStruct IsStruct ### [ILTypeDef.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Fields) ILTypeDef.Fields Fields ### [ILTypeDef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Name) ILTypeDef.Name Name ### [ILTypeDef.NestedTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#NestedTypes) ILTypeDef.NestedTypes NestedTypes ### [ILTypeDef.Layout](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Layout) ILTypeDef.Layout Layout ### [ILTypeDef.Properties](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Properties) ILTypeDef.Properties Properties ### [ILTypeDef.IsComInterop](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsComInterop) ILTypeDef.IsComInterop IsComInterop Class or interface generated for COM interop. ### [ILTypeDef.IsInterface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsInterface) ILTypeDef.IsInterface IsInterface ### [ILTypeDef.Extends](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Extends) ILTypeDef.Extends Extends ### [ILTypeDef.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#CustomAttrsStored) ILTypeDef.CustomAttrsStored CustomAttrsStored ### [ILTypeDef.IsSpecialName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsSpecialName) ILTypeDef.IsSpecialName IsSpecialName ### [ILTypeDef.Implements](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Implements) ILTypeDef.Implements Implements ### [ILTypeDef.IsAbstract](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsAbstract) ILTypeDef.IsAbstract IsAbstract ### [ILTypeDef.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Attributes) ILTypeDef.Attributes Attributes ### [ILTypeDef.MethodImpls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#MethodImpls) ILTypeDef.MethodImpls MethodImpls ### [ILTypeDef.IsClass](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsClass) ILTypeDef.IsClass IsClass ### [ILTypeDef.IsSealed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsSealed) ILTypeDef.IsSealed IsSealed ### [ILTypeDef.MetadataIndex](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#MetadataIndex) ILTypeDef.MetadataIndex MetadataIndex ### [ILTypeDef.IsKnownToBeAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#IsKnownToBeAttribute) ILTypeDef.IsKnownToBeAttribute IsKnownToBeAttribute ### [ILTypeDef.Encoding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Encoding) ILTypeDef.Encoding Encoding ### [ILTypeDef.Access](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#Access) ILTypeDef.Access Access ### [ILTypeDef.GenericParams](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#GenericParams) ILTypeDef.GenericParams GenericParams ### [ILTypeDef.CanContainExtensionMethods](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#CanContainExtensionMethods) ILTypeDef.CanContainExtensionMethods CanContainExtensionMethods ### [ILTypeDef.HasSecurity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#HasSecurity) ILTypeDef.HasSecurity HasSecurity Some classes are marked "HasSecurity" even if there are no permissions attached, e.g. if they use SuppressUnmanagedCodeSecurityAttribute ### [ILTypeDef.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedef.html#CustomAttrs) ILTypeDef.CustomAttrs CustomAttrs ### [ILTypeDefAccess](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefaccess.html) ILTypeDefAccess Type Access. ILTypeDefAccess.Public Public ILTypeDefAccess.Private Private ILTypeDefAccess.Nested Nested ### [ILTypeDefAccess.Public](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefaccess.html#Public) ILTypeDefAccess.Public Public ### [ILTypeDefAccess.Private](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefaccess.html#Private) ILTypeDefAccess.Private Private ### [ILTypeDefAccess.Nested](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefaccess.html#Nested) ILTypeDefAccess.Nested Nested ### [ILTypeDefAdditionalFlags](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html) ILTypeDefAdditionalFlags ILTypeDefAdditionalFlags.Class Class ILTypeDefAdditionalFlags.ValueType ValueType ILTypeDefAdditionalFlags.Interface Interface ILTypeDefAdditionalFlags.Enum Enum ILTypeDefAdditionalFlags.Delegate Delegate ILTypeDefAdditionalFlags.IsKnownToBeAttribute IsKnownToBeAttribute ILTypeDefAdditionalFlags.CanContainExtensionMethods CanContainExtensionMethods ### [ILTypeDefAdditionalFlags.Class](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#Class) ILTypeDefAdditionalFlags.Class Class ### [ILTypeDefAdditionalFlags.ValueType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#ValueType) ILTypeDefAdditionalFlags.ValueType ValueType ### [ILTypeDefAdditionalFlags.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#Interface) ILTypeDefAdditionalFlags.Interface Interface ### [ILTypeDefAdditionalFlags.Enum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#Enum) ILTypeDefAdditionalFlags.Enum Enum ### [ILTypeDefAdditionalFlags.Delegate](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#Delegate) ILTypeDefAdditionalFlags.Delegate Delegate ### [ILTypeDefAdditionalFlags.IsKnownToBeAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#IsKnownToBeAttribute) ILTypeDefAdditionalFlags.IsKnownToBeAttribute IsKnownToBeAttribute ### [ILTypeDefAdditionalFlags.CanContainExtensionMethods](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefadditionalflags.html#CanContainExtensionMethods) ILTypeDefAdditionalFlags.CanContainExtensionMethods CanContainExtensionMethods ### [ILTypeDefLayout](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedeflayout.html) ILTypeDefLayout Type Layout information. ILTypeDefLayout.Auto Auto ILTypeDefLayout.Sequential Sequential ILTypeDefLayout.Explicit Explicit ILTypeDefLayout.Extended Extended ### [ILTypeDefLayout.Auto](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedeflayout.html#Auto) ILTypeDefLayout.Auto Auto ### [ILTypeDefLayout.Sequential](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedeflayout.html#Sequential) ILTypeDefLayout.Sequential Sequential ### [ILTypeDefLayout.Explicit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedeflayout.html#Explicit) ILTypeDefLayout.Explicit Explicit ### [ILTypeDefLayout.Extended](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedeflayout.html#Extended) ILTypeDefLayout.Extended Extended ### [ILTypeDefs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypedefs.html) ILTypeDefs One namespace level: the types declared in it, and its child namespaces. A reader is grouped into this shape on the way in; types already in hand stay one level, so that flattening keeps their order. ### [ILTypeInit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypeinit.html) ILTypeInit Indicate the initialization semantics of a type. ILTypeInit.BeforeField BeforeField ILTypeInit.OnAny OnAny ### [ILTypeInit.BeforeField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypeinit.html#BeforeField) ILTypeInit.BeforeField BeforeField ### [ILTypeInit.OnAny](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypeinit.html#OnAny) ILTypeInit.OnAny OnAny ### [ILTypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html) ILTypeRef Type refs, i.e. references to types in some .NET assembly ILTypeRef.QualifiedName QualifiedName ILTypeRef.BasicQualifiedName BasicQualifiedName ILTypeRef.Scope Scope ILTypeRef.Name Name ILTypeRef.Enclosing Enclosing ILTypeRef.FullName FullName ILTypeRef.Create Create ### [ILTypeRef.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#QualifiedName) ILTypeRef.QualifiedName QualifiedName ### [ILTypeRef.BasicQualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#BasicQualifiedName) ILTypeRef.BasicQualifiedName BasicQualifiedName The name of the type in the assembly using the '+' notation for nested types. ### [ILTypeRef.Scope](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#Scope) ILTypeRef.Scope Scope Where is the type, i.e. is it in this module, in another module in this assembly or in another assembly? ### [ILTypeRef.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#Name) ILTypeRef.Name Name The name of the type. This also contains the namespace if Enclosing is empty. ### [ILTypeRef.Enclosing](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#Enclosing) ILTypeRef.Enclosing Enclosing The list of enclosing type names for a nested type. If non-nil then the first of these also contains the namespace. ### [ILTypeRef.FullName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#FullName) ILTypeRef.FullName FullName The name of the type in the assembly using the '.' notation for nested types. ### [ILTypeRef.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltyperef.html#Create) ILTypeRef.Create Create Create a ILTypeRef. ### [ILTypeSpec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html) ILTypeSpec Type specs and types. ILTypeSpec.TypeRef TypeRef ILTypeSpec.Scope Scope ILTypeSpec.Name Name ILTypeSpec.Enclosing Enclosing ILTypeSpec.FullName FullName ILTypeSpec.GenericArgs GenericArgs ILTypeSpec.Create Create ### [ILTypeSpec.TypeRef](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#TypeRef) ILTypeSpec.TypeRef TypeRef Which type is being referred to? ### [ILTypeSpec.Scope](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#Scope) ILTypeSpec.Scope Scope Where is the type, i.e. is it in this module, in another module in this assembly or in another assembly? ### [ILTypeSpec.Name](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#Name) ILTypeSpec.Name Name The name of the type. This also contains the namespace if Enclosing is empty. ### [ILTypeSpec.Enclosing](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#Enclosing) ILTypeSpec.Enclosing Enclosing The list of enclosing type names for a nested type. If non-nil then the first of these also contains the namespace. ### [ILTypeSpec.FullName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#FullName) ILTypeSpec.FullName FullName The name of the type in the assembly using the '.' notation for nested types. ### [ILTypeSpec.GenericArgs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#GenericArgs) ILTypeSpec.GenericArgs GenericArgs The type instantiation if the type is generic, otherwise empty ### [ILTypeSpec.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypespec.html#Create) ILTypeSpec.Create Create Create an ILTypeSpec. ### [ILTypes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-iltypes.html) ILTypes ### [ILVersionInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilversioninfo.html) ILVersionInfo ILVersionInfo.``.ctor`` ``.ctor`` ILVersionInfo.Major Major ILVersionInfo.Minor Minor ILVersionInfo.Build Build ILVersionInfo.Revision Revision ### [ILVersionInfo.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilversioninfo.html#``.ctor``) ILVersionInfo.``.ctor`` ``.ctor`` ### [ILVersionInfo.Major](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilversioninfo.html#Major) ILVersionInfo.Major Major ### [ILVersionInfo.Minor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilversioninfo.html#Minor) ILVersionInfo.Minor Minor ### [ILVersionInfo.Build](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilversioninfo.html#Build) ILVersionInfo.Build Build ### [ILVersionInfo.Revision](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-ilversioninfo.html#Revision) ILVersionInfo.Revision Revision ### [InterfaceImpl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html) InterfaceImpl InterfaceImpl.CustomAttrs CustomAttrs InterfaceImpl.Create Create InterfaceImpl.Create Create InterfaceImpl.Idx Idx InterfaceImpl.Type Type InterfaceImpl.CustomAttrsStored CustomAttrsStored ### [InterfaceImpl.CustomAttrs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html#CustomAttrs) InterfaceImpl.CustomAttrs CustomAttrs ### [InterfaceImpl.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html#Create) InterfaceImpl.Create Create ### [InterfaceImpl.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html#Create) InterfaceImpl.Create Create ### [InterfaceImpl.Idx](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html#Idx) InterfaceImpl.Idx Idx ### [InterfaceImpl.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html#Type) InterfaceImpl.Type Type ### [InterfaceImpl.CustomAttrsStored](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-interfaceimpl.html#CustomAttrsStored) InterfaceImpl.CustomAttrsStored CustomAttrsStored ### [MethodBody](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-methodbody.html) MethodBody MethodBody.IL IL MethodBody.PInvoke PInvoke MethodBody.Abstract Abstract MethodBody.Native Native MethodBody.NotAvailable NotAvailable ### [MethodBody.IL](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-methodbody.html#IL) MethodBody.IL IL ### [MethodBody.PInvoke](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-methodbody.html#PInvoke) MethodBody.PInvoke PInvoke ### [MethodBody.Abstract](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-methodbody.html#Abstract) MethodBody.Abstract Abstract ### [MethodBody.Native](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-methodbody.html#Native) MethodBody.Native Native ### [MethodBody.NotAvailable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-methodbody.html#NotAvailable) MethodBody.NotAvailable NotAvailable ### [PublicKey](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html) PublicKey PublicKey.KeyToken KeyToken PublicKey.Key Key PublicKey.IsKey IsKey PublicKey.IsKeyToken IsKeyToken PublicKey.KeyAsToken KeyAsToken PublicKey.PublicKey PublicKey PublicKey.PublicKeyToken PublicKeyToken ### [PublicKey.KeyToken](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#KeyToken) PublicKey.KeyToken KeyToken ### [PublicKey.Key](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#Key) PublicKey.Key Key ### [PublicKey.IsKey](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#IsKey) PublicKey.IsKey IsKey ### [PublicKey.IsKeyToken](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#IsKeyToken) PublicKey.IsKeyToken IsKeyToken ### [PublicKey.KeyAsToken](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#KeyAsToken) PublicKey.KeyAsToken KeyAsToken ### [PublicKey.PublicKey](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#PublicKey) PublicKey.PublicKey PublicKey ### [PublicKey.PublicKeyToken](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-publickey.html#PublicKeyToken) PublicKey.PublicKeyToken PublicKeyToken ### [WellKnownILAttributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html) WellKnownILAttributes WellKnownILAttributes.None None WellKnownILAttributes.IsReadOnlyAttribute IsReadOnlyAttribute WellKnownILAttributes.IsUnmanagedAttribute IsUnmanagedAttribute WellKnownILAttributes.IsByRefLikeAttribute IsByRefLikeAttribute WellKnownILAttributes.ExtensionAttribute ExtensionAttribute WellKnownILAttributes.NullableAttribute NullableAttribute WellKnownILAttributes.ParamArrayAttribute ParamArrayAttribute WellKnownILAttributes.AllowNullLiteralAttribute AllowNullLiteralAttribute WellKnownILAttributes.ReflectedDefinitionAttribute ReflectedDefinitionAttribute WellKnownILAttributes.AutoOpenAttribute AutoOpenAttribute WellKnownILAttributes.InternalsVisibleToAttribute InternalsVisibleToAttribute WellKnownILAttributes.CallerMemberNameAttribute CallerMemberNameAttribute WellKnownILAttributes.CallerFilePathAttribute CallerFilePathAttribute WellKnownILAttributes.CallerLineNumberAttribute CallerLineNumberAttribute WellKnownILAttributes.IDispatchConstantAttribute IDispatchConstantAttribute WellKnownILAttributes.IUnknownConstantAttribute IUnknownConstantAttribute WellKnownILAttributes.RequiresLocationAttribute RequiresLocationAttribute WellKnownILAttributes.SetsRequiredMembersAttribute SetsRequiredMembersAttribute WellKnownILAttributes.NoEagerConstraintApplicationAttribute NoEagerConstraintApplicationAttribute WellKnownILAttributes.DefaultMemberAttribute DefaultMemberAttribute WellKnownILAttributes.ObsoleteAttribute ObsoleteAttribute WellKnownILAttributes.CompilerFeatureRequiredAttribute CompilerFeatureRequiredAttribute WellKnownILAttributes.ExperimentalAttribute ExperimentalAttribute WellKnownILAttributes.RequiredMemberAttribute RequiredMemberAttribute WellKnownILAttributes.NullableContextAttribute NullableContextAttribute WellKnownILAttributes.AttributeUsageAttribute AttributeUsageAttribute WellKnownILAttributes.NotNullIfNotNullAttribute NotNullIfNotNullAttribute WellKnownILAttributes.OverloadResolutionPriorityAttribute OverloadResolutionPriorityAttribute WellKnownILAttributes.RequireNamedArgumentsAttribute RequireNamedArgumentsAttribute WellKnownILAttributes.NotComputed NotComputed ### [WellKnownILAttributes.None](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#None) WellKnownILAttributes.None None ### [WellKnownILAttributes.IsReadOnlyAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#IsReadOnlyAttribute) WellKnownILAttributes.IsReadOnlyAttribute IsReadOnlyAttribute ### [WellKnownILAttributes.IsUnmanagedAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#IsUnmanagedAttribute) WellKnownILAttributes.IsUnmanagedAttribute IsUnmanagedAttribute ### [WellKnownILAttributes.IsByRefLikeAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#IsByRefLikeAttribute) WellKnownILAttributes.IsByRefLikeAttribute IsByRefLikeAttribute ### [WellKnownILAttributes.ExtensionAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#ExtensionAttribute) WellKnownILAttributes.ExtensionAttribute ExtensionAttribute ### [WellKnownILAttributes.NullableAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#NullableAttribute) WellKnownILAttributes.NullableAttribute NullableAttribute ### [WellKnownILAttributes.ParamArrayAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#ParamArrayAttribute) WellKnownILAttributes.ParamArrayAttribute ParamArrayAttribute ### [WellKnownILAttributes.AllowNullLiteralAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#AllowNullLiteralAttribute) WellKnownILAttributes.AllowNullLiteralAttribute AllowNullLiteralAttribute ### [WellKnownILAttributes.ReflectedDefinitionAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#ReflectedDefinitionAttribute) WellKnownILAttributes.ReflectedDefinitionAttribute ReflectedDefinitionAttribute ### [WellKnownILAttributes.AutoOpenAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#AutoOpenAttribute) WellKnownILAttributes.AutoOpenAttribute AutoOpenAttribute ### [WellKnownILAttributes.InternalsVisibleToAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#InternalsVisibleToAttribute) WellKnownILAttributes.InternalsVisibleToAttribute InternalsVisibleToAttribute ### [WellKnownILAttributes.CallerMemberNameAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#CallerMemberNameAttribute) WellKnownILAttributes.CallerMemberNameAttribute CallerMemberNameAttribute ### [WellKnownILAttributes.CallerFilePathAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#CallerFilePathAttribute) WellKnownILAttributes.CallerFilePathAttribute CallerFilePathAttribute ### [WellKnownILAttributes.CallerLineNumberAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#CallerLineNumberAttribute) WellKnownILAttributes.CallerLineNumberAttribute CallerLineNumberAttribute ### [WellKnownILAttributes.IDispatchConstantAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#IDispatchConstantAttribute) WellKnownILAttributes.IDispatchConstantAttribute IDispatchConstantAttribute ### [WellKnownILAttributes.IUnknownConstantAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#IUnknownConstantAttribute) WellKnownILAttributes.IUnknownConstantAttribute IUnknownConstantAttribute ### [WellKnownILAttributes.RequiresLocationAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#RequiresLocationAttribute) WellKnownILAttributes.RequiresLocationAttribute RequiresLocationAttribute ### [WellKnownILAttributes.SetsRequiredMembersAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#SetsRequiredMembersAttribute) WellKnownILAttributes.SetsRequiredMembersAttribute SetsRequiredMembersAttribute ### [WellKnownILAttributes.NoEagerConstraintApplicationAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#NoEagerConstraintApplicationAttribute) WellKnownILAttributes.NoEagerConstraintApplicationAttribute NoEagerConstraintApplicationAttribute ### [WellKnownILAttributes.DefaultMemberAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#DefaultMemberAttribute) WellKnownILAttributes.DefaultMemberAttribute DefaultMemberAttribute ### [WellKnownILAttributes.ObsoleteAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#ObsoleteAttribute) WellKnownILAttributes.ObsoleteAttribute ObsoleteAttribute ### [WellKnownILAttributes.CompilerFeatureRequiredAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#CompilerFeatureRequiredAttribute) WellKnownILAttributes.CompilerFeatureRequiredAttribute CompilerFeatureRequiredAttribute ### [WellKnownILAttributes.ExperimentalAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#ExperimentalAttribute) WellKnownILAttributes.ExperimentalAttribute ExperimentalAttribute ### [WellKnownILAttributes.RequiredMemberAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#RequiredMemberAttribute) WellKnownILAttributes.RequiredMemberAttribute RequiredMemberAttribute ### [WellKnownILAttributes.NullableContextAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#NullableContextAttribute) WellKnownILAttributes.NullableContextAttribute NullableContextAttribute ### [WellKnownILAttributes.AttributeUsageAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#AttributeUsageAttribute) WellKnownILAttributes.AttributeUsageAttribute AttributeUsageAttribute ### [WellKnownILAttributes.NotNullIfNotNullAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#NotNullIfNotNullAttribute) WellKnownILAttributes.NotNullIfNotNullAttribute NotNullIfNotNullAttribute ### [WellKnownILAttributes.OverloadResolutionPriorityAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#OverloadResolutionPriorityAttribute) WellKnownILAttributes.OverloadResolutionPriorityAttribute OverloadResolutionPriorityAttribute ### [WellKnownILAttributes.RequireNamedArgumentsAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#RequireNamedArgumentsAttribute) WellKnownILAttributes.RequireNamedArgumentsAttribute RequireNamedArgumentsAttribute ### [WellKnownILAttributes.NotComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-abstractil-il-wellknownilattributes.html#NotComputed) WellKnownILAttributes.NotComputed NotComputed ### [CacheMetrics](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-caches-cachemetrics.html) CacheMetrics CacheMetrics.Meter Meter ### [CacheMetrics.Meter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-caches-cachemetrics.html#Meter) CacheMetrics.Meter Meter Global telemetry Meter for all caches. Exposed for testing purposes. Set FSHARP_OTEL_EXPORT environment variable to enable OpenTelemetry export to external collectors in tests. ### [ActivityNames](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-activitynames.html) ActivityNames For activities following the dotnet distributed tracing concept https://learn.microsoft.com/dotnet/core/diagnostics/distributed-tracing-concepts?source=recommendations ActivityNames.FscSourceName FscSourceName ActivityNames.ProfiledSourceName ProfiledSourceName ActivityNames.AllRelevantNames AllRelevantNames ### [ActivityNames.FscSourceName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-activitynames.html#FscSourceName) ActivityNames.FscSourceName FscSourceName ### [ActivityNames.ProfiledSourceName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-activitynames.html#ProfiledSourceName) ActivityNames.ProfiledSourceName ProfiledSourceName ### [ActivityNames.AllRelevantNames](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-activitynames.html#AllRelevantNames) ActivityNames.AllRelevantNames AllRelevantNames ### [FSharpDiagnosticOptions](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html) FSharpDiagnosticOptions FSharpDiagnosticOptions.CheckXmlDocs CheckXmlDocs FSharpDiagnosticOptions.Default Default FSharpDiagnosticOptions.WarnLevel WarnLevel FSharpDiagnosticOptions.GlobalWarnAsError GlobalWarnAsError FSharpDiagnosticOptions.WarnOff WarnOff FSharpDiagnosticOptions.WarnOn WarnOn FSharpDiagnosticOptions.WarnAsError WarnAsError FSharpDiagnosticOptions.WarnAsWarn WarnAsWarn FSharpDiagnosticOptions.WarnScopeData WarnScopeData ### [FSharpDiagnosticOptions.CheckXmlDocs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#CheckXmlDocs) FSharpDiagnosticOptions.CheckXmlDocs CheckXmlDocs ### [FSharpDiagnosticOptions.Default](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#Default) FSharpDiagnosticOptions.Default Default ### [FSharpDiagnosticOptions.WarnLevel](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#WarnLevel) FSharpDiagnosticOptions.WarnLevel WarnLevel ### [FSharpDiagnosticOptions.GlobalWarnAsError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#GlobalWarnAsError) FSharpDiagnosticOptions.GlobalWarnAsError GlobalWarnAsError ### [FSharpDiagnosticOptions.WarnOff](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#WarnOff) FSharpDiagnosticOptions.WarnOff WarnOff ### [FSharpDiagnosticOptions.WarnOn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#WarnOn) FSharpDiagnosticOptions.WarnOn WarnOn ### [FSharpDiagnosticOptions.WarnAsError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#WarnAsError) FSharpDiagnosticOptions.WarnAsError WarnAsError ### [FSharpDiagnosticOptions.WarnAsWarn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#WarnAsWarn) FSharpDiagnosticOptions.WarnAsWarn WarnAsWarn ### [FSharpDiagnosticOptions.WarnScopeData](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticoptions.html#WarnScopeData) FSharpDiagnosticOptions.WarnScopeData WarnScopeData ### [FSharpDiagnosticSeverity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticseverity.html) FSharpDiagnosticSeverity FSharpDiagnosticSeverity.Hidden Hidden FSharpDiagnosticSeverity.Info Info FSharpDiagnosticSeverity.Warning Warning FSharpDiagnosticSeverity.Error Error ### [FSharpDiagnosticSeverity.Hidden](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticseverity.html#Hidden) FSharpDiagnosticSeverity.Hidden Hidden ### [FSharpDiagnosticSeverity.Info](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticseverity.html#Info) FSharpDiagnosticSeverity.Info Info ### [FSharpDiagnosticSeverity.Warning](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticseverity.html#Warning) FSharpDiagnosticSeverity.Warning Warning ### [FSharpDiagnosticSeverity.Error](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-diagnostics-fsharpdiagnosticseverity.html#Error) FSharpDiagnosticSeverity.Error Error ### [FileSystemAutoOpens](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-filesystemautoopens.html) FileSystemAutoOpens FileSystemAutoOpens.FileSystem FileSystem ### [FileSystemAutoOpens.FileSystem](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-filesystemautoopens.html#FileSystem) FileSystemAutoOpens.FileSystem FileSystem The global hook into the file system ### [StreamExtensions](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html) StreamExtensions StreamExtensions.GetWriter GetWriter StreamExtensions.WriteAllLines WriteAllLines StreamExtensions.Write Write StreamExtensions.GetReader GetReader StreamExtensions.ReadBytes ReadBytes StreamExtensions.ReadAllBytes ReadAllBytes StreamExtensions.ReadAllText ReadAllText StreamExtensions.ReadLines ReadLines StreamExtensions.ReadAllLines ReadAllLines StreamExtensions.WriteAllText WriteAllText StreamExtensions.AsByteMemory AsByteMemory ### [StreamExtensions.GetWriter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#GetWriter) StreamExtensions.GetWriter GetWriter ### [StreamExtensions.WriteAllLines](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#WriteAllLines) StreamExtensions.WriteAllLines WriteAllLines ### [StreamExtensions.Write](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#Write) StreamExtensions.Write Write ### [StreamExtensions.GetReader](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#GetReader) StreamExtensions.GetReader GetReader ### [StreamExtensions.ReadBytes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#ReadBytes) StreamExtensions.ReadBytes ReadBytes ### [StreamExtensions.ReadAllBytes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#ReadAllBytes) StreamExtensions.ReadAllBytes ReadAllBytes ### [StreamExtensions.ReadAllText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#ReadAllText) StreamExtensions.ReadAllText ReadAllText ### [StreamExtensions.ReadLines](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#ReadLines) StreamExtensions.ReadLines ReadLines ### [StreamExtensions.ReadAllLines](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#ReadAllLines) StreamExtensions.ReadAllLines ReadAllLines ### [StreamExtensions.WriteAllText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#WriteAllText) StreamExtensions.WriteAllText WriteAllText ### [StreamExtensions.AsByteMemory](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-streamextensions.html#AsByteMemory) StreamExtensions.AsByteMemory AsByteMemory ### [ByteMemory](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html) ByteMemory A view over bytes. May be backed by managed or unmanaged memory, or memory mapped file. ByteMemory.AsReadOnly AsReadOnly ByteMemory.AsReadOnlyStream AsReadOnlyStream ByteMemory.AsStream AsStream ByteMemory.Copy Copy ByteMemory.CopyTo CopyTo ByteMemory.ReadAllBytes ReadAllBytes ByteMemory.ReadBytes ReadBytes ByteMemory.ReadInt32 ReadInt32 ByteMemory.ReadUInt16 ReadUInt16 ByteMemory.ReadUtf8String ReadUtf8String ByteMemory.Slice Slice ByteMemory.ToArray ToArray ByteMemory.Item Item ByteMemory.Length Length ByteMemory.FromArray FromArray ByteMemory.FromArray FromArray ByteMemory.FromMemoryMappedFile FromMemoryMappedFile ByteMemory.FromUnsafePointer FromUnsafePointer ByteMemory.Empty Empty ### [ByteMemory.AsReadOnly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#AsReadOnly) ByteMemory.AsReadOnly AsReadOnly ### [ByteMemory.AsReadOnlyStream](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#AsReadOnlyStream) ByteMemory.AsReadOnlyStream AsReadOnlyStream Get a stream representation of the backing memory. Disposing this will not free up any of the backing memory. Stream cannot be written to. ### [ByteMemory.AsStream](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#AsStream) ByteMemory.AsStream AsStream Get a stream representation of the backing memory. Disposing this will not free up any of the backing memory. ### [ByteMemory.Copy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#Copy) ByteMemory.Copy Copy ### [ByteMemory.CopyTo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#CopyTo) ByteMemory.CopyTo CopyTo ### [ByteMemory.ReadAllBytes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#ReadAllBytes) ByteMemory.ReadAllBytes ReadAllBytes ### [ByteMemory.ReadBytes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#ReadBytes) ByteMemory.ReadBytes ReadBytes ### [ByteMemory.ReadInt32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#ReadInt32) ByteMemory.ReadInt32 ReadInt32 ### [ByteMemory.ReadUInt16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#ReadUInt16) ByteMemory.ReadUInt16 ReadUInt16 ### [ByteMemory.ReadUtf8String](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#ReadUtf8String) ByteMemory.ReadUtf8String ReadUtf8String ### [ByteMemory.Slice](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#Slice) ByteMemory.Slice Slice ### [ByteMemory.ToArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#ToArray) ByteMemory.ToArray ToArray ### [ByteMemory.Item](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#Item) ByteMemory.Item Item ### [ByteMemory.Length](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#Length) ByteMemory.Length Length ### [ByteMemory.FromArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#FromArray) ByteMemory.FromArray FromArray Creates a ByteMemory object that is backed by a byte array. ### [ByteMemory.FromArray](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#FromArray) ByteMemory.FromArray FromArray Creates a ByteMemory object that is backed by a byte array with the specified offset and length. ### [ByteMemory.FromMemoryMappedFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#FromMemoryMappedFile) ByteMemory.FromMemoryMappedFile FromMemoryMappedFile Create a ByteMemory object that has a backing memory mapped file. ### [ByteMemory.FromUnsafePointer](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#FromUnsafePointer) ByteMemory.FromUnsafePointer FromUnsafePointer Creates a ByteMemory object that is backed by a raw pointer. Use with care. ### [ByteMemory.Empty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-bytememory.html#Empty) ByteMemory.Empty Empty Empty byte memory. ### [DefaultAssemblyLoader](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultassemblyloader.html) DefaultAssemblyLoader Default implementation for IAssemblyLoader DefaultAssemblyLoader.``.ctor`` ``.ctor`` ### [DefaultAssemblyLoader.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultassemblyloader.html#``.ctor``) DefaultAssemblyLoader.``.ctor`` ``.ctor`` ### [DefaultFileSystem](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html) DefaultFileSystem Represents a default (memory-mapped) implementation of the file system DefaultFileSystem.``.ctor`` ``.ctor`` DefaultFileSystem.ChangeExtensionShim ChangeExtensionShim DefaultFileSystem.CopyShim CopyShim DefaultFileSystem.DirectoryCreateShim DirectoryCreateShim DefaultFileSystem.DirectoryDeleteShim DirectoryDeleteShim DefaultFileSystem.DirectoryExistsShim DirectoryExistsShim DefaultFileSystem.EnumerateDirectoriesShim EnumerateDirectoriesShim DefaultFileSystem.EnumerateFilesShim EnumerateFilesShim DefaultFileSystem.FileDeleteShim FileDeleteShim DefaultFileSystem.FileExistsShim FileExistsShim DefaultFileSystem.GetCreationTimeShim GetCreationTimeShim DefaultFileSystem.GetDirectoryNameShim GetDirectoryNameShim DefaultFileSystem.GetFullFilePathInDirectoryShim GetFullFilePathInDirectoryShim DefaultFileSystem.GetFullPathShim GetFullPathShim DefaultFileSystem.GetLastWriteTimeShim GetLastWriteTimeShim DefaultFileSystem.GetTempPathShim GetTempPathShim DefaultFileSystem.IsInvalidPathShim IsInvalidPathShim DefaultFileSystem.IsPathRootedShim IsPathRootedShim DefaultFileSystem.IsStableFileHeuristic IsStableFileHeuristic DefaultFileSystem.NormalizePathShim NormalizePathShim DefaultFileSystem.OpenFileForReadShim OpenFileForReadShim DefaultFileSystem.OpenFileForWriteShim OpenFileForWriteShim DefaultFileSystem.AssemblyLoader AssemblyLoader ### [DefaultFileSystem.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#``.ctor``) DefaultFileSystem.``.ctor`` ``.ctor`` Create a default implementation of the file system ### [DefaultFileSystem.ChangeExtensionShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#ChangeExtensionShim) DefaultFileSystem.ChangeExtensionShim ChangeExtensionShim ### [DefaultFileSystem.CopyShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#CopyShim) DefaultFileSystem.CopyShim CopyShim ### [DefaultFileSystem.DirectoryCreateShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#DirectoryCreateShim) DefaultFileSystem.DirectoryCreateShim DirectoryCreateShim ### [DefaultFileSystem.DirectoryDeleteShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#DirectoryDeleteShim) DefaultFileSystem.DirectoryDeleteShim DirectoryDeleteShim ### [DefaultFileSystem.DirectoryExistsShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#DirectoryExistsShim) DefaultFileSystem.DirectoryExistsShim DirectoryExistsShim ### [DefaultFileSystem.EnumerateDirectoriesShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#EnumerateDirectoriesShim) DefaultFileSystem.EnumerateDirectoriesShim EnumerateDirectoriesShim ### [DefaultFileSystem.EnumerateFilesShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#EnumerateFilesShim) DefaultFileSystem.EnumerateFilesShim EnumerateFilesShim ### [DefaultFileSystem.FileDeleteShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#FileDeleteShim) DefaultFileSystem.FileDeleteShim FileDeleteShim ### [DefaultFileSystem.FileExistsShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#FileExistsShim) DefaultFileSystem.FileExistsShim FileExistsShim ### [DefaultFileSystem.GetCreationTimeShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#GetCreationTimeShim) DefaultFileSystem.GetCreationTimeShim GetCreationTimeShim ### [DefaultFileSystem.GetDirectoryNameShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#GetDirectoryNameShim) DefaultFileSystem.GetDirectoryNameShim GetDirectoryNameShim ### [DefaultFileSystem.GetFullFilePathInDirectoryShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#GetFullFilePathInDirectoryShim) DefaultFileSystem.GetFullFilePathInDirectoryShim GetFullFilePathInDirectoryShim ### [DefaultFileSystem.GetFullPathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#GetFullPathShim) DefaultFileSystem.GetFullPathShim GetFullPathShim ### [DefaultFileSystem.GetLastWriteTimeShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#GetLastWriteTimeShim) DefaultFileSystem.GetLastWriteTimeShim GetLastWriteTimeShim ### [DefaultFileSystem.GetTempPathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#GetTempPathShim) DefaultFileSystem.GetTempPathShim GetTempPathShim ### [DefaultFileSystem.IsInvalidPathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#IsInvalidPathShim) DefaultFileSystem.IsInvalidPathShim IsInvalidPathShim ### [DefaultFileSystem.IsPathRootedShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#IsPathRootedShim) DefaultFileSystem.IsPathRootedShim IsPathRootedShim ### [DefaultFileSystem.IsStableFileHeuristic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#IsStableFileHeuristic) DefaultFileSystem.IsStableFileHeuristic IsStableFileHeuristic ### [DefaultFileSystem.NormalizePathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#NormalizePathShim) DefaultFileSystem.NormalizePathShim NormalizePathShim ### [DefaultFileSystem.OpenFileForReadShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#OpenFileForReadShim) DefaultFileSystem.OpenFileForReadShim OpenFileForReadShim ### [DefaultFileSystem.OpenFileForWriteShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#OpenFileForWriteShim) DefaultFileSystem.OpenFileForWriteShim OpenFileForWriteShim ### [DefaultFileSystem.AssemblyLoader](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-defaultfilesystem.html#AssemblyLoader) DefaultFileSystem.AssemblyLoader AssemblyLoader ### [IAssemblyLoader](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-iassemblyloader.html) IAssemblyLoader Type which we use to load assemblies. IAssemblyLoader.AssemblyLoad AssemblyLoad IAssemblyLoader.AssemblyLoadFrom AssemblyLoadFrom ### [IAssemblyLoader.AssemblyLoad](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-iassemblyloader.html#AssemblyLoad) IAssemblyLoader.AssemblyLoad AssemblyLoad Used to load a dependency for F# Interactive and in an unused corner-case of type provider loading ### [IAssemblyLoader.AssemblyLoadFrom](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-iassemblyloader.html#AssemblyLoadFrom) IAssemblyLoader.AssemblyLoadFrom AssemblyLoadFrom Used to load type providers and located assemblies in F# Interactive ### [IFileSystem](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html) IFileSystem Represents a shim for the file system IFileSystem.ChangeExtensionShim ChangeExtensionShim IFileSystem.CopyShim CopyShim IFileSystem.DirectoryCreateShim DirectoryCreateShim IFileSystem.DirectoryDeleteShim DirectoryDeleteShim IFileSystem.DirectoryExistsShim DirectoryExistsShim IFileSystem.EnumerateDirectoriesShim EnumerateDirectoriesShim IFileSystem.EnumerateFilesShim EnumerateFilesShim IFileSystem.FileDeleteShim FileDeleteShim IFileSystem.FileExistsShim FileExistsShim IFileSystem.GetCreationTimeShim GetCreationTimeShim IFileSystem.GetDirectoryNameShim GetDirectoryNameShim IFileSystem.GetFullFilePathInDirectoryShim GetFullFilePathInDirectoryShim IFileSystem.GetFullPathShim GetFullPathShim IFileSystem.GetLastWriteTimeShim GetLastWriteTimeShim IFileSystem.GetTempPathShim GetTempPathShim IFileSystem.IsInvalidPathShim IsInvalidPathShim IFileSystem.IsPathRootedShim IsPathRootedShim IFileSystem.IsStableFileHeuristic IsStableFileHeuristic IFileSystem.NormalizePathShim NormalizePathShim IFileSystem.OpenFileForReadShim OpenFileForReadShim IFileSystem.OpenFileForWriteShim OpenFileForWriteShim IFileSystem.AssemblyLoader AssemblyLoader ### [IFileSystem.ChangeExtensionShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#ChangeExtensionShim) IFileSystem.ChangeExtensionShim ChangeExtensionShim A shim over Path.ChangeExtension ### [IFileSystem.CopyShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#CopyShim) IFileSystem.CopyShim CopyShim ### [IFileSystem.DirectoryCreateShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#DirectoryCreateShim) IFileSystem.DirectoryCreateShim DirectoryCreateShim A shim over Directory.Exists, but returns a string, the FullName of the resulting DirectoryInfo. ### [IFileSystem.DirectoryDeleteShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#DirectoryDeleteShim) IFileSystem.DirectoryDeleteShim DirectoryDeleteShim A shim over Directory.Delete ### [IFileSystem.DirectoryExistsShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#DirectoryExistsShim) IFileSystem.DirectoryExistsShim DirectoryExistsShim A shim over Directory.Exists ### [IFileSystem.EnumerateDirectoriesShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#EnumerateDirectoriesShim) IFileSystem.EnumerateDirectoriesShim EnumerateDirectoriesShim A shim over Directory.EnumerateDirectories ### [IFileSystem.EnumerateFilesShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#EnumerateFilesShim) IFileSystem.EnumerateFilesShim EnumerateFilesShim A shim over Directory.EnumerateFiles ### [IFileSystem.FileDeleteShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#FileDeleteShim) IFileSystem.FileDeleteShim FileDeleteShim A shim over File.Delete ### [IFileSystem.FileExistsShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#FileExistsShim) IFileSystem.FileExistsShim FileExistsShim A shim over File.Exists ### [IFileSystem.GetCreationTimeShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#GetCreationTimeShim) IFileSystem.GetCreationTimeShim GetCreationTimeShim ### [IFileSystem.GetDirectoryNameShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#GetDirectoryNameShim) IFileSystem.GetDirectoryNameShim GetDirectoryNameShim A shim for getting directory name from path ### [IFileSystem.GetFullFilePathInDirectoryShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#GetFullFilePathInDirectoryShim) IFileSystem.GetFullFilePathInDirectoryShim GetFullFilePathInDirectoryShim Take in a directory, filename, and return canonicalized path to the file name in directory. If file name path is rooted, ignores directory and returns file name path. Otherwise, combines directory with file name and gets full path via GetFullPathShim(string). ### [IFileSystem.GetFullPathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#GetFullPathShim) IFileSystem.GetFullPathShim GetFullPathShim Take in a file name with an absolute path, and return the same file name but canonicalized with respect to extra path separators (e.g. C:\\\\foo.txt) and '..' portions ### [IFileSystem.GetLastWriteTimeShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#GetLastWriteTimeShim) IFileSystem.GetLastWriteTimeShim GetLastWriteTimeShim Utc time of the last modification ### [IFileSystem.GetTempPathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#GetTempPathShim) IFileSystem.GetTempPathShim GetTempPathShim A shim over Path.GetTempPath ### [IFileSystem.IsInvalidPathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#IsInvalidPathShim) IFileSystem.IsInvalidPathShim IsInvalidPathShim A shim over Path.IsInvalidPath ### [IFileSystem.IsPathRootedShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#IsPathRootedShim) IFileSystem.IsPathRootedShim IsPathRootedShim A shim over Path.IsPathRooted ### [IFileSystem.IsStableFileHeuristic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#IsStableFileHeuristic) IFileSystem.IsStableFileHeuristic IsStableFileHeuristic Used to determine if a file will not be subject to deletion during the lifetime of a typical client process. ### [IFileSystem.NormalizePathShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#NormalizePathShim) IFileSystem.NormalizePathShim NormalizePathShim Removes relative parts from any full paths ### [IFileSystem.OpenFileForReadShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#OpenFileForReadShim) IFileSystem.OpenFileForReadShim OpenFileForReadShim Open the file for read, returns ByteMemory, uses either FileStream (for smaller files) or MemoryMappedFile (for potentially big files, such as dlls). ### [IFileSystem.OpenFileForWriteShim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#OpenFileForWriteShim) IFileSystem.OpenFileForWriteShim OpenFileForWriteShim Open the file for writing. Returns a Stream. ### [IFileSystem.AssemblyLoader](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-io-ifilesystem.html#AssemblyLoader) IFileSystem.AssemblyLoader AssemblyLoader ### [PrettyNaming](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html) PrettyNaming Some general F# utilities for mangling / unmangling / manipulating names. Anything to do with special names of identifiers and other lexical rules PrettyNaming.IsOperatorDisplayName IsOperatorDisplayName PrettyNaming.IsIdentifierName IsIdentifierName PrettyNaming.IsActivePatternName IsActivePatternName PrettyNaming.DoesIdentifierNeedBackticks DoesIdentifierNeedBackticks PrettyNaming.NormalizeIdentifierBackticks NormalizeIdentifierBackticks PrettyNaming.IsLogicalOpName IsLogicalOpName PrettyNaming.CompileOpName CompileOpName PrettyNaming.ConvertValLogicalNameToDisplayNameCore ConvertValLogicalNameToDisplayNameCore PrettyNaming.IsIdentifierFirstCharacter IsIdentifierFirstCharacter PrettyNaming.IsIdentifierPartCharacter IsIdentifierPartCharacter PrettyNaming.IsLongIdentifierPartCharacter IsLongIdentifierPartCharacter PrettyNaming.IsLogicalPrefixOperator IsLogicalPrefixOperator PrettyNaming.IsLogicalInfixOpName IsLogicalInfixOpName PrettyNaming.IsLogicalTernaryOperator IsLogicalTernaryOperator PrettyNaming.IsPunctuation IsPunctuation PrettyNaming.IsCompilerGeneratedName IsCompilerGeneratedName PrettyNaming.TryChopPropertyName TryChopPropertyName PrettyNaming.FsiDynamicModulePrefix FsiDynamicModulePrefix PrettyNaming.GetLongNameFromString GetLongNameFromString PrettyNaming.FormatAndOtherOverloadsString FormatAndOtherOverloadsString PrettyNaming.FSharpSignatureDataResourceName2 FSharpSignatureDataResourceName2 ### [PrettyNaming.IsOperatorDisplayName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsOperatorDisplayName) PrettyNaming.IsOperatorDisplayName IsOperatorDisplayName
 Returns `true` if given string is an operator display name, e.g.
    ( |>> )
    |>>
    ..
### [PrettyNaming.IsIdentifierName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsIdentifierName) PrettyNaming.IsIdentifierName IsIdentifierName
 Is the name a valid F# identifier, primarily used internally in PrettyNaming.fs for determining if an
 identifier needs backticks.

 In general do not use this routine. It is only used in one quick fix, for determining if it is valid
 to add "_" in front of an identifier.

     A            --> true
     A'           --> true
     _A           --> true
     A0           --> true
     |A|B|        --> false
     op_Addition  --> true
     +            --> false
     let          --> false
     base         --> false

 TBD: needs unit testing
### [PrettyNaming.IsActivePatternName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsActivePatternName) PrettyNaming.IsActivePatternName IsActivePatternName
 Determines if the specified name is a valid name for an active pattern.
     |A|_|        --> true
     |A|B|        --> true
     |A|          --> true
     |            --> false
     ||           --> false
     op_Addition  --> false

 TBD: needs unit testing
### [PrettyNaming.DoesIdentifierNeedBackticks](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#DoesIdentifierNeedBackticks) PrettyNaming.DoesIdentifierNeedBackticks DoesIdentifierNeedBackticks ### [PrettyNaming.NormalizeIdentifierBackticks](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#NormalizeIdentifierBackticks) PrettyNaming.NormalizeIdentifierBackticks NormalizeIdentifierBackticks
 Adds double backticks if necessary to make a valid identifier, e.g.
     op_Addition  -->  op_Addition
     +            -->  ``+``    (this is not op_Addition)
     |>>          -->  ``|>>``  (this is not an op_)
     A-B          -->  ``A-B``
     AB           -->  AB
     |A|_|        -->  |A|_|    this is an active pattern name, needs parens not backticks
 Removes double backticks if not necessary to make a valid identifier, e.g.
     ``A``        --> A
     ``A-B``      --> ``A-B``
### [PrettyNaming.IsLogicalOpName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsLogicalOpName) PrettyNaming.IsLogicalOpName IsLogicalOpName
 Is the name a logical operator name, including unary, binary and ternary operators
    op_UnaryPlus         - yes
    op_Addition          - yes
    op_Range             - yes (?)
    op_RangeStep         - yes (?)
    op_DynamicAssignment - yes
    op_Quack             - no
    +                    - no
    ABC                  - no
    ABC DEF              - no
    base                 - no
    |A|_|                - no
### [PrettyNaming.CompileOpName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#CompileOpName) PrettyNaming.CompileOpName CompileOpName
 Converts the core of an operator name into a logical name. For example,
    +  --> op_Addition
    !%  --> op_DereferencePercent
 Only used on actual operator names
### [PrettyNaming.ConvertValLogicalNameToDisplayNameCore](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#ConvertValLogicalNameToDisplayNameCore) PrettyNaming.ConvertValLogicalNameToDisplayNameCore ConvertValLogicalNameToDisplayNameCore
 Converts the logical name for and operator back into the core of a display name. For example:
     Foo                   --> Foo
     +                     --> +
     op_Addition           --> +
     op_DereferencePercent --> !%
     A-B                   --> A-B
     |A|_|                 --> |A|_|
     base                  --> base        regardless of IsBaseVal
 Used on names of all kinds

 TODO: We should assess uses of this function.

 In any cases it is used it probably indicates that text is being
 generated which:
    1. does not contain double-backticks for non-identifiers
    2. does not put parentheses around operators or active pattern names

 If the text is immediately in quotes, this is generally ok, e.g.

         error FS0038: '+' is bound twice in this pattern
         error FS0038: '|A|_|' is bound twice in this pattern
         error FS0038: 'a a' is bound twice in this pattern

 If not, the it is likely this should be replaced by ConvertValLogicalNameToDisplayName.
### [PrettyNaming.IsIdentifierFirstCharacter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsIdentifierFirstCharacter) PrettyNaming.IsIdentifierFirstCharacter IsIdentifierFirstCharacter The characters that are allowed to be the first character of an identifier. ### [PrettyNaming.IsIdentifierPartCharacter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsIdentifierPartCharacter) PrettyNaming.IsIdentifierPartCharacter IsIdentifierPartCharacter The characters that are allowed to be in an identifier. ### [PrettyNaming.IsLongIdentifierPartCharacter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsLongIdentifierPartCharacter) PrettyNaming.IsLongIdentifierPartCharacter IsLongIdentifierPartCharacter Is this character a part of a long identifier? ### [PrettyNaming.IsLogicalPrefixOperator](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsLogicalPrefixOperator) PrettyNaming.IsLogicalPrefixOperator IsLogicalPrefixOperator ### [PrettyNaming.IsLogicalInfixOpName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsLogicalInfixOpName) PrettyNaming.IsLogicalInfixOpName IsLogicalInfixOpName ### [PrettyNaming.IsLogicalTernaryOperator](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsLogicalTernaryOperator) PrettyNaming.IsLogicalTernaryOperator IsLogicalTernaryOperator ### [PrettyNaming.IsPunctuation](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsPunctuation) PrettyNaming.IsPunctuation IsPunctuation ### [PrettyNaming.IsCompilerGeneratedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#IsCompilerGeneratedName) PrettyNaming.IsCompilerGeneratedName IsCompilerGeneratedName ### [PrettyNaming.TryChopPropertyName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#TryChopPropertyName) PrettyNaming.TryChopPropertyName TryChopPropertyName Try to chop "get_" or "set_" from a string ### [PrettyNaming.FsiDynamicModulePrefix](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#FsiDynamicModulePrefix) PrettyNaming.FsiDynamicModulePrefix FsiDynamicModulePrefix The prefix of the names used for the fake namespace path added to all dynamic code entries in FSI.EXE ### [PrettyNaming.GetLongNameFromString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#GetLongNameFromString) PrettyNaming.GetLongNameFromString GetLongNameFromString ### [PrettyNaming.FormatAndOtherOverloadsString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#FormatAndOtherOverloadsString) PrettyNaming.FormatAndOtherOverloadsString FormatAndOtherOverloadsString ### [PrettyNaming.FSharpSignatureDataResourceName2](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-prettynaming.html#FSharpSignatureDataResourceName2) PrettyNaming.FSharpSignatureDataResourceName2 FSharpSignatureDataResourceName2 ### [SynLongIdentHelpers](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongidenthelpers.html) SynLongIdentHelpers SynLongIdentHelpers.LongIdentWithDots LongIdentWithDots SynLongIdentHelpers.(|LongIdentWithDots|) (|LongIdentWithDots|) ### [SynLongIdentHelpers.LongIdentWithDots](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongidenthelpers.html#LongIdentWithDots) SynLongIdentHelpers.LongIdentWithDots LongIdentWithDots ### [SynLongIdentHelpers.(|LongIdentWithDots|)](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongidenthelpers.html#(|LongIdentWithDots|)) SynLongIdentHelpers.(|LongIdentWithDots|) (|LongIdentWithDots|) ### [BlockSeparator](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-blockseparator.html) BlockSeparator Represents the location of the separator block + optional position of the semicolon (used for tooling support) ### [DebugPointAtBinding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html) DebugPointAtBinding Represents whether a debug point should be present for a 'let' binding, that is whether the construct corresponds to a debug point in the original source. DebugPointAtBinding.Combine Combine DebugPointAtBinding.Yes Yes DebugPointAtBinding.NoneAtDo NoneAtDo DebugPointAtBinding.NoneAtLet NoneAtLet DebugPointAtBinding.NoneAtSticky NoneAtSticky DebugPointAtBinding.NoneAtInvisible NoneAtInvisible ### [DebugPointAtBinding.Combine](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html#Combine) DebugPointAtBinding.Combine Combine ### [DebugPointAtBinding.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html#Yes) DebugPointAtBinding.Yes Yes ### [DebugPointAtBinding.NoneAtDo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html#NoneAtDo) DebugPointAtBinding.NoneAtDo NoneAtDo ### [DebugPointAtBinding.NoneAtLet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html#NoneAtLet) DebugPointAtBinding.NoneAtLet NoneAtLet ### [DebugPointAtBinding.NoneAtSticky](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html#NoneAtSticky) DebugPointAtBinding.NoneAtSticky NoneAtSticky ### [DebugPointAtBinding.NoneAtInvisible](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatbinding.html#NoneAtInvisible) DebugPointAtBinding.NoneAtInvisible NoneAtInvisible ### [DebugPointAtFinally](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatfinally.html) DebugPointAtFinally Represents whether a debug point should be present for the 'finally' in a 'try .. finally', that is whether the construct corresponds to a debug point in the original source. DebugPointAtFinally.Yes Yes DebugPointAtFinally.No No ### [DebugPointAtFinally.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatfinally.html#Yes) DebugPointAtFinally.Yes Yes ### [DebugPointAtFinally.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatfinally.html#No) DebugPointAtFinally.No No ### [DebugPointAtFor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatfor.html) DebugPointAtFor Represents whether a debug point should be present for the 'for' in a 'for...' loop, that is whether the construct corresponds to a debug point in the original source. DebugPointAtFor.Yes Yes DebugPointAtFor.No No ### [DebugPointAtFor.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatfor.html#Yes) DebugPointAtFor.Yes Yes ### [DebugPointAtFor.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatfor.html#No) DebugPointAtFor.No No ### [DebugPointAtInOrTo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatinorto.html) DebugPointAtInOrTo Represents whether a debug point should be present for the 'in' or 'to' of a 'for...' loop, that is whether the construct corresponds to a debug point in the original source. DebugPointAtInOrTo.Yes Yes DebugPointAtInOrTo.No No ### [DebugPointAtInOrTo.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatinorto.html#Yes) DebugPointAtInOrTo.Yes Yes ### [DebugPointAtInOrTo.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatinorto.html#No) DebugPointAtInOrTo.No No ### [DebugPointAtLeafExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatleafexpr.html) DebugPointAtLeafExpr Represents a debug point at a leaf expression (e.g. an application or constant). DebugPointAtLeafExpr.Yes Yes ### [DebugPointAtLeafExpr.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatleafexpr.html#Yes) DebugPointAtLeafExpr.Yes Yes ### [DebugPointAtSequential](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatsequential.html) DebugPointAtSequential Represents whether a debug point should be suppressed for either the first or second part of a sequential execution, that is whether the construct corresponds to a debug point in the original source. DebugPointAtSequential.SuppressNeither SuppressNeither DebugPointAtSequential.SuppressStmt SuppressStmt DebugPointAtSequential.SuppressBoth SuppressBoth DebugPointAtSequential.SuppressExpr SuppressExpr ### [DebugPointAtSequential.SuppressNeither](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatsequential.html#SuppressNeither) DebugPointAtSequential.SuppressNeither SuppressNeither ### [DebugPointAtSequential.SuppressStmt](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatsequential.html#SuppressStmt) DebugPointAtSequential.SuppressStmt SuppressStmt ### [DebugPointAtSequential.SuppressBoth](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatsequential.html#SuppressBoth) DebugPointAtSequential.SuppressBoth SuppressBoth ### [DebugPointAtSequential.SuppressExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatsequential.html#SuppressExpr) DebugPointAtSequential.SuppressExpr SuppressExpr ### [DebugPointAtTarget](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointattarget.html) DebugPointAtTarget Represents whether a debug point should be present for the target of a decision tree, that is whether the construct corresponds to a debug point in the original source. DebugPointAtTarget.Yes Yes DebugPointAtTarget.No No ### [DebugPointAtTarget.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointattarget.html#Yes) DebugPointAtTarget.Yes Yes ### [DebugPointAtTarget.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointattarget.html#No) DebugPointAtTarget.No No ### [DebugPointAtTry](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointattry.html) DebugPointAtTry Represents whether a debug point should be present for a 'try', that is whether the construct corresponds to a debug point in the original source. DebugPointAtTry.Yes Yes DebugPointAtTry.No No ### [DebugPointAtTry.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointattry.html#Yes) DebugPointAtTry.Yes Yes ### [DebugPointAtTry.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointattry.html#No) DebugPointAtTry.No No ### [DebugPointAtWhile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatwhile.html) DebugPointAtWhile Represents whether a debug point should be present for the 'while' in a 'while...' loop, that is whether the construct corresponds to a debug point in the original source. DebugPointAtWhile.Yes Yes DebugPointAtWhile.No No ### [DebugPointAtWhile.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatwhile.html#Yes) DebugPointAtWhile.Yes Yes ### [DebugPointAtWhile.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatwhile.html#No) DebugPointAtWhile.No No ### [DebugPointAtWith](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatwith.html) DebugPointAtWith Represents whether a debug point should be present for the 'with' in a 'try .. with', that is whether the construct corresponds to a debug point in the original source. DebugPointAtWith.Yes Yes DebugPointAtWith.No No ### [DebugPointAtWith.Yes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatwith.html#Yes) DebugPointAtWith.Yes Yes ### [DebugPointAtWith.No](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-debugpointatwith.html#No) DebugPointAtWith.No No ### [ExprAtomicFlag](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-expratomicflag.html) ExprAtomicFlag Indicates if an expression is an atomic expression. An atomic expression has no whitespace unless enclosed in parentheses, e.g. 1, "3", ident, ident.[expr] and (expr). If an atomic expression has type T, then the largest expression ending at the same range as the atomic expression also has type T. ExprAtomicFlag.Atomic Atomic ExprAtomicFlag.NonAtomic NonAtomic ### [ExprAtomicFlag.Atomic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-expratomicflag.html#Atomic) ExprAtomicFlag.Atomic Atomic ### [ExprAtomicFlag.NonAtomic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-expratomicflag.html#NonAtomic) ExprAtomicFlag.NonAtomic NonAtomic ### [Ident](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-ident.html) Ident Represents an identifier in F# code Ident.``.ctor`` ``.ctor`` Ident.idRange idRange Ident.idText idText ### [Ident.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-ident.html#``.ctor``) Ident.``.ctor`` ``.ctor`` ### [Ident.idRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-ident.html#idRange) Ident.idRange idRange ### [Ident.idText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-ident.html#idText) Ident.idText idText ### [LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-longident.html) LongIdent Represents a long identifier e.g. 'A.B.C' ### [NamePatPairField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-namepatpairfield.html) NamePatPairField Represents a single named argument pattern a pair of the form `name = pattern`. NamePatPairField.Range Range NamePatPairField.Pattern Pattern NamePatPairField.FieldName FieldName NamePatPairField.NamePatPairField NamePatPairField ### [NamePatPairField.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-namepatpairfield.html#Range) NamePatPairField.Range Range Gets the overall range of this name–pattern pair, if available. ### [NamePatPairField.Pattern](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-namepatpairfield.html#Pattern) NamePatPairField.Pattern Pattern Gets the pattern associated with the named field. ### [NamePatPairField.FieldName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-namepatpairfield.html#FieldName) NamePatPairField.FieldName FieldName Gets the identifier of the named field/parameter. ### [NamePatPairField.NamePatPairField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-namepatpairfield.html#NamePatPairField) NamePatPairField.NamePatPairField NamePatPairField ### [ParsedHashDirective](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirective.html) ParsedHashDirective Represents a parsed hash directive ParsedHashDirective.ParsedHashDirective ParsedHashDirective ### [ParsedHashDirective.ParsedHashDirective](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirective.html#ParsedHashDirective) ParsedHashDirective.ParsedHashDirective ParsedHashDirective ### [ParsedHashDirectiveArgument](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html) ParsedHashDirectiveArgument Represents a parsed hash directive argument ParsedHashDirectiveArgument.Range Range ParsedHashDirectiveArgument.Ident Ident ParsedHashDirectiveArgument.Int32 Int32 ParsedHashDirectiveArgument.LongIdent LongIdent ParsedHashDirectiveArgument.String String ParsedHashDirectiveArgument.SourceIdentifier SourceIdentifier ### [ParsedHashDirectiveArgument.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html#Range) ParsedHashDirectiveArgument.Range Range Gets the syntax range of this construct ### [ParsedHashDirectiveArgument.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html#Ident) ParsedHashDirectiveArgument.Ident Ident ### [ParsedHashDirectiveArgument.Int32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html#Int32) ParsedHashDirectiveArgument.Int32 Int32 ### [ParsedHashDirectiveArgument.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html#LongIdent) ParsedHashDirectiveArgument.LongIdent LongIdent ### [ParsedHashDirectiveArgument.String](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html#String) ParsedHashDirectiveArgument.String String ### [ParsedHashDirectiveArgument.SourceIdentifier](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedhashdirectiveargument.html#SourceIdentifier) ParsedHashDirectiveArgument.SourceIdentifier SourceIdentifier ### [ParsedImplFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfile.html) ParsedImplFile Represents a parsed implementation file made up of fragments ParsedImplFile.ParsedImplFile ParsedImplFile ### [ParsedImplFile.ParsedImplFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfile.html#ParsedImplFile) ParsedImplFile.ParsedImplFile ParsedImplFile ### [ParsedImplFileFragment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfilefragment.html) ParsedImplFileFragment Represents the syntax tree for the contents of a parsed implementation file ParsedImplFileFragment.AnonModule AnonModule ParsedImplFileFragment.NamedModule NamedModule ParsedImplFileFragment.NamespaceFragment NamespaceFragment ### [ParsedImplFileFragment.AnonModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfilefragment.html#AnonModule) ParsedImplFileFragment.AnonModule AnonModule An implementation file which is an anonymous module definition, e.g. a script ### [ParsedImplFileFragment.NamedModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfilefragment.html#NamedModule) ParsedImplFileFragment.NamedModule NamedModule An implementation file is a named module definition, 'module N' ### [ParsedImplFileFragment.NamespaceFragment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfilefragment.html#NamespaceFragment) ParsedImplFileFragment.NamespaceFragment NamespaceFragment An implementation file fragment which declares a namespace fragment ### [ParsedImplFileInput](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html) ParsedImplFileInput Represents the full syntax tree, file name and other parsing information for an implementation file ParsedImplFileInput.FileName FileName ParsedImplFileInput.Trivia Trivia ParsedImplFileInput.QualifiedName QualifiedName ParsedImplFileInput.IsScript IsScript ParsedImplFileInput.IsExe IsExe ParsedImplFileInput.Contents Contents ParsedImplFileInput.IsLastCompiland IsLastCompiland ParsedImplFileInput.HashDirectives HashDirectives ParsedImplFileInput.ParsedImplFileInput ParsedImplFileInput ### [ParsedImplFileInput.FileName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#FileName) ParsedImplFileInput.FileName FileName ### [ParsedImplFileInput.Trivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#Trivia) ParsedImplFileInput.Trivia Trivia ### [ParsedImplFileInput.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#QualifiedName) ParsedImplFileInput.QualifiedName QualifiedName ### [ParsedImplFileInput.IsScript](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#IsScript) ParsedImplFileInput.IsScript IsScript ### [ParsedImplFileInput.IsExe](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#IsExe) ParsedImplFileInput.IsExe IsExe ### [ParsedImplFileInput.Contents](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#Contents) ParsedImplFileInput.Contents Contents ### [ParsedImplFileInput.IsLastCompiland](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#IsLastCompiland) ParsedImplFileInput.IsLastCompiland IsLastCompiland ### [ParsedImplFileInput.HashDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#HashDirectives) ParsedImplFileInput.HashDirectives HashDirectives ### [ParsedImplFileInput.ParsedImplFileInput](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedimplfileinput.html#ParsedImplFileInput) ParsedImplFileInput.ParsedImplFileInput ParsedImplFileInput ### [ParsedInput](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html) ParsedInput Represents the syntax tree for a parsed implementation or signature file ParsedInput.FileName FileName ParsedInput.QualifiedName QualifiedName ParsedInput.Range Range ParsedInput.Identifiers Identifiers ParsedInput.ImplFile ImplFile ParsedInput.SigFile SigFile ### [ParsedInput.FileName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html#FileName) ParsedInput.FileName FileName Gets the file name for the parsed input ### [ParsedInput.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html#QualifiedName) ParsedInput.QualifiedName QualifiedName Gets the qualified name used to help match signature and implementation files ### [ParsedInput.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html#Range) ParsedInput.Range Range Gets the syntax range of this construct ### [ParsedInput.Identifiers](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html#Identifiers) ParsedInput.Identifiers Identifiers Gets a set of all identifiers used in this parsed input. Only populated if captureIdentifiersWhenParsing option was used. ### [ParsedInput.ImplFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html#ImplFile) ParsedInput.ImplFile ImplFile A parsed implementation file ### [ParsedInput.SigFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedinput.html#SigFile) ParsedInput.SigFile SigFile A parsed signature file ### [ParsedScriptInteraction](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedscriptinteraction.html) ParsedScriptInteraction Represents a parsed syntax tree for an F# Interactive interaction ParsedScriptInteraction.Definitions Definitions ### [ParsedScriptInteraction.Definitions](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedscriptinteraction.html#Definitions) ParsedScriptInteraction.Definitions Definitions ### [ParsedSigFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfile.html) ParsedSigFile Represents a parsed signature file made up of fragments ParsedSigFile.ParsedSigFile ParsedSigFile ### [ParsedSigFile.ParsedSigFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfile.html#ParsedSigFile) ParsedSigFile.ParsedSigFile ParsedSigFile ### [ParsedSigFileFragment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfilefragment.html) ParsedSigFileFragment Represents the syntax tree for the contents of a parsed signature file ParsedSigFileFragment.AnonModule AnonModule ParsedSigFileFragment.NamedModule NamedModule ParsedSigFileFragment.NamespaceFragment NamespaceFragment ### [ParsedSigFileFragment.AnonModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfilefragment.html#AnonModule) ParsedSigFileFragment.AnonModule AnonModule A signature file which is an anonymous module, e.g. the signature file for the final file in an application ### [ParsedSigFileFragment.NamedModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfilefragment.html#NamedModule) ParsedSigFileFragment.NamedModule NamedModule A signature file which is a module, 'module N' ### [ParsedSigFileFragment.NamespaceFragment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfilefragment.html#NamespaceFragment) ParsedSigFileFragment.NamespaceFragment NamespaceFragment A signature file namespace fragment ### [ParsedSigFileInput](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html) ParsedSigFileInput Represents the full syntax tree, file name and other parsing information for a signature file ParsedSigFileInput.FileName FileName ParsedSigFileInput.Trivia Trivia ParsedSigFileInput.QualifiedName QualifiedName ParsedSigFileInput.Contents Contents ParsedSigFileInput.HashDirectives HashDirectives ParsedSigFileInput.ParsedSigFileInput ParsedSigFileInput ### [ParsedSigFileInput.FileName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html#FileName) ParsedSigFileInput.FileName FileName ### [ParsedSigFileInput.Trivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html#Trivia) ParsedSigFileInput.Trivia Trivia ### [ParsedSigFileInput.QualifiedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html#QualifiedName) ParsedSigFileInput.QualifiedName QualifiedName ### [ParsedSigFileInput.Contents](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html#Contents) ParsedSigFileInput.Contents Contents ### [ParsedSigFileInput.HashDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html#HashDirectives) ParsedSigFileInput.HashDirectives HashDirectives ### [ParsedSigFileInput.ParsedSigFileInput](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parsedsigfileinput.html#ParsedSigFileInput) ParsedSigFileInput.ParsedSigFileInput ParsedSigFileInput ### [ParserDetail](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parserdetail.html) ParserDetail Indicates if the construct arises from error recovery ParserDetail.Ok Ok ParserDetail.ErrorRecovery ErrorRecovery ### [ParserDetail.Ok](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parserdetail.html#Ok) ParserDetail.Ok Ok The construct arises normally ### [ParserDetail.ErrorRecovery](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-parserdetail.html#ErrorRecovery) ParserDetail.ErrorRecovery ErrorRecovery The construct arises from error recovery ### [QualifiedNameOfFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-qualifiednameoffile.html) QualifiedNameOfFile Represents a qualifying name for anonymous module specifications and implementations, QualifiedNameOfFile.Text Text QualifiedNameOfFile.Range Range QualifiedNameOfFile.Id Id QualifiedNameOfFile.QualifiedNameOfFile QualifiedNameOfFile ### [QualifiedNameOfFile.Text](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-qualifiednameoffile.html#Text) QualifiedNameOfFile.Text Text The name of the file ### [QualifiedNameOfFile.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-qualifiednameoffile.html#Range) QualifiedNameOfFile.Range Range Gets the syntax range of this construct ### [QualifiedNameOfFile.Id](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-qualifiednameoffile.html#Id) QualifiedNameOfFile.Id Id The identifier for the name of the file ### [QualifiedNameOfFile.QualifiedNameOfFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-qualifiednameoffile.html#QualifiedNameOfFile) QualifiedNameOfFile.QualifiedNameOfFile QualifiedNameOfFile ### [RecordBinding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-recordbinding.html) RecordBinding Represents either a record field name or a spread expression. RecordBinding.Field Field RecordBinding.Spread Spread ### [RecordBinding.Field](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-recordbinding.html#Field) RecordBinding.Field Field ### [RecordBinding.Spread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-recordbinding.html#Spread) RecordBinding.Spread Spread ### [RecordFieldName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-recordfieldname.html) RecordFieldName Represents a record field name plus a flag indicating if given record field name is syntactically correct and can be used in name resolution. ### [SeqExprOnly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-seqexpronly.html) SeqExprOnly Indicates if a for loop is 'for x in e1 -> e2', only valid in sequence expressions SeqExprOnly.SeqExprOnly SeqExprOnly ### [SeqExprOnly.SeqExprOnly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-seqexpronly.html#SeqExprOnly) SeqExprOnly.SeqExprOnly SeqExprOnly Indicates if a for loop is 'for x in e1 -> e2', only valid in sequence expressions ### [SynAccess](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synaccess.html) SynAccess Represents an accessibility modifier in F# syntax SynAccess.Range Range SynAccess.Public Public SynAccess.Internal Internal SynAccess.Private Private ### [SynAccess.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synaccess.html#Range) SynAccess.Range Range ### [SynAccess.Public](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synaccess.html#Public) SynAccess.Public Public A construct marked or assumed 'public' ### [SynAccess.Internal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synaccess.html#Internal) SynAccess.Internal Internal A construct marked or assumed 'internal' ### [SynAccess.Private](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synaccess.html#Private) SynAccess.Private Private A construct marked or assumed 'private' ### [SynArgInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synarginfo.html) SynArgInfo Represents the argument names and other metadata for a parameter for a member or function SynArgInfo.Attributes Attributes SynArgInfo.Ident Ident SynArgInfo.SynArgInfo SynArgInfo ### [SynArgInfo.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synarginfo.html#Attributes) SynArgInfo.Attributes Attributes ### [SynArgInfo.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synarginfo.html#Ident) SynArgInfo.Ident Ident ### [SynArgInfo.SynArgInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synarginfo.html#SynArgInfo) SynArgInfo.SynArgInfo SynArgInfo ### [SynArgPats](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synargpats.html) SynArgPats Represents a syntax tree for arguments patterns SynArgPats.Patterns Patterns SynArgPats.Pats Pats SynArgPats.NamePatPairs NamePatPairs ### [SynArgPats.Patterns](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synargpats.html#Patterns) SynArgPats.Patterns Patterns ### [SynArgPats.Pats](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synargpats.html#Pats) SynArgPats.Pats Pats ### [SynArgPats.NamePatPairs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synargpats.html#NamePatPairs) SynArgPats.NamePatPairs NamePatPairs ### [SynAttribute](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattribute.html) SynAttribute Represents an attribute SynAttribute.TypeName TypeName SynAttribute.ArgExpr ArgExpr SynAttribute.Target Target SynAttribute.AppliesToGetterAndSetter AppliesToGetterAndSetter SynAttribute.Range Range ### [SynAttribute.TypeName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattribute.html#TypeName) SynAttribute.TypeName TypeName The name of the type for the attribute ### [SynAttribute.ArgExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattribute.html#ArgExpr) SynAttribute.ArgExpr ArgExpr The argument of the attribute, perhaps a tuple ### [SynAttribute.Target](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattribute.html#Target) SynAttribute.Target Target Target specifier, e.g. "assembly", "module", etc. ### [SynAttribute.AppliesToGetterAndSetter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattribute.html#AppliesToGetterAndSetter) SynAttribute.AppliesToGetterAndSetter AppliesToGetterAndSetter Is this attribute being applied to a property getter or setter? ### [SynAttribute.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattribute.html#Range) SynAttribute.Range Range The syntax range of the attribute ### [SynAttributeList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattributelist.html) SynAttributeList List of attributes enclosed in [< ... >]. SynAttributeList.Attributes Attributes SynAttributeList.Range Range ### [SynAttributeList.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattributelist.html#Attributes) SynAttributeList.Attributes Attributes The list of attributes ### [SynAttributeList.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattributelist.html#Range) SynAttributeList.Range Range The syntax range of the list of attributes ### [SynAttributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synattributes.html) SynAttributes ### [SynBinding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbinding.html) SynBinding Represents a binding for a 'let' or 'member' declaration SynBinding.Trivia Trivia SynBinding.RangeOfHeadPattern RangeOfHeadPattern SynBinding.RangeOfBindingWithRhs RangeOfBindingWithRhs SynBinding.RangeOfBindingWithoutRhs RangeOfBindingWithoutRhs SynBinding.SynBinding SynBinding ### [SynBinding.Trivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbinding.html#Trivia) SynBinding.Trivia Trivia ### [SynBinding.RangeOfHeadPattern](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbinding.html#RangeOfHeadPattern) SynBinding.RangeOfHeadPattern RangeOfHeadPattern ### [SynBinding.RangeOfBindingWithRhs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbinding.html#RangeOfBindingWithRhs) SynBinding.RangeOfBindingWithRhs RangeOfBindingWithRhs ### [SynBinding.RangeOfBindingWithoutRhs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbinding.html#RangeOfBindingWithoutRhs) SynBinding.RangeOfBindingWithoutRhs RangeOfBindingWithoutRhs ### [SynBinding.SynBinding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbinding.html#SynBinding) SynBinding.SynBinding SynBinding ### [SynBindingKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbindingkind.html) SynBindingKind The kind associated with a binding - "let", "do" or a standalone expression SynBindingKind.StandaloneExpression StandaloneExpression SynBindingKind.Normal Normal SynBindingKind.Do Do ### [SynBindingKind.StandaloneExpression](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbindingkind.html#StandaloneExpression) SynBindingKind.StandaloneExpression StandaloneExpression A standalone expression in a module ### [SynBindingKind.Normal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbindingkind.html#Normal) SynBindingKind.Normal Normal A normal 'let' binding in a module ### [SynBindingKind.Do](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbindingkind.html#Do) SynBindingKind.Do Do A 'do' binding in a module. Must have type 'unit' ### [SynBindingReturnInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbindingreturninfo.html) SynBindingReturnInfo Represents the return information in a binding for a 'let' or 'member' declaration SynBindingReturnInfo.SynBindingReturnInfo SynBindingReturnInfo ### [SynBindingReturnInfo.SynBindingReturnInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbindingreturninfo.html#SynBindingReturnInfo) SynBindingReturnInfo.SynBindingReturnInfo SynBindingReturnInfo ### [SynByteStringKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbytestringkind.html) SynByteStringKind Indicate if the byte string had a special format SynByteStringKind.Regular Regular SynByteStringKind.Verbatim Verbatim ### [SynByteStringKind.Regular](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbytestringkind.html#Regular) SynByteStringKind.Regular Regular ### [SynByteStringKind.Verbatim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synbytestringkind.html#Verbatim) SynByteStringKind.Verbatim Verbatim ### [SynComponentInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syncomponentinfo.html) SynComponentInfo Represents the syntax tree associated with the name of a type definition or module in signature or implementation. This includes the name, attributes, type parameters, constraints, documentation and accessibility for a type definition or module. For modules, entries such as the type parameters are always empty. SynComponentInfo.Range Range SynComponentInfo.LongIdent LongIdent SynComponentInfo.SynComponentInfo SynComponentInfo ### [SynComponentInfo.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syncomponentinfo.html#Range) SynComponentInfo.Range Range Gets the syntax range of this construct ### [SynComponentInfo.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syncomponentinfo.html#LongIdent) SynComponentInfo.LongIdent LongIdent Gets the long identifier from a SynType.LongIdent, or empty list for other types ### [SynComponentInfo.SynComponentInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syncomponentinfo.html#SynComponentInfo) SynComponentInfo.SynComponentInfo SynComponentInfo ### [SynConst](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html) SynConst The unchecked abstract syntax tree of constants in F# types and expressions. SynConst.Range Range SynConst.Unit Unit SynConst.Bool Bool SynConst.SByte SByte SynConst.Byte Byte SynConst.Int16 Int16 SynConst.UInt16 UInt16 SynConst.Int32 Int32 SynConst.UInt32 UInt32 SynConst.Int64 Int64 SynConst.UInt64 UInt64 SynConst.IntPtr IntPtr SynConst.UIntPtr UIntPtr SynConst.Single Single SynConst.Double Double SynConst.Char Char SynConst.Decimal Decimal SynConst.UserNum UserNum SynConst.String String SynConst.Bytes Bytes SynConst.UInt16s UInt16s SynConst.Measure Measure SynConst.SourceIdentifier SourceIdentifier ### [SynConst.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Range) SynConst.Range Range Gets the syntax range of this construct ### [SynConst.Unit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Unit) SynConst.Unit Unit F# syntax: () ### [SynConst.Bool](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Bool) SynConst.Bool Bool F# syntax: true, false ### [SynConst.SByte](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#SByte) SynConst.SByte SByte F# syntax: 13y, 0xFFy, 0o077y, 0b0111101y ### [SynConst.Byte](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Byte) SynConst.Byte Byte F# syntax: 13uy, 0x40uy, 0oFFuy, 0b0111101uy ### [SynConst.Int16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Int16) SynConst.Int16 Int16 F# syntax: 13s, 0x4000s, 0o0777s, 0b0111101s ### [SynConst.UInt16](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#UInt16) SynConst.UInt16 UInt16 F# syntax: 13us, 0x4000us, 0o0777us, 0b0111101us ### [SynConst.Int32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Int32) SynConst.Int32 Int32 F# syntax: 13, 0x4000, 0o0777 ### [SynConst.UInt32](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#UInt32) SynConst.UInt32 UInt32 F# syntax: 13u, 0x4000u, 0o0777u ### [SynConst.Int64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Int64) SynConst.Int64 Int64 F# syntax: 13L ### [SynConst.UInt64](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#UInt64) SynConst.UInt64 UInt64 F# syntax: 13UL ### [SynConst.IntPtr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#IntPtr) SynConst.IntPtr IntPtr F# syntax: 13n ### [SynConst.UIntPtr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#UIntPtr) SynConst.UIntPtr UIntPtr F# syntax: 13un ### [SynConst.Single](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Single) SynConst.Single Single F# syntax: 1.30f, 1.40e10f etc. ### [SynConst.Double](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Double) SynConst.Double Double F# syntax: 1.30, 1.40e10 etc. ### [SynConst.Char](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Char) SynConst.Char Char F# syntax: 'a' ### [SynConst.Decimal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Decimal) SynConst.Decimal Decimal F# syntax: 23.4M ### [SynConst.UserNum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#UserNum) SynConst.UserNum UserNum UserNum(value, suffix) F# syntax: 1Q, 1Z, 1R, 1N, 1G ### [SynConst.String](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#String) SynConst.String String F# syntax: verbatim or regular string, e.g. "abc" ### [SynConst.Bytes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Bytes) SynConst.Bytes Bytes F# syntax: verbatim or regular byte string, e.g. "abc"B. Also used internally in the typechecker once an array of unit16 constants is detected, to allow more efficient processing of large arrays of uint16 constants. ### [SynConst.UInt16s](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#UInt16s) SynConst.UInt16s UInt16s Used internally in the typechecker once an array of unit16 constants is detected, to allow more efficient processing of large arrays of uint16 constants. ### [SynConst.Measure](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#Measure) SynConst.Measure Measure Old comment: "we never iterate, so the const here is not another SynConst.Measure" ### [SynConst.SourceIdentifier](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synconst.html#SourceIdentifier) SynConst.SourceIdentifier SourceIdentifier Source Line, File, and Path Identifiers Containing both the original value as the evaluated value. ### [SynEnumCase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synenumcase.html) SynEnumCase Represents the syntax tree for one case in an enum definition. SynEnumCase.Range Range SynEnumCase.SynEnumCase SynEnumCase ### [SynEnumCase.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synenumcase.html#Range) SynEnumCase.Range Range Gets the syntax range of this construct ### [SynEnumCase.SynEnumCase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synenumcase.html#SynEnumCase) SynEnumCase.SynEnumCase SynEnumCase ### [SynExceptionDefn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptiondefn.html) SynExceptionDefn Represents the right hand side of an exception declaration 'exception E = ... ' plus any member definitions for the exception SynExceptionDefn.Range Range SynExceptionDefn.SynExceptionDefn SynExceptionDefn ### [SynExceptionDefn.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptiondefn.html#Range) SynExceptionDefn.Range Range Gets the syntax range of this construct ### [SynExceptionDefn.SynExceptionDefn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptiondefn.html#SynExceptionDefn) SynExceptionDefn.SynExceptionDefn SynExceptionDefn ### [SynExceptionDefnRepr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptiondefnrepr.html) SynExceptionDefnRepr Represents the right hand side of an exception declaration 'exception E = ... ' SynExceptionDefnRepr.Range Range SynExceptionDefnRepr.SynExceptionDefnRepr SynExceptionDefnRepr ### [SynExceptionDefnRepr.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptiondefnrepr.html#Range) SynExceptionDefnRepr.Range Range Gets the syntax range of this construct ### [SynExceptionDefnRepr.SynExceptionDefnRepr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptiondefnrepr.html#SynExceptionDefnRepr) SynExceptionDefnRepr.SynExceptionDefnRepr SynExceptionDefnRepr ### [SynExceptionSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptionsig.html) SynExceptionSig Represents the right hand side of an exception definition in a signature file SynExceptionSig.SynExceptionSig SynExceptionSig ### [SynExceptionSig.SynExceptionSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexceptionsig.html#SynExceptionSig) SynExceptionSig.SynExceptionSig SynExceptionSig ### [SynExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html) SynExpr SynExpr.RangeOfFirstPortion RangeOfFirstPortion SynExpr.IsArbExprAndThusAlreadyReportedError IsArbExprAndThusAlreadyReportedError SynExpr.Range Range SynExpr.RangeWithoutAnyExtraDot RangeWithoutAnyExtraDot SynExpr.Paren Paren SynExpr.Quote Quote SynExpr.Const Const SynExpr.Typed Typed SynExpr.Tuple Tuple SynExpr.AnonRecd AnonRecd SynExpr.ArrayOrList ArrayOrList SynExpr.Record Record SynExpr.New New SynExpr.ObjExpr ObjExpr SynExpr.While While SynExpr.For For SynExpr.ForEach ForEach SynExpr.ArrayOrListComputed ArrayOrListComputed SynExpr.IndexRange IndexRange SynExpr.IndexFromEnd IndexFromEnd SynExpr.ComputationExpr ComputationExpr SynExpr.Lambda Lambda SynExpr.MatchLambda MatchLambda SynExpr.Match Match SynExpr.Do Do SynExpr.Assert Assert SynExpr.App App SynExpr.TypeApp TypeApp SynExpr.TryWith TryWith SynExpr.TryFinally TryFinally SynExpr.Lazy Lazy SynExpr.Sequential Sequential SynExpr.IfThenElse IfThenElse SynExpr.Typar Typar SynExpr.Ident Ident SynExpr.LongIdent LongIdent SynExpr.LongIdentSet LongIdentSet SynExpr.DotGet DotGet SynExpr.DotLambda DotLambda SynExpr.DotSet DotSet SynExpr.Set Set SynExpr.DotIndexedGet DotIndexedGet SynExpr.DotIndexedSet DotIndexedSet SynExpr.NamedIndexedPropertySet NamedIndexedPropertySet SynExpr.DotNamedIndexedPropertySet DotNamedIndexedPropertySet SynExpr.TypeTest TypeTest SynExpr.Upcast Upcast SynExpr.Downcast Downcast SynExpr.InferredUpcast InferredUpcast SynExpr.InferredDowncast InferredDowncast SynExpr.Null Null SynExpr.AddressOf AddressOf SynExpr.TraitCall TraitCall SynExpr.JoinIn JoinIn SynExpr.ImplicitZero ImplicitZero SynExpr.SequentialOrImplicitYield SequentialOrImplicitYield SynExpr.YieldOrReturn YieldOrReturn SynExpr.YieldOrReturnFrom YieldOrReturnFrom SynExpr.LetOrUse LetOrUse SynExpr.MatchBang MatchBang SynExpr.DoBang DoBang SynExpr.WhileBang WhileBang SynExpr.LibraryOnlyILAssembly LibraryOnlyILAssembly SynExpr.LibraryOnlyStaticOptimization LibraryOnlyStaticOptimization SynExpr.LibraryOnlyUnionCaseFieldGet LibraryOnlyUnionCaseFieldGet SynExpr.LibraryOnlyUnionCaseFieldSet LibraryOnlyUnionCaseFieldSet SynExpr.ArbitraryAfterError ArbitraryAfterError SynExpr.FromParseError FromParseError SynExpr.DiscardAfterMissingQualificationAfterDot DiscardAfterMissingQualificationAfterDot SynExpr.Fixed Fixed SynExpr.InterpolatedString InterpolatedString SynExpr.DebugPoint DebugPoint SynExpr.Dynamic Dynamic ### [SynExpr.RangeOfFirstPortion](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#RangeOfFirstPortion) SynExpr.RangeOfFirstPortion RangeOfFirstPortion Attempt to get the range of the first token or initial portion only - this is ad-hoc, just a cheap way to improve a certain 'query custom operation' error range ### [SynExpr.IsArbExprAndThusAlreadyReportedError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#IsArbExprAndThusAlreadyReportedError) SynExpr.IsArbExprAndThusAlreadyReportedError IsArbExprAndThusAlreadyReportedError Indicates if this expression arises from error recovery ### [SynExpr.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Range) SynExpr.Range Range Gets the syntax range of this construct ### [SynExpr.RangeWithoutAnyExtraDot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#RangeWithoutAnyExtraDot) SynExpr.RangeWithoutAnyExtraDot RangeWithoutAnyExtraDot ### [SynExpr.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Paren) SynExpr.Paren Paren F# syntax: (expr) Parenthesized expressions. Kept in AST to distinguish A.M((x, y)) from A.M(x, y), among other things. ### [SynExpr.Quote](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Quote) SynExpr.Quote Quote F# syntax: <@ expr @>, <@@ expr @@> Quote(operator, isRaw, quotedSynExpr, isFromQueryExpression, m) ### [SynExpr.Const](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Const) SynExpr.Const Const F# syntax: 1, 1.3, () etc. ### [SynExpr.Typed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Typed) SynExpr.Typed Typed F# syntax: expr: type ### [SynExpr.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Tuple) SynExpr.Tuple Tuple F# syntax: e1, ..., eN ### [SynExpr.AnonRecd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#AnonRecd) SynExpr.AnonRecd AnonRecd F# syntax: {| id1=e1; ...; idN=eN |} F# syntax: struct {| id1=e1; ...; idN=eN |} ### [SynExpr.ArrayOrList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ArrayOrList) SynExpr.ArrayOrList ArrayOrList F# syntax: [ e1; ...; en ], [| e1; ...; en |] ### [SynExpr.Record](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Record) SynExpr.Record Record F# syntax: { f1=e1; ...; fn=en } inherit includes location of separator (for tooling) copyOpt contains range of the following WITH part (for tooling) every field includes range of separator after the field (for tooling) ### [SynExpr.New](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#New) SynExpr.New New F# syntax: new C(...) The flag is true if known to be 'family' ('protected') scope ### [SynExpr.ObjExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ObjExpr) SynExpr.ObjExpr ObjExpr F# syntax: { new ... with ... } ### [SynExpr.While](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#While) SynExpr.While While F# syntax: 'while ... do ...' ### [SynExpr.For](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#For) SynExpr.For For F# syntax: 'for i = ... to ... do ...' ### [SynExpr.ForEach](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ForEach) SynExpr.ForEach ForEach F# syntax: 'for ... in ... do ...' ### [SynExpr.ArrayOrListComputed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ArrayOrListComputed) SynExpr.ArrayOrListComputed ArrayOrListComputed F# syntax: [ expr ], [| expr |] ### [SynExpr.IndexRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#IndexRange) SynExpr.IndexRange IndexRange F# syntax: expr.. F# syntax: ..expr F# syntax: expr..expr F# syntax: * A two-element range indexer argument a..b, a.., ..b. Also used to represent a range in a list, array or sequence expression. ### [SynExpr.IndexFromEnd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#IndexFromEnd) SynExpr.IndexFromEnd IndexFromEnd F# syntax: ^expr, used for from-end-of-collection indexing and ^T.Operation ### [SynExpr.ComputationExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ComputationExpr) SynExpr.ComputationExpr ComputationExpr F# syntax: { expr } ### [SynExpr.Lambda](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Lambda) SynExpr.Lambda Lambda First bool indicates if lambda originates from a method. Patterns here are always "simple" Second bool indicates if this is a "later" part of an iterated sequence of lambdas parsedData keeps original parsed patterns and expression, prior to transforming to "simple" patterns and iterated lambdas F# syntax: fun pat -> expr ### [SynExpr.MatchLambda](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#MatchLambda) SynExpr.MatchLambda MatchLambda F# syntax: function pat1 -> expr | ... | patN -> exprN ### [SynExpr.Match](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Match) SynExpr.Match Match F# syntax: match expr with pat1 -> expr | ... | patN -> exprN ### [SynExpr.Do](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Do) SynExpr.Do Do F# syntax: do expr ### [SynExpr.Assert](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Assert) SynExpr.Assert Assert F# syntax: assert expr ### [SynExpr.App](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#App) SynExpr.App App F# syntax: f x flag: indicates if the application is syntactically atomic, e.g. f.[1] is atomic, but 'f x' is not isInfix is true for the first app of an infix operator, e.g. 1+2 becomes App(App(+, 1), 2), where the inner node is marked isInfix ### [SynExpr.TypeApp](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#TypeApp) SynExpr.TypeApp TypeApp F# syntax: expr ### [SynExpr.TryWith](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#TryWith) SynExpr.TryWith TryWith F# syntax: try expr with pat -> expr ### [SynExpr.TryFinally](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#TryFinally) SynExpr.TryFinally TryFinally F# syntax: try expr finally expr ### [SynExpr.Lazy](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Lazy) SynExpr.Lazy Lazy F# syntax: lazy expr ### [SynExpr.Sequential](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Sequential) SynExpr.Sequential Sequential
 F# syntax: expr; expr

  isTrueSeq: false indicates "let v = a in b; v"
### [SynExpr.IfThenElse](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#IfThenElse) SynExpr.IfThenElse IfThenElse F# syntax: if expr then expr F# syntax: if expr then expr else expr ### [SynExpr.Typar](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Typar) SynExpr.Typar Typar F# syntax: 'T (for 'T.ident). ### [SynExpr.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Ident) SynExpr.Ident Ident F# syntax: ident Optimized representation for SynExpr.LongIdent (false, [id], id.idRange) ### [SynExpr.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LongIdent) SynExpr.LongIdent LongIdent F# syntax: ident.ident...ident isOptional: true if preceded by a '?' for an optional named parameter altNameRefCell: Normally 'None' except for some compiler-generated variables in desugaring pattern matching. See SynSimplePat.Id ### [SynExpr.LongIdentSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LongIdentSet) SynExpr.LongIdentSet LongIdentSet F# syntax: ident.ident...ident <- expr ### [SynExpr.DotGet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DotGet) SynExpr.DotGet DotGet F# syntax: expr.ident.ident ### [SynExpr.DotLambda](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DotLambda) SynExpr.DotLambda DotLambda F# syntax: _.ident.ident ### [SynExpr.DotSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DotSet) SynExpr.DotSet DotSet F# syntax: expr.ident...ident <- expr ### [SynExpr.Set](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Set) SynExpr.Set Set F# syntax: expr <- expr ### [SynExpr.DotIndexedGet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DotIndexedGet) SynExpr.DotIndexedGet DotIndexedGet F# syntax: expr.[expr, ..., expr] ### [SynExpr.DotIndexedSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DotIndexedSet) SynExpr.DotIndexedSet DotIndexedSet F# syntax: expr.[expr, ..., expr] <- expr ### [SynExpr.NamedIndexedPropertySet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#NamedIndexedPropertySet) SynExpr.NamedIndexedPropertySet NamedIndexedPropertySet F# syntax: Type.Items(e1) <- e2, rarely used named-property-setter notation, e.g. Foo.Bar.Chars(3) <- 'a' ### [SynExpr.DotNamedIndexedPropertySet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DotNamedIndexedPropertySet) SynExpr.DotNamedIndexedPropertySet DotNamedIndexedPropertySet F# syntax: expr.Items (e1) <- e2, rarely used named-property-setter notation, e.g. (stringExpr).Chars(3) <- 'a' ### [SynExpr.TypeTest](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#TypeTest) SynExpr.TypeTest TypeTest F# syntax: expr :? type ### [SynExpr.Upcast](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Upcast) SynExpr.Upcast Upcast F# syntax: expr :> type ### [SynExpr.Downcast](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Downcast) SynExpr.Downcast Downcast F# syntax: expr :?> type ### [SynExpr.InferredUpcast](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#InferredUpcast) SynExpr.InferredUpcast InferredUpcast F# syntax: upcast expr ### [SynExpr.InferredDowncast](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#InferredDowncast) SynExpr.InferredDowncast InferredDowncast F# syntax: downcast expr ### [SynExpr.Null](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Null) SynExpr.Null Null F# syntax: null ### [SynExpr.AddressOf](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#AddressOf) SynExpr.AddressOf AddressOf F# syntax: &expr, &&expr ### [SynExpr.TraitCall](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#TraitCall) SynExpr.TraitCall TraitCall F# syntax: ((type1 or ... or typeN): (member-dig) expr) ### [SynExpr.JoinIn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#JoinIn) SynExpr.JoinIn JoinIn F# syntax: ... in ... Computation expressions only, based on JOIN_IN token from lex filter ### [SynExpr.ImplicitZero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ImplicitZero) SynExpr.ImplicitZero ImplicitZero Used in parser error recovery and internally during type checking for translating computation expressions. ### [SynExpr.SequentialOrImplicitYield](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#SequentialOrImplicitYield) SynExpr.SequentialOrImplicitYield SequentialOrImplicitYield Used internally during type checking for translating computation expressions. ### [SynExpr.YieldOrReturn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#YieldOrReturn) SynExpr.YieldOrReturn YieldOrReturn F# syntax: yield expr F# syntax: return expr Computation expressions only ### [SynExpr.YieldOrReturnFrom](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#YieldOrReturnFrom) SynExpr.YieldOrReturnFrom YieldOrReturnFrom F# syntax: yield! expr F# syntax: return! expr Computation expressions only ### [SynExpr.LetOrUse](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LetOrUse) SynExpr.LetOrUse LetOrUse F# syntax: let pat = expr in expr F# syntax: let f pat1 .. patN = expr in expr F# syntax: let rec f pat1 .. patN = expr in expr F# syntax: use pat = expr in expr F# syntax: let! pat = expr in expr F# syntax: use! pat = expr in expr F# syntax: let! pat = expr and! ... and! ... and! pat = expr in expr ### [SynExpr.MatchBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#MatchBang) SynExpr.MatchBang MatchBang F# syntax: match! expr with pat1 -> expr | ... | patN -> exprN ### [SynExpr.DoBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DoBang) SynExpr.DoBang DoBang F# syntax: do! expr Computation expressions only ### [SynExpr.WhileBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#WhileBang) SynExpr.WhileBang WhileBang F# syntax: 'while! ... do ...' ### [SynExpr.LibraryOnlyILAssembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LibraryOnlyILAssembly) SynExpr.LibraryOnlyILAssembly LibraryOnlyILAssembly Only used in FSharp.Core ### [SynExpr.LibraryOnlyStaticOptimization](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LibraryOnlyStaticOptimization) SynExpr.LibraryOnlyStaticOptimization LibraryOnlyStaticOptimization Only used in FSharp.Core ### [SynExpr.LibraryOnlyUnionCaseFieldGet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LibraryOnlyUnionCaseFieldGet) SynExpr.LibraryOnlyUnionCaseFieldGet LibraryOnlyUnionCaseFieldGet Only used in FSharp.Core ### [SynExpr.LibraryOnlyUnionCaseFieldSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#LibraryOnlyUnionCaseFieldSet) SynExpr.LibraryOnlyUnionCaseFieldSet LibraryOnlyUnionCaseFieldSet Only used in FSharp.Core ### [SynExpr.ArbitraryAfterError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#ArbitraryAfterError) SynExpr.ArbitraryAfterError ArbitraryAfterError Inserted for error recovery ### [SynExpr.FromParseError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#FromParseError) SynExpr.FromParseError FromParseError Inserted for error recovery ### [SynExpr.DiscardAfterMissingQualificationAfterDot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DiscardAfterMissingQualificationAfterDot) SynExpr.DiscardAfterMissingQualificationAfterDot DiscardAfterMissingQualificationAfterDot Inserted for error recovery when there is "expr." and missing tokens or error recovery after the dot ### [SynExpr.Fixed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Fixed) SynExpr.Fixed Fixed 'use x = fixed expr' ### [SynExpr.InterpolatedString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#InterpolatedString) SynExpr.InterpolatedString InterpolatedString F# syntax: interpolated string, e.g. "abc{x}" or "abc{x,3}" or "abc{x:N4}" Note the string ranges include the quotes, verbatim markers, dollar sign and braces ### [SynExpr.DebugPoint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#DebugPoint) SynExpr.DebugPoint DebugPoint Debug points arising from computation expressions ### [SynExpr.Dynamic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpr.html#Dynamic) SynExpr.Dynamic Dynamic F# syntax: f?x ### [SynExprAnonRecordField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpranonrecordfield.html) SynExprAnonRecordField SynExprAnonRecordField.SynExprAnonRecordField SynExprAnonRecordField ### [SynExprAnonRecordField.SynExprAnonRecordField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpranonrecordfield.html#SynExprAnonRecordField) SynExprAnonRecordField.SynExprAnonRecordField SynExprAnonRecordField ### [SynExprAnonRecordFieldOrSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpranonrecordfieldorspread.html) SynExprAnonRecordFieldOrSpread Represents either a field declaration or a spread expression in an anonymous record construction expression. let r = {| A = 3; ...b; C = true |} SynExprAnonRecordFieldOrSpread.Range Range SynExprAnonRecordFieldOrSpread.Field Field SynExprAnonRecordFieldOrSpread.Spread Spread ### [SynExprAnonRecordFieldOrSpread.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpranonrecordfieldorspread.html#Range) SynExprAnonRecordFieldOrSpread.Range Range ### [SynExprAnonRecordFieldOrSpread.Field](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpranonrecordfieldorspread.html#Field) SynExprAnonRecordFieldOrSpread.Field Field ### [SynExprAnonRecordFieldOrSpread.Spread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexpranonrecordfieldorspread.html#Spread) SynExprAnonRecordFieldOrSpread.Spread Spread ### [SynExprRecordField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprrecordfield.html) SynExprRecordField SynExprRecordField.SynExprRecordField SynExprRecordField ### [SynExprRecordField.SynExprRecordField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprrecordfield.html#SynExprRecordField) SynExprRecordField.SynExprRecordField SynExprRecordField ### [SynExprRecordFieldOrSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprrecordfieldorspread.html) SynExprRecordFieldOrSpread Represents either a field declaration or a spread expression in a nominal record construction expression. let r = { A = 3; ...b; C = true } SynExprRecordFieldOrSpread.Field Field SynExprRecordFieldOrSpread.Spread Spread ### [SynExprRecordFieldOrSpread.Field](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprrecordfieldorspread.html#Field) SynExprRecordFieldOrSpread.Field Field ### [SynExprRecordFieldOrSpread.Spread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprrecordfieldorspread.html#Spread) SynExprRecordFieldOrSpread.Spread Spread ### [SynExprSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprspread.html) SynExprSpread Represents a spread expression. ...expr SynExprSpread.SynExprSpread SynExprSpread ### [SynExprSpread.SynExprSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synexprspread.html#SynExprSpread) SynExprSpread.SynExprSpread SynExprSpread ### [SynField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synfield.html) SynField Represents the syntax tree for a field declaration in a record or class SynField.Range Range SynField.SynField SynField ### [SynField.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synfield.html#Range) SynField.Range Range Gets the syntax range of this construct ### [SynField.SynField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synfield.html#SynField) SynField.SynField SynField ### [SynFieldOrSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synfieldorspread.html) SynFieldOrSpread Represents either a field declaration or a type spread. SynFieldOrSpread.Field Field SynFieldOrSpread.Spread Spread ### [SynFieldOrSpread.Field](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synfieldorspread.html#Field) SynFieldOrSpread.Field Field ### [SynFieldOrSpread.Spread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synfieldorspread.html#Spread) SynFieldOrSpread.Spread Spread ### [SynIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synident.html) SynIdent Represents an identifier with potentially additional trivia information. SynIdent.Range Range SynIdent.SynIdent SynIdent ### [SynIdent.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synident.html#Range) SynIdent.Range Range ### [SynIdent.SynIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synident.html#SynIdent) SynIdent.SynIdent SynIdent ### [SynInterfaceImpl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterfaceimpl.html) SynInterfaceImpl Represents a set of bindings that implement an interface SynInterfaceImpl.SynInterfaceImpl SynInterfaceImpl ### [SynInterfaceImpl.SynInterfaceImpl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterfaceimpl.html#SynInterfaceImpl) SynInterfaceImpl.SynInterfaceImpl SynInterfaceImpl ### [SynInterpolatedStringPart](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterpolatedstringpart.html) SynInterpolatedStringPart SynInterpolatedStringPart.String String SynInterpolatedStringPart.FillExpr FillExpr ### [SynInterpolatedStringPart.String](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterpolatedstringpart.html#String) SynInterpolatedStringPart.String String ### [SynInterpolatedStringPart.FillExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterpolatedstringpart.html#FillExpr) SynInterpolatedStringPart.FillExpr FillExpr ### [SynInterpolationFormatting](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterpolationformatting.html) SynInterpolationFormatting Represents how an interpolation hole in an interpolated string is formatted. SynInterpolationFormatting.DotNet DotNet SynInterpolationFormatting.Printf Printf ### [SynInterpolationFormatting.DotNet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterpolationformatting.html#DotNet) SynInterpolationFormatting.DotNet DotNet .NET-style formatting: optional alignment '{x,n}' and optional format '{x:fmt}'. ### [SynInterpolationFormatting.Printf](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syninterpolationformatting.html#Printf) SynInterpolationFormatting.Printf Printf printf-style formatting: a single specifier, the '%d' in '%d{x}'. ### [SynLetOrUse](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html) SynLetOrUse Represents a 'let' or 'use' expression with its bindings and body SynLetOrUse.IsBang IsBang SynLetOrUse.IsUse IsUse SynLetOrUse.IsRecursive IsRecursive SynLetOrUse.Bindings Bindings SynLetOrUse.Body Body SynLetOrUse.Range Range SynLetOrUse.Trivia Trivia SynLetOrUse.IsFromSource IsFromSource ### [SynLetOrUse.IsBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#IsBang) SynLetOrUse.IsBang IsBang true for 'let!' and 'use!' bindings, false for 'let' and 'use' bindings ### [SynLetOrUse.IsUse](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#IsUse) SynLetOrUse.IsUse IsUse true for 'use' and 'use!' bindings, false for 'let' and 'let!' bindings ### [SynLetOrUse.IsRecursive](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#IsRecursive) SynLetOrUse.IsRecursive IsRecursive true for 'let rec' and 'use rec' bindings, false for 'let' and 'use' bindings ### [SynLetOrUse.Bindings](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#Bindings) SynLetOrUse.Bindings Bindings The bindings in this let/use expression ### [SynLetOrUse.Body](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#Body) SynLetOrUse.Body Body The body expression ### [SynLetOrUse.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#Range) SynLetOrUse.Range Range The syntax range of this expression ### [SynLetOrUse.Trivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#Trivia) SynLetOrUse.Trivia Trivia Trivia for this expression ### [SynLetOrUse.IsFromSource](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synletoruse.html#IsFromSource) SynLetOrUse.IsFromSource IsFromSource true if the binding was explicitly written by the user in the source code, false if generated by the compiler ### [SynLongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html) SynLongIdent Represents a long identifier with possible '.' at end. Typically dotRanges.Length = lid.Length-1, but they may be same if (incomplete) code ends in a dot, e.g. "Foo.Bar." The dots mostly matter for parsing, and are typically ignored by the typechecker, but if dotRanges.Length = lid.Length, then the parser must have reported an error, so the typechecker is allowed more freedom about typechecking these expressions. LongIdent can be empty list - it is used to denote that name of some AST element is absent (i.e. empty type name in inherit) SynLongIdent.Trivia Trivia SynLongIdent.IdentsWithTrivia IdentsWithTrivia SynLongIdent.Range Range SynLongIdent.RangeWithoutAnyExtraDot RangeWithoutAnyExtraDot SynLongIdent.ThereIsAnExtraDotAtTheEnd ThereIsAnExtraDotAtTheEnd SynLongIdent.LongIdent LongIdent SynLongIdent.Dots Dots SynLongIdent.SynLongIdent SynLongIdent ### [SynLongIdent.Trivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#Trivia) SynLongIdent.Trivia Trivia Get the trivia of the idents ### [SynLongIdent.IdentsWithTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#IdentsWithTrivia) SynLongIdent.IdentsWithTrivia IdentsWithTrivia Get the idents with potential trivia attached ### [SynLongIdent.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#Range) SynLongIdent.Range Range Gets the syntax range of this construct ### [SynLongIdent.RangeWithoutAnyExtraDot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#RangeWithoutAnyExtraDot) SynLongIdent.RangeWithoutAnyExtraDot RangeWithoutAnyExtraDot Gets the syntax range for part of this construct ### [SynLongIdent.ThereIsAnExtraDotAtTheEnd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#ThereIsAnExtraDotAtTheEnd) SynLongIdent.ThereIsAnExtraDotAtTheEnd ThereIsAnExtraDotAtTheEnd Indicates if the construct ends in '.' due to error recovery ### [SynLongIdent.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#LongIdent) SynLongIdent.LongIdent LongIdent Get the long ident for this construct ### [SynLongIdent.Dots](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#Dots) SynLongIdent.Dots Dots Get the dot ranges ### [SynLongIdent.SynLongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synlongident.html#SynLongIdent) SynLongIdent.SynLongIdent SynLongIdent ### [SynMatchClause](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmatchclause.html) SynMatchClause Represents a clause in a 'match' expression SynMatchClause.Range Range SynMatchClause.RangeOfGuardAndRhs RangeOfGuardAndRhs SynMatchClause.IsTrueMatchClause IsTrueMatchClause SynMatchClause.SynMatchClause SynMatchClause ### [SynMatchClause.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmatchclause.html#Range) SynMatchClause.Range Range Gets the syntax range of this construct ### [SynMatchClause.RangeOfGuardAndRhs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmatchclause.html#RangeOfGuardAndRhs) SynMatchClause.RangeOfGuardAndRhs RangeOfGuardAndRhs Gets the syntax range of part of this construct ### [SynMatchClause.IsTrueMatchClause](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmatchclause.html#IsTrueMatchClause) SynMatchClause.IsTrueMatchClause IsTrueMatchClause Is a pattern used in a true match clause e.g. | pat -> expr ### [SynMatchClause.SynMatchClause](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmatchclause.html#SynMatchClause) SynMatchClause.SynMatchClause SynMatchClause ### [SynMeasure](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html) SynMeasure Represents an unchecked syntax tree of F# unit of measure annotations. SynMeasure.Range Range SynMeasure.Named Named SynMeasure.Product Product SynMeasure.Seq Seq SynMeasure.Divide Divide SynMeasure.Power Power SynMeasure.One One SynMeasure.Anon Anon SynMeasure.Var Var SynMeasure.Paren Paren ### [SynMeasure.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Range) SynMeasure.Range Range ### [SynMeasure.Named](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Named) SynMeasure.Named Named A named unit of measure ### [SynMeasure.Product](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Product) SynMeasure.Product Product A product of two units of measure, e.g. 'kg * m' ### [SynMeasure.Seq](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Seq) SynMeasure.Seq Seq A sequence of several units of measure, e.g. 'kg m m' ### [SynMeasure.Divide](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Divide) SynMeasure.Divide Divide A division of two units of measure, e.g. 'kg / m' ### [SynMeasure.Power](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Power) SynMeasure.Power Power A power of a unit of measure, e.g. 'kg ^ 2' ### [SynMeasure.One](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#One) SynMeasure.One One The '1' unit of measure ### [SynMeasure.Anon](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Anon) SynMeasure.Anon Anon An anonymous (inferred) unit of measure ### [SynMeasure.Var](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Var) SynMeasure.Var Var A variable unit of measure ### [SynMeasure.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmeasure.html#Paren) SynMeasure.Paren Paren A parenthesized measure ### [SynMemberDefn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html) SynMemberDefn Represents a definition element within a type definition, e.g. 'member ... ' SynMemberDefn.Range Range SynMemberDefn.Open Open SynMemberDefn.Member Member SynMemberDefn.GetSetMember GetSetMember SynMemberDefn.ImplicitCtor ImplicitCtor SynMemberDefn.ImplicitInherit ImplicitInherit SynMemberDefn.LetBindings LetBindings SynMemberDefn.AbstractSlot AbstractSlot SynMemberDefn.Interface Interface SynMemberDefn.Inherit Inherit SynMemberDefn.ValField ValField SynMemberDefn.NestedType NestedType SynMemberDefn.AutoProperty AutoProperty ### [SynMemberDefn.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#Range) SynMemberDefn.Range Range Gets the syntax range of this construct ### [SynMemberDefn.Open](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#Open) SynMemberDefn.Open Open An 'open' definition within a type ### [SynMemberDefn.Member](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#Member) SynMemberDefn.Member Member A 'member' definition within a type ### [SynMemberDefn.GetSetMember](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#GetSetMember) SynMemberDefn.GetSetMember GetSetMember A 'member' definition with get/set accessors within a type ### [SynMemberDefn.ImplicitCtor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#ImplicitCtor) SynMemberDefn.ImplicitCtor ImplicitCtor An implicit constructor definition ### [SynMemberDefn.ImplicitInherit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#ImplicitInherit) SynMemberDefn.ImplicitInherit ImplicitInherit An implicit inherit definition, 'inherit (args...) as base' ### [SynMemberDefn.LetBindings](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#LetBindings) SynMemberDefn.LetBindings LetBindings A 'let' definition within a class ### [SynMemberDefn.AbstractSlot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#AbstractSlot) SynMemberDefn.AbstractSlot AbstractSlot An abstract slot definition within a class or interface ### [SynMemberDefn.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#Interface) SynMemberDefn.Interface Interface An interface implementation definition within a class ### [SynMemberDefn.Inherit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#Inherit) SynMemberDefn.Inherit Inherit An 'inherit' definition within a class ### [SynMemberDefn.ValField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#ValField) SynMemberDefn.ValField ValField A 'val' definition within a class ### [SynMemberDefn.NestedType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#NestedType) SynMemberDefn.NestedType NestedType A nested type definition, a feature that is not implemented ### [SynMemberDefn.AutoProperty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefn.html#AutoProperty) SynMemberDefn.AutoProperty AutoProperty An auto-property definition, F# syntax: 'member val X = expr' ### [SynMemberDefns](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberdefns.html) SynMemberDefns ### [SynMemberFlags](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html) SynMemberFlags Represents the flags for a 'member' declaration SynMemberFlags.IsInstance IsInstance SynMemberFlags.IsDispatchSlot IsDispatchSlot SynMemberFlags.IsOverrideOrExplicitImpl IsOverrideOrExplicitImpl SynMemberFlags.IsFinal IsFinal SynMemberFlags.GetterOrSetterIsCompilerGenerated GetterOrSetterIsCompilerGenerated SynMemberFlags.MemberKind MemberKind ### [SynMemberFlags.IsInstance](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html#IsInstance) SynMemberFlags.IsInstance IsInstance The member is an instance member (non-static) ### [SynMemberFlags.IsDispatchSlot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html#IsDispatchSlot) SynMemberFlags.IsDispatchSlot IsDispatchSlot The member is a dispatch slot ### [SynMemberFlags.IsOverrideOrExplicitImpl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html#IsOverrideOrExplicitImpl) SynMemberFlags.IsOverrideOrExplicitImpl IsOverrideOrExplicitImpl The member is an 'override' or explicit interface implementation ### [SynMemberFlags.IsFinal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html#IsFinal) SynMemberFlags.IsFinal IsFinal The member is 'final' ### [SynMemberFlags.GetterOrSetterIsCompilerGenerated](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html#GetterOrSetterIsCompilerGenerated) SynMemberFlags.GetterOrSetterIsCompilerGenerated GetterOrSetterIsCompilerGenerated The member was generated by the compiler ### [SynMemberFlags.MemberKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberflags.html#MemberKind) SynMemberFlags.MemberKind MemberKind The kind of the member ### [SynMemberKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html) SynMemberKind Note the member kind is actually computed partially by a syntax tree transformation in tc.fs SynMemberKind.ClassConstructor ClassConstructor SynMemberKind.Constructor Constructor SynMemberKind.Member Member SynMemberKind.PropertyGet PropertyGet SynMemberKind.PropertySet PropertySet SynMemberKind.PropertyGetSet PropertyGetSet ### [SynMemberKind.ClassConstructor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html#ClassConstructor) SynMemberKind.ClassConstructor ClassConstructor The member is a class initializer ### [SynMemberKind.Constructor](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html#Constructor) SynMemberKind.Constructor Constructor The member is a object model constructor ### [SynMemberKind.Member](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html#Member) SynMemberKind.Member Member The member kind is not yet determined ### [SynMemberKind.PropertyGet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html#PropertyGet) SynMemberKind.PropertyGet PropertyGet The member kind is property getter ### [SynMemberKind.PropertySet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html#PropertySet) SynMemberKind.PropertySet PropertySet The member kind is property setter ### [SynMemberKind.PropertyGetSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmemberkind.html#PropertyGetSet) SynMemberKind.PropertyGetSet PropertyGetSet An artificial member kind used prior to the point where a get/set property is split into two distinct members. ### [SynMemberSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html) SynMemberSig Represents the syntax tree for a member signature (used in signature files, abstract member declarations and member constraints) SynMemberSig.Range Range SynMemberSig.Member Member SynMemberSig.Interface Interface SynMemberSig.Inherit Inherit SynMemberSig.ValField ValField SynMemberSig.NestedType NestedType ### [SynMemberSig.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html#Range) SynMemberSig.Range Range Gets the syntax range of this construct ### [SynMemberSig.Member](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html#Member) SynMemberSig.Member Member A member definition in a type in a signature file ### [SynMemberSig.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html#Interface) SynMemberSig.Interface Interface An interface definition in a type in a signature file ### [SynMemberSig.Inherit](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html#Inherit) SynMemberSig.Inherit Inherit An 'inherit' definition in a type in a signature file ### [SynMemberSig.ValField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html#ValField) SynMemberSig.ValField ValField A 'val' definition in a type in a signature file ### [SynMemberSig.NestedType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmembersig.html#NestedType) SynMemberSig.NestedType NestedType A nested type definition in a signature file (an unimplemented feature) ### [SynModuleDecl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html) SynModuleDecl Represents a definition within a module SynModuleDecl.Range Range SynModuleDecl.ModuleAbbrev ModuleAbbrev SynModuleDecl.NestedModule NestedModule SynModuleDecl.Let Let SynModuleDecl.Expr Expr SynModuleDecl.Types Types SynModuleDecl.Exception Exception SynModuleDecl.Open Open SynModuleDecl.Attributes Attributes SynModuleDecl.HashDirective HashDirective SynModuleDecl.NamespaceFragment NamespaceFragment ### [SynModuleDecl.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Range) SynModuleDecl.Range Range Gets the syntax range of this construct ### [SynModuleDecl.ModuleAbbrev](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#ModuleAbbrev) SynModuleDecl.ModuleAbbrev ModuleAbbrev A module abbreviation definition 'module X = A.B.C' ### [SynModuleDecl.NestedModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#NestedModule) SynModuleDecl.NestedModule NestedModule A nested module definition 'module X = ...' ### [SynModuleDecl.Let](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Let) SynModuleDecl.Let Let A 'let' definition within a module ### [SynModuleDecl.Expr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Expr) SynModuleDecl.Expr Expr An 'expr' within a module. ### [SynModuleDecl.Types](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Types) SynModuleDecl.Types Types A type definition group ('type T1 ... and T2 ...') or a single 'type' definition within a module. Consecutive 'type' keywords (e.g. type T1 ... type T2 ...) are represented individually, with separate Types syntax tree nodes for each. Only the 'and' keyword causes multiple types to be aggregated into a single Types node. ### [SynModuleDecl.Exception](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Exception) SynModuleDecl.Exception Exception An 'exception' definition within a module ### [SynModuleDecl.Open](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Open) SynModuleDecl.Open Open An 'open' definition within a module ### [SynModuleDecl.Attributes](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#Attributes) SynModuleDecl.Attributes Attributes An attribute definition within a module, for assembly and .NET module attributes ### [SynModuleDecl.HashDirective](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#HashDirective) SynModuleDecl.HashDirective HashDirective A hash directive within a module ### [SynModuleDecl.NamespaceFragment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduledecl.html#NamespaceFragment) SynModuleDecl.NamespaceFragment NamespaceFragment A namespace fragment within a module ### [SynModuleOrNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespace.html) SynModuleOrNamespace Represents the definition of a module or namespace SynModuleOrNamespace.Range Range SynModuleOrNamespace.SynModuleOrNamespace SynModuleOrNamespace ### [SynModuleOrNamespace.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespace.html#Range) SynModuleOrNamespace.Range Range Gets the syntax range of this construct ### [SynModuleOrNamespace.SynModuleOrNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespace.html#SynModuleOrNamespace) SynModuleOrNamespace.SynModuleOrNamespace SynModuleOrNamespace ### [SynModuleOrNamespaceKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacekind.html) SynModuleOrNamespaceKind Represents the kind of a module or namespace definition SynModuleOrNamespaceKind.IsModule IsModule SynModuleOrNamespaceKind.NamedModule NamedModule SynModuleOrNamespaceKind.AnonModule AnonModule SynModuleOrNamespaceKind.DeclaredNamespace DeclaredNamespace SynModuleOrNamespaceKind.GlobalNamespace GlobalNamespace ### [SynModuleOrNamespaceKind.IsModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacekind.html#IsModule) SynModuleOrNamespaceKind.IsModule IsModule Indicates if this is a module definition ### [SynModuleOrNamespaceKind.NamedModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacekind.html#NamedModule) SynModuleOrNamespaceKind.NamedModule NamedModule A module is explicitly named 'module N' ### [SynModuleOrNamespaceKind.AnonModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacekind.html#AnonModule) SynModuleOrNamespaceKind.AnonModule AnonModule A module is anonymously named, e.g. a script ### [SynModuleOrNamespaceKind.DeclaredNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacekind.html#DeclaredNamespace) SynModuleOrNamespaceKind.DeclaredNamespace DeclaredNamespace A namespace is explicitly declared ### [SynModuleOrNamespaceKind.GlobalNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacekind.html#GlobalNamespace) SynModuleOrNamespaceKind.GlobalNamespace GlobalNamespace A namespace is declared 'global' ### [SynModuleOrNamespaceSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacesig.html) SynModuleOrNamespaceSig Represents the definition of a module or namespace in a signature file SynModuleOrNamespaceSig.Range Range SynModuleOrNamespaceSig.SynModuleOrNamespaceSig SynModuleOrNamespaceSig ### [SynModuleOrNamespaceSig.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacesig.html#Range) SynModuleOrNamespaceSig.Range Range Gets the syntax range of this construct ### [SynModuleOrNamespaceSig.SynModuleOrNamespaceSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmoduleornamespacesig.html#SynModuleOrNamespaceSig) SynModuleOrNamespaceSig.SynModuleOrNamespaceSig SynModuleOrNamespaceSig ### [SynModuleSigDecl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html) SynModuleSigDecl Represents a definition within a module or namespace in a signature file SynModuleSigDecl.Range Range SynModuleSigDecl.ModuleAbbrev ModuleAbbrev SynModuleSigDecl.NestedModule NestedModule SynModuleSigDecl.Val Val SynModuleSigDecl.Types Types SynModuleSigDecl.Exception Exception SynModuleSigDecl.Open Open SynModuleSigDecl.HashDirective HashDirective SynModuleSigDecl.NamespaceFragment NamespaceFragment ### [SynModuleSigDecl.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#Range) SynModuleSigDecl.Range Range Gets the syntax range of this construct ### [SynModuleSigDecl.ModuleAbbrev](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#ModuleAbbrev) SynModuleSigDecl.ModuleAbbrev ModuleAbbrev A module abbreviation definition within a module or namespace in a signature file ### [SynModuleSigDecl.NestedModule](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#NestedModule) SynModuleSigDecl.NestedModule NestedModule A nested module definition within a module or namespace in a signature file ### [SynModuleSigDecl.Val](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#Val) SynModuleSigDecl.Val Val A 'val' definition within a module or namespace in a signature file, corresponding to a 'let' definition in the implementation ### [SynModuleSigDecl.Types](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#Types) SynModuleSigDecl.Types Types A set of one or more type definitions within a module or namespace in a signature file ### [SynModuleSigDecl.Exception](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#Exception) SynModuleSigDecl.Exception Exception An exception definition within a module or namespace in a signature file ### [SynModuleSigDecl.Open](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#Open) SynModuleSigDecl.Open Open An 'open' definition within a module or namespace in a signature file ### [SynModuleSigDecl.HashDirective](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#HashDirective) SynModuleSigDecl.HashDirective HashDirective A hash directive within a module or namespace in a signature file ### [SynModuleSigDecl.NamespaceFragment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synmodulesigdecl.html#NamespaceFragment) SynModuleSigDecl.NamespaceFragment NamespaceFragment A namespace fragment within a namespace in a signature file ### [SynOpenDeclTarget](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synopendecltarget.html) SynOpenDeclTarget Represents the target of the open declaration SynOpenDeclTarget.Range Range SynOpenDeclTarget.ModuleOrNamespace ModuleOrNamespace SynOpenDeclTarget.Type Type ### [SynOpenDeclTarget.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synopendecltarget.html#Range) SynOpenDeclTarget.Range Range Gets the syntax range of this construct ### [SynOpenDeclTarget.ModuleOrNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synopendecltarget.html#ModuleOrNamespace) SynOpenDeclTarget.ModuleOrNamespace ModuleOrNamespace A 'open' declaration ### [SynOpenDeclTarget.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synopendecltarget.html#Type) SynOpenDeclTarget.Type Type A 'open type' declaration ### [SynPat](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html) SynPat Represents a syntax tree for an F# pattern SynPat.Range Range SynPat.Const Const SynPat.Wild Wild SynPat.Named Named SynPat.Typed Typed SynPat.Attrib Attrib SynPat.Or Or SynPat.ListCons ListCons SynPat.Ands Ands SynPat.As As SynPat.LongIdent LongIdent SynPat.Tuple Tuple SynPat.Paren Paren SynPat.ArrayOrList ArrayOrList SynPat.Record Record SynPat.Null Null SynPat.OptionalVal OptionalVal SynPat.IsInst IsInst SynPat.QuoteExpr QuoteExpr SynPat.InstanceMember InstanceMember SynPat.FromParseError FromParseError ### [SynPat.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Range) SynPat.Range Range Gets the syntax range of this construct ### [SynPat.Const](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Const) SynPat.Const Const A constant in a pattern ### [SynPat.Wild](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Wild) SynPat.Wild Wild A wildcard '_' in a pattern ### [SynPat.Named](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Named) SynPat.Named Named A name pattern 'ident' ### [SynPat.Typed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Typed) SynPat.Typed Typed A typed pattern 'pat : type' ### [SynPat.Attrib](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Attrib) SynPat.Attrib Attrib An attributed pattern, used in argument or declaration position ### [SynPat.Or](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Or) SynPat.Or Or A disjunctive pattern 'pat1 | pat2' ### [SynPat.ListCons](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#ListCons) SynPat.ListCons ListCons A conjunctive pattern 'pat1 :: pat2' ### [SynPat.Ands](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Ands) SynPat.Ands Ands A conjunctive pattern 'pat1 & pat2' ### [SynPat.As](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#As) SynPat.As As A conjunctive pattern 'pat1 as pat2' ### [SynPat.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#LongIdent) SynPat.LongIdent LongIdent A long identifier pattern possibly with argument patterns ### [SynPat.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Tuple) SynPat.Tuple Tuple A tuple pattern ### [SynPat.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Paren) SynPat.Paren Paren A parenthesized pattern ### [SynPat.ArrayOrList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#ArrayOrList) SynPat.ArrayOrList ArrayOrList An array or a list as a pattern ### [SynPat.Record](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Record) SynPat.Record Record A record pattern ### [SynPat.Null](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#Null) SynPat.Null Null The 'null' pattern ### [SynPat.OptionalVal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#OptionalVal) SynPat.OptionalVal OptionalVal '?id' -- for optional argument names ### [SynPat.IsInst](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#IsInst) SynPat.IsInst IsInst A type test pattern ':? type ' ### [SynPat.QuoteExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#QuoteExpr) SynPat.QuoteExpr QuoteExpr <@ expr @>, used for active pattern arguments ### [SynPat.InstanceMember](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#InstanceMember) SynPat.InstanceMember InstanceMember Used internally in the type checker ### [SynPat.FromParseError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synpat.html#FromParseError) SynPat.FromParseError FromParseError A pattern arising from a parse error ### [SynRationalConst](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synrationalconst.html) SynRationalConst Represents an unchecked syntax tree of F# unit of measure exponents. SynRationalConst.Integer Integer SynRationalConst.Rational Rational SynRationalConst.Negate Negate SynRationalConst.Paren Paren ### [SynRationalConst.Integer](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synrationalconst.html#Integer) SynRationalConst.Integer Integer ### [SynRationalConst.Rational](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synrationalconst.html#Rational) SynRationalConst.Rational Rational ### [SynRationalConst.Negate](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synrationalconst.html#Negate) SynRationalConst.Negate Negate ### [SynRationalConst.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synrationalconst.html#Paren) SynRationalConst.Paren Paren ### [SynReturnInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synreturninfo.html) SynReturnInfo Represents the syntactic elements associated with the "return" of a function or method. SynReturnInfo.Range Range SynReturnInfo.SynReturnInfo SynReturnInfo ### [SynReturnInfo.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synreturninfo.html#Range) SynReturnInfo.Range Range ### [SynReturnInfo.SynReturnInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synreturninfo.html#SynReturnInfo) SynReturnInfo.SynReturnInfo SynReturnInfo ### [SynSimplePat](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepat.html) SynSimplePat Represents a syntax tree for simple F# patterns SynSimplePat.Range Range SynSimplePat.Id Id SynSimplePat.Typed Typed SynSimplePat.Attrib Attrib ### [SynSimplePat.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepat.html#Range) SynSimplePat.Range Range ### [SynSimplePat.Id](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepat.html#Id) SynSimplePat.Id Id
 Indicates a simple pattern variable.

 altNameRefCell:
   Normally 'None' except for some compiler-generated variables in desugaring pattern matching.
   Pattern processing sets this reference for hidden variable introduced
   by desugaring pattern matching in arguments. The info indicates an
   alternative (compiler generated) identifier to be used because the
   name of the identifier is already bound.

 isCompilerGenerated: true if a compiler generated name
 isThisVal: true if 'this' variable in member
 isOptional: true if a '?' is in front of the name
### [SynSimplePat.Typed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepat.html#Typed) SynSimplePat.Typed Typed A type annotated simple pattern ### [SynSimplePat.Attrib](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepat.html#Attrib) SynSimplePat.Attrib Attrib An attributed simple pattern ### [SynSimplePatAlternativeIdInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepatalternativeidinfo.html) SynSimplePatAlternativeIdInfo Represents the alternative identifier for a simple pattern SynSimplePatAlternativeIdInfo.Undecided Undecided SynSimplePatAlternativeIdInfo.Decided Decided ### [SynSimplePatAlternativeIdInfo.Undecided](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepatalternativeidinfo.html#Undecided) SynSimplePatAlternativeIdInfo.Undecided Undecided We have not decided to use an alternative name in the pattern and related expression ### [SynSimplePatAlternativeIdInfo.Decided](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepatalternativeidinfo.html#Decided) SynSimplePatAlternativeIdInfo.Decided Decided We have decided to use an alternative name in the pattern and related expression ### [SynSimplePats](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepats.html) SynSimplePats Represents a simple set of variable bindings a, (a, b) or (a: Type, b: Type) at a lambda, function definition or other binding point, after the elimination of pattern matching from the construct, e.g. after changing a "function pat1 -> rule1 | ..." to a "fun v -> match v with ..." SynSimplePats.Range Range SynSimplePats.SimplePats SimplePats ### [SynSimplePats.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepats.html#Range) SynSimplePats.Range Range ### [SynSimplePats.SimplePats](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synsimplepats.html#SimplePats) SynSimplePats.SimplePats SimplePats ### [SynStaticOptimizationConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstaticoptimizationconstraint.html) SynStaticOptimizationConstraint Represents a syntax tree for a static optimization constraint in the F# core library SynStaticOptimizationConstraint.WhenTyparTyconEqualsTycon WhenTyparTyconEqualsTycon SynStaticOptimizationConstraint.WhenTyparIsStruct WhenTyparIsStruct ### [SynStaticOptimizationConstraint.WhenTyparTyconEqualsTycon](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstaticoptimizationconstraint.html#WhenTyparTyconEqualsTycon) SynStaticOptimizationConstraint.WhenTyparTyconEqualsTycon WhenTyparTyconEqualsTycon A static optimization conditional that activates for a particular type instantiation ### [SynStaticOptimizationConstraint.WhenTyparIsStruct](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstaticoptimizationconstraint.html#WhenTyparIsStruct) SynStaticOptimizationConstraint.WhenTyparIsStruct WhenTyparIsStruct A static optimization conditional that activates for a struct ### [SynStringKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstringkind.html) SynStringKind Indicate if the string had a special format SynStringKind.Regular Regular SynStringKind.Verbatim Verbatim SynStringKind.TripleQuote TripleQuote ### [SynStringKind.Regular](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstringkind.html#Regular) SynStringKind.Regular Regular ### [SynStringKind.Verbatim](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstringkind.html#Verbatim) SynStringKind.Verbatim Verbatim ### [SynStringKind.TripleQuote](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synstringkind.html#TripleQuote) SynStringKind.TripleQuote TripleQuote ### [SynTupleTypeSegment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntupletypesegment.html) SynTupleTypeSegment SynTupleTypeSegment.Range Range SynTupleTypeSegment.Type Type SynTupleTypeSegment.Star Star SynTupleTypeSegment.Slash Slash ### [SynTupleTypeSegment.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntupletypesegment.html#Range) SynTupleTypeSegment.Range Range ### [SynTupleTypeSegment.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntupletypesegment.html#Type) SynTupleTypeSegment.Type Type ### [SynTupleTypeSegment.Star](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntupletypesegment.html#Star) SynTupleTypeSegment.Star Star ### [SynTupleTypeSegment.Slash](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntupletypesegment.html#Slash) SynTupleTypeSegment.Slash Slash ### [SynTypar](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypar.html) SynTypar Represents a syntactic type parameter SynTypar.Range Range SynTypar.SynTypar SynTypar ### [SynTypar.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypar.html#Range) SynTypar.Range Range Gets the syntax range of this construct ### [SynTypar.SynTypar](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypar.html#SynTypar) SynTypar.SynTypar SynTypar ### [SynTyparDecl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecl.html) SynTyparDecl Represents the explicit declaration of a type parameter SynTyparDecl.SynTyparDecl SynTyparDecl ### [SynTyparDecl.SynTyparDecl](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecl.html#SynTyparDecl) SynTyparDecl.SynTyparDecl SynTyparDecl ### [SynTyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html) SynTyparDecls List of type parameter declarations with optional type constraints, enclosed in `< ... >` (postfix) or `( ... )` (prefix), or a single prefix parameter. SynTyparDecls.Constraints Constraints SynTyparDecls.Range Range SynTyparDecls.TyparDecls TyparDecls SynTyparDecls.PostfixList PostfixList SynTyparDecls.PrefixList PrefixList SynTyparDecls.SinglePrefix SinglePrefix ### [SynTyparDecls.Constraints](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html#Constraints) SynTyparDecls.Constraints Constraints ### [SynTyparDecls.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html#Range) SynTyparDecls.Range Range ### [SynTyparDecls.TyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html#TyparDecls) SynTyparDecls.TyparDecls TyparDecls ### [SynTyparDecls.PostfixList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html#PostfixList) SynTyparDecls.PostfixList PostfixList ### [SynTyparDecls.PrefixList](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html#PrefixList) SynTyparDecls.PrefixList PrefixList ### [SynTyparDecls.SinglePrefix](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypardecls.html#SinglePrefix) SynTyparDecls.SinglePrefix SinglePrefix ### [SynType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html) SynType Represents a syntax tree for F# types SynType.Range Range SynType.LongIdent LongIdent SynType.App App SynType.LongIdentApp LongIdentApp SynType.Tuple Tuple SynType.AnonRecd AnonRecd SynType.Array Array SynType.Fun Fun SynType.Var Var SynType.Anon Anon SynType.WithGlobalConstraints WithGlobalConstraints SynType.HashConstraint HashConstraint SynType.MeasurePower MeasurePower SynType.StaticConstant StaticConstant SynType.StaticConstantNull StaticConstantNull SynType.StaticConstantExpr StaticConstantExpr SynType.StaticConstantNamed StaticConstantNamed SynType.WithNull WithNull SynType.Paren Paren SynType.SignatureParameter SignatureParameter SynType.Or Or SynType.FromParseError FromParseError SynType.Intersection Intersection ### [SynType.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Range) SynType.Range Range Gets the syntax range of this construct ### [SynType.LongIdent](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#LongIdent) SynType.LongIdent LongIdent F# syntax: A.B.C ### [SynType.App](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#App) SynType.App App
 F# syntax: type or type type or (type, ..., type) type
   isPostfix: indicates a postfix type application e.g. "int list" or "(int, string) dict"
### [SynType.LongIdentApp](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#LongIdentApp) SynType.LongIdentApp LongIdentApp F# syntax: type.A.B.C ### [SynType.Tuple](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Tuple) SynType.Tuple Tuple F# syntax: type * ... * type F# syntax: struct (type * ... * type) ### [SynType.AnonRecd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#AnonRecd) SynType.AnonRecd AnonRecd F# syntax: {| id: type; ...; id: type |} F# syntax: struct {| id: type; ...; id: type |} ### [SynType.Array](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Array) SynType.Array Array F# syntax: type[] ### [SynType.Fun](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Fun) SynType.Fun Fun F# syntax: type -> type ### [SynType.Var](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Var) SynType.Var Var F# syntax: 'Var ### [SynType.Anon](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Anon) SynType.Anon Anon F# syntax: _ ### [SynType.WithGlobalConstraints](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#WithGlobalConstraints) SynType.WithGlobalConstraints WithGlobalConstraints F# syntax: typ with constraints ### [SynType.HashConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#HashConstraint) SynType.HashConstraint HashConstraint F# syntax: #type ### [SynType.MeasurePower](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#MeasurePower) SynType.MeasurePower MeasurePower F# syntax: for units of measure e.g. m^3, kg^1/2 ### [SynType.StaticConstant](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#StaticConstant) SynType.StaticConstant StaticConstant F# syntax: 1, "abc" etc, used in parameters to type providers For the dimensionless units i.e. 1, and static parameters to provided types ### [SynType.StaticConstantNull](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#StaticConstantNull) SynType.StaticConstantNull StaticConstantNull F# syntax: null, used in parameters to type providers ### [SynType.StaticConstantExpr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#StaticConstantExpr) SynType.StaticConstantExpr StaticConstantExpr F# syntax: const expr, used in static parameters to type providers ### [SynType.StaticConstantNamed](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#StaticConstantNamed) SynType.StaticConstantNamed StaticConstantNamed F# syntax: ident=1 etc., used in static parameters to type providers ### [SynType.WithNull](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#WithNull) SynType.WithNull WithNull ### [SynType.Paren](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Paren) SynType.Paren Paren ### [SynType.SignatureParameter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#SignatureParameter) SynType.SignatureParameter SignatureParameter F# syntax: a: b, used in signatures and type annotations ### [SynType.Or](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Or) SynType.Or Or F# syntax: ^a or ^b, used in trait calls ### [SynType.FromParseError](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#FromParseError) SynType.FromParseError FromParseError A type arising from a parse error ### [SynType.Intersection](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntype.html#Intersection) SynType.Intersection Intersection F# syntax: x: #I1 & #I2 F# syntax: x: 't & #I1 & #I2 Shorthand for x: 't when 't :> I1 and 't :> I2 ### [SynTypeConstraint](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html) SynTypeConstraint The unchecked abstract syntax tree of F# type constraints SynTypeConstraint.Range Range SynTypeConstraint.WhereTyparIsValueType WhereTyparIsValueType SynTypeConstraint.WhereTyparIsReferenceType WhereTyparIsReferenceType SynTypeConstraint.WhereTyparIsUnmanaged WhereTyparIsUnmanaged SynTypeConstraint.WhereTyparSupportsNull WhereTyparSupportsNull SynTypeConstraint.WhereTyparNotSupportsNull WhereTyparNotSupportsNull SynTypeConstraint.WhereTyparIsComparable WhereTyparIsComparable SynTypeConstraint.WhereTyparIsEquatable WhereTyparIsEquatable SynTypeConstraint.WhereTyparDefaultsToType WhereTyparDefaultsToType SynTypeConstraint.WhereTyparSubtypeOfType WhereTyparSubtypeOfType SynTypeConstraint.WhereTyparSupportsMember WhereTyparSupportsMember SynTypeConstraint.WhereTyparIsEnum WhereTyparIsEnum SynTypeConstraint.WhereTyparIsDelegate WhereTyparIsDelegate SynTypeConstraint.WhereSelfConstrained WhereSelfConstrained ### [SynTypeConstraint.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#Range) SynTypeConstraint.Range Range ### [SynTypeConstraint.WhereTyparIsValueType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsValueType) SynTypeConstraint.WhereTyparIsValueType WhereTyparIsValueType F# syntax: is 'typar: struct ### [SynTypeConstraint.WhereTyparIsReferenceType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsReferenceType) SynTypeConstraint.WhereTyparIsReferenceType WhereTyparIsReferenceType F# syntax: is 'typar: not struct ### [SynTypeConstraint.WhereTyparIsUnmanaged](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsUnmanaged) SynTypeConstraint.WhereTyparIsUnmanaged WhereTyparIsUnmanaged F# syntax is 'typar: unmanaged ### [SynTypeConstraint.WhereTyparSupportsNull](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparSupportsNull) SynTypeConstraint.WhereTyparSupportsNull WhereTyparSupportsNull F# syntax is 'typar: null ### [SynTypeConstraint.WhereTyparNotSupportsNull](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparNotSupportsNull) SynTypeConstraint.WhereTyparNotSupportsNull WhereTyparNotSupportsNull F# syntax is 'typar : null ### [SynTypeConstraint.WhereTyparIsComparable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsComparable) SynTypeConstraint.WhereTyparIsComparable WhereTyparIsComparable F# syntax is 'typar: comparison ### [SynTypeConstraint.WhereTyparIsEquatable](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsEquatable) SynTypeConstraint.WhereTyparIsEquatable WhereTyparIsEquatable F# syntax is 'typar: equality ### [SynTypeConstraint.WhereTyparDefaultsToType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparDefaultsToType) SynTypeConstraint.WhereTyparDefaultsToType WhereTyparDefaultsToType F# syntax is default ^T: type ### [SynTypeConstraint.WhereTyparSubtypeOfType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparSubtypeOfType) SynTypeConstraint.WhereTyparSubtypeOfType WhereTyparSubtypeOfType F# syntax is 'typar :> type ### [SynTypeConstraint.WhereTyparSupportsMember](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparSupportsMember) SynTypeConstraint.WhereTyparSupportsMember WhereTyparSupportsMember F# syntax is ^T: (static member MemberName: ^T * int -> ^T) ### [SynTypeConstraint.WhereTyparIsEnum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsEnum) SynTypeConstraint.WhereTyparIsEnum WhereTyparIsEnum F# syntax is 'typar: enum<'UnderlyingType> ### [SynTypeConstraint.WhereTyparIsDelegate](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereTyparIsDelegate) SynTypeConstraint.WhereTyparIsDelegate WhereTyparIsDelegate F# syntax is 'typar: delegate<'Args, unit> ### [SynTypeConstraint.WhereSelfConstrained](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypeconstraint.html#WhereSelfConstrained) SynTypeConstraint.WhereSelfConstrained WhereSelfConstrained F# syntax is SomeThing<'T> ### [SynTypeDefn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefn.html) SynTypeDefn Represents a type or exception declaration 'type C = ... ' plus any additional member definitions for the type SynTypeDefn.Range Range SynTypeDefn.SynTypeDefn SynTypeDefn ### [SynTypeDefn.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefn.html#Range) SynTypeDefn.Range Range Gets the syntax range of this construct ### [SynTypeDefn.SynTypeDefn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefn.html#SynTypeDefn) SynTypeDefn.SynTypeDefn SynTypeDefn ### [SynTypeDefnKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html) SynTypeDefnKind Represents the kind of a type definition whether explicit or inferred SynTypeDefnKind.Unspecified Unspecified SynTypeDefnKind.Class Class SynTypeDefnKind.Interface Interface SynTypeDefnKind.Struct Struct SynTypeDefnKind.Record Record SynTypeDefnKind.Union Union SynTypeDefnKind.Abbrev Abbrev SynTypeDefnKind.Opaque Opaque SynTypeDefnKind.Augmentation Augmentation SynTypeDefnKind.IL IL SynTypeDefnKind.Delegate Delegate ### [SynTypeDefnKind.Unspecified](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Unspecified) SynTypeDefnKind.Unspecified Unspecified ### [SynTypeDefnKind.Class](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Class) SynTypeDefnKind.Class Class ### [SynTypeDefnKind.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Interface) SynTypeDefnKind.Interface Interface ### [SynTypeDefnKind.Struct](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Struct) SynTypeDefnKind.Struct Struct ### [SynTypeDefnKind.Record](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Record) SynTypeDefnKind.Record Record ### [SynTypeDefnKind.Union](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Union) SynTypeDefnKind.Union Union ### [SynTypeDefnKind.Abbrev](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Abbrev) SynTypeDefnKind.Abbrev Abbrev ### [SynTypeDefnKind.Opaque](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Opaque) SynTypeDefnKind.Opaque Opaque ### [SynTypeDefnKind.Augmentation](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Augmentation) SynTypeDefnKind.Augmentation Augmentation ### [SynTypeDefnKind.IL](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#IL) SynTypeDefnKind.IL IL ### [SynTypeDefnKind.Delegate](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnkind.html#Delegate) SynTypeDefnKind.Delegate Delegate ### [SynTypeDefnRepr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnrepr.html) SynTypeDefnRepr Represents the right hand side of a type or exception declaration 'type C = ... ' plus any additional member definitions for the type SynTypeDefnRepr.Range Range SynTypeDefnRepr.ObjectModel ObjectModel SynTypeDefnRepr.Simple Simple SynTypeDefnRepr.Exception Exception ### [SynTypeDefnRepr.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnrepr.html#Range) SynTypeDefnRepr.Range Range Gets the syntax range of this construct ### [SynTypeDefnRepr.ObjectModel](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnrepr.html#ObjectModel) SynTypeDefnRepr.ObjectModel ObjectModel An object model type definition (class or interface) ### [SynTypeDefnRepr.Simple](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnrepr.html#Simple) SynTypeDefnRepr.Simple Simple A simple type definition (record, union, abbreviation) ### [SynTypeDefnRepr.Exception](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnrepr.html#Exception) SynTypeDefnRepr.Exception Exception An exception definition ### [SynTypeDefnSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsig.html) SynTypeDefnSig Represents the syntax tree for a type definition in a signature SynTypeDefnSig.Range Range SynTypeDefnSig.SynTypeDefnSig SynTypeDefnSig ### [SynTypeDefnSig.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsig.html#Range) SynTypeDefnSig.Range Range Gets the syntax range of this construct ### [SynTypeDefnSig.SynTypeDefnSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsig.html#SynTypeDefnSig) SynTypeDefnSig.SynTypeDefnSig SynTypeDefnSig The information for a type definition in a signature ### [SynTypeDefnSigRepr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsigrepr.html) SynTypeDefnSigRepr Represents the syntax tree for the right-hand-side of a type definition in a signature. Note: in practice, using a discriminated union to make a distinction between "simple" types and "object oriented" types is not particularly useful. SynTypeDefnSigRepr.Range Range SynTypeDefnSigRepr.ObjectModel ObjectModel SynTypeDefnSigRepr.Simple Simple SynTypeDefnSigRepr.Exception Exception ### [SynTypeDefnSigRepr.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsigrepr.html#Range) SynTypeDefnSigRepr.Range Range Gets the syntax range of this construct ### [SynTypeDefnSigRepr.ObjectModel](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsigrepr.html#ObjectModel) SynTypeDefnSigRepr.ObjectModel ObjectModel Indicates the right right-hand-side is a class, struct, interface or other object-model type ### [SynTypeDefnSigRepr.Simple](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsigrepr.html#Simple) SynTypeDefnSigRepr.Simple Simple Indicates the right right-hand-side is a record, union or other simple type. ### [SynTypeDefnSigRepr.Exception](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsigrepr.html#Exception) SynTypeDefnSigRepr.Exception Exception ### [SynTypeDefnSimpleRepr](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html) SynTypeDefnSimpleRepr Represents the syntax tree for the core of a simple type definition, in either signature or implementation. SynTypeDefnSimpleRepr.Range Range SynTypeDefnSimpleRepr.Union Union SynTypeDefnSimpleRepr.Enum Enum SynTypeDefnSimpleRepr.Record Record SynTypeDefnSimpleRepr.General General SynTypeDefnSimpleRepr.LibraryOnlyILAssembly LibraryOnlyILAssembly SynTypeDefnSimpleRepr.TypeAbbrev TypeAbbrev SynTypeDefnSimpleRepr.None None SynTypeDefnSimpleRepr.Exception Exception ### [SynTypeDefnSimpleRepr.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#Range) SynTypeDefnSimpleRepr.Range Range Gets the syntax range of this construct ### [SynTypeDefnSimpleRepr.Union](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#Union) SynTypeDefnSimpleRepr.Union Union A union type definition, type X = A | B ### [SynTypeDefnSimpleRepr.Enum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#Enum) SynTypeDefnSimpleRepr.Enum Enum An enum type definition, type X = A = 1 | B = 2 ### [SynTypeDefnSimpleRepr.Record](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#Record) SynTypeDefnSimpleRepr.Record Record A record type definition, type X = { A: int; B: int } ### [SynTypeDefnSimpleRepr.General](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#General) SynTypeDefnSimpleRepr.General General An object oriented type definition. This is not a parse-tree form, but represents the core type representation which the type checker splits out from the "ObjectModel" cases of type definitions. ### [SynTypeDefnSimpleRepr.LibraryOnlyILAssembly](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#LibraryOnlyILAssembly) SynTypeDefnSimpleRepr.LibraryOnlyILAssembly LibraryOnlyILAssembly A type defined by using an IL assembly representation. Only used in FSharp.Core. F# syntax: "type X = (# "..."#) ### [SynTypeDefnSimpleRepr.TypeAbbrev](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#TypeAbbrev) SynTypeDefnSimpleRepr.TypeAbbrev TypeAbbrev A type abbreviation, "type X = A.B.C" ### [SynTypeDefnSimpleRepr.None](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#None) SynTypeDefnSimpleRepr.None None An abstract definition, "type X" ### [SynTypeDefnSimpleRepr.Exception](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypedefnsimplerepr.html#Exception) SynTypeDefnSimpleRepr.Exception Exception An exception definition, "exception E = ..." ### [SynTypeSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypespread.html) SynTypeSpread Represents a type spread in a type definition. type Ty2 = { ...Ty1 } SynTypeSpread.SynTypeSpread SynTypeSpread ### [SynTypeSpread.SynTypeSpread](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-syntypespread.html#SynTypeSpread) SynTypeSpread.SynTypeSpread SynTypeSpread ### [SynUnionCase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synunioncase.html) SynUnionCase Represents the syntax tree for one case in a union definition. SynUnionCase.Range Range SynUnionCase.SynUnionCase SynUnionCase ### [SynUnionCase.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synunioncase.html#Range) SynUnionCase.Range Range Gets the syntax range of this construct ### [SynUnionCase.SynUnionCase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synunioncase.html#SynUnionCase) SynUnionCase.SynUnionCase SynUnionCase ### [SynUnionCaseKind](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synunioncasekind.html) SynUnionCaseKind Represents the syntax tree for the right-hand-side of union definition, excluding members, in either a signature or implementation. SynUnionCaseKind.Fields Fields SynUnionCaseKind.FullType FullType ### [SynUnionCaseKind.Fields](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synunioncasekind.html#Fields) SynUnionCaseKind.Fields Fields Normal style declaration ### [SynUnionCaseKind.FullType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synunioncasekind.html#FullType) SynUnionCaseKind.FullType FullType Full type spec given by 'UnionCase: ty1 * tyN -> rty'. Only used in FSharp.Core, otherwise a warning. ### [SynValData](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvaldata.html) SynValData Represents extra information about the declaration of a value SynValData.SynValInfo SynValInfo SynValData.SynValData SynValData ### [SynValData.SynValInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvaldata.html#SynValInfo) SynValData.SynValInfo SynValInfo ### [SynValData.SynValData](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvaldata.html#SynValData) SynValData.SynValData SynValData ### [SynValInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalinfo.html) SynValInfo The argument names and other metadata for a member or function SynValInfo.CurriedArgInfos CurriedArgInfos SynValInfo.ArgNames ArgNames SynValInfo.SynValInfo SynValInfo ### [SynValInfo.CurriedArgInfos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalinfo.html#CurriedArgInfos) SynValInfo.CurriedArgInfos CurriedArgInfos ### [SynValInfo.ArgNames](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalinfo.html#ArgNames) SynValInfo.ArgNames ArgNames ### [SynValInfo.SynValInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalinfo.html#SynValInfo) SynValInfo.SynValInfo SynValInfo SynValInfo(curriedArgInfos, returnInfo) ### [SynValSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsig.html) SynValSig Represents the syntax tree for a 'val' definition in an abstract slot or a signature file SynValSig.SynInfo SynInfo SynValSig.SynType SynType SynValSig.RangeOfId RangeOfId SynValSig.SynValSig SynValSig ### [SynValSig.SynInfo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsig.html#SynInfo) SynValSig.SynInfo SynInfo ### [SynValSig.SynType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsig.html#SynType) SynValSig.SynType SynType ### [SynValSig.RangeOfId](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsig.html#RangeOfId) SynValSig.RangeOfId RangeOfId ### [SynValSig.SynValSig](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsig.html#SynValSig) SynValSig.SynValSig SynValSig ### [SynValSigAccess](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsigaccess.html) SynValSigAccess Represents one or two access modifier(s) in a property signature SynValSigAccess.GetSetAccessNoCheck GetSetAccessNoCheck SynValSigAccess.SingleAccess SingleAccess SynValSigAccess.Single Single SynValSigAccess.GetSet GetSet ### [SynValSigAccess.GetSetAccessNoCheck](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsigaccess.html#GetSetAccessNoCheck) SynValSigAccess.GetSetAccessNoCheck GetSetAccessNoCheck ### [SynValSigAccess.SingleAccess](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsigaccess.html#SingleAccess) SynValSigAccess.SingleAccess SingleAccess ### [SynValSigAccess.Single](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsigaccess.html#Single) SynValSigAccess.Single Single ### [SynValSigAccess.GetSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvalsigaccess.html#GetSet) SynValSigAccess.GetSet GetSet ### [SynValTyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvaltypardecls.html) SynValTyparDecls Represents the names and other metadata for the type parameters for a member or function SynValTyparDecls.SynValTyparDecls SynValTyparDecls ### [SynValTyparDecls.SynValTyparDecls](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-synvaltypardecls.html#SynValTyparDecls) SynValTyparDecls.SynValTyparDecls SynValTyparDecls ### [TyparStaticReq](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-typarstaticreq.html) TyparStaticReq Represents whether a type parameter has a static requirement or not (^T or 'T) TyparStaticReq.None None TyparStaticReq.HeadType HeadType ### [TyparStaticReq.None](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-typarstaticreq.html#None) TyparStaticReq.None None The construct is a normal type inference variable ### [TyparStaticReq.HeadType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntax-typarstaticreq.html#HeadType) TyparStaticReq.HeadType HeadType The construct is a statically inferred type inference variable '^T' ### [CommentTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-commenttrivia.html) CommentTrivia CommentTrivia.LineComment LineComment CommentTrivia.BlockComment BlockComment ### [CommentTrivia.LineComment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-commenttrivia.html#LineComment) CommentTrivia.LineComment LineComment ### [CommentTrivia.BlockComment](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-commenttrivia.html#BlockComment) CommentTrivia.BlockComment BlockComment ### [ConditionalDirectiveTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-conditionaldirectivetrivia.html) ConditionalDirectiveTrivia ConditionalDirectiveTrivia.If If ConditionalDirectiveTrivia.Elif Elif ConditionalDirectiveTrivia.Else Else ConditionalDirectiveTrivia.EndIf EndIf ### [ConditionalDirectiveTrivia.If](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-conditionaldirectivetrivia.html#If) ConditionalDirectiveTrivia.If If ### [ConditionalDirectiveTrivia.Elif](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-conditionaldirectivetrivia.html#Elif) ConditionalDirectiveTrivia.Elif Elif ### [ConditionalDirectiveTrivia.Else](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-conditionaldirectivetrivia.html#Else) ConditionalDirectiveTrivia.Else Else ### [ConditionalDirectiveTrivia.EndIf](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-conditionaldirectivetrivia.html#EndIf) ConditionalDirectiveTrivia.EndIf EndIf ### [GetSetKeywords](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-getsetkeywords.html) GetSetKeywords Represents additional information for `get, set` syntax GetSetKeywords.Range Range GetSetKeywords.Get Get GetSetKeywords.Set Set GetSetKeywords.GetSet GetSet ### [GetSetKeywords.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-getsetkeywords.html#Range) GetSetKeywords.Range Range ### [GetSetKeywords.Get](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-getsetkeywords.html#Get) GetSetKeywords.Get Get ### [GetSetKeywords.Set](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-getsetkeywords.html#Set) GetSetKeywords.Set Set ### [GetSetKeywords.GetSet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-getsetkeywords.html#GetSet) GetSetKeywords.GetSet GetSet ### [IdentTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-identtrivia.html) IdentTrivia IdentTrivia.OriginalNotation OriginalNotation IdentTrivia.OriginalNotationWithParen OriginalNotationWithParen IdentTrivia.HasParenthesis HasParenthesis ### [IdentTrivia.OriginalNotation](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-identtrivia.html#OriginalNotation) IdentTrivia.OriginalNotation OriginalNotation The ident originally had a different notation. Example: a + b The operator ident will be compiled into "op_Addition", while the original notation was "+" ### [IdentTrivia.OriginalNotationWithParen](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-identtrivia.html#OriginalNotationWithParen) IdentTrivia.OriginalNotationWithParen OriginalNotationWithParen The ident originally had a different notation and parenthesis Example: let (>=>) a b = ... The operator ident will be compiled into "op_GreaterEqualsGreater", while the original notation was ">=>" and had parenthesis ### [IdentTrivia.HasParenthesis](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-identtrivia.html#HasParenthesis) IdentTrivia.HasParenthesis HasParenthesis The ident had parenthesis Example: let (|Odd|Even|) = ... The active pattern ident will be "|Odd|Even|", while originally there were parenthesis. ### [IfDirectiveExpression](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-ifdirectiveexpression.html) IfDirectiveExpression IfDirectiveExpression.And And IfDirectiveExpression.Or Or IfDirectiveExpression.Not Not IfDirectiveExpression.Ident Ident ### [IfDirectiveExpression.And](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-ifdirectiveexpression.html#And) IfDirectiveExpression.And And ### [IfDirectiveExpression.Or](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-ifdirectiveexpression.html#Or) IfDirectiveExpression.Or Or ### [IfDirectiveExpression.Not](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-ifdirectiveexpression.html#Not) IfDirectiveExpression.Not Not ### [IfDirectiveExpression.Ident](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-ifdirectiveexpression.html#Ident) IfDirectiveExpression.Ident Ident ### [ParsedInputTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-parsedinputtrivia.html) ParsedInputTrivia Represents additional information for ParsedInput ParsedInputTrivia.ConditionalDirectives ConditionalDirectives ParsedInputTrivia.WarnDirectives WarnDirectives ParsedInputTrivia.CodeComments CodeComments ### [ParsedInputTrivia.ConditionalDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-parsedinputtrivia.html#ConditionalDirectives) ParsedInputTrivia.ConditionalDirectives ConditionalDirectives Preprocessor directives of type #if, #elif, #else or #endif ### [ParsedInputTrivia.WarnDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-parsedinputtrivia.html#WarnDirectives) ParsedInputTrivia.WarnDirectives WarnDirectives Warn directives (#nowarn / #warnon) ### [ParsedInputTrivia.CodeComments](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-parsedinputtrivia.html#CodeComments) ParsedInputTrivia.CodeComments CodeComments Represent code comments found in the source file ### [SynArgPatsNamePatPairsTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synargpatsnamepatpairstrivia.html) SynArgPatsNamePatPairsTrivia Represents additional information for SynArgPats.NamePatPairs SynArgPatsNamePatPairsTrivia.ParenRange ParenRange ### [SynArgPatsNamePatPairsTrivia.ParenRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synargpatsnamepatpairstrivia.html#ParenRange) SynArgPatsNamePatPairsTrivia.ParenRange ParenRange The syntax range from the beginning of the `(` token till the end of the `)` token. ### [SynBindingReturnInfoTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingreturninfotrivia.html) SynBindingReturnInfoTrivia Represents additional information for SynBindingReturnInfo SynBindingReturnInfoTrivia.ColonRange ColonRange ### [SynBindingReturnInfoTrivia.ColonRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingreturninfotrivia.html#ColonRange) SynBindingReturnInfoTrivia.ColonRange ColonRange The syntax range of the `:` token ### [SynBindingTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingtrivia.html) SynBindingTrivia Represents additional information for SynBinding SynBindingTrivia.Zero Zero SynBindingTrivia.LeadingKeyword LeadingKeyword SynBindingTrivia.InlineKeyword InlineKeyword SynBindingTrivia.EqualsRange EqualsRange ### [SynBindingTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingtrivia.html#Zero) SynBindingTrivia.Zero Zero ### [SynBindingTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingtrivia.html#LeadingKeyword) SynBindingTrivia.LeadingKeyword LeadingKeyword Used leading keyword of SynBinding ### [SynBindingTrivia.InlineKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingtrivia.html#InlineKeyword) SynBindingTrivia.InlineKeyword InlineKeyword The syntax range of the `inline` keyword ### [SynBindingTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synbindingtrivia.html#EqualsRange) SynBindingTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [SynEnumCaseTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synenumcasetrivia.html) SynEnumCaseTrivia Represents additional information for SynEnumCaseTrivia.BarRange BarRange SynEnumCaseTrivia.EqualsRange EqualsRange ### [SynEnumCaseTrivia.BarRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synenumcasetrivia.html#BarRange) SynEnumCaseTrivia.BarRange BarRange The syntax range of the `|` token. ### [SynEnumCaseTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synenumcasetrivia.html#EqualsRange) SynEnumCaseTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [SynExceptionDefnReprTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexceptiondefnreprtrivia.html) SynExceptionDefnReprTrivia Represents additional information for SynExceptionDefnRepr SynExceptionDefnReprTrivia.ExceptionKeyword ExceptionKeyword ### [SynExceptionDefnReprTrivia.ExceptionKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexceptiondefnreprtrivia.html#ExceptionKeyword) SynExceptionDefnReprTrivia.ExceptionKeyword ExceptionKeyword The syntax range of the `exception` keyword. ### [SynExprAnonRecdTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpranonrecdtrivia.html) SynExprAnonRecdTrivia Represents additional information for SynExpr.AnonRecd SynExprAnonRecdTrivia.OpeningBraceRange OpeningBraceRange ### [SynExprAnonRecdTrivia.OpeningBraceRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpranonrecdtrivia.html#OpeningBraceRange) SynExprAnonRecdTrivia.OpeningBraceRange OpeningBraceRange The syntax range of the `{|` token. ### [SynExprDoBangTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprdobangtrivia.html) SynExprDoBangTrivia Represents additional information for SynExpr.DoBang SynExprDoBangTrivia.DoBangKeyword DoBangKeyword ### [SynExprDoBangTrivia.DoBangKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprdobangtrivia.html#DoBangKeyword) SynExprDoBangTrivia.DoBangKeyword DoBangKeyword The syntax range of the `do!` keyword ### [SynExprDotLambdaTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprdotlambdatrivia.html) SynExprDotLambdaTrivia Represents additional information for SynExpr.DotLambda SynExprDotLambdaTrivia.UnderscoreRange UnderscoreRange SynExprDotLambdaTrivia.DotRange DotRange ### [SynExprDotLambdaTrivia.UnderscoreRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprdotlambdatrivia.html#UnderscoreRange) SynExprDotLambdaTrivia.UnderscoreRange UnderscoreRange ### [SynExprDotLambdaTrivia.DotRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprdotlambdatrivia.html#DotRange) SynExprDotLambdaTrivia.DotRange DotRange ### [SynExprIfThenElseTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprifthenelsetrivia.html) SynExprIfThenElseTrivia Represents additional information for SynExpr.IfThenElse SynExprIfThenElseTrivia.IfKeyword IfKeyword SynExprIfThenElseTrivia.IsElif IsElif SynExprIfThenElseTrivia.ThenKeyword ThenKeyword SynExprIfThenElseTrivia.ElseKeyword ElseKeyword SynExprIfThenElseTrivia.IfToThenRange IfToThenRange ### [SynExprIfThenElseTrivia.IfKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprifthenelsetrivia.html#IfKeyword) SynExprIfThenElseTrivia.IfKeyword IfKeyword The syntax range of the `if` keyword. ### [SynExprIfThenElseTrivia.IsElif](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprifthenelsetrivia.html#IsElif) SynExprIfThenElseTrivia.IsElif IsElif Indicates if the `elif` keyword was used ### [SynExprIfThenElseTrivia.ThenKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprifthenelsetrivia.html#ThenKeyword) SynExprIfThenElseTrivia.ThenKeyword ThenKeyword The syntax range of the `then` keyword. ### [SynExprIfThenElseTrivia.ElseKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprifthenelsetrivia.html#ElseKeyword) SynExprIfThenElseTrivia.ElseKeyword ElseKeyword The syntax range of the `else` keyword. ### [SynExprIfThenElseTrivia.IfToThenRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprifthenelsetrivia.html#IfToThenRange) SynExprIfThenElseTrivia.IfToThenRange IfToThenRange The syntax range from the beginning of the `if` keyword till the end of the `then` keyword. ### [SynExprLambdaTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprlambdatrivia.html) SynExprLambdaTrivia Represents additional information for SynExpr.Lambda SynExprLambdaTrivia.Zero Zero SynExprLambdaTrivia.ArrowRange ArrowRange ### [SynExprLambdaTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprlambdatrivia.html#Zero) SynExprLambdaTrivia.Zero Zero ### [SynExprLambdaTrivia.ArrowRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprlambdatrivia.html#ArrowRange) SynExprLambdaTrivia.ArrowRange ArrowRange The syntax range of the `->` token. ### [SynExprMatchBangTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprmatchbangtrivia.html) SynExprMatchBangTrivia Represents additional information for SynExpr.MatchBang SynExprMatchBangTrivia.MatchBangKeyword MatchBangKeyword SynExprMatchBangTrivia.WithKeyword WithKeyword ### [SynExprMatchBangTrivia.MatchBangKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprmatchbangtrivia.html#MatchBangKeyword) SynExprMatchBangTrivia.MatchBangKeyword MatchBangKeyword The syntax range of the `match!` keyword ### [SynExprMatchBangTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprmatchbangtrivia.html#WithKeyword) SynExprMatchBangTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynExprMatchTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprmatchtrivia.html) SynExprMatchTrivia Represents additional information for SynExpr.Match SynExprMatchTrivia.MatchKeyword MatchKeyword SynExprMatchTrivia.WithKeyword WithKeyword ### [SynExprMatchTrivia.MatchKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprmatchtrivia.html#MatchKeyword) SynExprMatchTrivia.MatchKeyword MatchKeyword The syntax range of the `match` keyword ### [SynExprMatchTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprmatchtrivia.html#WithKeyword) SynExprMatchTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynExprSequentialTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprsequentialtrivia.html) SynExprSequentialTrivia Represents additional information for SynExpr.Sequential SynExprSequentialTrivia.Zero Zero SynExprSequentialTrivia.SeparatorRange SeparatorRange ### [SynExprSequentialTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprsequentialtrivia.html#Zero) SynExprSequentialTrivia.Zero Zero ### [SynExprSequentialTrivia.SeparatorRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprsequentialtrivia.html#SeparatorRange) SynExprSequentialTrivia.SeparatorRange SeparatorRange The syntax range of the `;` token. Could also be the `then` keyword. ### [SynExprTryFinallyTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtryfinallytrivia.html) SynExprTryFinallyTrivia Represents additional information for SynExpr.TryFinally SynExprTryFinallyTrivia.TryKeyword TryKeyword SynExprTryFinallyTrivia.FinallyKeyword FinallyKeyword ### [SynExprTryFinallyTrivia.TryKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtryfinallytrivia.html#TryKeyword) SynExprTryFinallyTrivia.TryKeyword TryKeyword The syntax range of the `try` keyword. ### [SynExprTryFinallyTrivia.FinallyKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtryfinallytrivia.html#FinallyKeyword) SynExprTryFinallyTrivia.FinallyKeyword FinallyKeyword The syntax range of the `finally` keyword ### [SynExprTryWithTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtrywithtrivia.html) SynExprTryWithTrivia Represents additional information for SynExpr.TryWith SynExprTryWithTrivia.TryKeyword TryKeyword SynExprTryWithTrivia.TryToWithRange TryToWithRange SynExprTryWithTrivia.WithKeyword WithKeyword SynExprTryWithTrivia.WithToEndRange WithToEndRange ### [SynExprTryWithTrivia.TryKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtrywithtrivia.html#TryKeyword) SynExprTryWithTrivia.TryKeyword TryKeyword The syntax range of the `try` keyword. ### [SynExprTryWithTrivia.TryToWithRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtrywithtrivia.html#TryToWithRange) SynExprTryWithTrivia.TryToWithRange TryToWithRange The syntax range from the beginning of the `try` keyword till the end of the `with` keyword. ### [SynExprTryWithTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtrywithtrivia.html#WithKeyword) SynExprTryWithTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynExprTryWithTrivia.WithToEndRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexprtrywithtrivia.html#WithToEndRange) SynExprTryWithTrivia.WithToEndRange WithToEndRange The syntax range from the beginning of the `with` keyword till the end of the TryWith expression. ### [SynExprYieldOrReturnFromTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpryieldorreturnfromtrivia.html) SynExprYieldOrReturnFromTrivia Represents additional information for SynExpr.YieldOrReturnFrom SynExprYieldOrReturnFromTrivia.Zero Zero SynExprYieldOrReturnFromTrivia.YieldOrReturnFromKeyword YieldOrReturnFromKeyword ### [SynExprYieldOrReturnFromTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpryieldorreturnfromtrivia.html#Zero) SynExprYieldOrReturnFromTrivia.Zero Zero ### [SynExprYieldOrReturnFromTrivia.YieldOrReturnFromKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpryieldorreturnfromtrivia.html#YieldOrReturnFromKeyword) SynExprYieldOrReturnFromTrivia.YieldOrReturnFromKeyword YieldOrReturnFromKeyword The syntax range of the `yield!` or `return!` keyword. ### [SynExprYieldOrReturnTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpryieldorreturntrivia.html) SynExprYieldOrReturnTrivia Represents additional information for SynExpr.YieldOrReturn SynExprYieldOrReturnTrivia.Zero Zero SynExprYieldOrReturnTrivia.YieldOrReturnKeyword YieldOrReturnKeyword ### [SynExprYieldOrReturnTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpryieldorreturntrivia.html#Zero) SynExprYieldOrReturnTrivia.Zero Zero ### [SynExprYieldOrReturnTrivia.YieldOrReturnKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synexpryieldorreturntrivia.html#YieldOrReturnKeyword) SynExprYieldOrReturnTrivia.YieldOrReturnKeyword YieldOrReturnKeyword The syntax range of the `yield` or `return` keyword. ### [SynFieldTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synfieldtrivia.html) SynFieldTrivia Represents additional information for SynField SynFieldTrivia.Zero Zero SynFieldTrivia.LeadingKeyword LeadingKeyword SynFieldTrivia.MutableKeyword MutableKeyword ### [SynFieldTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synfieldtrivia.html#Zero) SynFieldTrivia.Zero Zero ### [SynFieldTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synfieldtrivia.html#LeadingKeyword) SynFieldTrivia.LeadingKeyword LeadingKeyword Used leading keyword of SynField ### [SynFieldTrivia.MutableKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synfieldtrivia.html#MutableKeyword) SynFieldTrivia.MutableKeyword MutableKeyword The syntax range of the `mutable` keyword ### [SynLeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html) SynLeadingKeyword Represents the leading keyword in a SynBinding or SynValSig SynLeadingKeyword.Range Range SynLeadingKeyword.Let Let SynLeadingKeyword.LetBang LetBang SynLeadingKeyword.LetRec LetRec SynLeadingKeyword.And And SynLeadingKeyword.AndBang AndBang SynLeadingKeyword.Use Use SynLeadingKeyword.UseBang UseBang SynLeadingKeyword.UseRec UseRec SynLeadingKeyword.Extern Extern SynLeadingKeyword.Member Member SynLeadingKeyword.MemberVal MemberVal SynLeadingKeyword.Override Override SynLeadingKeyword.OverrideVal OverrideVal SynLeadingKeyword.Abstract Abstract SynLeadingKeyword.AbstractMember AbstractMember SynLeadingKeyword.Static Static SynLeadingKeyword.StaticMember StaticMember SynLeadingKeyword.StaticMemberVal StaticMemberVal SynLeadingKeyword.StaticAbstract StaticAbstract SynLeadingKeyword.StaticAbstractMember StaticAbstractMember SynLeadingKeyword.StaticVal StaticVal SynLeadingKeyword.StaticLet StaticLet SynLeadingKeyword.StaticLetRec StaticLetRec SynLeadingKeyword.StaticDo StaticDo SynLeadingKeyword.Default Default SynLeadingKeyword.DefaultVal DefaultVal SynLeadingKeyword.Val Val SynLeadingKeyword.New New SynLeadingKeyword.Do Do SynLeadingKeyword.Synthetic Synthetic ### [SynLeadingKeyword.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Range) SynLeadingKeyword.Range Range ### [SynLeadingKeyword.Let](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Let) SynLeadingKeyword.Let Let ### [SynLeadingKeyword.LetBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#LetBang) SynLeadingKeyword.LetBang LetBang ### [SynLeadingKeyword.LetRec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#LetRec) SynLeadingKeyword.LetRec LetRec ### [SynLeadingKeyword.And](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#And) SynLeadingKeyword.And And ### [SynLeadingKeyword.AndBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#AndBang) SynLeadingKeyword.AndBang AndBang ### [SynLeadingKeyword.Use](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Use) SynLeadingKeyword.Use Use ### [SynLeadingKeyword.UseBang](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#UseBang) SynLeadingKeyword.UseBang UseBang ### [SynLeadingKeyword.UseRec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#UseRec) SynLeadingKeyword.UseRec UseRec ### [SynLeadingKeyword.Extern](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Extern) SynLeadingKeyword.Extern Extern ### [SynLeadingKeyword.Member](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Member) SynLeadingKeyword.Member Member ### [SynLeadingKeyword.MemberVal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#MemberVal) SynLeadingKeyword.MemberVal MemberVal ### [SynLeadingKeyword.Override](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Override) SynLeadingKeyword.Override Override ### [SynLeadingKeyword.OverrideVal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#OverrideVal) SynLeadingKeyword.OverrideVal OverrideVal ### [SynLeadingKeyword.Abstract](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Abstract) SynLeadingKeyword.Abstract Abstract ### [SynLeadingKeyword.AbstractMember](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#AbstractMember) SynLeadingKeyword.AbstractMember AbstractMember ### [SynLeadingKeyword.Static](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Static) SynLeadingKeyword.Static Static ### [SynLeadingKeyword.StaticMember](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticMember) SynLeadingKeyword.StaticMember StaticMember ### [SynLeadingKeyword.StaticMemberVal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticMemberVal) SynLeadingKeyword.StaticMemberVal StaticMemberVal ### [SynLeadingKeyword.StaticAbstract](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticAbstract) SynLeadingKeyword.StaticAbstract StaticAbstract ### [SynLeadingKeyword.StaticAbstractMember](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticAbstractMember) SynLeadingKeyword.StaticAbstractMember StaticAbstractMember ### [SynLeadingKeyword.StaticVal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticVal) SynLeadingKeyword.StaticVal StaticVal ### [SynLeadingKeyword.StaticLet](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticLet) SynLeadingKeyword.StaticLet StaticLet ### [SynLeadingKeyword.StaticLetRec](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticLetRec) SynLeadingKeyword.StaticLetRec StaticLetRec ### [SynLeadingKeyword.StaticDo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#StaticDo) SynLeadingKeyword.StaticDo StaticDo ### [SynLeadingKeyword.Default](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Default) SynLeadingKeyword.Default Default ### [SynLeadingKeyword.DefaultVal](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#DefaultVal) SynLeadingKeyword.DefaultVal DefaultVal ### [SynLeadingKeyword.Val](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Val) SynLeadingKeyword.Val Val ### [SynLeadingKeyword.New](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#New) SynLeadingKeyword.New New ### [SynLeadingKeyword.Do](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Do) SynLeadingKeyword.Do Do ### [SynLeadingKeyword.Synthetic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synleadingkeyword.html#Synthetic) SynLeadingKeyword.Synthetic Synthetic ### [SynLetOrUseTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synletorusetrivia.html) SynLetOrUseTrivia Represents additional information for SynExpr.LetOrUse SynLetOrUseTrivia.Zero Zero SynLetOrUseTrivia.InKeyword InKeyword ### [SynLetOrUseTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synletorusetrivia.html#Zero) SynLetOrUseTrivia.Zero Zero ### [SynLetOrUseTrivia.InKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synletorusetrivia.html#InKeyword) SynLetOrUseTrivia.InKeyword InKeyword The syntax range of the `in` keyword. ### [SynMatchClauseTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmatchclausetrivia.html) SynMatchClauseTrivia Represents additional information for SynMatchClause SynMatchClauseTrivia.Zero Zero SynMatchClauseTrivia.ArrowRange ArrowRange SynMatchClauseTrivia.BarRange BarRange SynMatchClauseTrivia.WhenKeyword WhenKeyword ### [SynMatchClauseTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmatchclausetrivia.html#Zero) SynMatchClauseTrivia.Zero Zero ### [SynMatchClauseTrivia.ArrowRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmatchclausetrivia.html#ArrowRange) SynMatchClauseTrivia.ArrowRange ArrowRange The syntax range of the `->` token. ### [SynMatchClauseTrivia.BarRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmatchclausetrivia.html#BarRange) SynMatchClauseTrivia.BarRange BarRange The syntax range of the `|` token. ### [SynMatchClauseTrivia.WhenKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmatchclausetrivia.html#WhenKeyword) SynMatchClauseTrivia.WhenKeyword WhenKeyword The syntax range of the `when` keyword. ### [SynMeasureConstantTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmeasureconstanttrivia.html) SynMeasureConstantTrivia Represents additional information for SynConst.Measure SynMeasureConstantTrivia.LessRange LessRange SynMeasureConstantTrivia.GreaterRange GreaterRange ### [SynMeasureConstantTrivia.LessRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmeasureconstanttrivia.html#LessRange) SynMeasureConstantTrivia.LessRange LessRange ### [SynMeasureConstantTrivia.GreaterRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmeasureconstanttrivia.html#GreaterRange) SynMeasureConstantTrivia.GreaterRange GreaterRange ### [SynMemberDefnAbstractSlotTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnabstractslottrivia.html) SynMemberDefnAbstractSlotTrivia Represents additional information for SynMemberDefn.AbstractSlot SynMemberDefnAbstractSlotTrivia.Zero Zero SynMemberDefnAbstractSlotTrivia.GetSetKeywords GetSetKeywords ### [SynMemberDefnAbstractSlotTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnabstractslottrivia.html#Zero) SynMemberDefnAbstractSlotTrivia.Zero Zero ### [SynMemberDefnAbstractSlotTrivia.GetSetKeywords](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnabstractslottrivia.html#GetSetKeywords) SynMemberDefnAbstractSlotTrivia.GetSetKeywords GetSetKeywords The syntax range of 'get, set' ### [SynMemberDefnAutoPropertyTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnautopropertytrivia.html) SynMemberDefnAutoPropertyTrivia Represents additional information for SynMemberDefn.AutoProperty SynMemberDefnAutoPropertyTrivia.LeadingKeyword LeadingKeyword SynMemberDefnAutoPropertyTrivia.WithKeyword WithKeyword SynMemberDefnAutoPropertyTrivia.EqualsRange EqualsRange SynMemberDefnAutoPropertyTrivia.GetSetKeywords GetSetKeywords ### [SynMemberDefnAutoPropertyTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnautopropertytrivia.html#LeadingKeyword) SynMemberDefnAutoPropertyTrivia.LeadingKeyword LeadingKeyword Used leading keyword of AutoProperty ### [SynMemberDefnAutoPropertyTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnautopropertytrivia.html#WithKeyword) SynMemberDefnAutoPropertyTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynMemberDefnAutoPropertyTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnautopropertytrivia.html#EqualsRange) SynMemberDefnAutoPropertyTrivia.EqualsRange EqualsRange The syntax range of the `=` token ### [SynMemberDefnAutoPropertyTrivia.GetSetKeywords](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnautopropertytrivia.html#GetSetKeywords) SynMemberDefnAutoPropertyTrivia.GetSetKeywords GetSetKeywords The syntax range of 'get, set' ### [SynMemberDefnImplicitCtorTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnimplicitctortrivia.html) SynMemberDefnImplicitCtorTrivia Represents additional information for SynMemberDefn.ImplicitCtor SynMemberDefnImplicitCtorTrivia.AsKeyword AsKeyword ### [SynMemberDefnImplicitCtorTrivia.AsKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnimplicitctortrivia.html#AsKeyword) SynMemberDefnImplicitCtorTrivia.AsKeyword AsKeyword The syntax range of the `as` keyword ### [SynMemberDefnInheritTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefninherittrivia.html) SynMemberDefnInheritTrivia Represents additional information for SynMemberDefn.Inherit SynMemberDefnInheritTrivia.InheritKeyword InheritKeyword ### [SynMemberDefnInheritTrivia.InheritKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefninherittrivia.html#InheritKeyword) SynMemberDefnInheritTrivia.InheritKeyword InheritKeyword ### [SynMemberDefnLetBindingsTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnletbindingstrivia.html) SynMemberDefnLetBindingsTrivia Represents additional information for SynMemberDefn.LetBindings SynMemberDefnLetBindingsTrivia.Zero Zero SynMemberDefnLetBindingsTrivia.InKeyword InKeyword ### [SynMemberDefnLetBindingsTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnletbindingstrivia.html#Zero) SynMemberDefnLetBindingsTrivia.Zero Zero ### [SynMemberDefnLetBindingsTrivia.InKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmemberdefnletbindingstrivia.html#InKeyword) SynMemberDefnLetBindingsTrivia.InKeyword InKeyword ### [SynMemberGetSetTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembergetsettrivia.html) SynMemberGetSetTrivia Represents additional information for SynMemberDefn.GetSetMember SynMemberGetSetTrivia.InlineKeyword InlineKeyword SynMemberGetSetTrivia.WithKeyword WithKeyword SynMemberGetSetTrivia.GetKeyword GetKeyword SynMemberGetSetTrivia.AndKeyword AndKeyword SynMemberGetSetTrivia.SetKeyword SetKeyword ### [SynMemberGetSetTrivia.InlineKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembergetsettrivia.html#InlineKeyword) SynMemberGetSetTrivia.InlineKeyword InlineKeyword The syntax range of the `inline` keyword ### [SynMemberGetSetTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembergetsettrivia.html#WithKeyword) SynMemberGetSetTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynMemberGetSetTrivia.GetKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembergetsettrivia.html#GetKeyword) SynMemberGetSetTrivia.GetKeyword GetKeyword The syntax range of the `get` keyword ### [SynMemberGetSetTrivia.AndKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembergetsettrivia.html#AndKeyword) SynMemberGetSetTrivia.AndKeyword AndKeyword The syntax range of the `and` keyword ### [SynMemberGetSetTrivia.SetKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembergetsettrivia.html#SetKeyword) SynMemberGetSetTrivia.SetKeyword SetKeyword The syntax range of the `set` keyword ### [SynMemberSigMemberTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembersigmembertrivia.html) SynMemberSigMemberTrivia Represents additional information for SynMemberSig.Member SynMemberSigMemberTrivia.Zero Zero SynMemberSigMemberTrivia.GetSetKeywords GetSetKeywords ### [SynMemberSigMemberTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembersigmembertrivia.html#Zero) SynMemberSigMemberTrivia.Zero Zero ### [SynMemberSigMemberTrivia.GetSetKeywords](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmembersigmembertrivia.html#GetSetKeywords) SynMemberSigMemberTrivia.GetSetKeywords GetSetKeywords The syntax range of 'get, set' ### [SynModuleDeclLetTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledecllettrivia.html) SynModuleDeclLetTrivia Represents additional information for SynModuleDecl.Let SynModuleDeclLetTrivia.Zero Zero SynModuleDeclLetTrivia.InKeyword InKeyword ### [SynModuleDeclLetTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledecllettrivia.html#Zero) SynModuleDeclLetTrivia.Zero Zero ### [SynModuleDeclLetTrivia.InKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledecllettrivia.html#InKeyword) SynModuleDeclLetTrivia.InKeyword InKeyword The syntax range of the `in` keyword. ### [SynModuleDeclNestedModuleTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledeclnestedmoduletrivia.html) SynModuleDeclNestedModuleTrivia Represents additional information for SynModuleDecl.NestedModule SynModuleDeclNestedModuleTrivia.Zero Zero SynModuleDeclNestedModuleTrivia.ModuleKeyword ModuleKeyword SynModuleDeclNestedModuleTrivia.EqualsRange EqualsRange ### [SynModuleDeclNestedModuleTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledeclnestedmoduletrivia.html#Zero) SynModuleDeclNestedModuleTrivia.Zero Zero ### [SynModuleDeclNestedModuleTrivia.ModuleKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledeclnestedmoduletrivia.html#ModuleKeyword) SynModuleDeclNestedModuleTrivia.ModuleKeyword ModuleKeyword The syntax range of the `module` keyword ### [SynModuleDeclNestedModuleTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduledeclnestedmoduletrivia.html#EqualsRange) SynModuleDeclNestedModuleTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [SynModuleOrNamespaceLeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespaceleadingkeyword.html) SynModuleOrNamespaceLeadingKeyword Represents the leading keyword in a SynModuleOrNamespace or SynModuleOrNamespaceSig SynModuleOrNamespaceLeadingKeyword.Module Module SynModuleOrNamespaceLeadingKeyword.Namespace Namespace SynModuleOrNamespaceLeadingKeyword.None None ### [SynModuleOrNamespaceLeadingKeyword.Module](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespaceleadingkeyword.html#Module) SynModuleOrNamespaceLeadingKeyword.Module Module ### [SynModuleOrNamespaceLeadingKeyword.Namespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespaceleadingkeyword.html#Namespace) SynModuleOrNamespaceLeadingKeyword.Namespace Namespace ### [SynModuleOrNamespaceLeadingKeyword.None](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespaceleadingkeyword.html#None) SynModuleOrNamespaceLeadingKeyword.None None ### [SynModuleOrNamespaceSigTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespacesigtrivia.html) SynModuleOrNamespaceSigTrivia Represents additional information for SynModuleOrNamespaceSig SynModuleOrNamespaceSigTrivia.LeadingKeyword LeadingKeyword ### [SynModuleOrNamespaceSigTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespacesigtrivia.html#LeadingKeyword) SynModuleOrNamespaceSigTrivia.LeadingKeyword LeadingKeyword The syntax range of the `module` or `namespace` keyword ### [SynModuleOrNamespaceTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespacetrivia.html) SynModuleOrNamespaceTrivia Represents additional information for SynModuleOrNamespace SynModuleOrNamespaceTrivia.LeadingKeyword LeadingKeyword ### [SynModuleOrNamespaceTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmoduleornamespacetrivia.html#LeadingKeyword) SynModuleOrNamespaceTrivia.LeadingKeyword LeadingKeyword The syntax range of the `module` or `namespace` keyword ### [SynModuleSigDeclNestedModuleTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmodulesigdeclnestedmoduletrivia.html) SynModuleSigDeclNestedModuleTrivia Represents additional information for SynModuleSigDecl.NestedModule SynModuleSigDeclNestedModuleTrivia.Zero Zero SynModuleSigDeclNestedModuleTrivia.ModuleKeyword ModuleKeyword SynModuleSigDeclNestedModuleTrivia.EqualsRange EqualsRange ### [SynModuleSigDeclNestedModuleTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmodulesigdeclnestedmoduletrivia.html#Zero) SynModuleSigDeclNestedModuleTrivia.Zero Zero ### [SynModuleSigDeclNestedModuleTrivia.ModuleKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmodulesigdeclnestedmoduletrivia.html#ModuleKeyword) SynModuleSigDeclNestedModuleTrivia.ModuleKeyword ModuleKeyword The syntax range of the `module` keyword ### [SynModuleSigDeclNestedModuleTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synmodulesigdeclnestedmoduletrivia.html#EqualsRange) SynModuleSigDeclNestedModuleTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [SynPatListConsTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synpatlistconstrivia.html) SynPatListConsTrivia Represents additional information for SynPat.Cons SynPatListConsTrivia.ColonColonRange ColonColonRange ### [SynPatListConsTrivia.ColonColonRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synpatlistconstrivia.html#ColonColonRange) SynPatListConsTrivia.ColonColonRange ColonColonRange The syntax range of the `::` token. ### [SynPatOrTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synpatortrivia.html) SynPatOrTrivia Represents additional information for SynPat.Or SynPatOrTrivia.BarRange BarRange ### [SynPatOrTrivia.BarRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synpatortrivia.html#BarRange) SynPatOrTrivia.BarRange BarRange The syntax range of the `|` token. ### [SynTyparDeclTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypardecltrivia.html) SynTyparDeclTrivia Represents additional information for SynTyparDecl SynTyparDeclTrivia.Zero Zero SynTyparDeclTrivia.AmpersandRanges AmpersandRanges ### [SynTyparDeclTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypardecltrivia.html#Zero) SynTyparDeclTrivia.Zero Zero ### [SynTyparDeclTrivia.AmpersandRanges](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypardecltrivia.html#AmpersandRanges) SynTyparDeclTrivia.AmpersandRanges AmpersandRanges The syntax ranges of the `&` tokens ### [SynTypeConstraintWhereTyparNotSupportsNullTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypeconstraintwheretyparnotsupportsnulltrivia.html) SynTypeConstraintWhereTyparNotSupportsNullTrivia Represents additional information for SynTypeConstraint.WhereTyparNotSupportsNull SynTypeConstraintWhereTyparNotSupportsNullTrivia.ColonRange ColonRange SynTypeConstraintWhereTyparNotSupportsNullTrivia.NotRange NotRange ### [SynTypeConstraintWhereTyparNotSupportsNullTrivia.ColonRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypeconstraintwheretyparnotsupportsnulltrivia.html#ColonRange) SynTypeConstraintWhereTyparNotSupportsNullTrivia.ColonRange ColonRange The syntax range of `:` ### [SynTypeConstraintWhereTyparNotSupportsNullTrivia.NotRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypeconstraintwheretyparnotsupportsnulltrivia.html#NotRange) SynTypeConstraintWhereTyparNotSupportsNullTrivia.NotRange NotRange The syntax range of `not` ### [SynTypeDefnLeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnleadingkeyword.html) SynTypeDefnLeadingKeyword Represents the leading keyword in a SynTypeDefn or SynTypeDefnSig SynTypeDefnLeadingKeyword.Range Range SynTypeDefnLeadingKeyword.Type Type SynTypeDefnLeadingKeyword.And And SynTypeDefnLeadingKeyword.StaticType StaticType SynTypeDefnLeadingKeyword.Synthetic Synthetic ### [SynTypeDefnLeadingKeyword.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnleadingkeyword.html#Range) SynTypeDefnLeadingKeyword.Range Range ### [SynTypeDefnLeadingKeyword.Type](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnleadingkeyword.html#Type) SynTypeDefnLeadingKeyword.Type Type ### [SynTypeDefnLeadingKeyword.And](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnleadingkeyword.html#And) SynTypeDefnLeadingKeyword.And And ### [SynTypeDefnLeadingKeyword.StaticType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnleadingkeyword.html#StaticType) SynTypeDefnLeadingKeyword.StaticType StaticType Can happen in SynMemberDefn.NestedType or SynMemberSig.NestedType ### [SynTypeDefnLeadingKeyword.Synthetic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnleadingkeyword.html#Synthetic) SynTypeDefnLeadingKeyword.Synthetic Synthetic Produced during type checking, should not be used in actual parsed trees. ### [SynTypeDefnSigTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnsigtrivia.html) SynTypeDefnSigTrivia Represents additional information for SynTypeDefnSig SynTypeDefnSigTrivia.Zero Zero SynTypeDefnSigTrivia.LeadingKeyword LeadingKeyword SynTypeDefnSigTrivia.EqualsRange EqualsRange SynTypeDefnSigTrivia.WithKeyword WithKeyword ### [SynTypeDefnSigTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnsigtrivia.html#Zero) SynTypeDefnSigTrivia.Zero Zero ### [SynTypeDefnSigTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnsigtrivia.html#LeadingKeyword) SynTypeDefnSigTrivia.LeadingKeyword LeadingKeyword The syntax range of the `type` or `and` keyword. ### [SynTypeDefnSigTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnsigtrivia.html#EqualsRange) SynTypeDefnSigTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [SynTypeDefnSigTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefnsigtrivia.html#WithKeyword) SynTypeDefnSigTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynTypeDefnTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefntrivia.html) SynTypeDefnTrivia Represents additional information for SynTypeDefn SynTypeDefnTrivia.Zero Zero SynTypeDefnTrivia.LeadingKeyword LeadingKeyword SynTypeDefnTrivia.EqualsRange EqualsRange SynTypeDefnTrivia.WithKeyword WithKeyword ### [SynTypeDefnTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefntrivia.html#Zero) SynTypeDefnTrivia.Zero Zero ### [SynTypeDefnTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefntrivia.html#LeadingKeyword) SynTypeDefnTrivia.LeadingKeyword LeadingKeyword The syntax range of the `type` or `and` keyword. ### [SynTypeDefnTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefntrivia.html#EqualsRange) SynTypeDefnTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [SynTypeDefnTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypedefntrivia.html#WithKeyword) SynTypeDefnTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynTypeFunTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypefuntrivia.html) SynTypeFunTrivia Represents additional information for SynType.Fun SynTypeFunTrivia.ArrowRange ArrowRange ### [SynTypeFunTrivia.ArrowRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypefuntrivia.html#ArrowRange) SynTypeFunTrivia.ArrowRange ArrowRange The syntax range of the `->` token. ### [SynTypeOrTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypeortrivia.html) SynTypeOrTrivia Represents additional information for SynType.Or SynTypeOrTrivia.OrKeyword OrKeyword ### [SynTypeOrTrivia.OrKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypeortrivia.html#OrKeyword) SynTypeOrTrivia.OrKeyword OrKeyword The syntax range of the `or` keyword ### [SynTypeWithNullTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypewithnulltrivia.html) SynTypeWithNullTrivia Represents additional information for SynType.WithNull SynTypeWithNullTrivia.BarRange BarRange ### [SynTypeWithNullTrivia.BarRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-syntypewithnulltrivia.html#BarRange) SynTypeWithNullTrivia.BarRange BarRange The syntax range of the `|` token ### [SynUnionCaseTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synunioncasetrivia.html) SynUnionCaseTrivia Represents additional information for SynUnionCase SynUnionCaseTrivia.BarRange BarRange SynUnionCaseTrivia.OfKeyword OfKeyword ### [SynUnionCaseTrivia.BarRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synunioncasetrivia.html#BarRange) SynUnionCaseTrivia.BarRange BarRange The syntax range of the `|` token. ### [SynUnionCaseTrivia.OfKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synunioncasetrivia.html#OfKeyword) SynUnionCaseTrivia.OfKeyword OfKeyword The syntax range of the `of` keyword. ### [SynValSigTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synvalsigtrivia.html) SynValSigTrivia Represents additional information for SynValSig SynValSigTrivia.Zero Zero SynValSigTrivia.LeadingKeyword LeadingKeyword SynValSigTrivia.InlineKeyword InlineKeyword SynValSigTrivia.WithKeyword WithKeyword SynValSigTrivia.EqualsRange EqualsRange ### [SynValSigTrivia.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synvalsigtrivia.html#Zero) SynValSigTrivia.Zero Zero ### [SynValSigTrivia.LeadingKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synvalsigtrivia.html#LeadingKeyword) SynValSigTrivia.LeadingKeyword LeadingKeyword Used leading keyword of SynValSig In most cases this will be `val`, but in case of `SynMemberDefn.AutoProperty` or `SynMemberDefn.AbstractSlot` it could be something else. ### [SynValSigTrivia.InlineKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synvalsigtrivia.html#InlineKeyword) SynValSigTrivia.InlineKeyword InlineKeyword The syntax range of the `inline` keyword ### [SynValSigTrivia.WithKeyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synvalsigtrivia.html#WithKeyword) SynValSigTrivia.WithKeyword WithKeyword The syntax range of the `with` keyword ### [SynValSigTrivia.EqualsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-synvalsigtrivia.html#EqualsRange) SynValSigTrivia.EqualsRange EqualsRange The syntax range of the `=` token. ### [WarnDirectiveTrivia](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-warndirectivetrivia.html) WarnDirectiveTrivia WarnDirectiveTrivia.Nowarn Nowarn WarnDirectiveTrivia.Warnon Warnon ### [WarnDirectiveTrivia.Nowarn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-warndirectivetrivia.html#Nowarn) WarnDirectiveTrivia.Nowarn Nowarn ### [WarnDirectiveTrivia.Warnon](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-syntaxtrivia-warndirectivetrivia.html#Warnon) WarnDirectiveTrivia.Warnon Warnon ### [Line](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-line.html) Line Functions related to converting between lines indexed at 0 and 1 Line.fromZ fromZ Line.toZ toZ ### [Line.fromZ](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-line.html#fromZ) Line.fromZ fromZ Convert a line number from zero-based line counting (used by Visual Studio) to one-based line counting (used internally in the F# compiler and in F# error messages) ### [Line.toZ](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-line.html#toZ) Line.toZ toZ Convert a line number from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio) ### [Position](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html) Position Position.mkPos mkPos Position.posLt posLt Position.posGt posGt Position.posEq posEq Position.posGeq posGeq Position.fromZ fromZ Position.toZ toZ Position.outputPos outputPos Position.stringOfPos stringOfPos Position.pos0 pos0 ### [Position.mkPos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#mkPos) Position.mkPos mkPos Create a position for the given line and column ### [Position.posLt](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#posLt) Position.posLt posLt Compare positions for less-than ### [Position.posGt](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#posGt) Position.posGt posGt Compare positions for greater-than ### [Position.posEq](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#posEq) Position.posEq posEq Compare positions for equality ### [Position.posGeq](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#posGeq) Position.posGeq posGeq Compare positions for greater-than-or-equal-to ### [Position.fromZ](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#fromZ) Position.fromZ fromZ Convert a position from zero-based line counting (used by Visual Studio) to one-based line counting (used internally in the F# compiler and in F# error messages) ### [Position.toZ](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#toZ) Position.toZ toZ Convert a position from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio) ### [Position.outputPos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#outputPos) Position.outputPos outputPos Output a position ### [Position.stringOfPos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#stringOfPos) Position.stringOfPos stringOfPos Convert a position to a string ### [Position.pos0](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-positionmodule.html#pos0) Position.pos0 pos0 The zero position ### [Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html) Range Range.posOrder posOrder Range.mkFileIndexRange mkFileIndexRange Range.mkRange mkRange Range.mkFirstLineOfFile mkFirstLineOfFile Range.equals equals Range.trimRangeToLine trimRangeToLine Range.rangeOrder rangeOrder Range.outputRange outputRange Range.unionRanges unionRanges Range.withStartEnd withStartEnd Range.withStart withStart Range.withEnd withEnd Range.shiftStart shiftStart Range.shiftEnd shiftEnd Range.rangeContainsRange rangeContainsRange Range.rangeContainsPos rangeContainsPos Range.rangeBeforePos rangeBeforePos Range.rangeN rangeN Range.range0 range0 Range.rangeStartup rangeStartup Range.rangeCmdArgs rangeCmdArgs Range.stringOfRange stringOfRange Range.toZ toZ Range.toFileZ toFileZ Range.comparer comparer ### [Range.posOrder](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#posOrder) Range.posOrder posOrder Ordering on positions ### [Range.mkFileIndexRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#mkFileIndexRange) Range.mkFileIndexRange mkFileIndexRange This view of range marks uses file indexes explicitly ### [Range.mkRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#mkRange) Range.mkRange mkRange This view hides the use of file indexes and just uses filenames ### [Range.mkFirstLineOfFile](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#mkFirstLineOfFile) Range.mkFirstLineOfFile mkFirstLineOfFile Make a range for the first non-whitespace line of the file if any. Otherwise use line 1 chars 0-80. This involves reading the file. ### [Range.equals](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#equals) Range.equals equals ### [Range.trimRangeToLine](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#trimRangeToLine) Range.trimRangeToLine trimRangeToLine Reduce a range so it only covers a line ### [Range.rangeOrder](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeOrder) Range.rangeOrder rangeOrder Order ranges (file, then start pos, then end pos) ### [Range.outputRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#outputRange) Range.outputRange outputRange Output a range ### [Range.unionRanges](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#unionRanges) Range.unionRanges unionRanges Union two ranges, taking their first occurring start position and last occurring end position ### [Range.withStartEnd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#withStartEnd) Range.withStartEnd withStartEnd ### [Range.withStart](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#withStart) Range.withStart withStart ### [Range.withEnd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#withEnd) Range.withEnd withEnd ### [Range.shiftStart](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#shiftStart) Range.shiftStart shiftStart ### [Range.shiftEnd](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#shiftEnd) Range.shiftEnd shiftEnd ### [Range.rangeContainsRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeContainsRange) Range.rangeContainsRange rangeContainsRange Test to see if one range contains another range ### [Range.rangeContainsPos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeContainsPos) Range.rangeContainsPos rangeContainsPos Test to see if a range contains a position ### [Range.rangeBeforePos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeBeforePos) Range.rangeBeforePos rangeBeforePos Test to see if a range occurs fully before a position ### [Range.rangeN](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeN) Range.rangeN rangeN Make a dummy range for a file ### [Range.range0](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#range0) Range.range0 range0 The zero range ### [Range.rangeStartup](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeStartup) Range.rangeStartup rangeStartup A range associated with a dummy file called "startup" ### [Range.rangeCmdArgs](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#rangeCmdArgs) Range.rangeCmdArgs rangeCmdArgs A range associated with a dummy file for the command line arguments ### [Range.stringOfRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#stringOfRange) Range.stringOfRange stringOfRange Convert a range to a string ### [Range.toZ](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#toZ) Range.toZ toZ Convert a range from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio) ### [Range.toFileZ](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#toFileZ) Range.toFileZ toFileZ Convert a range from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio) ### [Range.comparer](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-rangemodule.html#comparer) Range.comparer comparer Equality comparer for range. ### [SourceText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-sourcetext.html) SourceText Functions related to ISourceText objects SourceText.ofString ofString ### [SourceText.ofString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-sourcetext.html#ofString) SourceText.ofString ofString Creates an ISourceText object from the given string ### [SourceTextNew](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-sourcetextnew.html) SourceTextNew SourceTextNew.ofString ofString SourceTextNew.ofISourceText ofISourceText ### [SourceTextNew.ofString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-sourcetextnew.html#ofString) SourceTextNew.ofString ofString ### [SourceTextNew.ofISourceText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-sourcetextnew.html#ofISourceText) SourceTextNew.ofISourceText ofISourceText ### [TaggedText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html) TaggedText TaggedText.tagText tagText TaggedText.tagClass tagClass TaggedText.comma comma TaggedText.tagNamespace tagNamespace TaggedText.tagParameter tagParameter TaggedText.tagSpace tagSpace TaggedText.dot dot TaggedText.colon colon TaggedText.minus minus TaggedText.lineBreak lineBreak TaggedText.space space ### [TaggedText.tagText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#tagText) TaggedText.tagText tagText ### [TaggedText.tagClass](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#tagClass) TaggedText.tagClass tagClass ### [TaggedText.comma](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#comma) TaggedText.comma comma ### [TaggedText.tagNamespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#tagNamespace) TaggedText.tagNamespace tagNamespace ### [TaggedText.tagParameter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#tagParameter) TaggedText.tagParameter tagParameter ### [TaggedText.tagSpace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#tagSpace) TaggedText.tagSpace tagSpace ### [TaggedText.dot](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#dot) TaggedText.dot dot ### [TaggedText.colon](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#colon) TaggedText.colon colon ### [TaggedText.minus](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#minus) TaggedText.minus minus ### [TaggedText.lineBreak](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#lineBreak) TaggedText.lineBreak lineBreak ### [TaggedText.space](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtextmodule.html#space) TaggedText.space space ### [ISourceText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html) ISourceText Represents an input to the F# compiler ISourceText.ContentEquals ContentEquals ISourceText.CopyTo CopyTo ISourceText.GetLastCharacterPosition GetLastCharacterPosition ISourceText.GetLineCount GetLineCount ISourceText.GetLineString GetLineString ISourceText.GetSubTextFromRange GetSubTextFromRange ISourceText.GetSubTextString GetSubTextString ISourceText.SubTextEquals SubTextEquals ISourceText.Item Item ISourceText.Length Length ### [ISourceText.ContentEquals](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#ContentEquals) ISourceText.ContentEquals ContentEquals Checks if one input is equal to another ### [ISourceText.CopyTo](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#CopyTo) ISourceText.CopyTo CopyTo Copies a section of the input to the given destination ad the given index ### [ISourceText.GetLastCharacterPosition](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#GetLastCharacterPosition) ISourceText.GetLastCharacterPosition GetLastCharacterPosition Gets the last character position in the input, returning line and column ### [ISourceText.GetLineCount](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#GetLineCount) ISourceText.GetLineCount GetLineCount Gets the count of lines in the input ### [ISourceText.GetLineString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#GetLineString) ISourceText.GetLineString GetLineString Gets a line of an input by index ### [ISourceText.GetSubTextFromRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#GetSubTextFromRange) ISourceText.GetSubTextFromRange GetSubTextFromRange Gets a section of the input based on a given range. Throws an exception when the input range is outside the file boundaries. ### [ISourceText.GetSubTextString](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#GetSubTextString) ISourceText.GetSubTextString GetSubTextString Gets a section of the input ### [ISourceText.SubTextEquals](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#SubTextEquals) ISourceText.SubTextEquals SubTextEquals Checks if a section of the input is equal to the given string ### [ISourceText.Item](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#Item) ISourceText.Item Item Gets a character in an input based on an index of characters from the start of the file ### [ISourceText.Length](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetext.html#Length) ISourceText.Length Length Gets the total length of the input in characters ### [ISourceTextNew](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetextnew.html) ISourceTextNew Just like ISourceText, but with a checksum. Added as a separate type to avoid breaking changes. ISourceTextNew.GetChecksum GetChecksum ### [ISourceTextNew.GetChecksum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-isourcetextnew.html#GetChecksum) ISourceTextNew.GetChecksum GetChecksum ### [Line0](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-line0.html) Line0 Represents a line number when using zero-based line counting (used by Visual Studio) ### [Position](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-position.html) Position Represents a position in a file Position.Line Line Position.Column Column ### [Position.Line](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-position.html#Line) Position.Line Line The line number for the position ### [Position.Column](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-position.html#Column) Position.Column Column The column number for the position ### [Position01](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-position01.html) Position01 Represents a position using zero-based line counting (used by Visual Studio) ### [Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html) Range Represents a range within a file Range.ApplyLineDirectives ApplyLineDirectives Range.FileName FileName Range.Start Start Range.StartColumn StartColumn Range.StartLine StartLine Range.EndLine EndLine Range.EndRange EndRange Range.EndColumn EndColumn Range.End End Range.IsSynthetic IsSynthetic Range.StartRange StartRange Range.Zero Zero ### [Range.ApplyLineDirectives](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#ApplyLineDirectives) Range.ApplyLineDirectives ApplyLineDirectives Apply the line directives to the range. ### [Range.FileName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#FileName) Range.FileName FileName The file name for the file of the range ### [Range.Start](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#Start) Range.Start Start The start position of the range ### [Range.StartColumn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#StartColumn) Range.StartColumn StartColumn The start column of the range ### [Range.StartLine](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#StartLine) Range.StartLine StartLine The start line of the range ### [Range.EndLine](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#EndLine) Range.EndLine EndLine The line number for the end position of the range ### [Range.EndRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#EndRange) Range.EndRange EndRange The empty range that is located at the end position of the range ### [Range.EndColumn](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#EndColumn) Range.EndColumn EndColumn The column number for the end position of the range ### [Range.End](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#End) Range.End End The end position of the range ### [Range.IsSynthetic](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#IsSynthetic) Range.IsSynthetic IsSynthetic Synthetic marks ranges which are produced by intermediate compilation phases. This bit signifies that the range covers something that should not be visible to language service operations like dot-completion. ### [Range.StartRange](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#StartRange) Range.StartRange StartRange The empty range that is located at the start position of the range ### [Range.Zero](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range.html#Zero) Range.Zero Zero The range where all values are zero ### [Range01](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range01.html) Range01 Represents a range using zero-based line counting (used by Visual Studio) ### [RichText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-richtext.html) RichText Represents text made of tagged parts, e.g. a diagnostic message in which types, identifiers and punctuation are classified, so that tooling is able to render them with colors. Text that carries no classification is represented as a single part tagged TextTag.Text, so that a plain string is always representable and Text is always equal to the original string. Two rich texts are equal when they read the same. Classification does not take part in equality, since the places that compare texts - such as deciding whether two types can be told apart in a message - are asking about what reaches the reader. RichText.Text Text RichText.Parts Parts RichText.IsEmpty IsEmpty ### [RichText.Text](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-richtext.html#Text) RichText.Text Text Gets the text of all parts concatenated ### [RichText.Parts](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-richtext.html#Parts) RichText.Parts Parts Gets the tagged parts of the text ### [RichText.IsEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-richtext.html#IsEmpty) RichText.IsEmpty IsEmpty Gets whether the text has no parts ### [TaggedText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtext.html) TaggedText Represents text with a tag TaggedText.``.ctor`` ``.ctor`` TaggedText.Text Text TaggedText.Tag Tag ### [TaggedText.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtext.html#``.ctor``) TaggedText.``.ctor`` ``.ctor`` Creates text with a tag ### [TaggedText.Text](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtext.html#Text) TaggedText.Text Text Gets the text ### [TaggedText.Tag](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-taggedtext.html#Tag) TaggedText.Tag Tag Gets the tag ### [TextTag](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html) TextTag Represents the tag of some tagged text TextTag.ActivePatternCase ActivePatternCase TextTag.ActivePatternResult ActivePatternResult TextTag.Alias Alias TextTag.Class Class TextTag.Union Union TextTag.UnionCase UnionCase TextTag.Delegate Delegate TextTag.Enum Enum TextTag.Event Event TextTag.Field Field TextTag.Interface Interface TextTag.Keyword Keyword TextTag.LineBreak LineBreak TextTag.Local Local TextTag.Record Record TextTag.RecordField RecordField TextTag.Method Method TextTag.Member Member TextTag.ModuleBinding ModuleBinding TextTag.Function Function TextTag.Module Module TextTag.Namespace Namespace TextTag.NumericLiteral NumericLiteral TextTag.Operator Operator TextTag.Parameter Parameter TextTag.Property Property TextTag.Space Space TextTag.StringLiteral StringLiteral TextTag.Struct Struct TextTag.TypeParameter TypeParameter TextTag.Text Text TextTag.Punctuation Punctuation TextTag.UnknownType UnknownType TextTag.UnknownEntity UnknownEntity TextTag.UnresolvedName UnresolvedName ### [TextTag.ActivePatternCase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#ActivePatternCase) TextTag.ActivePatternCase ActivePatternCase ### [TextTag.ActivePatternResult](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#ActivePatternResult) TextTag.ActivePatternResult ActivePatternResult ### [TextTag.Alias](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Alias) TextTag.Alias Alias ### [TextTag.Class](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Class) TextTag.Class Class ### [TextTag.Union](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Union) TextTag.Union Union ### [TextTag.UnionCase](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#UnionCase) TextTag.UnionCase UnionCase ### [TextTag.Delegate](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Delegate) TextTag.Delegate Delegate ### [TextTag.Enum](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Enum) TextTag.Enum Enum ### [TextTag.Event](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Event) TextTag.Event Event ### [TextTag.Field](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Field) TextTag.Field Field ### [TextTag.Interface](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Interface) TextTag.Interface Interface ### [TextTag.Keyword](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Keyword) TextTag.Keyword Keyword ### [TextTag.LineBreak](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#LineBreak) TextTag.LineBreak LineBreak ### [TextTag.Local](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Local) TextTag.Local Local ### [TextTag.Record](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Record) TextTag.Record Record ### [TextTag.RecordField](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#RecordField) TextTag.RecordField RecordField ### [TextTag.Method](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Method) TextTag.Method Method ### [TextTag.Member](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Member) TextTag.Member Member ### [TextTag.ModuleBinding](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#ModuleBinding) TextTag.ModuleBinding ModuleBinding ### [TextTag.Function](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Function) TextTag.Function Function ### [TextTag.Module](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Module) TextTag.Module Module ### [TextTag.Namespace](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Namespace) TextTag.Namespace Namespace ### [TextTag.NumericLiteral](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#NumericLiteral) TextTag.NumericLiteral NumericLiteral ### [TextTag.Operator](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Operator) TextTag.Operator Operator ### [TextTag.Parameter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Parameter) TextTag.Parameter Parameter ### [TextTag.Property](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Property) TextTag.Property Property ### [TextTag.Space](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Space) TextTag.Space Space ### [TextTag.StringLiteral](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#StringLiteral) TextTag.StringLiteral StringLiteral ### [TextTag.Struct](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Struct) TextTag.Struct Struct ### [TextTag.TypeParameter](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#TypeParameter) TextTag.TypeParameter TypeParameter ### [TextTag.Text](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Text) TextTag.Text Text ### [TextTag.Punctuation](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#Punctuation) TextTag.Punctuation Punctuation ### [TextTag.UnknownType](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#UnknownType) TextTag.UnknownType UnknownType ### [TextTag.UnknownEntity](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#UnknownEntity) TextTag.UnknownEntity UnknownEntity ### [TextTag.UnresolvedName](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-texttag.html#UnresolvedName) TextTag.UnresolvedName UnresolvedName ### [pos](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-pos.html) pos Represents a position in a file ### [range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-text-range-0.html) range Represents a range within a file ### [PreXmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html) PreXmlDoc Represents the XmlDoc fragments as collected from the lexer during parsing PreXmlDoc.ToXmlDoc ToXmlDoc PreXmlDoc.Range Range PreXmlDoc.IsEmpty IsEmpty PreXmlDoc.Create Create PreXmlDoc.Merge Merge PreXmlDoc.WithExtraParamsForCheck WithExtraParamsForCheck PreXmlDoc.Empty Empty ### [PreXmlDoc.ToXmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#ToXmlDoc) PreXmlDoc.ToXmlDoc ToXmlDoc Process and check the PreXmlDoc, checking with respect to the given parameter names ### [PreXmlDoc.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#Range) PreXmlDoc.Range Range Get the overall range of the PreXmlDoc ### [PreXmlDoc.IsEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#IsEmpty) PreXmlDoc.IsEmpty IsEmpty Indicates if the PreXmlDoc is non-empty ### [PreXmlDoc.Create](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#Create) PreXmlDoc.Create Create Create a PreXmlDoc from a collection of unprocessed lines ### [PreXmlDoc.Merge](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#Merge) PreXmlDoc.Merge Merge Merge two PreXmlDoc ### [PreXmlDoc.WithExtraParamsForCheck](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#WithExtraParamsForCheck) PreXmlDoc.WithExtraParamsForCheck WithExtraParamsForCheck Wrap a PreXmlDoc with additional parameter names that should be considered valid when the doc is checked. Used for property get/set pairs so that each accessor's xmldoc validation sees the union of both accessors' parameter names. ### [PreXmlDoc.Empty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-prexmldoc.html#Empty) PreXmlDoc.Empty Empty Get the empty PreXmlDoc ### [XmlDoc](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html) XmlDoc Represents collected XmlDoc lines XmlDoc.``.ctor`` ``.ctor`` XmlDoc.GetElaboratedXmlLines GetElaboratedXmlLines XmlDoc.GetXmlText GetXmlText XmlDoc.Range Range XmlDoc.NonEmpty NonEmpty XmlDoc.IsEmpty IsEmpty XmlDoc.UnprocessedLines UnprocessedLines XmlDoc.Merge Merge XmlDoc.Empty Empty ### [XmlDoc.``.ctor``](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#``.ctor``) XmlDoc.``.ctor`` ``.ctor`` ### [XmlDoc.GetElaboratedXmlLines](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#GetElaboratedXmlLines) XmlDoc.GetElaboratedXmlLines GetElaboratedXmlLines Get the lines after insertion of implicit summary tags and encoding ### [XmlDoc.GetXmlText](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#GetXmlText) XmlDoc.GetXmlText GetXmlText Get the elaborated XML documentation as XML text ### [XmlDoc.Range](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#Range) XmlDoc.Range Range Indicates the overall original source range of the XmlDoc ### [XmlDoc.NonEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#NonEmpty) XmlDoc.NonEmpty NonEmpty Indicates if the XmlDoc is non-empty ### [XmlDoc.IsEmpty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#IsEmpty) XmlDoc.IsEmpty IsEmpty Indicates if the XmlDoc is empty ### [XmlDoc.UnprocessedLines](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#UnprocessedLines) XmlDoc.UnprocessedLines UnprocessedLines Get the lines before insertion of implicit summary tags and encoding ### [XmlDoc.Merge](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#Merge) XmlDoc.Merge Merge Merge two XML documentation ### [XmlDoc.Empty](https://fsprojects.github.io/fantomas/reference/fantomas-fcs-xml-xmldoc.html#Empty) XmlDoc.Empty Empty Get the empty XmlDoc ### [InterruptibleLazy](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy.html) InterruptibleLazy InterruptibleLazy.force force ### [InterruptibleLazy.force](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy.html#force) InterruptibleLazy.force force ### [DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-delayinitarraymap-3.html) DelayInitArrayMap<'T, 'TDictKey, 'TDictValue> DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.``.ctor`` ``.ctor`` DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.CreateDictionary CreateDictionary DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.GetArray GetArray DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.GetDictionary GetDictionary ### [DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.``.ctor``](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-delayinitarraymap-3.html#``.ctor``) DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.``.ctor`` ``.ctor`` ### [DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.CreateDictionary](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-delayinitarraymap-3.html#CreateDictionary) DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.CreateDictionary CreateDictionary ### [DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.GetArray](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-delayinitarraymap-3.html#GetArray) DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.GetArray GetArray ### [DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.GetDictionary](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-delayinitarraymap-3.html#GetDictionary) DelayInitArrayMap<'T, 'TDictKey, 'TDictValue>.GetDictionary GetDictionary ### [InterruptibleLazy<'T>](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy-1.html) InterruptibleLazy<'T> Do not lock on these objects. InterruptibleLazy<'T>.``.ctor`` ``.ctor`` InterruptibleLazy<'T>.Force Force InterruptibleLazy<'T>.IsValueCreated IsValueCreated InterruptibleLazy<'T>.Value Value InterruptibleLazy<'T>.FromValue FromValue ### [InterruptibleLazy<'T>.``.ctor``](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy-1.html#``.ctor``) InterruptibleLazy<'T>.``.ctor`` ``.ctor`` ### [InterruptibleLazy<'T>.Force](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy-1.html#Force) InterruptibleLazy<'T>.Force Force ### [InterruptibleLazy<'T>.IsValueCreated](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy-1.html#IsValueCreated) InterruptibleLazy<'T>.IsValueCreated IsValueCreated ### [InterruptibleLazy<'T>.Value](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy-1.html#Value) InterruptibleLazy<'T>.Value Value ### [InterruptibleLazy<'T>.FromValue](https://fsprojects.github.io/fantomas/reference/internal-utilities-library-interruptiblelazy-1.html#FromValue) InterruptibleLazy<'T>.FromValue FromValue