Apply some code tweaks to make analysis happy
このコミットが含まれているのは:
1 親
45ef71b4e0
コミット
2a43123b81
9ファイル変更
+14
-14
検索条件に一致するファイルはありません
@@ -50,13 +50,13 @@ internal static class IndentedTextWriterExtensions
|
||||
public static void WriteSortedUsingDirectives(this IndentedTextWriter writer, IEnumerable<string> usingDirectives)
|
||||
{
|
||||
// Add the System directives first, in the correct order
|
||||
foreach (string usingDirective in usingDirectives.Where(static name => name.StartsWith("global::System")).OrderBy(static name => name))
|
||||
foreach (string usingDirective in usingDirectives.Where(static name => name.StartsWith("global::System", StringComparison.InvariantCulture)).OrderBy(static name => name))
|
||||
{
|
||||
writer.WriteLine($"using {usingDirective};");
|
||||
}
|
||||
|
||||
// Add the other directives, also sorted in the correct order
|
||||
foreach (string usingDirective in usingDirectives.Where(static name => !name.StartsWith("global::System")).OrderBy(static name => name))
|
||||
foreach (string usingDirective in usingDirectives.Where(static name => !name.StartsWith("global::System", StringComparison.InvariantCulture)).OrderBy(static name => name))
|
||||
{
|
||||
writer.WriteLine($"using {usingDirective};");
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace ComputeSharp.SourceGeneration.Helpers;
|
||||
/// </summary>
|
||||
/// <typeparam name="TKey">The type of keys to use for the cache.</typeparam>
|
||||
/// <typeparam name="TValue">The type of values to store in the cache.</typeparam>
|
||||
public sealed class DynamicCache<TKey, TValue>
|
||||
internal sealed class DynamicCache<TKey, TValue>
|
||||
where TKey : class
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする