1 write to _F
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SpillSequenceSpiller.cs (1)
31
_F
= new SyntheticBoundNodeFactory(method, syntaxNode, compilationState, diagnostics);
98 references to _F
Microsoft.CodeAnalysis.CSharp (98)
Lowering\SpillSequenceSpiller.cs (98)
32
_F
.CurrentFunction = method;
310
_F
.Syntax = builder.Syntax;
363
builder.AddStatement(
_F
.ExpressionStatement(complexReceiver));
448
else if (call.Method.OriginalDefinition ==
_F
.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Span_T__get_Item) ||
449
call.Method.OriginalDefinition ==
_F
.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__get_Item))
462
else if (call.Method.OriginalDefinition ==
_F
.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Span_T__Slice_Int_Int) ||
463
call.Method.OriginalDefinition ==
_F
.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__Slice_Int_Int))
471
else if (call.Method ==
_F
.Compilation.GetSpecialTypeMember(SpecialMember.System_String__op_Implicit_ToReadOnlySpanOfChar))
484
objectCreationExpression.Constructor.OriginalDefinition ==
_F
.Compilation.GetSpecialTypeMember(SpecialMember.System_ReadOnlySpan_T__ctor_Reference))
499
builder.AddStatement(
_F
.ExpressionStatement(expression));
506
var replacement =
_F
.StoreToTemp(
511
syntaxOpt:
_F
.Syntax);
514
builder.AddStatement(
_F
.ExpressionStatement(assignToTemp));
754
_F
.Syntax = node.Syntax;
996
var tmp =
_F
.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax:
_F
.Syntax);
998
leftBuilder.AddStatement(
_F
.Assignment(
_F
.Local(tmp), left));
999
leftBuilder.AddStatement(
_F
.If(
1000
node.OperatorKind == BinaryOperatorKind.LogicalBoolAnd ?
_F
.Local(tmp) :
_F
.Not(
_F
.Local(tmp)),
1001
UpdateStatement(builder,
_F
.Assignment(
_F
.Local(tmp), right))));
1003
return UpdateExpression(leftBuilder,
_F
.Local(tmp));
1053
var save_Syntax =
_F
.Syntax;
1054
_F
.Syntax = node.Syntax;
1056
var cache =
_F
.Local(
_F
.SynthesizedLocal(receiverType));
1058
receiverBuilder.AddStatement(
_F
.ExpressionStatement(new BoundComplexConditionalReceiver(node.Syntax, cache,
_F
.Sequence(new[] {
_F
.AssignmentExpression(cache, receiver) }, cache), receiverType) { WasCompilerGenerated = true }));
1060
receiver =
_F
.ComplexConditionalReceiver(receiver, cache);
1061
_F
.Syntax = save_Syntax;
1127
_F
.If(condition,
1128
UpdateStatement(consequenceBuilder,
_F
.ExpressionStatement(consequence)),
1129
UpdateStatement(alternativeBuilder,
_F
.ExpressionStatement(alternative))));
1131
return conditionBuilder.Update(
_F
.Default(node.Type));
1135
var tmp =
_F
.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax:
_F
.Syntax);
1139
_F
.If(condition,
1140
UpdateStatement(consequenceBuilder,
_F
.Assignment(
_F
.Local(tmp), consequence)),
1141
UpdateStatement(alternativeBuilder,
_F
.Assignment(
_F
.Local(tmp), alternative))));
1143
return conditionBuilder.Update(
_F
.Local(tmp));
1150
var tmp =
_F
.SynthesizedLocal(condition.Type, kind: SynthesizedLocalKind.Spill, syntax:
_F
.Syntax);
1153
conditionBuilder.AddStatement(
_F
.Assignment(
_F
.Local(tmp), condition));
1154
condition =
_F
.Local(tmp);
1161
_F
.If(condition,
1162
_F
.StatementList(consequenceBuilder.GetStatements()),
1163
_F
.StatementList(alternativeBuilder.GetStatements())));
1250
var tmp =
_F
.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax:
_F
.Syntax);
1252
leftBuilder.AddStatement(
_F
.Assignment(
_F
.Local(tmp), left));
1253
leftBuilder.AddStatement(
_F
.If(
1254
_F
.ObjectEqual(
_F
.Local(tmp),
_F
.Null(left.Type)),
1255
UpdateStatement(builder,
_F
.Assignment(
_F
.Local(tmp), right))));
1257
return UpdateExpression(leftBuilder,
_F
.Local(tmp));
1294
condition =
_F
.IsNotNullReference(receiver);
1298
condition =
_F
.Call(receiver, hasValueOpt);
1306
var clone =
_F
.SynthesizedLocal(receiver.Type,
_F
.Syntax, refKind: RefKind.None, kind: SynthesizedLocalKind.Spill);
1310
var isNotClass =
_F
.IsNotNullReference(
_F
.Default(receiver.Type));
1313
condition =
_F
.LogicalOr(
1315
_F
.MakeSequence(
1316
_F
.AssignmentExpression(
_F
.Local(clone), receiver),
1317
_F
.IsNotNullReference(
_F
.Local(clone)))
1320
receiver =
_F
.ComplexConditionalReceiver(receiver,
_F
.Local(clone));
1325
var whenNotNullStatement = UpdateStatement(whenNotNullBuilder,
_F
.ExpressionStatement(whenNotNull));
1330
receiverBuilder.AddStatement(
_F
.If(condition, whenNotNullStatement));
1332
return receiverBuilder.Update(
_F
.Default(node.Type));
1336
var tmp =
_F
.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax:
_F
.Syntax);
1337
var whenNotNullStatement = UpdateStatement(whenNotNullBuilder,
_F
.Assignment(
_F
.Local(tmp), whenNotNull));
1340
whenNullOpt = whenNullOpt ??
_F
.Default(node.Type);
1344
_F
.If(condition,
1346
UpdateStatement(whenNullBuilder,
_F
.Assignment(
_F
.Local(tmp), whenNullOpt))));
1348
return receiverBuilder.Update(
_F
.Local(tmp));
1396
var oldCurrentFunction =
_F
.CurrentFunction;
1397
_F
.CurrentFunction = node.Symbol;
1399
_F
.CurrentFunction = oldCurrentFunction;
1405
var oldCurrentFunction =
_F
.CurrentFunction;
1406
_F
.CurrentFunction = node.Symbol;
1408
_F
.CurrentFunction = oldCurrentFunction;
1497
LocalSymbol longLived = local.WithSynthesizedLocalKindAndSyntax(SynthesizedLocalKind.Spill,
_F
.Syntax);