Skip to content

Commit

Permalink
Correct closure info for bound sequence points (#52987)
Browse files Browse the repository at this point in the history
  • Loading branch information
cston authored May 3, 2021
1 parent 511118e commit 25356c8
Show file tree
Hide file tree
Showing 2 changed files with 453 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
#nullable disable

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using Microsoft.CodeAnalysis.Collections;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.PooledObjects;
using Microsoft.CodeAnalysis.Operations;
using Roslyn.Utilities;

namespace Microsoft.CodeAnalysis.CSharp
Expand Down Expand Up @@ -274,7 +270,7 @@ private BoundStatement UpdateStatement(BoundSpillSequenceBuilder builder, BoundS
builder.AddStatement(statement);
}

var result = _F.Block(builder.GetLocals(), builder.GetStatements());
var result = new BoundBlock(statement.Syntax, builder.GetLocals(), builder.GetStatements()) { WasCompilerGenerated = true };

builder.Free();
return result;
Expand Down
Loading

0 comments on commit 25356c8

Please sign in to comment.