anchor.diff:      CleanDir (typings @@ "temp")
   
       // Get all definitions and their dependencies (and source code without <reference> tags)
  -    let tsDefinitions = 
  +    let tsDefinitions =
         let reg = System.Text.RegularExpressions.Regex("reference.*path=\"([^\"]*)\"") // "
         let defs = Directory.EnumerateFiles(typings, "*.d.ts", SearchOption.AllDirectories)
         [ for def in defs ->
             let lines = File.ReadAllLines(def)
  -          let deps, lines = 
  +          let deps, lines =
               [ for line in lines do
                   let mtch = reg.Match(line)
  -                if mtch.Success then 
  +                if mtch.Success then
                     let depName = Path.GetFileName(mtch.Groups.[1].Value)
                     if not (noInline.Contains depName) then yield true, depName
                    else yield false, line ] |> List.partition fst
  
positive.code: open Microsoft.FSharp.Quotations
  open FunScript.Compiler
  
  let translateModules() = 
    for typ, moduleName, fileName in atomModules do
  
      // We generate F# quotation that returns all the methods that we want to expose 
      // from the class. This way, we can then wrap it into simple JS code that 
      // creates the module. The generated quotation looks something like this:
      //
      //   [| box (fun () -> new WordCount());
  
negative.code:     // Set the FSHARP_BIN variable and run FunScript codegen!
      fsharpBin |> Option.iter (fun fsharpBin ->
        System.Environment.SetEnvironmentVariable("FSHARP_BIN", fsharpBin))
  
      (TimeSpan.FromMinutes 5.0)
      |> ProcessHelper.ExecProcess (fun p ->
        p.FileName <- typings @@ "FunScript.TypeScript" @@ "FunScript.TypeScript.exe"
        p.WorkingDirectory <- typings @@ "FunScript.TypeScript")
      |> ignore
  )
  
  // --------------------------------------------------------------------------------------
  