Compare commits

..
2 Commits
Author SHA1 Message Date
ds5678 cd268a1ec6 Bump version of AssetRipper.Text.SourceGeneration
Updated the version number of the AssetRipper.Text.SourceGeneration project from 1.2.1 to 1.2.2.
2025-02-08 23:29:28 -08:00
ds5678 f1e3bb04a1 More xml documentation 2025-02-08 23:28:47 -08:00
3 changed files with 16 additions and 1 deletions

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}\"/>";
}