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

Commit b5efc02

Browse files
committed
requested changes
1 parent d183dac commit b5efc02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/CodeGeneration.Roslyn.Tasks/GenerateCodeFromAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected override string GenerateResponseFileCommands()
8484
argBuilder.AppendLine(this.IntermediateOutputDirectory);
8585

8686
argBuilder.AppendLine("--projectDir");
87-
argBuilder.AppendLine(ProjectDirectory);
87+
argBuilder.AppendLine(this.ProjectDirectory);
8888

8989
this.generatedCompileItemsFilePath = Path.Combine(this.IntermediateOutputDirectory, Path.GetRandomFileName());
9090
argBuilder.AppendLine("--generatedFilesList");

src/CodeGeneration.Roslyn/CompilationGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public class CompilationGenerator
106106
var generatedSyntaxTree = DocumentTransform.TransformAsync(
107107
compilation,
108108
inputSyntaxTree,
109-
ProjectDirectory,
109+
this.ProjectDirectory,
110110
this.LoadAssembly,
111111
progress).GetAwaiter().GetResult();
112112

src/CodeGeneration.Roslyn/DocumentTransform.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ public static async Task<SyntaxTree> TransformAsync(CSharpCompilation compilatio
111111
return compilationUnit.SyntaxTree;
112112
}
113113

114-
private static ImmutableArray<AttributeData> GetAttributeData(Compilation compilation, SemanticModel document, SyntaxNode memberNode)
114+
private static ImmutableArray<AttributeData> GetAttributeData(Compilation compilation, SemanticModel document, SyntaxNode syntaxNode)
115115
{
116116
Requires.NotNull(document, nameof(document));
117-
Requires.NotNull(memberNode, nameof(memberNode));
117+
Requires.NotNull(syntaxNode, nameof(syntaxNode));
118118

119-
switch (memberNode)
119+
switch (syntaxNode)
120120
{
121121
case CompilationUnitSyntax syntax:
122122
return compilation.Assembly.GetAttributes().Where(x => x.ApplicationSyntaxReference.SyntaxTree == syntax.SyntaxTree).ToImmutableArray();
123123
default:
124-
return document.GetDeclaredSymbol(memberNode)?.GetAttributes() ?? ImmutableArray<AttributeData>.Empty;
124+
return document.GetDeclaredSymbol(syntaxNode)?.GetAttributes() ?? ImmutableArray<AttributeData>.Empty;
125125
}
126126
}
127127

0 commit comments

Comments
 (0)