Skip to content

Commit 89bbab1

Browse files
committed
Static fields removed
1 parent 2df6c49 commit 89bbab1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>0.2.1</VersionPrefix>
3+
<VersionPrefix>0.2.2</VersionPrefix>
44
<VersionSuffix>alpha</VersionSuffix>
55
</PropertyGroup>
66
</Project>

ServiceInjection.SourceGenerators/InjectionAnalyzer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ namespace CodeIX.ServiceInjection.SourceGenerators;
88

99
public class InjectionAnalyzer
1010
{
11-
private static readonly string InjectedAttributeName = typeof(InjectedAttribute).FullName;
12-
private static readonly string ServiceInjectionAttributeName = typeof(ServiceInjectionAttribute).FullName;
11+
private readonly string InjectedAttributeName = typeof(InjectedAttribute).FullName;
12+
private readonly string ServiceInjectionAttributeName = typeof(ServiceInjectionAttribute).FullName;
1313

1414
public bool TryGetGeneratedCode(INamedTypeSymbol typeSymbol, out string source, out string hintName)
1515
{
@@ -55,7 +55,7 @@ internal IEnumerable<Injection> GetInjectedMembers(INamespaceOrTypeSymbol symbol
5555
;
5656
}
5757

58-
internal static Injection CreateInjectionFromMember(ISymbol member)
58+
internal Injection CreateInjectionFromMember(ISymbol member)
5959
{
6060
var injectedAttribute = member.GetAttributes()
6161
.Single(a => a.AttributeClass?.ToDisplayString() == InjectedAttributeName);

ServiceInjection.SourceGenerators/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Run": {
44
"commandName": "DebugRoslynComponent",
5-
"targetProject": "..\\ServiceInjection.SourceGenerators.Tests\\ServiceInjection.SourceGenerators.Tests.csproj"
5+
"targetProject": "..\\ConsoleApp1\\ConsoleApp1.csproj"
66
}
77
}
88
}

0 commit comments

Comments
 (0)