Skip to content

Commit

Permalink
downgrade lang version to allow github build+deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aabs committed Oct 29, 2023
1 parent 6339cbc commit a526b05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ActorSrcGen.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
.github\workflows\build-publish.yml = .github\workflows\build-publish.yml
Directory.Build.props = Directory.Build.props
.github\workflows\prepare-nuget.yml = .github\workflows\prepare-nuget.yml
ReadMe.md = ReadMe.md
EndProjectSection
EndProject
Expand Down
2 changes: 1 addition & 1 deletion ActorSrcGen/ActorSrcGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<LangVersion>12</LangVersion>
<LangVersion>11</LangVersion>
<Nullable>enable</Nullable>
<Description>Source Generators</Description>
<Configurations>Debug;Release;Gen</Configurations>
Expand Down
4 changes: 2 additions & 2 deletions ActorSrcGen/Helpers/RoslynExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ public static AttributeData GetBlockAttr(this SyntaxAndSymbol s)

public static AttributeData GetBlockAttr(this IMethodSymbol ms)
{
string[] attrNames = ["StepAttribute", "InitialStepAttribute", "LastStepAttribute"];
string[] attrNames = new[]{"StepAttribute", "InitialStepAttribute", "LastStepAttribute" };
return ms.GetAttributes().FirstOrDefault(a => attrNames.Any(x => x == a.AttributeClass.Name));
}

public static AttributeData GetBlockAttr(this INamedTypeSymbol s)
{
string[] attrNames = ["StepAttribute", "InitialStepAttribute", "LastStepAttribute"];
string[] attrNames = new[]{"StepAttribute", "InitialStepAttribute", "LastStepAttribute" };
return s.GetAttributes().FirstOrDefault(a => attrNames.Any(x => x == a.AttributeClass.Name));
}

Expand Down

0 comments on commit a526b05

Please sign in to comment.