Add diagnostic for invalid 'this' expressions
このコミットが含まれているのは:
1 親
b19ca68920
コミット
b49e3365a4
5ファイル変更
+43
検索条件に一致するファイルはありません
@@ -80,3 +80,4 @@ CMPSD2D0070 | ComputeSharp.D2D1.Shaders | Warning | [Documentation](https://gith
|
||||
CMPSD2D0071 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
CMPSD2D0072 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
CMPSD2D0073 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
CMPSD2D0074 | ComputeSharp.D2D1.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
@@ -1096,4 +1096,17 @@ partial class DiagnosticDescriptors
|
||||
isEnabledByDefault: true,
|
||||
description: "Only standalone constructors (with no base constructor declaration) can be used in a D2D1 shader.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for a <see langword="this"/> expression.
|
||||
/// </summary>
|
||||
public static readonly DiagnosticDescriptor ThisExpression = new(
|
||||
id: "CMPSD2D0074",
|
||||
title: "Invalid 'this' expression",
|
||||
messageFormat: "A pixel shader cannot use a 'this' expression outside of member accesses (such as 'this.field')",
|
||||
category: "ComputeSharp.D2D1.Shaders",
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "A pixel shader cannot use a 'this' expression outside of member accesses (such as 'this.field').",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする