Skip to content

Commit

Permalink
simplified filter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aabs committed Apr 24, 2024
1 parent 991dc40 commit af81337
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
File renamed without changes.
4 changes: 3 additions & 1 deletion ActorSrcGen.Playground/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using ActorSrcGen.Abstractions.Playground;

Console.WriteLine("Hello World");

var wf = new MyWorkflow();
if (await wf.Cast(10))
Console.WriteLine("Called Asynchronously");

var wf2 = new MyWorkflow2();
var wf2 = new MyActor();
if (wf2.Call(10))
Console.WriteLine("Called Synchronously");

Expand Down
2 changes: 1 addition & 1 deletion ActorSrcGen/Generators/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static IEnumerable<IMethodSymbol> GetStepMethods(INamedTypeSymbol typeSymbol)
return from m in typeSymbol.GetMembers()
let ms = m as IMethodSymbol
where ms is not null
where ms.GetAttributes().Any(a => a.AttributeClass.Name.EndsWith("StepAttribute"))
where ms.GetBlockAttr() is not null
where ms.Name != ".ctor"
select ms;

Expand Down
4 changes: 0 additions & 4 deletions ActorSrcGen/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"Playground": {
"commandName": "DebugRoslynComponent",
"targetProject": "..\\ActorSrcGen.Playground\\ActorSrcGen.Playground.csproj"
},
"Profile 1": {
"commandName": "DebugRoslynComponent",
"targetProject": "..\\ActorSrcGen.Proxies.Playground\\ActorSrcGen.Proxies.Playground.csproj"
}
}
}

0 comments on commit af81337

Please sign in to comment.