Minor tweaks to [CanvasEffectProperty] generator
このコミットが含まれているのは:
1 親
0fbe1a62c9
コミット
9cfa571922
2ファイル変更
+16
-5
検索条件に一致するファイルはありません
@@ -46,6 +46,12 @@ partial class CanvasEffectPropertyGenerator
|
||||
return false;
|
||||
}
|
||||
|
||||
// Static properties are not supported
|
||||
if (property.Modifiers.Any(SyntaxKind.StaticKeyword))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// The accessors must be a get and a set (with any accessibility)
|
||||
if (accessors[0].Kind() is not (SyntaxKind.GetAccessorDeclaration or SyntaxKind.SetAccessorDeclaration) ||
|
||||
accessors[1].Kind() is not (SyntaxKind.GetAccessorDeclaration or SyntaxKind.SetAccessorDeclaration))
|
||||
@@ -128,6 +134,11 @@ partial class CanvasEffectPropertyGenerator
|
||||
return CanvasEffectInvalidationType.Update;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes all implementations of partial effect property declarations.
|
||||
/// </summary>
|
||||
/// <param name="properties">The input set of declared effect properties.</param>
|
||||
/// <param name="writer">The <see cref="IndentedTextWriter"/> instance to write into.</param>
|
||||
public static void WritePropertyDeclarations(EquatableArray<CanvasEffectPropertyInfo> properties, IndentedTextWriter writer)
|
||||
{
|
||||
// Helper to get the nullable type name for the initial property value
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする