1 write to Syntax
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (1)
30
public ValueDispatchNode(SyntaxNode syntax) =>
Syntax
= syntax;
10 references to Syntax
Microsoft.CodeAnalysis.CSharp (10)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (8)
631
return new ValueDispatchNode.SwitchDispatch(sd.
Syntax
, sd.Cases.Concat(cases), sd.Otherwise);
678
var test = MakeRelationalTest(rel.
Syntax
, input, rel.Operator, rel.Value);
770
EnsureStringHashFunction(node.Cases.Length, node.
Syntax
, stringPatternInput);
776
_localRewriter.TryGetSpecialTypeMethod(node.
Syntax
, SpecialMember.System_String__op_Equality, out _);
780
var dispatch = new BoundSwitchDispatch(node.
Syntax
, input, node.Cases, defaultLabel, lengthBasedDispatchOpt);
806
var dispatch = new BoundSwitchDispatch(node.
Syntax
, input, cases, defaultLabel, lengthBasedStringSwitchDataOpt: null);
830
_loweredDecisionDag.Add(_factory.ConditionalGoto(MakeValueTest(node.
Syntax
, input, cases[i].value), cases[i].label, jumpIfTrue: true));
839
_loweredDecisionDag.Add(_factory.ConditionalGoto(MakeRelationalTest(node.
Syntax
, input, lessThanOrEqualOperator, cases[firstIndex + half - 1].value), gt, jumpIfTrue: false));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (2)
152
(syntax, value, op, left, right) = (l.
Syntax
, l.Value, l.Operator, l.Left, newRight);
158
(syntax, value, op, left, right) = (r.
Syntax
, r.Value, r.Operator, newLeft, r.Right);