|
| 1 | +// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.5.0) |
| 2 | +// Name: Smdn.Reflection.ReverseGenerating |
| 3 | +// AssemblyVersion: 1.5.0.0 |
| 4 | +// InformationalVersion: 1.5.0+4160e5e53896561df55366887f66b3a4a25e5b6b |
| 5 | +// TargetFramework: .NETCoreApp,Version=v10.0 |
| 6 | +// Configuration: Release |
| 7 | +// Metadata: RepositoryUrl=https://github.com/smdn/Smdn.Reflection.ReverseGenerating |
| 8 | +// Metadata: RepositoryBranch=main |
| 9 | +// Metadata: RepositoryCommit=4160e5e53896561df55366887f66b3a4a25e5b6b |
| 10 | +// Referenced assemblies: |
| 11 | +// Smdn.Fundamental.Reflection, Version=3.10.0.0, Culture=neutral |
| 12 | +// System.Collections, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 13 | +// System.Collections.Immutable, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 14 | +// System.Linq, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 15 | +// System.Memory, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 |
| 16 | +// System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 17 | +// System.Threading, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a |
| 18 | +#nullable enable annotations |
| 19 | + |
| 20 | +using System; |
| 21 | +using System.Collections.Generic; |
| 22 | +using System.Diagnostics.CodeAnalysis; |
| 23 | +using System.Reflection; |
| 24 | +using Smdn.Reflection; |
| 25 | +using Smdn.Reflection.ReverseGenerating; |
| 26 | + |
| 27 | +namespace Smdn.Reflection.ReverseGenerating { |
| 28 | + public delegate bool AttributeTypeFilter(Type type, ICustomAttributeProvider attributeProvider); |
| 29 | + |
| 30 | + public enum AttributeSectionFormat : int { |
| 31 | + Discrete = 1, |
| 32 | + List = 0, |
| 33 | + } |
| 34 | + |
| 35 | + public enum MethodBodyOption : int { |
| 36 | + EmptyImplementation = 1, |
| 37 | + None = 0, |
| 38 | + ThrowNotImplementedException = 2, |
| 39 | + ThrowNull = 3, |
| 40 | + } |
| 41 | + |
| 42 | + public static class CSharpFormatter { |
| 43 | + public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {} |
| 44 | + public static string FormatAccessibility(Accessibility accessibility) {} |
| 45 | + public static string FormatParameter(ParameterInfo p, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 46 | + public static string FormatParameter(ParameterInfo p, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 47 | + public static string FormatParameter(ParameterInfo p, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 48 | + public static string FormatParameterList(MethodBase m, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 49 | + public static string FormatParameterList(MethodBase m, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 50 | + public static string FormatParameterList(MethodBase m, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 51 | + public static string FormatParameterList(ParameterInfo[] parameterList, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 52 | + public static string FormatParameterList(ParameterInfo[] parameterList, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 53 | + public static string FormatParameterList(ParameterInfo[] parameterList, bool typeWithNamespace = true, bool useDefaultLiteral = false) {} |
| 54 | + public static string FormatSpecialNameMethod(MethodBase methodOrConstructor, out MethodSpecialName nameType) {} |
| 55 | + public static string FormatTypeName(this EventInfo ev, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 56 | + public static string FormatTypeName(this EventInfo ev, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 57 | + public static string FormatTypeName(this EventInfo ev, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 58 | + public static string FormatTypeName(this FieldInfo f, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 59 | + public static string FormatTypeName(this FieldInfo f, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 60 | + public static string FormatTypeName(this FieldInfo f, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 61 | + public static string FormatTypeName(this ParameterInfo p, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 62 | + public static string FormatTypeName(this ParameterInfo p, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 63 | + public static string FormatTypeName(this ParameterInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 64 | + public static string FormatTypeName(this PropertyInfo p, NullabilityInfoContext? nullabilityInfoContext, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 65 | + public static string FormatTypeName(this PropertyInfo p, NullabilityInfoContext? nullabilityInfoContext, object? nullabilityInfoContextLockObject, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 66 | + public static string FormatTypeName(this PropertyInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 67 | + public static string FormatTypeName(this Type t, ICustomAttributeProvider? attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 68 | + public static string FormatUnboundTypeName(this Type t, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {} |
| 69 | + public static string FormatValueDeclaration(object? val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {} |
| 70 | + public static bool IsLanguagePrimitiveType(Type t, [MaybeNullWhen(false)] out string? primitiveTypeName) {} |
| 71 | + public static IEnumerable<string> ToNamespaceList(Type t) {} |
| 72 | + public static IEnumerable<string> ToNamespaceList(Type t, bool translateLanguagePrimitiveTypes) {} |
| 73 | + } |
| 74 | + |
| 75 | + public static class Generator { |
| 76 | + public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 77 | + public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 78 | + public static string GenerateExtensionDeclaration(Type extensionMarkerType, ParameterInfo extensionParameter, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 79 | + [Obsolete("Use GenerateGenericParameterConstraintDeclaration instead.")] |
| 80 | + public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 81 | + public static string GenerateGenericParameterConstraintDeclaration(Type genericParameter, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 82 | + public static string? GenerateMemberDeclaration(MemberInfo member, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 83 | + public static string GenerateParameterDeclaration(ParameterInfo parameter, GeneratorOptions options) {} |
| 84 | + public static string GenerateTypeDeclaration(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 85 | + public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {} |
| 86 | + } |
| 87 | + |
| 88 | + public class GeneratorOptions : ICloneable { |
| 89 | + public class AttributeDeclarationOptions { |
| 90 | + public AttributeDeclarationOptions() {} |
| 91 | + |
| 92 | + public AttributeSectionFormat AccessorFormat { get; set; } |
| 93 | + public AttributeSectionFormat AccessorParameterFormat { get; set; } |
| 94 | + public AttributeSectionFormat BackingFieldFormat { get; set; } |
| 95 | + public AttributeSectionFormat DelegateParameterFormat { get; set; } |
| 96 | + public AttributeSectionFormat GenericParameterFormat { get; set; } |
| 97 | + public AttributeSectionFormat MethodParameterFormat { get; set; } |
| 98 | + public bool OmitAttributeSuffix { get; set; } |
| 99 | + public bool OmitInaccessibleMembersInNullStateAttribute { get; set; } |
| 100 | + public AttributeTypeFilter? TypeFilter { get; set; } |
| 101 | + public bool WithDeclaringTypeName { get; set; } |
| 102 | + public bool WithNamedArguments { get; set; } |
| 103 | + public bool WithNamespace { get; set; } |
| 104 | + } |
| 105 | + |
| 106 | + public class MemberDeclarationOptions { |
| 107 | + public MemberDeclarationOptions() {} |
| 108 | + |
| 109 | + public MethodBodyOption AccessorBody { get; set; } |
| 110 | + public MethodBodyOption MethodBody { get; set; } |
| 111 | + public NullabilityInfoContext? NullabilityInfoContext { get; set; } |
| 112 | + public object? NullabilityInfoContextLockObject { get; set; } |
| 113 | + public bool OmitEndOfStatement { get; set; } |
| 114 | + public bool WithAccessibility { get; set; } |
| 115 | + public bool WithDeclaringTypeName { get; set; } |
| 116 | + public bool WithEnumTypeName { get; set; } |
| 117 | + public bool WithNamespace { get; set; } |
| 118 | + } |
| 119 | + |
| 120 | + public class ParameterDeclarationOptions { |
| 121 | + public ParameterDeclarationOptions() {} |
| 122 | + |
| 123 | + public bool WithDeclaringTypeName { get; set; } |
| 124 | + public bool WithNamespace { get; set; } |
| 125 | + } |
| 126 | + |
| 127 | + public class TypeDeclarationOptions { |
| 128 | + public TypeDeclarationOptions() {} |
| 129 | + |
| 130 | + public bool DetectUnsafe { get; set; } |
| 131 | + public bool EnableRecordTypes { get; set; } |
| 132 | + public NullabilityInfoContext? NullabilityInfoContext { get; set; } |
| 133 | + public object? NullabilityInfoContextLockObject { get; set; } |
| 134 | + public bool OmitEndOfStatement { get; set; } |
| 135 | + public bool OmitEnumUnderlyingTypeIfPossible { get; set; } |
| 136 | + public bool OmitRecordImplicitInterface { get; set; } |
| 137 | + public bool WithAccessibility { get; set; } |
| 138 | + public bool WithDeclaringTypeName { get; set; } |
| 139 | + public bool WithNamespace { get; set; } |
| 140 | + } |
| 141 | + |
| 142 | + public class ValueDeclarationOptions { |
| 143 | + public ValueDeclarationOptions() {} |
| 144 | + |
| 145 | + public bool UseDefaultLiteral { get; set; } |
| 146 | + public bool WithDeclaringTypeName { get; set; } |
| 147 | + public bool WithNamespace { get; set; } |
| 148 | + } |
| 149 | + |
| 150 | + public GeneratorOptions() {} |
| 151 | + |
| 152 | + public GeneratorOptions.AttributeDeclarationOptions AttributeDeclaration { get; init; } |
| 153 | + public bool IgnorePrivateOrAssembly { get; set; } |
| 154 | + public string? Indent { get; set; } |
| 155 | + public GeneratorOptions.MemberDeclarationOptions MemberDeclaration { get; init; } |
| 156 | + public GeneratorOptions.ParameterDeclarationOptions ParameterDeclaration { get; init; } |
| 157 | + public bool TranslateLanguagePrimitiveTypeDeclaration { get; set; } |
| 158 | + public GeneratorOptions.TypeDeclarationOptions TypeDeclaration { get; init; } |
| 159 | + public GeneratorOptions.ValueDeclarationOptions ValueDeclaration { get; init; } |
| 160 | + |
| 161 | + public virtual GeneratorOptions Clone() {} |
| 162 | + object ICloneable.Clone() {} |
| 163 | + } |
| 164 | +} |
| 165 | +// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.7.1.0. |
| 166 | +// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.5.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating) |
0 commit comments