Skip to content
Permalink
Browse files

Fix typos and nits

  • Loading branch information...
Vogel612 committed Nov 25, 2017
1 parent 5269111 commit 022c3774a3a2a74fecd7e10ec98d553391d4a6a6
@@ -12,11 +12,11 @@ namespace Rubberduck.Navigation.CodeMetrics
{
public class CodeMetricsAnalyst : ICodeMetricsAnalyst
{
private readonly IIndenterSettings indenterSettings;
private readonly IIndenterSettings _indenterSettings;

public CodeMetricsAnalyst(IIndenterSettings indenterSettings)
{
this.indenterSettings = indenterSettings;
_indenterSettings = indenterSettings;
}

public IEnumerable<ModuleMetricsResult> ModuleMetrics(RubberduckParserState state)
@@ -28,7 +28,6 @@ public IEnumerable<ModuleMetricsResult> ModuleMetrics(RubberduckParserState stat
}

var trees = state.ParseTrees;
var results = new List<CodeMetricsResult>();

foreach (var moduleTree in trees)
{
@@ -44,7 +43,7 @@ public ModuleMetricsResult GetModuleResult(RubberduckParserState state, Qualifie
private ModuleMetricsResult GetModuleResult(QualifiedModuleName qmn, IParseTree moduleTree, DeclarationFinder declarationFinder)
{
// Consider rewrite as visitor? That should make subtrees easier and allow us to expand metrics
var cmListener = new CodeMetricsListener(declarationFinder, indenterSettings);
var cmListener = new CodeMetricsListener(declarationFinder, _indenterSettings);
ParseTreeWalker.Default.Walk(cmListener, moduleTree);
return cmListener.GetMetricsResult(qmn);
}
@@ -28,7 +28,7 @@
<converters:BoolToHiddenVisibilityConverter x:Key="BoolToHiddenVisibility" />
<converters:StringHasValueToVisibilityConverter x:Key="StringHasValueToVisibility" />
<converters:StringHasNoValueToVisibilityConverter x:Key="StringHasNoValueToVisibility" />
<converters:SubractionConverter x:Key="SubtractionConverter" />
<converters:SubtractionConverter x:Key="SubtractionConverter" />

<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFD9F4FF" Offset="0"/>
@@ -4,7 +4,7 @@

namespace Rubberduck.UI.Converters
{
public class SubractionConverter : IValueConverter
public class SubtractionConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{

0 comments on commit 022c377

Please sign in to comment.
You can’t perform that action at this time.