1
- // Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.0 )
1
+ // Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.1 )
2
2
// 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
5
5
// TargetFramework: .NETFramework,Version=v4.5
6
6
// Configuration: Release
7
- #nullable enable annotations
8
7
9
8
using System ;
10
9
using System . Collections . Generic ;
11
10
using System . Reflection ;
11
+ using System . Runtime . CompilerServices ;
12
12
using Smdn . Reflection ;
13
13
using Smdn . Reflection . ReverseGenerating ;
14
14
@@ -27,6 +27,8 @@ public enum MethodBodyOption : int {
27
27
ThrowNull = 3 ,
28
28
}
29
29
30
+ [ Nullable ( byte . MinValue ) ]
31
+ [ NullableContext ( 1 ) ]
30
32
public static class CSharpFormatter {
31
33
public static string EscapeString ( string s , bool escapeSingleQuote = false , bool escapeDoubleQuote = false ) { }
32
34
public static string FormatAccessibility ( Accessibility accessibility ) { }
@@ -38,22 +40,28 @@ public static string FormatTypeName(this EventInfo ev, bool typeWithNamespace =
38
40
public static string FormatTypeName ( this FieldInfo f , bool typeWithNamespace = true , bool withDeclaringTypeName = true , bool translateLanguagePrimitiveType = true ) { }
39
41
public static string FormatTypeName ( this ParameterInfo p , bool typeWithNamespace = true , bool withDeclaringTypeName = true , bool translateLanguagePrimitiveType = true ) { }
40
42
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 ) { }
43
45
public static bool IsLanguagePrimitiveType ( Type t , out string primitiveTypeName ) { }
44
46
public static IEnumerable < string > ToNamespaceList ( Type t ) { }
45
47
}
46
48
49
+ [ Nullable ( byte . MinValue ) ]
50
+ [ NullableContext ( 1 ) ]
47
51
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 ) { }
54
58
}
55
59
60
+ [ Nullable ( byte . MinValue ) ]
61
+ [ NullableContext ( 1 ) ]
56
62
public class GeneratorOptions : ICloneable {
63
+ [ Nullable ( byte . MinValue ) ]
64
+ [ NullableContext ( 2 ) ]
57
65
public class AttributeDeclarationOptions {
58
66
public AttributeDeclarationOptions ( ) { }
59
67
@@ -64,12 +72,13 @@ public AttributeDeclarationOptions() {}
64
72
public AttributeSectionFormat GenericParameterFormat { get ; set ; }
65
73
public AttributeSectionFormat MethodParameterFormat { get ; set ; }
66
74
public bool OmitAttributeSuffix { get ; set ; }
67
- public AttributeTypeFilter ? TypeFilter { get ; set ; }
75
+ public AttributeTypeFilter TypeFilter { get ; set ; }
68
76
public bool WithDeclaringTypeName { get ; set ; }
69
77
public bool WithNamedArguments { get ; set ; }
70
78
public bool WithNamespace { get ; set ; }
71
79
}
72
80
81
+ [ NullableContext ( byte . MinValue ) ]
73
82
public class MemberDeclarationOptions {
74
83
public MemberDeclarationOptions ( ) { }
75
84
@@ -81,13 +90,15 @@ public MemberDeclarationOptions() {}
81
90
public bool WithNamespace { get ; set ; }
82
91
}
83
92
93
+ [ NullableContext ( byte . MinValue ) ]
84
94
public class ParameterDeclarationOptions {
85
95
public ParameterDeclarationOptions ( ) { }
86
96
87
97
public bool WithDeclaringTypeName { get ; set ; }
88
98
public bool WithNamespace { get ; set ; }
89
99
}
90
100
101
+ [ NullableContext ( byte . MinValue ) ]
91
102
public class TypeDeclarationOptions {
92
103
public TypeDeclarationOptions ( ) { }
93
104
@@ -97,6 +108,7 @@ public TypeDeclarationOptions() {}
97
108
public bool WithNamespace { get ; set ; }
98
109
}
99
110
111
+ [ NullableContext ( byte . MinValue ) ]
100
112
public class ValueDeclarationOptions {
101
113
public ValueDeclarationOptions ( ) { }
102
114
@@ -109,7 +121,8 @@ public GeneratorOptions() {}
109
121
110
122
public GeneratorOptions . AttributeDeclarationOptions AttributeDeclaration { get ; init ; }
111
123
public bool IgnorePrivateOrAssembly { get ; set ; }
112
- public string ? Indent { get ; set ; }
124
+ [ Nullable ( 2 ) ]
125
+ public string Indent { get ; set ; }
113
126
public GeneratorOptions . MemberDeclarationOptions MemberDeclaration { get ; init ; }
114
127
public GeneratorOptions . ParameterDeclarationOptions ParameterDeclaration { get ; init ; }
115
128
public bool TranslateLanguagePrimitiveTypeDeclaration { get ; set ; }
@@ -120,3 +133,4 @@ public virtual GeneratorOptions Clone() {}
120
133
object ICloneable . Clone ( ) { }
121
134
}
122
135
}
136
+
0 commit comments