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