mirror of
https://github.com/AssetRipper/AssetRipper.Text.SourceGeneration.git
synced 2026-11-13 20:05:44 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd268a1ec6 | ||
|
|
f1e3bb04a1 |
No files matched your search
@@ -9,7 +9,7 @@
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
<Version>1.2.1</Version>
|
||||
<Version>1.2.2</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<PackageId>AssetRipper.Text.SourceGeneration</PackageId>
|
||||
<PackageTags>C# Text</PackageTags>
|
||||
|
||||
@@ -23,6 +23,7 @@ public static class IndentedTextWriterExtensions
|
||||
writer.WriteLine($"/// <returns>{description}</returns>");
|
||||
}
|
||||
public static void WriteInheritDocumentation(this IndentedTextWriter writer) => writer.WriteLine("/// <inheritdoc/>");
|
||||
public static void WriteInheritDocumentation(this IndentedTextWriter writer, string cref) => writer.WriteLine($"/// <inheritdoc cref=\"{cref}\"/>");
|
||||
private static void WriteXmlDocumentation(this IndentedTextWriter writer, string tag, string content)
|
||||
{
|
||||
writer.WriteLine($"/// <{tag}>");
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace AssetRipper.Text.SourceGeneration;
|
||||
|
||||
public static class XmlFormatter
|
||||
{
|
||||
public static string SeeCref(string cref) => $"<see cref=\"{cref}\"/>";
|
||||
public static string SeeHref(string href) => $"<see href=\"{href}\"/>";
|
||||
public static string SeeHref(string href, string text) => $"<see href=\"{href}\">{text}</see>";
|
||||
public static string SeeLangword(string langword) => $"<see langword=\"{langword}\"/>";
|
||||
|
||||
public static string SeeAlsoCref(string cref) => $"<seealso cref=\"{cref}\"/>";
|
||||
public static string SeeAlsoHref(string href) => $"<seealso href=\"{href}\"/>";
|
||||
public static string SeeAlsoHref(string href, string text) => $"<seealso href=\"{href}\">{text}</seealso>";
|
||||
public static string SeeAlsoLangword(string langword) => $"<seealso langword=\"{langword}\"/>";
|
||||
}
|
||||
Reference in new issue
Block a user