diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-09 23:25:10 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-09 23:25:10 -0400 |
commit | c8db771e11a0e5224aa3b0766134afc8e733896e (patch) | |
tree | c92441a3476cfed5df6d855cebd0ced0cd7bc5ad /src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs | |
parent | 416e1c3c1b884fb9b932968e72895babb6151d2f (diff) | |
download | SMAPI-c8db771e11a0e5224aa3b0766134afc8e733896e.tar.gz SMAPI-c8db771e11a0e5224aa3b0766134afc8e733896e.tar.bz2 SMAPI-c8db771e11a0e5224aa3b0766134afc8e733896e.zip |
tweak message output and unit tests (#471)
Diffstat (limited to 'src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs')
-rw-r--r-- | src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs b/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs index d64b1486..a9987733 100644 --- a/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs +++ b/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs @@ -246,9 +246,7 @@ namespace StardewModdingAPI.ModBuildConfig.Analyzer TypeInfo operandType = context.SemanticModel.GetTypeInfo(operand); if (this.IsNetType(operandType.Type) && !this.IsNetType(operandType.ConvertedType)) { - string fromTypeName = operandType.Type.Name; - string toTypeName = operandType.ConvertedType.Name; - context.ReportDiagnostic(Diagnostic.Create(this.Rules["SMAPI001"], context.Node.GetLocation(), operand, fromTypeName, toTypeName)); + context.ReportDiagnostic(Diagnostic.Create(this.Rules["SMAPI001"], context.Node.GetLocation(), operand, operandType.Type.Name, operandType.ConvertedType)); return true; } |