public override void VisitSwitchStatement(SwitchStatementSyntax node) { var switchBinder = new SwitchBinder(this.method, enclosing, node); AddToMap(node, switchBinder); foreach (SwitchSectionSyntax section in node.Sections) { Visit(section, switchBinder); } }
public override void VisitSwitchStatement(SwitchStatementSyntax node) { Debug.Assert((object)_method == _enclosing.ContainingMemberOrLambda); var switchBinder = new SwitchBinder(_enclosing, node); AddToMap(node, switchBinder); foreach (SwitchSectionSyntax section in node.Sections) { Visit(section, switchBinder); } }
public override void VisitSwitchStatement(SwitchStatementSyntax node) { Debug.Assert((object)_containingMemberOrLambda == _enclosing.ContainingMemberOrLambda); AddToMap(node.Expression, _enclosing); Visit(node.Expression, _enclosing); var switchBinder = SwitchBinder.Create(_enclosing, node); AddToMap(node, switchBinder); foreach (SwitchSectionSyntax section in node.Sections) { Visit(section, switchBinder); } }
public override void VisitSwitchStatement(SwitchStatementSyntax node) { Debug.Assert((object)_containingMemberOrLambda == _enclosing.ContainingMemberOrLambda); var patternBinder = new PatternVariableBinder(node.Expression, _enclosing); AddToMap(node.Expression, patternBinder); Visit(node.Expression, patternBinder); var switchBinder = new SwitchBinder(patternBinder, node); AddToMap(node, switchBinder); foreach (SwitchSectionSyntax section in node.Sections) { Visit(section, switchBinder); } }