Skip to content

Commit

Permalink
Fix #249
Browse files Browse the repository at this point in the history
  • Loading branch information
fsgit committed Nov 5, 2014
1 parent f2a89a5 commit 445e92c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/assemblyinfo/assemblyinfo.shared.fs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace System
open System.Reflection

[<assembly: AssemblyVersionAttribute("0.0.74")>]
[<assembly: AssemblyFileVersionAttribute("0.0.74")>]
[<assembly: AssemblyVersionAttribute("0.0.75")>]
[<assembly: AssemblyFileVersionAttribute("0.0.75")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "0.0.74"
let [<Literal>] Version = "0.0.75"
6 changes: 3 additions & 3 deletions src/fsharp/vs/Symbols.fs
Original file line number Diff line number Diff line change
Expand Up @@ -195,22 +195,22 @@ and FSharpEntity(cenv:cenv, entity:EntityRef) =
member x.QualifiedName =
checkIsResolved()
let fail() = invalidOp (sprintf "the type '%s' does not have a qualified name" x.LogicalName)
if entity.IsTypeAbbrev then fail()
if entity.IsTypeAbbrev || entity.IsProvidedGeneratedTycon || entity.IsNamespace then fail()
match entity.CompiledRepresentation with
| CompiledTypeRepr.ILAsmNamed(tref,_,_) -> tref.QualifiedName
| CompiledTypeRepr.ILAsmOpen _ -> fail()

member x.FullName =
checkIsResolved()
let fail() = invalidOp (sprintf "the type '%s' does not have a qualified name" x.LogicalName)
if entity.IsTypeAbbrev then fail()
if entity.IsTypeAbbrev || entity.IsProvidedGeneratedTycon || entity.IsNamespace then fail()
match entity.CompiledRepresentation with
| CompiledTypeRepr.ILAsmNamed(tref,_,_) -> tref.FullName
| CompiledTypeRepr.ILAsmOpen _ -> fail()

member x.TryFullName =
if isUnresolved() then None
elif entity.IsTypeAbbrev then None
elif entity.IsTypeAbbrev || entity.IsProvidedGeneratedTycon || entity.IsNamespace then None
else
match entity.CompiledRepresentation with
| CompiledTypeRepr.ILAsmNamed(tref,_,_) -> Some tref.FullName
Expand Down

0 comments on commit 445e92c

Please sign in to comment.