mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Un-whether-or-not the codebase
This commit is contained in:
parent
f4102db488
commit
731d7e0f6e
59 changed files with 249 additions and 249 deletions
|
|
@ -14,21 +14,21 @@ internal static class NullabilityUtil
|
|||
/// Check if the provided property is nullable.
|
||||
/// </summary>
|
||||
/// <param name="property">The property to check.</param>
|
||||
/// <returns>Whether or not the property is nullable.</returns>
|
||||
/// <returns>Whether the property is nullable.</returns>
|
||||
internal static bool IsNullable(PropertyInfo property) => IsNullableHelper(property.PropertyType, property.DeclaringType, property.CustomAttributes);
|
||||
|
||||
/// <summary>
|
||||
/// Check if the provided field is nullable.
|
||||
/// </summary>
|
||||
/// <param name="field">The field to check.</param>
|
||||
/// <returns>Whether or not the field is nullable.</returns>
|
||||
/// <returns>Whether the field is nullable.</returns>
|
||||
internal static bool IsNullable(FieldInfo field) => IsNullableHelper(field.FieldType, field.DeclaringType, field.CustomAttributes);
|
||||
|
||||
/// <summary>
|
||||
/// Check if the provided parameter is nullable.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to check.</param>
|
||||
/// <returns>Whether or not the parameter is nullable.</returns>
|
||||
/// <returns>Whether the parameter is nullable.</returns>
|
||||
internal static bool IsNullable(ParameterInfo parameter) => IsNullableHelper(parameter.ParameterType, parameter.Member, parameter.CustomAttributes);
|
||||
|
||||
private static bool IsNullableHelper(Type memberType, MemberInfo? declaringType, IEnumerable<CustomAttributeData> customAttributes)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ internal interface IFieldOrPropertyInfo
|
|||
Type ActualType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not the field or property is nullable.
|
||||
/// Gets a value indicating whether the field or property is nullable.
|
||||
/// </summary>
|
||||
bool IsNullable { get; }
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public sealed class TimingHandle : TimingEvent, IDisposable, IComparable<TimingH
|
|||
public TimingHandle? Parent { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not this timing was started on the main thread.
|
||||
/// Gets a value indicating whether this timing was started on the main thread.
|
||||
/// </summary>
|
||||
public bool IsMainThread { get; private set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ public static class Util
|
|||
/// </summary>
|
||||
/// <param name="obj">The structure to show.</param>
|
||||
/// <param name="addr">The address to the structure.</param>
|
||||
/// <param name="autoExpand">Whether or not this structure should start out expanded.</param>
|
||||
/// <param name="autoExpand">Whether this structure should start out expanded.</param>
|
||||
/// <param name="path">The already followed path.</param>
|
||||
public static void ShowStruct(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null)
|
||||
=> ShowStructInternal(obj, addr, autoExpand, path);
|
||||
|
|
@ -318,7 +318,7 @@ public static class Util
|
|||
/// </summary>
|
||||
/// <typeparam name="T">The type of the structure.</typeparam>
|
||||
/// <param name="obj">The pointer to the structure.</param>
|
||||
/// <param name="autoExpand">Whether or not this structure should start out expanded.</param>
|
||||
/// <param name="autoExpand">Whether this structure should start out expanded.</param>
|
||||
public static unsafe void ShowStruct<T>(T* obj, bool autoExpand = false) where T : unmanaged
|
||||
{
|
||||
ShowStruct(*obj, (ulong)&obj, autoExpand);
|
||||
|
|
@ -328,7 +328,7 @@ public static class Util
|
|||
/// Show a GameObject's internal data in an ImGui-context.
|
||||
/// </summary>
|
||||
/// <param name="go">The GameObject to show.</param>
|
||||
/// <param name="autoExpand">Whether or not the struct should start as expanded.</param>
|
||||
/// <param name="autoExpand">Whether the struct should start as expanded.</param>
|
||||
public static unsafe void ShowGameObjectStruct(IGameObject go, bool autoExpand = true)
|
||||
{
|
||||
switch (go)
|
||||
|
|
@ -1031,7 +1031,7 @@ public static class Util
|
|||
/// </summary>
|
||||
/// <param name="obj">The structure to show.</param>
|
||||
/// <param name="addr">The address to the structure.</param>
|
||||
/// <param name="autoExpand">Whether or not this structure should start out expanded.</param>
|
||||
/// <param name="autoExpand">Whether this structure should start out expanded.</param>
|
||||
/// <param name="path">The already followed path.</param>
|
||||
/// <param name="hideAddress">Do not print addresses. Use when displaying a copied value.</param>
|
||||
private static void ShowStructInternal(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null, bool hideAddress = false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue