mirror of
https://github.com/Smaug123/WoofWare.Whippet
synced 2025-10-05 15:58:39 +00:00
Some checks failed
.NET / build (Debug) (push) Has been cancelled
.NET / build (Release) (push) Has been cancelled
.NET / analyzers (push) Has been cancelled
.NET / build-nix (push) Has been cancelled
.NET / check-dotnet-format (push) Has been cancelled
.NET / check-nix-format (push) Has been cancelled
.NET / Check links (push) Has been cancelled
.NET / Check flake (push) Has been cancelled
.NET / nuget-pack (push) Has been cancelled
.NET / expected-pack (push) Has been cancelled
.NET / all-required-checks-complete (push) Has been cancelled
16 lines
646 B
Forth
16 lines
646 B
Forth
namespace WoofWare.Whippet.Fantomas
|
|
|
|
open Fantomas.FCS.Syntax
|
|
open Fantomas.FCS.Text.Range
|
|
|
|
/// Methods for manipulating the SynSimplePats AST type. This type represents a collection of SynSimplePat entries,
|
|
/// all tupled together (e.g. as in `fun (a, b : int) -> ...`).
|
|
[<RequireQualifiedAccess>]
|
|
module SynSimplePats =
|
|
|
|
/// Build a SynSimplePats by tupling together a bunch of individual patterns.
|
|
let create (pats : SynSimplePat list) : SynSimplePats =
|
|
match pats with
|
|
| [] -> SynSimplePats.SimplePats ([], [], range0)
|
|
| pats -> SynSimplePats.SimplePats (pats, List.replicate (pats.Length - 1) range0, range0)
|