Files
WoofWare.Whippet/WoofWare.Whippet.Fantomas/SynConst.fs
Patrick Stevens 8834d885de
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
Initial import of Fantomas client library (#6)
2024-10-04 15:13:49 +01:00

13 lines
438 B
Forth

namespace WoofWare.Whippet.Fantomas
open Fantomas.FCS.Syntax
open Fantomas.FCS.Text.Range
/// Extension methods for creating SynConst AST objects (which represent literal constants such as `3` or `"hi"`).
[<AutoOpen>]
module SynConstExt =
type SynConst with
/// Create the constant string with this value.
static member Create (s : string) : SynConst =
SynConst.String (s, SynStringKind.Regular, range0)