Releases: smdn/Smdn.Reflection.ReverseGenerating
Releases · smdn/Smdn.Reflection.ReverseGenerating
Smdn.Reflection.ReverseGenerating.ListApi.Core version 1.1.1
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-07-10 update assembly version
- 2022-07-10 enable nullable
- 2022-07-10 remove net5.0 from target frameworks
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
index f59d148..8321ef2 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
@@ -1,66 +1,83 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.0)
+// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.1)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.Core
-// AssemblyVersion: 1.1.0.0
-// InformationalVersion: 1.1.0+074a83ab64ee9e829c2f3835cf0c03af8af0f59d
+// AssemblyVersion: 1.1.1.0
+// InformationalVersion: 1.1.1+c427f8c147936a9aec90fa59918071264114150c
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
using System;
using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Smdn.Reflection.ReverseGenerating;
using Smdn.Reflection.ReverseGenerating.ListApi;
namespace Smdn.Reflection.ReverseGenerating.ListApi {
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public class ApiListWriter {
public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions options) {}
public TextWriter BaseWriter { get; }
public void WriteAssemblyInfoHeader() {}
public void WriteExportedTypes() {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public class ApiListWriterOptions : GeneratorOptions {
+ [NullableContext(byte.MinValue)]
public class WriterOptions {
public WriterOptions() {}
public bool OrderStaticMembersFirst { get; set; }
public bool WriteNullableAnnotationDirective { get; set; }
}
public ApiListWriterOptions() {}
public ApiListWriterOptions.WriterOptions Writer { get; }
}
public static class AssemblyExtensions {
- public static TValue GetAssemblyMetadataAttributeValue<TAssemblyMetadataAttribute, TValue>(this Assembly assm) where TAssemblyMetadataAttribute : Attribute {}
+ [NullableContext(1)]
+ [return: MaybeNull] public static TValue GetAssemblyMetadataAttributeValue<TAssemblyMetadataAttribute, TValue>(this Assembly assm) where TAssemblyMetadataAttribute : Attribute {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public static class AssemblyLoader {
- public static TResult UsingAssembly<TArg, TResult>(FileInfo assemblyFile, bool loadIntoReflectionOnlyContext, TArg arg, Func<Assembly, TArg, TResult> actionWithLoadedAssembly, out WeakReference context, ILogger logger = null) {}
+ [return: MaybeNull] public static TResult UsingAssembly<TArg, TResult>(FileInfo assemblyFile, bool loadIntoReflectionOnlyContext, TArg arg, Func<Assembly, TArg, TResult> actionWithLoadedAssembly, [Nullable(2)] out WeakReference context, [Nullable(2)] ILogger logger = null) {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public static class AttributeFilter {
public static readonly AttributeTypeFilter Default; // = "Smdn.Reflection.ReverseGenerating.AttributeTypeFilter"
}
public static class FrameworkMonikers {
- public static bool TryGetMoniker(FrameworkName frameworkName, string osSpecifier, out string frameworkMoniker) {}
+ [NullableContext(2)]
+ public static bool TryGetMoniker([Nullable(1)] FrameworkName frameworkName, string osSpecifier, [NotNullWhen(true)] out string frameworkMoniker) {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public class MemberInfoComparer : IComparer<MemberInfo> {
public static readonly MemberInfoComparer Default; // = "Smdn.Reflection.ReverseGenerating.ListApi.MemberInfoComparer"
public static readonly MemberInfoComparer StaticMembersFirst; // = "Smdn.Reflection.ReverseGenerating.ListApi.MemberInfoComparer"
public MemberInfoComparer(int orderOfStaticMember, int orderOfInstanceMember) {}
+ [NullableContext(2)]
public int Compare(MemberInfo x, MemberInfo y) {}
+ [NullableContext(2)]
public int GetOrder(MemberInfo member) {}
}
}
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-netcoreapp3.1.apilist.cs
index 79799d1..e9ed99f 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-netcoreapp3.1.apilist.cs
@@ -1,66 +1,83 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.0)
+// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.1)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.Core
-// AssemblyVersion: 1.1.0.0
-// InformationalVersion: 1.1.0+074a83ab64ee9e829c2f3835cf0c03af8af0f59d
+// AssemblyVersion: 1.1.1.0
+// InformationalVersion: 1.1.1+c427f8c147936a9aec90fa59918071264114150c
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
using System;
using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Smdn.Reflection.ReverseGenerating;
using Smdn.Reflection.ReverseGenerating.ListApi;
namespace Smdn.Reflection.ReverseGenerating.ListApi {
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public class ApiListWriter {
public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions options) {}
public TextWriter BaseWriter { get; }
public void WriteAssemblyInfoHeader() {}
public void WriteExportedTypes() {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public class ApiListWriterOptions : GeneratorOptions {
+ [NullableContext(byte.MinValue)]
public class WriterOptions {
public WriterOptions() {}
public bool OrderStaticMembersFirst { get; set; }
public bool WriteNullableAnnotationDirective { get; set; }
}
public ApiListWriterOptions() {}
public ApiListWriterOptions.WriterOptions Writer { get; }
}
public static class AssemblyExtensions {
- public static TValue GetAssemblyMetadataAttributeValue<TAssemblyMetadataAttribute, TValue>(this Assembly assm) where TAssemblyMetadataAttribute : Attribute {}
+ [NullableContext(1)]
+ [return: MaybeNull] public static TValue GetAssemblyMetadataAttributeValue<TAssemblyMetadataAttribute, TValue>(this Assembly assm) where TAssemblyMetadataAttribute : Attribute {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public static class AssemblyLoader {
- public static TResult UsingAssembly<TArg, TResult>(FileInfo assemblyFile, bool loadIntoReflectionOnlyContext, TArg arg, Func<Assembly, TArg, TResult> actionWithLoadedAssembly, out WeakReference context, ILogger logger = null) {}
+ [return: MaybeNull] public static TResult UsingAssembly<TArg, TResult>(FileInfo assemblyFile, bool loadIntoReflectionOnlyContext, TArg arg, Func<Assembly, TArg, TResult> actionWithLoadedAssembly, [Nullable(2)] out WeakReference context, [Nullable(2)] ILogger logger = null) {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public static class AttributeFilter {
public static readonly AttributeTypeFilter Default; // = "Smdn.Reflection.ReverseGenerating.AttributeTypeFilter"
}
public static class FrameworkMonikers {
- public static bool TryGetMoniker(FrameworkName frameworkName, string osSpecifier, out string frameworkMoniker) {}
+ [NullableContext(2)]
+ public static bool TryGetMoniker([Nullable(1)] FrameworkName frameworkName, string osSpecifier, [NotNullWhen(true)] out string frameworkMoniker) {}
}
+ [Nullable(byte.MinValue)]
+ [NullableContext(1)]
public class MemberInfoComparer : IComparer<MemberInfo> {
public static readonly MemberInfoComparer Default; // = "Smdn.Reflection.ReverseGenerating.ListApi.MemberInfoComparer"
public static readonly MemberInfoComparer StaticMembersFirst; // = "Smdn.Reflection.ReverseGenerating.ListApi.MemberInfoComparer"
public MemberInfoComparer(int orderOfStaticMember, int orderOfInstanceMember) {}
+ [NullableContext(2)]
public int Compare(MemberInfo x, MemberInfo y) {}
+ ...
Smdn.Reflection.ReverseGenerating.ListApi.Core version 1.1.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-07-09 update assembly version
- 2022-07-09 bump Smdn.Reflection.ReverseGenerating up to 1.1.0
- 2022-07-09 add fallback implementation for target framework which does not have NullabilityInfoContext
- 2022-07-09 add support for output #nullable directives according to the configurations of TypeDeclarationOptions and MemberDeclarationOptions
- 2022-07-09 reduce writing redundant newline
- 2022-07-09 disable warning CA1848 'use the LoggerMessage delegates'
- 2022-07-09 fix warning CA2254
- 2022-07-09 add partial support for net7.0
- 2022-07-09 make private class sealed
- 2022-07-09 suppress warning IDE0060 and SA1305
- 2022-07-09 make lambda static
- 2022-07-08 add more target attributes to AttributeFilter.Default
- 2022-07-02 remove TODO comment
- 2022-06-23 improve to filter Nullable/NullableContext attributes
- 2022-06-23 improve to filter AsyncStateMachine attributes
- 2022-06-23 fix AttributeFilter.Default to exclude DefaultMemberAttribute only for Type
- 2022-06-23 fix AttributeFilter.Default to exclude TupleElementNamesAttribute for FieldInfo and PropertyInfo as well
- 2022-04-08 bump Smdn.MSBuild.DefineConstants.NETSdkApi up to 1.2.2
- 2022-03-08 update package tags
- 2022-03-08 update assembly descriptions
- 2022-03-08 split property groups
- 2022-01-31 update version
- 2021-12-30 use Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.GenerateApiList to generate API list
- 2021-12-27 define PackageValidationBaselineVersion
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net5.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net5.0.apilist.cs
index d904e13..fd64db3 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net5.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net5.0.apilist.cs
@@ -1,65 +1,66 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.0.0 (net5.0))
+// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.Core
-// AssemblyVersion: 1.0.0.0
-// InformationalVersion: 1.0.0 (net5.0)
+// AssemblyVersion: 1.1.0.0
+// InformationalVersion: 1.1.0+074a83ab64ee9e829c2f3835cf0c03af8af0f59d
// TargetFramework: .NETCoreApp,Version=v5.0
// Configuration: Release
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Smdn.Reflection.ReverseGenerating;
using Smdn.Reflection.ReverseGenerating.ListApi;
namespace Smdn.Reflection.ReverseGenerating.ListApi {
public class ApiListWriter {
public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions options) {}
public TextWriter BaseWriter { get; }
public void WriteAssemblyInfoHeader() {}
public void WriteExportedTypes() {}
}
public class ApiListWriterOptions : GeneratorOptions {
public class WriterOptions {
public WriterOptions() {}
public bool OrderStaticMembersFirst { get; set; }
+ public bool WriteNullableAnnotationDirective { get; set; }
}
public ApiListWriterOptions() {}
public ApiListWriterOptions.WriterOptions Writer { get; }
}
public static class AssemblyExtensions {
public static TValue GetAssemblyMetadataAttributeValue<TAssemblyMetadataAttribute, TValue>(this Assembly assm) where TAssemblyMetadataAttribute : Attribute {}
}
public static class AssemblyLoader {
public static TResult UsingAssembly<TArg, TResult>(FileInfo assemblyFile, bool loadIntoReflectionOnlyContext, TArg arg, Func<Assembly, TArg, TResult> actionWithLoadedAssembly, out WeakReference context, ILogger logger = null) {}
}
public static class AttributeFilter {
public static readonly AttributeTypeFilter Default; // = "Smdn.Reflection.ReverseGenerating.AttributeTypeFilter"
}
public static class FrameworkMonikers {
public static bool TryGetMoniker(FrameworkName frameworkName, string osSpecifier, out string frameworkMoniker) {}
}
public class MemberInfoComparer : IComparer<MemberInfo> {
public static readonly MemberInfoComparer Default; // = "Smdn.Reflection.ReverseGenerating.ListApi.MemberInfoComparer"
public static readonly MemberInfoComparer StaticMembersFirst; // = "Smdn.Reflection.ReverseGenerating.ListApi.MemberInfoComparer"
public MemberInfoComparer(int orderOfStaticMember, int orderOfInstanceMember) {}
public int Compare(MemberInfo x, MemberInfo y) {}
public int GetOrder(MemberInfo member) {}
}
}
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
index afa1c12..f59d148 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
@@ -1,65 +1,66 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.0.0 (net6.0))
+// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.Core
-// AssemblyVersion: 1.0.0.0
-// InformationalVersion: 1.0.0 (net6.0)
+// AssemblyVersion: 1.1.0.0
+// InformationalVersion: 1.1.0+074a83ab64ee9e829c2f3835cf0c03af8af0f59d
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Smdn.Reflection.ReverseGenerating;
using Smdn.Reflection.ReverseGenerating.ListApi;
namespace Smdn.Reflection.ReverseGenerating.ListApi {
public class ApiListWriter {
public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions options) {}
public TextWriter BaseWriter { get; }
public void WriteAssemblyInfoHeader() {}
public void WriteExportedTypes() {}
}
public class ApiListWriterOptions : GeneratorOptions {
public class WriterOptions {
public WriterOptions() {}
public bool OrderStaticMembersFirst { get; set; }
+ public bool WriteNullableAnnotationDirective { get; set; }
}
public ApiListWriterOpti...
Smdn.Reflection.ReverseGenerating version 1.1.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-07-09 update assembly version
- 2022-07-08 bump Smdn.Fundamental.Reflection up to 3.3.0
- 2022-07-05 suppress warning CS8602
- 2022-07-05 fix generating 'virtual' modifier of properties with non-public accessor
- 2022-07-05 fix argument name
- 2022-07-05 add support for showing
new
modifier on member declarations - 2022-07-05 add GeneratorOptions.AttributeDeclarationOptions.OmitAttributeSuffix
- 2022-07-04 add support for generating generic attributes
- 2022-07-04 reduce allocations
- 2022-07-04 simplify generating member modifiers
- 2022-07-04 add support for generating implementation members of static interface member
- 2022-07-04 bump Smdn.Fundamental.Reflection up to 3.2.0
- 2022-07-03 add support for static interface members and TSelf constraints
- 2022-07-02 mark as
sealed
- 2022-07-02 add support for showing
readonly
modifier on struct property declarations - 2022-07-02 add support for showing
new
modifier on type declarations - 2022-07-02 add support for generating array and param array attribute args
- 2022-07-01 add workaround for .NET Framework
- 2022-07-01 reduce duplicate codes
- 2022-07-01 apply ValueFormatOptions.TranslateLanguagePrimitiveType on default value and constant field value
- 2022-07-01 add support for formatting values of System.Type
- 2022-07-01 add GeneratorOptions.ParameterDeclarationOptions for formatting parameter type names
- 2022-07-01 fix formatting nested type full name
- 2022-07-01 add GeneratorOptions.ValueDeclarationOptions.WithNamespace/WithDeclaringTypeName for formatting type name of values
- 2022-06-30 add GeneratorOptions.MethodDeclarationOptions.AccessorBody
- 2022-06-30 add support for generating attribute list of event accessor parameters
- 2022-06-30 reduce duplicate codes
- 2022-06-30 add support for specifying attribute section format of method and delegate (return) parameters
- 2022-06-30 remove unusing codes
- 2022-06-30 add support for specifying attribute section format of property and event accessors
- 2022-06-30 add support for generating event accessor methods
- 2022-06-29 add support for specifying attribute section format of accessor parameters, backing fields and generic parameters
- 2022-06-29 add GeneratorOptions.AttributeDeclarationOptions.WithDeclaringTypeName for formatting nested attribute type names
- 2022-06-29 add support for generating attribute list of generic method parameter
- 2022-06-29 add support for generating attribute list of generic type parameter
- 2022-06-29 reduce specifying 'showVariance' arguments
- 2022-06-29 use record struct instead
- 2022-06-29 add support for generating attribute list of event backing fields
- 2022-06-29 use StringBuilder.Append+String.Join if StringBuilder.AppendJoin is not available
- 2022-06-27 add support for generating attribute list of property accessor methods and backing fields
- 2022-06-26 fix not to generate constant field of primitive types on attribute arguments
- 2022-06-26 add support for cloning GeneratorOptions
- 2022-06-26 commonize process of generating method and delegate declarations
- 2022-06-22 fix formatting result of single-elemented value tuples
- 2022-06-22 add support for formatting delegates with nullability annotation
- 2022-06-22 add GeneratorOptions.TypeDeclarationOptions.NullabilityInfoContext
- 2022-06-22 add GeneratorOptions.MemberDeclarationOptions.NullabilityInfoContext
- 2022-06-22 add overloads of CSharpFormatter.FormatParameter/FormatParameterList() which accepts NullabilityInfoContext
- 2022-06-22 rename parameter of NullabilityInfoContext
- 2022-06-22 make parameter nullable
- 2022-06-22 add overloads of FormatTypeName()
- 2022-06-22 specify attribute provider of target
- 2022-06-22 add support for formatting property type name with nullability annotations
- 2022-06-21 [add support for formatting event type name with nullability annotatio...
Smdn.Reflection.ReverseGenerating version 1.0.5
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
index 6355e5f..c02a07a 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
@@ -1,90 +1,90 @@
-// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.0.4 (net45))
+// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.0.5)
// Name: Smdn.Reflection.ReverseGenerating
-// AssemblyVersion: 1.0.4.0
-// InformationalVersion: 1.0.4 (net45)
+// AssemblyVersion: 1.0.5.0
+// InformationalVersion: 1.0.5+dd9591cbed8623f61349f46c833f14f1578db406
// TargetFramework: .NETFramework,Version=v4.5
// Configuration: Release
using System;
using System.Collections.Generic;
using System.Reflection;
using Smdn.Reflection;
using Smdn.Reflection.ReverseGenerating;
namespace Smdn.Reflection.ReverseGenerating {
public delegate bool AttributeTypeFilter(Type type, ICustomAttributeProvider attributeProvider);
public enum MethodBodyOption : int {
EmptyImplementation = 1,
None = 0,
ThrowNotImplementedException = 2,
}
public static class CSharpFormatter {
public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {}
public static string FormatAccessibility(Accessibility accessibility) {}
public static string FormatParameter(ParameterInfo p, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(MethodBase m, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(ParameterInfo[] parameterList, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatSpecialNameMethod(MethodBase methodOrConstructor, out MethodSpecialName nameType) {}
public static string FormatTypeName(this Type t, ICustomAttributeProvider attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatValueDeclaration(object val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
public static bool IsLanguagePrimitiveType(Type t, out string primitiveTypeName) {}
public static IEnumerable<string> ToNamespaceList(Type t) {}
}
public static class Generator {
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static string GenerateMemberDeclaration(MemberInfo member, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static string GenerateTypeDeclaration(Type t, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string> referencingNamespaces, GeneratorOptions options) {}
}
public class GeneratorOptions {
public class AttributeDeclarationOptions {
public AttributeDeclarationOptions() {}
public AttributeTypeFilter TypeFilter { get; set; }
public bool WithNamedArguments { get; set; }
public bool WithNamespace { get; set; }
}
public class MemberDeclarationOptions {
public MemberDeclarationOptions() {}
public MethodBodyOption MethodBody { get; set; }
public bool OmitEndOfStatement { get; set; }
public bool WithAccessibility { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class TypeDeclarationOptions {
public TypeDeclarationOptions() {}
public bool OmitEndOfStatement { get; set; }
public bool WithAccessibility { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class ValueDeclarationOptions {
public ValueDeclarationOptions() {}
public bool UseDefaultLiteral { get; set; }
}
public GeneratorOptions() {}
public GeneratorOptions.AttributeDeclarationOptions AttributeDeclaration { get; }
public bool IgnorePrivateOrAssembly { get; set; }
public string Indent { get; set; }
public GeneratorOptions.MemberDeclarationOptions MemberDeclaration { get; }
public bool TranslateLanguagePrimitiveTypeDeclaration { get; set; }
public GeneratorOptions.TypeDeclarationOptions TypeDeclaration { get; }
public GeneratorOptions.ValueDeclarationOptions ValueDeclaration { get; }
}
}
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net47.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net47.apilist.cs
index 18975c9..6e7284d 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net47.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net47.apilist.cs
@@ -1,90 +1,90 @@
-// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.0.4 (net47))
+// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.0.5)
// Name: Smdn.Reflection.ReverseGenerating
-// AssemblyVersion: 1.0.4.0
-// InformationalVersion: 1.0.4 (net47)
+// AssemblyVersion: 1.0.5.0
+// InformationalVersion: 1.0.5+dd9591cbed8623f61349f46c833f14f1578db406
// TargetFramework: .NETFramework,Version=v4.7
// Configuration: Release
using System;
using System.Collections.Generic;
using System.Reflection;
using Smdn.Reflection;
using Smdn.Reflection.ReverseGenerating;
namespace Smdn.Reflection.ReverseGenerating {
public delegate bool AttributeTypeFilter(Type type, ICustomAttributeProvider attributeProvider);
public enum MethodBodyOption : int {
EmptyImplementation = 1,
None = 0,
ThrowNotImplementedException = 2,
}
public static class CSharpFormatter {
public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {}
public static string FormatAccessibility(Accessibility accessibility) {}
public static string FormatParameter(ParameterInfo p, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(MethodBase m, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(ParameterInfo[] parameterList, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatSpecialNameMethod(MethodBase methodOrConstructor, out MethodSpecialName nameType) {}
public static string FormatTypeName(this Type t, ICustomAttributeProvider attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatValueDeclaration(object val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
public static bool IsLanguagePrimitiveType(Type t, out string primitiveTypeName) {}
public static IEnumerable<string> ToNamespaceList(Type t) {}
}
public static class Generator {
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static string GenerateMemberDeclaration(MemberInfo member, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static string GenerateTypeDeclaration(Type t, ISet<string> referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string> referencing...