1 write to _localRewriter
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
32
_localRewriter
= localRewriter;
38 references to _localRewriter
Microsoft.CodeAnalysis.CSharp (38)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (11)
760
if (!this.
_localRewriter
._compilation.FeatureDisableLengthBasedSwitch &&
776
_localRewriter
.TryGetSpecialTypeMethod(node.Syntax, SpecialMember.System_String__op_Equality, out _);
851
var compilation =
_localRewriter
._compilation;
896
var module =
_localRewriter
.EmitModule;
923
var privateImplClass = module.GetPrivateImplClass(syntaxNode,
_localRewriter
._diagnostics.DiagnosticBag);
938
StringPatternInput.String =>
_localRewriter
._compilation.GetSpecialTypeMember(SpecialMember.System_String__Chars),
939
StringPatternInput.SpanChar =>
_localRewriter
._compilation.GetWellKnownTypeMember(WellKnownMember.System_Span_T__get_Item),
940
StringPatternInput.ReadOnlySpanChar =>
_localRewriter
._compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__get_Item),
1126
BoundStatement conditionalGoto = _factory.ConditionalGoto(
_localRewriter
.VisitExpression(whenExpression), whenTrueLabel, jumpIfTrue: true);
1131
conditionalGoto =
_localRewriter
.Instrumenter.InstrumentSwitchWhenClauseConditionalGotoBody(whenExpression, conditionalGoto);
1181
BoundExpression left =
_localRewriter
.VisitExpression(binding.VariableAccess);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (13)
145
BoundExpression access =
_localRewriter
.MakeFieldAccess(f.Syntax, input, field, null, LookupResultKind.Viable, field.Type);
155
return _factory.AssignmentExpression(output,
_localRewriter
.MakePropertyAccess(_factory.Syntax, input, property, LookupResultKind.Viable, property.Type, isLeftOfAssignment: false));
210
CompoundUseSiteInfo<AssemblySymbol> useSiteInfo =
_localRewriter
.GetNewCompoundUseSiteInfo();
214
_localRewriter
._diagnostics.Add(t.Syntax, useSiteInfo);
220
_localRewriter
.TryGetNullableMethod(t.Syntax, inputType, SpecialMember.System_Nullable_T_GetValueOrDefault, out MethodSymbol getValueOrDefault))
268
var access = (BoundExpression)
_localRewriter
.Visit(indexerAccess);
294
var access = (BoundExpression)
_localRewriter
.Visit(indexerAccess);
375
return
_localRewriter
.MakeBinaryOperator(
384
return
_localRewriter
.MakeNullCheck(syntax, rewrittenExpr, operatorKind);
410
BoundExpression literal =
_localRewriter
.MakeLiteral(syntax, value, input.Type);
428
return this.
_localRewriter
.MakeBinaryOperator(_factory.Syntax, operatorKind, input, literal, _factory.SpecialType(SpecialType.System_Boolean), method: null, constrainedToTypeOpt: null);
464
CompoundUseSiteInfo<AssemblySymbol> useSiteInfo =
_localRewriter
.GetNewCompoundUseSiteInfo();
493
_localRewriter
._diagnostics.Add(test.Syntax, useSiteInfo);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (4)
113
var inputExpression =
_localRewriter
.VisitExpression(node.Expression);
132
_localRewriter
._needsSpilling = true;
224
BoundExpression loweredInput =
_localRewriter
.VisitExpression(isPatternExpression.Expression);
287
BoundExpression left =
_localRewriter
.VisitExpression(binding.VariableAccess);
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (5)
76
var loweredSwitchGoverningExpression =
_localRewriter
.VisitExpression(node.Expression);
77
if (!node.WasCompilerGenerated &&
_localRewriter
.Instrument)
81
var instrumentedExpression =
_localRewriter
.Instrumenter.InstrumentSwitchStatementExpression(node, loweredSwitchGoverningExpression, _factory);
141
sectionBuilder.AddRange(
_localRewriter
.VisitList(section.Statements));
177
translatedSwitch =
_localRewriter
.Instrumenter.InstrumentSwitchStatement(node, translatedSwitch);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (5)
47
GenerateInstrumentation &&
_localRewriter
._compilation.Options.OptimizationLevel != OptimizationLevel.Release;
51
var loweredSwitchGoverningExpression =
_localRewriter
.VisitExpression(node.Expression);
97
var loweredValue =
_localRewriter
.VisitExpression(arm.Value);
99
loweredValue = this.
_localRewriter
.Instrumenter.InstrumentSwitchExpressionArmExpression(arm.Value, loweredValue, _factory);
151
Conversion c =
_localRewriter
._compilation.Conversions.ClassifyConversionFromExpression(expression, type, isChecked: false, ref discardedUseSiteInfo);