5 writes to _enclosing
Microsoft.CodeAnalysis.CSharp (5)
Binder\LocalBinderFactory.cs (5)
49
_enclosing
= enclosing;
51
_enclosing
= oldEnclosing;
142
_enclosing
= enclosing;
238
_enclosing
= possibleNameofBinder;
240
_enclosing
= oldEnclosing;
61 references to _enclosing
Microsoft.CodeAnalysis.CSharp (61)
Binder\LocalBinderFactory.cs (61)
42
if (
_enclosing
== enclosing)
48
Binder oldEnclosing =
_enclosing
;
156
Binder enclosing = new ExpressionVariableBinder(node,
_enclosing
);
184
Binder enclosing = new ExpressionVariableBinder(node,
_enclosing
).WithAdditionalFlags(BinderFlags.ConstructorInitializer);
218
var oldEnclosing =
_enclosing
;
222
if ((
_enclosing
.Flags & BinderFlags.InContextualAttributeBinder) != 0)
224
var attributeTarget = getAttributeTarget(
_enclosing
);
225
withTypeParametersBinder = getExtraWithTypeParametersBinder(
_enclosing
, attributeTarget);
226
withParametersBinder = getExtraWithParametersBinder(
_enclosing
, attributeTarget);
235
var possibleNameofBinder = new NameofBinder(argumentExpression,
_enclosing
, withTypeParametersBinder, withParametersBinder);
394
var binder = new ExpressionVariableBinder(body,
_enclosing
);
408
Binder binder =
_enclosing
;
409
LocalFunctionSymbol match = FindLocalFunction(node,
_enclosing
);
416
? new WithMethodTypeParametersBinder(match,
_enclosing
)
417
:
_enclosing
;
468
var arrowBinder = new ExpressionVariableBinder(node,
_enclosing
);
475
var valueBinder = new ExpressionVariableBinder(node,
_enclosing
);
482
var attrBinder = new ExpressionVariableBinder(node,
_enclosing
);
496
var binder =
_enclosing
.WithAdditionalFlags(BinderFlags.ConstructorInitializer);
536
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
537
var blockBinder = new BlockBinder(
_enclosing
, node);
549
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
550
var usingBinder = new UsingStatementBinder(
_enclosing
, node);
577
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
578
var whileBinder = new WhileBinder(
_enclosing
, node);
587
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
588
var whileBinder = new WhileBinder(
_enclosing
, node);
597
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
598
Binder binder = new ForLoopBinder(
_enclosing
, node);
643
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
644
var patternBinder = new ExpressionVariableBinder(node.Expression,
_enclosing
);
673
Binder binder =
_enclosing
.WithCheckedOrUncheckedRegion(@checked: node.Kind() == SyntaxKind.CheckedExpression);
680
Binder binder =
_enclosing
.WithCheckedOrUncheckedRegion(@checked: node.Kind() == SyntaxKind.CheckedStatement);
688
Binder binder =
_enclosing
.WithAdditionalFlags(BinderFlags.UnsafeRegion);
696
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
697
var binder = new FixedStatementBinder(
_enclosing
, node);
715
var lockBinder = new LockBinder(
_enclosing
, node);
732
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
733
AddToMap(node.Expression,
_enclosing
);
734
Visit(node.Expression,
_enclosing
);
736
var switchBinder = SwitchBinder.Create(
_enclosing
, node);
747
var patternBinder = new ExpressionVariableBinder(node,
_enclosing
);
781
var switchExpressionBinder = new SwitchExpressionBinder(node,
_enclosing
);
817
Binder enclosing =
_enclosing
;
844
VisitPossibleEmbeddedStatement(node.Statement,
_enclosing
);
849
Visit(node.Statement,
_enclosing
);
860
Visit(node.Block,
_enclosing
.WithAdditionalFlags(BinderFlags.InTryBlockOfTryCatch));
864
Visit(node.Block,
_enclosing
);
869
Visit(c,
_enclosing
);
874
Visit(node.Finally,
_enclosing
);
880
Debug.Assert((object)_containingMemberOrLambda ==
_enclosing
.ContainingMemberOrLambda);
881
var clauseBinder = new CatchClauseBinder(
_enclosing
, node);
912
if (
_enclosing
.Flags.Includes(BinderFlags.InCatchBlock))
917
Visit(node.Block,
_enclosing
.WithAdditionalFlags(additionalFlags));
927
Visit(node.Expression,
_enclosing
);
933
Visit(node.Expression,
_enclosing
);
938
VisitRankSpecifiers(node.Declaration.Type,
_enclosing
);
952
var enclosing =
_enclosing
;
955
enclosing = new LocalInProgressBinder(initializer,
_enclosing
);
967
Visit(node.Expression,
_enclosing
);
975
Visit(node.Expression,
_enclosing
);