Skip to content

Commit

Permalink
dotnet fake build -t Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorium committed Nov 9, 2023
1 parent 7e168eb commit de17072
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/FSharp.Data.Runtime.Utilities/NameUtils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ let private (|EOF|_|) c =

[<return: Struct>]
let private (|LetterDigit|_|) = sat Char.IsLetterOrDigit

[<return: Struct>]
let private (|Upper|_|) = sat (fun c -> Char.IsUpper c || Char.IsDigit c)

[<return: Struct>]
let private (|Lower|_|) = sat (fun c -> Char.IsLower c || Char.IsDigit c)

Expand Down
3 changes: 2 additions & 1 deletion src/FSharp.Data.Runtime.Utilities/StructuralInference.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ open FSharp.Data.Runtime.StructuralTypes
open System.Text.RegularExpressions

/// This is the internal DU representing all the valid cases we support, mapped from the public InferenceMode.
[<Struct;Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
[<Struct;
Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type InferenceMode' =
| NoInference
/// Backward compatible mode.
Expand Down
14 changes: 9 additions & 5 deletions src/FSharp.Data.Runtime.Utilities/StructuralTypes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ type InferedProperty =
/// For heterogeneous types (types that have multiple possible forms
/// such as differently named XML nodes or records and arrays mixed together)
/// this type represents the number of occurrences of individual forms
[<Struct; Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
[<Struct;
Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type InferedMultiplicity =
| Single
| OptionalSingle
Expand Down Expand Up @@ -188,23 +189,26 @@ type internal InferedTypeTag with

/// Dummy type to represent that only "0" was found.
/// Will be generated as 'int', unless it's converted to Bit.
[<Struct;Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
[<Struct;
Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type Bit0 = Bit0

/// Dummy type to represent that only "1" was found
/// Will be generated as 'int', unless it's converted to Bit
[<Struct;Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
[<Struct;
Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type Bit1 = Bit1

/// Dummy type to represent that only one of "0" and "1" were found
/// Will be generated as a 'bool', unless it's converted to another numerical type
[<Struct;Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
[<Struct;
Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type Bit = Bit

// ------------------------------------------------------------------------------------------------

/// Represents a transformation of a type
[<Struct;RequireQualifiedAccess>]
[<Struct; RequireQualifiedAccess>]
[<Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type TypeWrapper =
/// No transformation will be made to the type
Expand Down

0 comments on commit de17072

Please sign in to comment.