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