summaryrefslogtreecommitdiff
path: root/src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-14 19:51:50 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-14 19:51:50 -0400
commit6d8cf614a24ab69baffa89c351b9a22776741442 (patch)
tree6e07d08270b478d4f7596d5cea9a525621fdab7b /src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs
parentc2cb76b79919261c4d7eab107c5cb77ec6c6a81c (diff)
downloadSMAPI-6d8cf614a24ab69baffa89c351b9a22776741442.tar.gz
SMAPI-6d8cf614a24ab69baffa89c351b9a22776741442.tar.bz2
SMAPI-6d8cf614a24ab69baffa89c351b9a22776741442.zip
don't warn for NetList conversion to implemented interface (#471)
Diffstat (limited to 'src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs')
-rw-r--r--src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs b/src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs
index dc21e505..943d0350 100644
--- a/src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs
+++ b/src/SMAPI.ModBuildConfig.Analyzer/ObsoleteFieldAnalyzer.cs
@@ -79,7 +79,7 @@ namespace StardewModdingAPI.ModBuildConfig.Analyzer
return;
// suggest replacement
- for (ITypeSymbol type = declaringType; type != null; type = type.BaseType)
+ foreach (ITypeSymbol type in AnalyzerUtilities.GetConcreteTypes(declaringType))
{
if (this.ReplacedFields.TryGetValue($"{type}::{memberName}", out string replacement))
{