mirror of
https://github.com/AssetRipper/AssetRipper.Text.SourceGeneration.git
synced 2026-11-13 18:06:49 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd268a1ec6 | ||
|
|
f1e3bb04a1 | ||
|
|
1493ad3736 | ||
|
|
d431e08d70 | ||
|
|
fbed176eaf | ||
|
|
3eb78aa0f0 | ||
|
|
2f536575c5 |
No files matched your search
+4
-4
@@ -12,13 +12,13 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="NUnit" Version="4.3.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="4.4.0">
|
||||
<PackageReference Include="NUnit" Version="4.3.2" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="4.6.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.2">
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<Authors>ds5678</Authors>
|
||||
<Company>AssetRipper</Company>
|
||||
<Version>1.2.0</Version>
|
||||
<Version>1.2.2</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<PackageId>AssetRipper.Text.SourceGeneration</PackageId>
|
||||
<PackageTags>C# Text</PackageTags>
|
||||
|
||||
@@ -22,6 +22,8 @@ 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