Skip to content

Commit

Permalink
Rename _availablelocalFunctionOrdinal to `_availableLocalFunctionOr…
Browse files Browse the repository at this point in the history
…dinal` (#49901)
  • Loading branch information
AlekseyTs authored Dec 10, 2020
1 parent d953c1c commit 5faff98
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal sealed partial class LocalRewriter : BoundTreeRewriterWithStackGuard
private readonly bool _allowOmissionOfConditionalCalls;
private LoweredDynamicOperationFactory _dynamicFactory;
private bool _sawLambdas;
private int _availablelocalFunctionOrdinal;
private int _availableLocalFunctionOrdinal;
private bool _inExpressionLambda;

private bool _sawAwait;
Expand Down Expand Up @@ -108,7 +108,7 @@ public static BoundStatement Rewrite(
Debug.Assert(loweredStatement is { });
loweredStatement.CheckLocalsDefined();
sawLambdas = localRewriter._sawLambdas;
sawLocalFunctions = localRewriter._availablelocalFunctionOrdinal != 0;
sawLocalFunctions = localRewriter._availableLocalFunctionOrdinal != 0;
sawAwaitInExceptionHandler = localRewriter._sawAwaitInExceptionHandler;

if (localRewriter._needsSpilling && !loweredStatement.HasErrors)
Expand Down Expand Up @@ -264,7 +264,7 @@ public override BoundNode VisitLambda(BoundLambda node)

public override BoundNode VisitLocalFunctionStatement(BoundLocalFunctionStatement node)
{
int localFunctionOrdinal = _availablelocalFunctionOrdinal++;
int localFunctionOrdinal = _availableLocalFunctionOrdinal++;

var localFunction = node.Symbol;
CheckRefReadOnlySymbols(localFunction);
Expand Down

0 comments on commit 5faff98

Please sign in to comment.