Skip to content

Commit

Permalink
Fix state bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCoderSuper committed Oct 27, 2023
1 parent e9a00ee commit 68a546f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions DeveloperCore.REPL/DeveloperCore.REPL.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.5.0" />
<PackageReference Include="NuGet.Common" Version="6.5.0" />
<PackageReference Include="NuGet.PackageManagement" Version="6.5.0" />
<PackageReference Include="NuGet.ProjectModel" Version="6.5.0" />
<PackageReference Include="NuGet.Protocol" Version="6.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.7.0" />
<PackageReference Include="NuGet.Common" Version="6.7.0" />
<PackageReference Include="NuGet.PackageManagement" Version="6.7.0" />
<PackageReference Include="NuGet.ProjectModel" Version="6.7.0" />
<PackageReference Include="NuGet.Protocol" Version="6.7.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions DeveloperCore.REPL/REPL.vb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ Public Class REPL
For Each var As VariableDeclaratorSyntax In vars
Dim name As String = var.Names.First.Identifier.Text
If Not _state.ContainsKey(name) Then
varUpdates.Add(SyntaxFactory.ExpressionStatement(SyntaxFactory.ParseExpression($"{stateName}.Add(""{name}"", {name})")))
varUpdates.Add(SyntaxFactory.ParseExecutableStatement($"{stateName}.Add(""{name}"", {name})"))
Else
varUpdates.Add(SyntaxFactory.ExpressionStatement(SyntaxFactory.ParseExpression($"{stateName}(""{name}"") = {name}")))
varUpdates.Add(SyntaxFactory.ParseExecutableStatement($"{stateName}(""{name}"") = {name}"))
End If
Next
method = method.WithStatements(method.Statements.InsertRange(retIndex, varUpdates))
Expand Down
6 changes: 3 additions & 3 deletions VBRepl/VBRepl.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.5.0" />
<PackageReference Include="PrettyPrompt" Version="4.0.6" />
<PackageReference Include="Spectre.Console" Version="0.46.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.7.0" />
<PackageReference Include="PrettyPrompt" Version="4.1.1" />
<PackageReference Include="Spectre.Console" Version="0.47.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 68a546f

Please sign in to comment.