Skip to content

Commit c8114b3

Browse files
committed
moved helper functions out of ClrCallGenerator
1 parent f7e40f6 commit c8114b3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ngc/ClrGenerator.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ open Naggum.Compiler.Context
2828
open Naggum.Compiler.IGenerator
2929
open Naggum.MaybeMonad
3030

31-
type ClrCallGenerator(context : Context, typeBuilder : TypeBuilder, clrType : Type, methodName : string, arguments : SExp list,
32-
gf : IGeneratorFactory) =
33-
let nearestOverload (clrType : Type) methodName types =
31+
let nearestOverload (clrType : Type) methodName types =
3432
let rec distanceBetweenTypes (derivedType : Type, baseType) =
3533
match derivedType with
3634
| null -> None
@@ -73,7 +71,9 @@ type ClrCallGenerator(context : Context, typeBuilder : TypeBuilder, clrType : Ty
7371
None
7472
else
7573
Some (List.head methods)
76-
74+
75+
type ClrCallGenerator(context : Context, typeBuilder : TypeBuilder, clrType : Type, methodName : string, arguments : SExp list,
76+
gf : IGeneratorFactory) =
7777
interface IGenerator with
7878
member this.Generate ilGen =
7979
let args_seq = gf.MakeSequence context arguments

0 commit comments

Comments
 (0)