Skip to content

Commit 1fe2f50

Browse files
authored
Merge pull request #6 from smdn/releases/Smdn.Reflection.ReverseGenerating-1.1.1-1657574333
Release main/Smdn.Reflection.ReverseGenerating-1.1.1
2 parents 9c1ed73 + ffe45c4 commit 1fe2f50

5 files changed

+153
-81
lines changed

doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.0)
1+
// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.1)
22
// Name: Smdn.Reflection.ReverseGenerating
3-
// AssemblyVersion: 1.1.0.0
4-
// InformationalVersion: 1.1.0+074a83ab64ee9e829c2f3835cf0c03af8af0f59d
3+
// AssemblyVersion: 1.1.1.0
4+
// InformationalVersion: 1.1.1+9c1ed7379f1b7fe2562a51f0283b02332d84584f
55
// TargetFramework: .NETFramework,Version=v4.5
66
// Configuration: Release
7-
#nullable enable annotations
87

98
using System;
109
using System.Collections.Generic;
1110
using System.Reflection;
11+
using System.Runtime.CompilerServices;
1212
using Smdn.Reflection;
1313
using Smdn.Reflection.ReverseGenerating;
1414

@@ -27,6 +27,8 @@ public enum MethodBodyOption : int {
2727
ThrowNull = 3,
2828
}
2929

