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