Skip to content

Commit b771e1f

Browse files
committed
Update XMLDoc content
1 parent 29d4680 commit b771e1f

15 files changed

+67
-28
lines changed

Rubberduck.Refactorings/CreateUDTMember/CreateUDTMemberRefactoringAction.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
using System.Linq;
99
namespace Rubberduck.Refactorings.CreateUDTMember
1010
{
11+
/// <summary>
12+
/// CreateUDTMemberRefactoringAction adds a UserDefinedTypeMember declaration (based on a
13+
/// prototype declaation) to a UserDefinedType declaration. The indentation of the first
14+
/// existing member is used by the inserted members. The caller is responsible for identifier validation and name collision anaysis.
15+
/// </summary>
1116
public class CreateUDTMemberRefactoringAction : CodeOnlyRefactoringActionBase<CreateUDTMemberModel>
1217
{
1318
private readonly IDeclarationFinderProvider _declarationFinderProvider;

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldCollectionsProvider.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@ public interface IEncapsulateFieldCollectionsProvider
1414
}
1515

1616
/// <summary>
17-
/// EncapsulateFieldCollectionsProvider generates collections IEncapsulateFieldCandidate
17+
/// EncapsulateFieldCollectionsProvider generates collections of IEncapsulateFieldCandidate
1818
/// instances, IEncapsulateFieldAsUDTMemberCandidate instances, and IObjectStateUDT instances.
19-
/// It provides these collections to the various objects of the EncapsulateFieldRefactoring
20-
/// so that they all operate in the same object sets.
19+
/// It provides these collection instances to the various objects of the EncapsulateFieldRefactoring.
2120
/// </summary>
22-
/// <remarks>
23-
/// The EncapsulateFieldCollectionsProvider is the source of these collections for the various objects of
24-
/// the EncapsulateFieldRefactoring so that they all operate in the same set of object instances.
25-
/// </remarks>
2621
public class EncapsulateFieldCollectionsProvider : IEncapsulateFieldCollectionsProvider
2722
{
2823
private readonly IDeclarationFinderProvider _declarationFinderProvider;

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldCollectionsProviderFactory.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
using Rubberduck.Parsing.VBA;
22
using Rubberduck.Refactorings.EncapsulateField;
33
using Rubberduck.VBEditor;
4-
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
94

105
namespace Rubberduck.Refactorings
116
{
@@ -39,5 +34,4 @@ public IEncapsulateFieldCollectionsProvider Create(QualifiedModuleName qualified
3934
qualifiedModuleName);
4035
}
4136
}
42-
4337
}

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldInsertNewCode/EncapsulateFieldCodeBuilder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ public interface IEncapsulateFieldCodeBuilder
1414
string BuildFieldDeclaration(Declaration target, string identifier);
1515
}
1616

