Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/tools/Common/Compiler/DisplayNameHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public override Unit AppendName(StringBuilder sb, ArrayType type, FormatOptions
AppendName(sb, type.ElementType, options);
sb.Append('[');
if (type.Rank > 1)
sb.Append(new string(',', type.Rank - 1));
sb.Append(',', type.Rank - 1);
sb.Append(']');
return default;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public override void AppendName(StringBuilder sb, ArrayType type)
AppendName(sb, type.ElementType);
sb.Append('[');
if (type.Rank > 1)
sb.Append(new string(',', type.Rank - 1));
sb.Append(',', type.Rank - 1);
sb.Append(']');
}
public override void AppendName(StringBuilder sb, ByRefType type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private static string CreateTestStringProperty(int stringSize)
private static void AppendTestString(int i, int stringSize, StringBuilder builder)
{
builder.Append(@"""");
builder.Append(new string(i.ToString()[0], stringSize));
builder.Append(i.ToString()[0], stringSize);
builder.Append(@"""");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3169,7 +3169,7 @@ public override string ToString()
curNode = curNode.Child(curChild);
curChild = 0;

sb.Append(new string(' ', stack.Count * 2)).Append(curNode.Describe()).AppendLine();
sb.Append(' ', stack.Count * 2).Append(curNode.Describe()).AppendLine();
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/tools/illink/src/linker/Linker/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static void ParseResponseFile(TextReader reader, Queue<string> result)
numBackslash /= 2;
}
if (numBackslash > 0)
argBuilder.Append(new string('\\', numBackslash));
argBuilder.Append('\\', numBackslash);
if (cur < 0 || (!inquote && char.IsWhiteSpace((char)cur)))
break;
if (copyChar)
Expand Down
Loading