Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename _availablelocalFunctionOrdinal to _availableLocalFunctionOrdinal #49901

Merged
merged 1 commit into from
Dec 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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