Skip to content

Commit b0ca35f

Browse files
committed
Clarify the confusing names of the HostDocument's properties
1 parent 1c2f6ce commit b0ca35f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerComponentViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public CodeExplorerComponentViewModel(CodeExplorerItemViewModel parent, Declarat
7676
if (app != null)
7777
{
7878
var document = app.GetDocument(qualifiedModuleName);
79-
parenthesizedName = document?.ModuleName ?? string.Empty;
79+
parenthesizedName = document?.DocumentName ?? string.Empty;
8080
state = document?.State ?? DocumentState.Inaccessible;
8181
}
8282
}

Rubberduck.VBEEditor/SafeComWrappers/VB/Abstract/HostDocument.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public enum DocumentState
3434
public interface IHostDocument
3535
{
3636
QualifiedModuleName QualifiedName { get; }
37-
string ModuleName { get; }
37+
string DocumentName { get; }
3838
string ClassName { get; }
3939
DocumentState State { get; }
4040
bool TryGetTarget(out SafeIDispatchWrapper iDispatch);
@@ -47,15 +47,15 @@ public class HostDocument : IHostDocument
4747
public HostDocument(QualifiedModuleName qualifedName, string name, string className, DocumentState state, Func<SafeIDispatchWrapper> getTargetFunc)
4848
{
4949
QualifiedName = qualifedName;
50-
ModuleName = name;
50+
DocumentName = name;
5151
ClassName = className;
5252
State = state;
5353

5454
_getTargetFunc = getTargetFunc;
5555
}
5656

5757
public QualifiedModuleName QualifiedName { get; }
58-
public string ModuleName { get; }
58+
public string DocumentName { get; }
5959
public string ClassName { get; }
6060
public DocumentState State { get; }
6161

0 commit comments

Comments
 (0)