Simplify creating source generator builder types
このコミットが含まれているのは:
1 親
26934553f6
コミット
7506cab338
27ファイル変更
+58
-88
検索条件に一致するファイルはありません
@@ -78,7 +78,7 @@ public sealed partial class ShaderMethodSourceGenerator : IIncrementalGenerator
|
||||
IMethodSymbol methodSymbol,
|
||||
out ImmutableArray<DiagnosticInfo> diagnostics)
|
||||
{
|
||||
using ImmutableArrayBuilder<DiagnosticInfo> builder = ImmutableArrayBuilder<DiagnosticInfo>.Rent();
|
||||
using ImmutableArrayBuilder<DiagnosticInfo> builder = new();
|
||||
|
||||
// We need to sets to track all discovered custom types and static methods
|
||||
HashSet<INamedTypeSymbol> discoveredTypes = new(SymbolEqualityComparer.Default);
|
||||
@@ -136,7 +136,7 @@ public sealed partial class ShaderMethodSourceGenerator : IIncrementalGenerator
|
||||
.NormalizeWhitespace(eol: "\n")
|
||||
.ToFullString();
|
||||
|
||||
using ImmutableArrayBuilder<(string, string)> methods = ImmutableArrayBuilder<(string, string)>.Rent();
|
||||
using ImmutableArrayBuilder<(string, string)> methods = new();
|
||||
|
||||
// Emit the extracted local functions
|
||||
foreach (KeyValuePair<string, LocalFunctionStatementSyntax> localFunction in shaderSourceRewriter.LocalFunctions)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする