Skip to content

Commit 75e07ba

Browse files
committed
Fixes after code review
1 parent 3f99605 commit 75e07ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

RetailCoder.VBE/UI/CodeExplorer/CodeExplorerControl.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<BitmapImage x:Key="UndoImage" UriSource="../../Resources/arrow-circle-left.png" />
2626
<BitmapImage x:Key="PrintImage" UriSource="../../Resources/printer.png" />
2727
<BitmapImage x:Key="AddTestModuleImage" UriSource="../../Resources/Custom/PNG/ListOfTests.png" />
28-
<BitmapImage x:Key="AddTestModuleWithStubsImage" UriSource="../../Resources/Custom/PNG/ListOfTests.png" />
2928
<BitmapImage x:Key="AddStdModuleImage" UriSource="../../Resources/Custom/PNG/AddModule.png" />
3029
<BitmapImage x:Key="AddClassModuleImage" UriSource="../../Resources/Custom/PNG/AddClass.png" />
3130
<BitmapImage x:Key="AddUserFormImage" UriSource="../../Resources/Custom/PNG/AddForm.png" />
@@ -166,7 +165,7 @@
166165
Command="{Binding AddTestModuleWithStubsCommand}"
167166
CommandParameter="{Binding SelectedItem}">
168167
<MenuItem.Icon>
169-
<Image Height="16" Source="{StaticResource AddTestModuleWithStubsImage}" />
168+
<Image Height="16" Source="{StaticResource AddTestModuleImage}" />
170169
</MenuItem.Icon>
171170
</MenuItem>
172171
<Separator />

RetailCoder.VBE/UI/Command/AddTestModuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private string GetNextTestModuleName(IVBProject project)
225225

226226
private IEnumerable<Declaration> GetDeclarationsToStub(Declaration parentDeclaration)
227227
{
228-
return _state.AllUserDeclarations
228+
return _state.DeclarationFinder.Members(parentDeclaration)
229229
.Where(d => Equals(d.ParentDeclaration, parentDeclaration) && d.Accessibility == Accessibility.Public &&
230230
(d.DeclarationType == DeclarationType.Procedure || d.DeclarationType == DeclarationType.Function || d.DeclarationType.HasFlag(DeclarationType.Property)))
231231
.OrderBy(d => d.Context.Start.TokenIndex);

0 commit comments

Comments
 (0)