Always generate unsafe accessors for all fields
このコミットが含まれているのは:
1 親
35a73051d7
コミット
531262e6f2
4ファイル変更
+14
-25
検索条件に一致するファイルはありません
@@ -39,21 +39,18 @@ internal abstract record FieldInfo(EquatableArray<FieldPathPart> FieldPath, stri
|
||||
/// A model for a part of a field path, ie. the name of the immediate parent field, and whether it's accessible.
|
||||
/// </summary>
|
||||
/// <param name="Name">The name of the immediate parent field to access (or self).</param>
|
||||
/// <param name="IsAccessible">Whether the current path part is accessible from the compilation.</param>
|
||||
internal abstract record FieldPathPart(string Name, bool IsAccessible)
|
||||
internal abstract record FieldPathPart(string Name)
|
||||
{
|
||||
/// <summary>
|
||||
/// A model for a leaf part of a field path.
|
||||
/// </summary>
|
||||
/// <param name="Name"><inheritdoc cref="FieldPathPart(string, bool)" path="/param[@name='Name']/node()"/></param>
|
||||
/// <param name="IsAccessible"><inheritdoc cref="FieldPathPart(string, bool)" path="/param[@name='IsAccessible']/node()"/></param>
|
||||
public sealed record Leaf(string Name, bool IsAccessible) : FieldPathPart(Name, IsAccessible);
|
||||
public sealed record Leaf(string Name) : FieldPathPart(Name);
|
||||
|
||||
/// <summary>
|
||||
/// A model for a nested field part path (ie. going through a nested struct type).
|
||||
/// </summary>
|
||||
/// <param name="Name"><inheritdoc cref="FieldPathPart(string, bool)" path="/param[@name='Name']/node()"/></param>
|
||||
/// <param name="IsAccessible"><inheritdoc cref="FieldPathPart(string, bool)" path="/param[@name='IsAccessible']/node()"/></param>
|
||||
/// <param name="TypeName">The fully qualified type name of the containing type.</param>
|
||||
public sealed record Nested(string Name, bool IsAccessible, string TypeName) : FieldPathPart(Name, IsAccessible);
|
||||
public sealed record Nested(string Name, string TypeName) : FieldPathPart(Name);
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする