Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Add support for ConversionResolveResult in GetSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer committed Jul 5, 2016
1 parent 1463cf2 commit 96c2f37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs
Expand Up @@ -779,6 +779,8 @@ public static ISymbol GetSymbol(this ResolveResult rr)
return ((MemberResolveResult)rr).Member;
} else if (rr is TypeResolveResult) {
return ((TypeResolveResult)rr).Type.GetDefinition();
} else if (rr is ConversionResolveResult) {
return ((ConversionResolveResult)rr).Input.GetSymbol();
}

return null;
Expand Down

0 comments on commit 96c2f37

Please sign in to comment.