Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit 7383a10

Browse files
committed
ProcessingMember -> ProcessingNode
1 parent b5efc02 commit 7383a10

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/CodeGeneration.Roslyn.Tests.Generators/DuplicateWithSuffixGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Task<SyntaxList<MemberDeclarationSyntax>> GenerateAsync(TransformationCon
3535
var results = SyntaxFactory.List<MemberDeclarationSyntax>();
3636

3737
MemberDeclarationSyntax copy = null;
38-
var applyToClass = context.ProcessingMember as ClassDeclarationSyntax;
38+
var applyToClass = context.ProcessingNode as ClassDeclarationSyntax;
3939
if (applyToClass != null)
4040
{
4141
copy = applyToClass

src/CodeGeneration.Roslyn.Tests.Generators/MultiplySuffixGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public Task<SyntaxList<MemberDeclarationSyntax>> GenerateAsync(TransformationCon
2929
var results = SyntaxFactory.List<MemberDeclarationSyntax>();
3030

3131
MemberDeclarationSyntax copy = null;
32-
var applyToClass = context.ProcessingMember as ClassDeclarationSyntax;
32+
var applyToClass = context.ProcessingNode as ClassDeclarationSyntax;
3333
if (applyToClass != null)
3434
{
3535
var properties = applyToClass.Members.OfType<PropertyDeclarationSyntax>()

src/CodeGeneration.Roslyn/TransformationContext.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ public class TransformationContext
88
/// <summary>
99
/// Initializes a new instance of the <see cref="TransformationContext" /> class.
1010
/// </summary>
11-
/// <param name="processingMember">The syntax node the generator attribute is found on.</param>
11+
/// <param name="processingNode">The syntax node the generator attribute is found on.</param>
1212
/// <param name="semanticModel">The semantic model.</param>
1313
/// <param name="compilation">The overall compilation being generated for.</param>
1414
/// <param name="projectDirectory">The absolute path of the directory where the project file is located</param>
15-
public TransformationContext(CSharpSyntaxNode processingMember, SemanticModel semanticModel, CSharpCompilation compilation,
15+
public TransformationContext(CSharpSyntaxNode processingNode, SemanticModel semanticModel, CSharpCompilation compilation,
1616
string projectDirectory)
1717
{
18-
ProcessingMember = processingMember;
18+
ProcessingNode = processingNode;
1919
SemanticModel = semanticModel;
2020
Compilation = compilation;
2121
ProjectDirectory = projectDirectory;
2222
}
2323

2424
/// <summary>Gets the syntax node the generator attribute is found on.</summary>
25-
public CSharpSyntaxNode ProcessingMember { get; }
25+
public CSharpSyntaxNode ProcessingNode { get; }
2626

2727
/// <summary>Gets the semantic model for the <see cref="Compilation" />.</summary>
2828
public SemanticModel SemanticModel { get; }

0 commit comments

Comments
 (0)