22 lines
704 B
C#
22 lines
704 B
C#
|
using System.Text;
|
|||
|
using Mono.Cecil;
|
|||
|
|
|||
|
namespace Mono.Documentation.Updater
|
|||
|
{
|
|||
|
public class FSharpFullMemberFormatter : FSharpFormatter
|
|||
|
{
|
|||
|
public override string Language => Consts.FSharp;
|
|||
|
|
|||
|
private readonly MemberFormatter usageFormatter = new FSharpUsageFormatter();
|
|||
|
public override MemberFormatter UsageFormatter => usageFormatter;
|
|||
|
|
|||
|
protected override StringBuilder AppendNamespace(StringBuilder buf, TypeReference type)
|
|||
|
{
|
|||
|
string ns = DocUtils.GetNamespace(type);
|
|||
|
if (GetFSharpType(type) == null && !string.IsNullOrEmpty(ns) && ns != "System")
|
|||
|
buf.Append(ns).Append('.');
|
|||
|
return buf;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|