From 63a45f14d8f2a1c947d6e63a7588fa34127d9734 Mon Sep 17 00:00:00 2001 From: Smaug123 Date: Fri, 29 Dec 2023 23:23:00 +0000 Subject: [PATCH] urgh --- WoofWare.Myriad.Plugins/AstHelper.fs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WoofWare.Myriad.Plugins/AstHelper.fs b/WoofWare.Myriad.Plugins/AstHelper.fs index a31f431..e62ba49 100644 --- a/WoofWare.Myriad.Plugins/AstHelper.fs +++ b/WoofWare.Myriad.Plugins/AstHelper.fs @@ -96,6 +96,13 @@ module internal SynTypePatterns = | SynType.Array (1, innerType, _) -> Some innerType | _ -> 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. let (|PrimitiveType|_|) (fieldType : SynType) = match fieldType with