File tree Expand file tree Collapse file tree 8 files changed +18
-11
lines changed
Chickensoft.LogicBlocks/src
Chickensoft.LogicBlocks.Generator/src Expand file tree Collapse file tree 8 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 6
6
"type" : " coreclr" ,
7
7
"request" : " launch" ,
8
8
"preLaunchTask" : " build" ,
9
- "program" : " ${workspaceFolder}/Chickensoft.LogicBlocks.Example/bin/Debug/net6 .0/Chickensoft.LogicBlocks.Example.dll" ,
9
+ "program" : " ${workspaceFolder}/Chickensoft.LogicBlocks.Example/bin/Debug/net7 .0/Chickensoft.LogicBlocks.Example.dll" ,
10
10
"args" : [
11
11
// "${input:args}"
12
12
],
17
17
"enableStepFiltering" : false ,
18
18
},
19
19
]
20
- }
20
+ }
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ namespace Chickensoft.LogicBlocks.Generator;
8
8
using System . Text ;
9
9
using System . Threading ;
10
10
using Chickensoft . LogicBlocks . Generator . Common . Models ;
11
+ using Chickensoft . LogicBlocks . Generator . Common . Services ;
11
12
using Chickensoft . SourceGeneratorUtils ;
12
13
using Microsoft . CodeAnalysis ;
13
14
using Microsoft . CodeAnalysis . CSharp . Syntax ;
14
15
using Microsoft . CodeAnalysis . Text ;
15
- using SuperNodes . Common . Services ;
16
16
17
17
[ Generator ]
18
18
public class LogicBlocksGenerator :
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ namespace Chickensoft.LogicBlocks.Generator;
4
4
using System . Collections . Immutable ;
5
5
using System . Threading ;
6
6
using Chickensoft . LogicBlocks . Generator . Common . Models ;
7
+ using Chickensoft . LogicBlocks . Generator . Common . Services ;
7
8
using Chickensoft . SourceGeneratorUtils ;
8
9
using Microsoft . CodeAnalysis ;
9
10
using Microsoft . CodeAnalysis . CSharp ;
10
11
using Microsoft . CodeAnalysis . CSharp . Syntax ;
11
- using SuperNodes . Common . Services ;
12
12
13
13
public class OutputVisitor : CSharpSyntaxWalker {
14
14
public SemanticModel Model { get ; }
Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ namespace Chickensoft.LogicBlocks.Generator;
3
3
using System . Collections . Generic ;
4
4
using System . Collections . Immutable ;
5
5
using System . Threading ;
6
+ using Chickensoft . LogicBlocks . Generator . Common . Services ;
6
7
using Chickensoft . SourceGeneratorUtils ;
7
8
using Microsoft . CodeAnalysis ;
8
9
using Microsoft . CodeAnalysis . CSharp ;
9
10
using Microsoft . CodeAnalysis . CSharp . Syntax ;
10
11
11
- using SuperNodes . Common . Services ;
12
-
13
12
public class ReturnTypeVisitor : CSharpSyntaxWalker {
14
13
public SemanticModel Model { get ; }
15
14
public CancellationToken Token { get ; }
Original file line number Diff line number Diff line change 1
- namespace SuperNodes . Common . Services ;
1
+ namespace Chickensoft . LogicBlocks . Generator . Common . Services ;
2
2
3
3
using System ;
4
4
using System . Collections . Generic ;
Original file line number Diff line number Diff line change @@ -124,7 +124,11 @@ public void Start() =>
124
124
Value . Enter ( previous : null , onError : AddError ) ;
125
125
126
126
/// <inheritdoc />
127
- public void Stop ( ) => Value . Exit ( next : null , onError : AddError ) ;
127
+ public void Stop ( ) {
128
+ Value . Exit ( next : null , onError : AddError ) ;
129
+ Value . Detach ( ) ;
130
+ SetState ( null ! ) ;
131
+ }
128
132
129
133
internal override Func < object , TState > GetInputHandler < TInputType > ( )
130
134
=> ( input ) => {
Original file line number Diff line number Diff line change @@ -159,7 +159,11 @@ public Task Start() =>
159
159
Value . Enter ( previous : null , onError : AddError ) ;
160
160
161
161
/// <inheritdoc />
162
- public Task Stop ( ) => Value . Exit ( next : null , onError : AddError ) ;
162
+ public async Task Stop ( ) {
163
+ await Value . Exit ( next : null , onError : AddError ) ;
164
+ Value . Detach ( ) ;
165
+ SetState ( null ! ) ;
166
+ }
163
167
164
168
internal override Func < object , Task < TState > > GetInputHandler < TInputType > ( )
165
169
=> ( input ) => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
3
"rollForward" : " latestMinor" ,
4
- "version" : " 7.0.306 "
4
+ "version" : " 7.0.404 "
5
5
}
6
- }
6
+ }
You can’t perform that action at this time.
0 commit comments