@@ -58,7 +58,7 @@ exception ArgumentRepeatException of DebugInformation * CommandCall * string
5858exception ArgumentUnmatchedException of DebugInformation * CommandCall * parameter : string
5959
6060
61- let matchArguments debugInfo ( x : Parameter list ) ( c : CommandCall ) : Result <( string * Constant ) list > =
61+ let matchArguments debugInfo ( x : Parameter list ) ( c : CommandCall ) : Result <( string * Constant ) list , exn > =
6262 let defaultArgs =
6363 x
6464 |> List.choose ( fun { Parameter = name ; Default = x } -> Option.map ( fun x -> name, x) x)
@@ -76,7 +76,7 @@ let matchArguments debugInfo (x: Parameter list) (c: CommandCall) : Result<(stri
7676 | None -> Ok()
7777 | Some ( p, _) -> Error <| ArgumentRepeatException( debugInfo, c, p)
7878
79- let matchArg paramName : Result < string * Constant > =
79+ let matchArg paramName : Result < string * Constant , exn > =
8080 let find = List.tryFind ( fst >> (=) paramName)
8181
8282 match find inputArgs with
@@ -122,7 +122,7 @@ let private replaceParamToArgs args macroBody =
122122 NamedArgs = List.map ( fun ( name , arg ) -> name, replaceArg arg) macroBody.NamedArgs }
123123
124124
125- let rec private expandSingleOperation macros operation : Result < Block > =
125+ let rec private expandSingleOperation macros operation : Result < Block , exn > =
126126 match operation with
127127 | CommandCall command, debug ->
128128 match matchMacro debug command macros with
0 commit comments