17 instantiations of SynthesizedLocal
Microsoft.CodeAnalysis.CSharp (17)
CodeGen\CodeGenerator.cs (1)
177
var localSymbol = new
SynthesizedLocal
(_method, _method.ReturnTypeWithAnnotations, SynthesizedLocalKind.FunctionReturnValue, bodySyntax);
Compiler\MethodBodySynthesizer.cs (1)
430
tmps[i] = new
SynthesizedLocal
(accessor, TypeWithAnnotations.Create(delegateType), SynthesizedLocalKind.LoweringTemp);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (5)
175
var pendingExceptionLocal = new
SynthesizedLocal
(_F.CurrentFunction, TypeWithAnnotations.Create(exceptionType), SynthesizedLocalKind.TryAwaitPendingException, tryStatementSyntax);
177
var pendingBranchVar = new
SynthesizedLocal
(_F.CurrentFunction, TypeWithAnnotations.Create(_F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingBranch, tryStatementSyntax);
975
this.returnValue = returnValue = new
SynthesizedLocal
(containingMethod, TypeWithAnnotations.Create(valueOpt.Type), SynthesizedLocalKind.AsyncMethodReturnValue, _syntaxOpt);
1009
this.pendingCaughtException = new
SynthesizedLocal
(F.CurrentFunction, TypeWithAnnotations.Create(F.SpecialType(SpecialType.System_Object)), SynthesizedLocalKind.TryAwaitPendingCaughtException, tryStatementSyntax);
1010
this.pendingCatch = new
SynthesizedLocal
(F.CurrentFunction, TypeWithAnnotations.Create(F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingCatch, tryStatementSyntax);
Lowering\ClosureConversion\ClosureConversion.cs (1)
655
LocalSymbol framePointer = new
SynthesizedLocal
(_topLevelMethod, TypeWithAnnotations.Create(frameType), SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntaxOpt);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
390
var localSymbol = new
SynthesizedLocal
(_factory.CurrentFunction, TypeWithAnnotations.Create(outputPlaceholder.Type), SynthesizedLocalKind.LoweringTemp);
Lowering\SyntheticBoundNodeFactory.cs (4)
563
return new
SynthesizedLocal
(CurrentFunction, TypeWithAnnotations.Create(type), kind, syntax, isPinned,
581
return new
SynthesizedLocal
(
1556
new
SynthesizedLocal
(
1597
temp = new
SynthesizedLocal
(this.CurrentFunction, TypeWithAnnotations.Create(node.Type), SynthesizedLocalKind.LoweringTemp);
Operations\CSharpOperationFactory.cs (1)
1966
legacyMode ? null : new
SynthesizedLocal
((_semanticModel.GetEnclosingSymbol(boundLockStatement.Syntax.SpanStart) as IMethodSymbol).GetSymbol(),
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
471
new
SynthesizedLocal
(this, TypeWithAnnotations.Create(_containingType), SynthesizedLocalKind.LoweringTemp),
563
new
SynthesizedLocal
(this, TypeWithAnnotations.Create(_containingType), SynthesizedLocalKind.LoweringTemp),
Symbols\Synthesized\SynthesizedLocal.cs (1)
82
return new
SynthesizedLocal
(
23 references to SynthesizedLocal
Microsoft.CodeAnalysis.CSharp (23)
BoundTree\BoundNode.cs (1)
360
return (o is
SynthesizedLocal
l) ? l.DumperString() : base.DumperString(o);
BoundTree\BoundNode_Source.cs (5)
21
appendSourceCore(this, indent: 0, tempIdentifiers: new Dictionary<
SynthesizedLocal
, int>());
24
void appendSourceCore(BoundNode node, int indent, Dictionary<
SynthesizedLocal
, int> tempIdentifiers)
81
if (local is
SynthesizedLocal
synthesized)
396
string name(
SynthesizedLocal
local)
409
if (symbol is
SynthesizedLocal
synthesized)
CodeGen\CodeGenerator.cs (1)
177
var
localSymbol = new SynthesizedLocal(_method, _method.ReturnTypeWithAnnotations, SynthesizedLocalKind.FunctionReturnValue, bodySyntax);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (9)
175
var
pendingExceptionLocal = new SynthesizedLocal(_F.CurrentFunction, TypeWithAnnotations.Create(exceptionType), SynthesizedLocalKind.TryAwaitPendingException, tryStatementSyntax);
177
var
pendingBranchVar = new SynthesizedLocal(_F.CurrentFunction, TypeWithAnnotations.Create(_F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingBranch, tryStatementSyntax);
285
SynthesizedLocal
pendingBranchVar)
315
SynthesizedLocal
returnValue;
363
SynthesizedLocal
returnValue;
897
public
SynthesizedLocal
returnValue;
953
out
SynthesizedLocal
returnValue)
988
public readonly
SynthesizedLocal
pendingCaughtException;
992
public readonly
SynthesizedLocal
pendingCatch;
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
745
((
SynthesizedLocal
)receiverTemp.LocalSymbol).SetIsKnownToReferToTempIfReferenceType();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
390
var
localSymbol = new SynthesizedLocal(_factory.CurrentFunction, TypeWithAnnotations.Create(outputPlaceholder.Type), SynthesizedLocalKind.LoweringTemp);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
81
if (variable is
SynthesizedLocal
local && local.SynthesizedKind == SynthesizedLocalKind.Spill)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
490
private BoundExpression HoistRefInitialization(
SynthesizedLocal
local, BoundAssignmentOperator node)
822
return HoistRefInitialization((
SynthesizedLocal
)leftLocal, node);
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (2)
132
var
origSynthesized = (
SynthesizedLocal
)_originalVariable;