Add explicit discards to all value returning expressions

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 38adbe6087
コミット 9343ac7f7b
47ファイル変更
+144 -144

検索条件に一致するファイルはありません

+7 -7
ファイルの表示
@@ -570,31 +570,31 @@ partial class IShaderGenerator
void AppendLF()
{
hlslBuilder.Append('\n');
_ = hlslBuilder.Append('\n');
}
void AppendLine(string text)
{
hlslBuilder.Append(text);
_ = hlslBuilder.Append(text);
}
void AppendLineAndLF(string text)
{
hlslBuilder.Append(text);
hlslBuilder.Append('\n');
_ = hlslBuilder.Append(text);
_ = hlslBuilder.Append('\n');
}
void AppendCharacterAndLF(char c)
{
hlslBuilder.Append(c);
hlslBuilder.Append('\n');
_ = hlslBuilder.Append(c);
_ = hlslBuilder.Append('\n');
}
string FlushText()
{
string text = hlslBuilder.ToString();
hlslBuilder.Clear();
_ = hlslBuilder.Clear();
return text;
}