fsharp/fsharpbinding — pull request #75 by tpetricek (2012-12-30 16:29:53+00:00)
Title: Update wrapper for TokenInformation

This updates the wrapper for `TokenInformation` in `FSharpCompiler.fs`.

The problem is that `TokenInformation` has 7 properties on some versions of F# and 8 on some other versions. This does not directly correspond to a version number reported by `FSharpCompiler.Current.ActualVersion` (F# 3.0 vs. F# 2.0), so we get information about the constructor before we want to call it and then give it 7 or 8 arguments.

This fixes a bug in FSharp.Formatting (https://github.com/tpetricek/FSharp.Formatting/issues/3).