30+
[Nullable(byte.MinValue)]
31+
[NullableContext(1)]
3032
public static class CSharpFormatter {
3133
public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {}
3234
public static string FormatAccessibility(Accessibility accessibility) {}
@@ -38,22 +40,28 @@ public static string FormatTypeName(this EventInfo ev, bool typeWithNamespace =
3840
public static string FormatTypeName(this FieldInfo f, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
3941
public static string FormatTypeName(this ParameterInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
4042
public static string FormatTypeName(this PropertyInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
41-
public static string FormatTypeName(this Type t, ICustomAttributeProvider? attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
42-
public static string FormatValueDeclaration(object? val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
43+
public static string FormatTypeName(this Type t, [Nullable(2)] ICustomAttributeProvider attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
44+
public static string FormatValueDeclaration([Nullable(2)] object val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
4345
public static bool IsLanguagePrimitiveType(Type t, out string primitiveTypeName) {}
4446
public static IEnumerable<string> ToNamespaceList(Type t) {}
4547
}
4648

49+
[Nullable(byte.MinValue)]
50+
[NullableContext(1)]
4751
public static class Generator {
48-
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
49-
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
50-
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
51-
public static string? GenerateMemberDeclaration(MemberInfo member, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
52-
public static string GenerateTypeDeclaration(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
53-
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
52+
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
53+
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
54+
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
55+
[return: Nullable(2)] public static string GenerateMemberDeclaration(MemberInfo member, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
56+
public static string GenerateTypeDeclaration(Type t, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
57+
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
5458
}
5559

60+
[Nullable(byte.MinValue)]
61+
[NullableContext(1)]
5662
public class GeneratorOptions : ICloneable {
63+
[Nullable(byte.MinValue)]
64+
[NullableContext(2)]
5765
public class AttributeDeclarationOptions {
5866
public AttributeDeclarationOptions() {}
5967

@@ -64,12 +72,13 @@ public AttributeDeclarationOptions() {}
6472
public AttributeSectionFormat GenericParameterFormat { get; set; }
6573
public AttributeSectionFormat MethodParameterFormat { get; set; }
6674
public bool OmitAttributeSuffix { get; set; }
67-
public AttributeTypeFilter? TypeFilter { get; set; }
75+
public AttributeTypeFilter TypeFilter { get; set; }
6876
public bool WithDeclaringTypeName { get; set; }
6977
public bool WithNamedArguments { get; set; }
7078
public bool WithNamespace { get; set; }
7179
}
7280

81+
[NullableContext(byte.MinValue)]
7382
public class MemberDeclarationOptions {
7483
public MemberDeclarationOptions() {}
7584

@@ -81,13 +90,15 @@ public MemberDeclarationOptions() {}
8190
public bool WithNamespace { get; set; }
8291
}
8392

93+
[NullableContext(byte.MinValue)]
8494
public class ParameterDeclarationOptions {
8595
public ParameterDeclarationOptions() {}
8696

8797
public bool WithDeclaringTypeName { get; set; }
8898
public bool WithNamespace { get; set; }
8999
}
90100

101+
[NullableContext(byte.MinValue)]
91102
public class TypeDeclarationOptions {
92103
public TypeDeclarationOptions() {}
93104

@@ -97,6 +108,7 @@ public TypeDeclarationOptions() {}
97108
public bool WithNamespace { get; set; }
98109
}
99110

111+
[NullableContext(byte.MinValue)]
100112
public class ValueDeclarationOptions {
101113
public ValueDeclarationOptions() {}
102114

@@ -109,7 +121,8 @@ public GeneratorOptions() {}
109121

110122
public GeneratorOptions.AttributeDeclarationOptions AttributeDeclaration { get; init; }
111123
public bool IgnorePrivateOrAssembly { get; set; }
112-
public string? Indent { get; set; }
124+
[Nullable(2)]
125+
public string Indent { get; set; }
113126
public GeneratorOptions.MemberDeclarationOptions MemberDeclaration { get; init; }
114127
public GeneratorOptions.ParameterDeclarationOptions ParameterDeclaration { get; init; }
115128
public bool TranslateLanguagePrimitiveTypeDeclaration { get; set; }
@@ -120,3 +133,4 @@ public virtual GeneratorOptions Clone() {}
120133
object ICloneable.Clone() {}
121134
}
122135
}
136+

doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net47.apilist.cs

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.0)
1+
// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.1)
22
// Name: Smdn.Reflection.ReverseGenerating
3-
// AssemblyVersion: 1.1.0.0
4-
// InformationalVersion: 1.1.0+074a83ab64ee9e829c2f3835cf0c03af8af0f59d
3+
// AssemblyVersion: 1.1.1.0
4+
// InformationalVersion: 1.1.1+9c1ed7379f1b7fe2562a51f0283b02332d84584f
55
// TargetFramework: .NETFramework,Version=v4.7
66
// Configuration: Release
7-
#nullable enable annotations
87

98
using System;
109
using System.Collections.Generic;
1110
using System.Reflection;
11+
using System.Runtime.CompilerServices;
1212
using Smdn.Reflection;
1313
using Smdn.Reflection.ReverseGenerating;
1414

@@ -27,6 +27,8 @@ public enum MethodBodyOption : int {
2727
ThrowNull = 3,
2828
}
2929

30+
[Nullable(byte.MinValue)]
31+
[NullableContext(1)]
3032
public static class CSharpFormatter {
3133
public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {}
3234
public static string FormatAccessibility(Accessibility accessibility) {}
@@ -38,22 +40,28 @@ public static string FormatTypeName(this EventInfo ev, bool typeWithNamespace =
3840
public static string FormatTypeName(this FieldInfo f, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
3941
public static string FormatTypeName(this ParameterInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
4042
public static string FormatTypeName(this PropertyInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
41-
public static string FormatTypeName(this Type t, ICustomAttributeProvider? attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
42-
public static string FormatValueDeclaration(object? val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
43+
public static string FormatTypeName(this Type t, [Nullable(2)] ICustomAttributeProvider attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
44+
public static string FormatValueDeclaration([Nullable(2)] object val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
4345
public static bool IsLanguagePrimitiveType(Type t, out string primitiveTypeName) {}
4446
public static IEnumerable<string> ToNamespaceList(Type t) {}
4547
}
4648

49+
[Nullable(byte.MinValue)]
50+
[NullableContext(1)]
4751
public static class Generator {
48-
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
49-
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
50-
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
51-
public static string? GenerateMemberDeclaration(MemberInfo member, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
52-
public static string GenerateTypeDeclaration(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
53-
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
52+
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
53+
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
54+
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
55+
[return: Nullable(2)] public static string GenerateMemberDeclaration(MemberInfo member, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
56+
public static string GenerateTypeDeclaration(Type t, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
57+
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, [Nullable] ISet<string> referencingNamespaces, GeneratorOptions options) {}
5458
}
5559

60+
[Nullable(byte.MinValue)]
61+
[NullableContext(1)]
5662
public class GeneratorOptions : ICloneable {
63+
[Nullable(byte.MinValue)]
64+
[NullableContext(2)]
5765
public class AttributeDeclarationOptions {
5866
public AttributeDeclarationOptions() {}
5967

@@ -64,12 +72,13 @@ public AttributeDeclarationOptions() {}
6472
public AttributeSectionFormat GenericParameterFormat { get; set; }
6573
public AttributeSectionFormat MethodParameterFormat { get; set; }
6674
public bool OmitAttributeSuffix { get; set; }
67-
public AttributeTypeFilter? TypeFilter { get; set; }
75+
public AttributeTypeFilter TypeFilter { get; set; }
6876
public bool WithDeclaringTypeName { get; set; }
6977
public bool WithNamedArguments { get; set; }
7078
public bool WithNamespace { get; set; }
7179
}
7280

81+
[NullableContext(byte.MinValue)]
7382
public class MemberDeclarationOptions {
7483
public MemberDeclarationOptions() {}
7584

@@ -81,13 +90,15 @@ public MemberDeclarationOptions() {}
8190
public bool WithNamespace { get; set; }
8291
}
8392

93+
[NullableContext(byte.MinValue)]
8494
public class ParameterDeclarationOptions {
8595
public ParameterDeclarationOptions() {}
8696

8797
public bool WithDeclaringTypeName { get; set; }
8898
public bool WithNamespace { get; set; }
8999
}
90100

101+
[NullableContext(byte.MinValue)]
91102
public class TypeDeclarationOptions {
92103
public TypeDeclarationOptions() {}
93104

@@ -97,6 +108,7 @@ public TypeDeclarationOptions() {}
97108
public bool WithNamespace { get; set; }
98109
}
99110

111+
[NullableContext(byte.MinValue)]
100112
public class ValueDeclarationOptions {
101113
public ValueDeclarationOptions() {}
102114

@@ -109,7 +121,8 @@ public GeneratorOptions() {}
109121

110122
public GeneratorOptions.AttributeDeclarationOptions AttributeDeclaration { get; init; }
111123
public bool IgnorePrivateOrAssembly { get; set; }
112-
public string? Indent { get; set; }
124+
[Nullable(2)]
125+
public string Indent { get; set; }
113126
public GeneratorOptions.MemberDeclarationOptions MemberDeclaration { get; init; }
114127
public GeneratorOptions.ParameterDeclarationOptions ParameterDeclaration { get; init; }
115128
public bool TranslateLanguagePrimitiveTypeDeclaration { get; set; }
@@ -120,3 +133,4 @@ public virtual GeneratorOptions Clone() {}
120133
object ICloneable.Clone() {}
121134
}
122135
}
136+

0 commit comments

Comments
 (0)