17+
/// <summary>
18+
/// EncapsulateFieldCodeBuilder wraps an ICodeBuilder instance to extend it for the
19+
/// specific needs of an EncapsulateField refactoring action.
20+
/// </summary>
1721
public class EncapsulateFieldCodeBuilder : IEncapsulateFieldCodeBuilder
1822
{
1923
private const string FourSpaces = " ";

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldInsertNewCode/EncapsulateFieldInsertNewCodeRefactoringAction.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Rubberduck.Refactorings.EncapsulateFieldInsertNewCode
1313
{
14+
/// <summary>
15+
/// EncapsulateFieldInsertNewCodeRefactoringAction is a refactoring action dedicated to
16+
/// the insertion of new code content generated by EncapsulateField refactoring actions
17+
/// </summary>
1418
public class EncapsulateFieldInsertNewCodeRefactoringAction : CodeOnlyRefactoringActionBase<EncapsulateFieldInsertNewCodeModel>
1519
{
1620
private readonly IDeclarationFinderProvider _declarationFinderProvider;

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldInsertNewCode/NewContentAggregator.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,35 @@ public enum NewContentType
1313

1414
public interface INewContentAggregator
1515
{
16+
/// <summary>
17+
/// Allows gouping content blocks by <c>NewContentType</c>.
18+
/// </summary>
1619
void AddNewContent(NewContentType contentType, string block);
20+
/// <summary>
21+
/// Allows gouping content blocks by an adhoc identifier.
22+
/// </summary>
1723
void AddNewContent(string contentIdentifier, string block);
24+
/// <summary>
25+
/// Retrieves a block of content aggregated by <c>NewContentType</c>.
26+
/// </summary>
27+
/// <param name="newContentTypes"><c>NewContentType</c> blocks to aggregate</param>
1828
string RetrieveBlock(params NewContentType[] newContentTypes);
29+
/// <summary>
30+
/// Retrieves a block of content aggregated by a user-determined identifier.
31+
/// </summary>
32+
/// <param name="contentIdentifiers"><c>NewContentType</c> blocks to aggregate</param>
1933
string RetrieveBlock(params string[] contentIdentifiers);
34+
/// <summary>
35+
/// Sets default number of NewLines between blocks of code after
36+
/// all retrieving block(s) of code. The default value is 2.
37+
/// </summary>
2038
int NewLineLimit { set; get; }
2139
}
2240

41+
/// <summary>
42+
/// NewContentAggregator provides a repository for caching generated code blocks
43+
/// and retrieving them as an aggregated single block of code organized by <c>NewContentType</c>.
44+
/// </summary>
2345
public class NewContentAggregator : INewContentAggregator
2446
{
2547
private readonly static string _doubleSpace = $"{Environment.NewLine}{Environment.NewLine}";

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
namespace Rubberduck.Refactorings.EncapsulateField
88
{
9+
/// <summary>
10+
/// The EncapsulateFieldModel provides a facade to the EncapsulateFieldRefactoring
11+
/// by aggregating and simplifying access to the EncapsulateFieldUseBackingFieldModel
12+
/// and the EncapsulateFieldUseBackingUDTMemberModel.
13+
/// </summary>
914
public class EncapsulateFieldModel : IRefactoringModel
1015
{
1116
public EncapsulateFieldModel(EncapsulateFieldUseBackingFieldModel backingFieldModel,

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldRefactoringActionsProvider.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ public interface IEncapsulateFieldRefactoringActionsProvider
1515
ICodeOnlyRefactoringAction<EncapsulateFieldInsertNewCodeModel> EncapsulateFieldInsertNewCode { get; }
1616
}
1717

18+
/// <summary>
19+
/// EncapsulateFieldRefactoringActionsProvider reduces the number of EncapsulateField refactoring action
20+
/// constructor parameters providing refactoring actions common to the aggregated EncapsulateFieldRefactoringActions
21+
/// </summary>
1822
public class EncapsulateFieldRefactoringActionsProvider : IEncapsulateFieldRefactoringActionsProvider
1923
{
2024
private readonly ReplaceReferencesRefactoringAction _replaceReferences;

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldUseBackingField/EncapsulateFieldUseBackingFieldModelFactory.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Rubberduck.Parsing.Symbols;
2-
using Rubberduck.Refactorings.EncapsulateField;
1+
using Rubberduck.Refactorings.EncapsulateField;
32
using Rubberduck.Refactorings.EncapsulateFieldUseBackingField;
43
using System.Collections.Generic;
54
using System.Linq;
@@ -11,13 +10,12 @@ public interface IEncapsulateFieldUseBackingFieldModelFactory
1110
/// <summary>
1211
/// Creates an <c>EncapsulateFieldUseBackingFieldModel</c> used by the <c>EncapsulateFieldUseBackingFieldRefactoringAction</c>.
1312
/// </summary>
14-
/// <param name="clientTarget">Optional: <c>UserDefinedType</c> Field to include the Encapsulated Field(s)</param>
1513
EncapsulateFieldUseBackingFieldModel Create(IEnumerable<FieldEncapsulationModel> requests);
1614

1715
/// <summary>
1816
/// Creates an <c>EncapsulateFieldUseBackingFieldModel</c> based upon collection of
1917
/// <c>IEncapsulateFieldCandidate</c> instances created by <c>EncapsulateFieldCandidateCollectionFactory</c>.
20-
/// This function is intended for exclusive use by <c>EncapsulateFieldModelFactory</c>
18+
/// This function is intended for exclusive use by the <c>EncapsulateFieldModelFactory</c>
2119
/// </summary>
2220
EncapsulateFieldUseBackingFieldModel Create(IEncapsulateFieldCollectionsProvider collectionsProvider, IEnumerable<FieldEncapsulationModel> requests);
2321
}

Rubberduck.Refactorings/EncapsulateField/EncapsulateFieldUseBackingUDTMember/EncapsulateFieldUseBackingUDTMemberModelFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ public interface IEncapsulateFieldUseBackingUDTMemberModelFactory
1212
/// <summary>
1313
/// Creates an <c>EncapsulateFieldUseBackingUDTMemberModel</c> used by the <c>EncapsulateFieldUseBackingUDTMemberRefactoringAction</c>.
1414
/// </summary>
15-
/// <param name="clientTarget">Optional: <c>UserDefinedType</c> Field to include the Encapsulated Field(s)</param>
15+
/// <param name="userDefinedTypeTarget">Optional: <c>UserDefinedType</c> Field to host the Encapsulated Field(s)</param>
1616
EncapsulateFieldUseBackingUDTMemberModel Create(IEnumerable<FieldEncapsulationModel> requests, Declaration userDefinedTypeTarget = null);
1717

1818
/// <summary>
1919
/// Creates an <c>EncapsulateFieldUseBackingUDTMemberModel</c> based upon collection of
2020
/// <c>IEncapsulateFieldCandidate</c> instances created by <c>EncapsulateFieldCandidateCollectionFactory</c>.
21-
/// This function is intended for exclusive use by <c>EncapsulateFieldModelFactory</c>
21+
/// This function is intended for exclusive use by the <c>EncapsulateFieldModelFactory</c>
2222
/// </summary>
2323
EncapsulateFieldUseBackingUDTMemberModel Create(IEncapsulateFieldCollectionsProvider collectionsProvider, IEnumerable<FieldEncapsulationModel> requests, Declaration userDefinedTypeTarget = null);
2424
}

0 commit comments

Comments
 (0)