Skip to content

Commit f85a4f5

Browse files
committed
Use cached attributeInstances in TemplateParameterNameAttributeProvider. Relates #57
1 parent 9a89325 commit f85a4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReSharper.Structured.Logging/Caching/TemplateParameterNameAttributeProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public TemplateParameterNameAttributeProvider(
1919

2020
protected override string CalculateInfo(ITypeMember attributesOwner, IEnumerable<IAttributeInstance> attributeInstances)
2121
{
22-
var templateFormatAttribute = attributesOwner.GetAttributeInstances(AttributesSource.All)
22+
var templateFormatAttribute = attributeInstances
2323
.FirstOrDefault(a => string.Equals(a.GetAttributeShortName(), "MessageTemplateFormatMethodAttribute", StringComparison.Ordinal));
2424

2525
if (templateFormatAttribute != null)

0 commit comments

Comments
 (0)