Skip to content

Commit 56d98a8

Browse files
committed
bump Smdn.Fundamental.Reflection up to 3.7.0
1 parent 7888eb0 commit 56d98a8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SPDX-License-Identifier: MIT
4444

4545
<ItemGroup>
4646
<PackageReference Include="System.ValueTuple" Version="4.5.0" Condition="$(TargetFramework.StartsWith('net45')) or $(TargetFramework.StartsWith('net46')) or $(TargetFramework.StartsWith('netstandard1'))" />
47-
<PackageReference Include="Smdn.Fundamental.Reflection" Version="[3.6.0,4.0.0)" />
47+
<PackageReference Include="Smdn.Fundamental.Reflection" Version="[3.7.0,4.0.0)" />
4848
</ItemGroup>
4949

5050
<ItemGroup>

src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating/Generator.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
using System.Runtime.InteropServices;
1010
using System.Text;
1111

12+
using Smdn.Reflection.Attributes;
13+
1214
namespace Smdn.Reflection.ReverseGenerating;
1315

1416
public static partial class Generator {
@@ -1144,8 +1146,8 @@ static bool HasAttributeExceptCompilerGeneratedAttribute(MethodInfo? accessor, A
11441146
}
11451147

11461148
var compilerGeneratedAccessors =
1147-
(ev.AddMethod?.GetCustomAttributesData()?.Any(IsCompilerGeneratedAttribute) ?? false) &&
1148-
(ev.RemoveMethod?.GetCustomAttributesData()?.Any(IsCompilerGeneratedAttribute) ?? false);
1149+
(ev.AddMethod?.HasCompilerGeneratedAttribute() ?? false) &&
1150+
(ev.RemoveMethod?.HasCompilerGeneratedAttribute() ?? false);
11491151

11501152
var emitAccessor = !ev.GetDeclaringTypeOrThrow().IsInterface && !compilerGeneratedAccessors;
11511153

0 commit comments

Comments
 (0)