mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
46b3096570
- `[Obsolete]` tag generated in the middle of documentation comments - Potential `null` values in generators - Obsolete call to `GetEditorInterface()` - We don't want `Godot.Collections.Array` to end with `Collection` - A few culture specifications and use of `AsSpan` instead of `SubString` in `StringExtensions` - Disable CA1716 in GodotSharp
16 lines
335 B
C#
16 lines
335 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Godot.SourceGenerators
|
|
{
|
|
public static class Helper
|
|
{
|
|
[Conditional("DEBUG")]
|
|
public static void ThrowIfNull([NotNull] object? value)
|
|
{
|
|
_ = value ?? throw new ArgumentNullException();
|
|
}
|
|
}
|
|
}
|