mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-24 13:28:43 +00:00
urgh
This commit is contained in:
@@ -96,6 +96,13 @@ module internal SynTypePatterns =
|
|||||||
| SynType.Array (1, innerType, _) -> Some innerType
|
| SynType.Array (1, innerType, _) -> Some innerType
|
||||||
| _ -> None
|
| _ -> None
|
||||||
|
|
||||||
|
let (|RestEaseResponseType|_|) (fieldType : SynType) =
|
||||||
|
match fieldType with
|
||||||
|
| SynType.App (SynType.LongIdent ident, _, [ innerType ], _, _, _, _) when AstHelper.isArrayIdent ident ->
|
||||||
|
Some innerType
|
||||||
|
| SynType.Array (1, innerType, _) -> Some innerType
|
||||||
|
| _ -> None
|
||||||
|
|
||||||
/// Returns the string name of the type.
|
/// Returns the string name of the type.
|
||||||
let (|PrimitiveType|_|) (fieldType : SynType) =
|
let (|PrimitiveType|_|) (fieldType : SynType) =
|
||||||
match fieldType with
|
match fieldType with
|
||||||
|
|||||||
Reference in New Issue
Block a user