60 references to SynthesizedLocal
Microsoft.CodeAnalysis.CSharp (60)
Compiler\MethodBodySynthesizer.Lowered.cs (4)
55LocalSymbol i = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32)); 56LocalSymbol hashCode = F.SynthesizedLocal(F.SpecialType(SpecialType.System_UInt32)); 153LocalSymbol i = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32)); 154LocalSymbol hashCode = F.SynthesizedLocal(F.SpecialType(SpecialType.System_UInt32));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
407LocalSymbol obj = _F.SynthesizedLocal(_F.SpecialType(SpecialType.System_Object)); 435var ex = _F.SynthesizedLocal(_F.WellKnownType(WellKnownType.System_Exception)); 555var catchTemp = _F.SynthesizedLocal(catchType); 1068var newLocal = F.SynthesizedLocal(local.Type, pendingCatch.SyntaxOpt, kind: SynthesizedLocalKind.ExceptionFilterAwaitHoistedExceptionLocal);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (7)
96? F.SynthesizedLocal(asyncMethodBuilderMemberCollection.ResultType, syntax: F.Syntax, kind: SynthesizedLocalKind.AsyncMethodReturnValue) 155var exceptionLocal = F.SynthesizedLocal(F.WellKnownType(WellKnownType.System_Exception)); 378var awaiterTemp = F.SynthesizedLocal(getAwaiter.Type, syntax: node.Syntax, kind: SynthesizedLocalKind.Awaiter); 554var criticalNotifyCompletedTemp = F.SynthesizedLocal( 558var notifyCompletionTemp = F.SynthesizedLocal( 562LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null; 623LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null;
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
337var versionSymbol = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int16)); 387instSymbol = F.SynthesizedLocal(this.stateMachineType);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1722var cacheLocal = F.SynthesizedLocal(type, kind: SynthesizedLocalKind.CachedAnonymousMethodDelegate);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
841var param = _bound.SynthesizedLocal(ParameterExpressionType); 893var param = _bound.SynthesizedLocal(ParameterExpressionType);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
126_methodPayload = methodBodyFactory.SynthesizedLocal(_payloadType, kind: SynthesizedLocalKind.InstrumentationPayload, syntax: methodBody.Syntax);
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
182var local = factory.SynthesizedLocal(condition.Type, synthesizedVariableSyntax, kind: SynthesizedLocalKind.ConditionalBranchDiscriminator);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
181var scope = new Scope(factory.SynthesizedLocal(contextType, methodBody.Syntax, kind: SynthesizedLocalKind.LocalStoreTracker)); 280_scope.Open(_factory.SynthesizedLocal(_contextType, original.Syntax, kind: SynthesizedLocalKind.LocalStoreTracker));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (2)
178var stateLocal = F.SynthesizedLocal(stateField.Type); 308_methodValue = F.SynthesizedLocal(result.Type);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1066_whenNodeIdentifierLocal ??= _factory.SynthesizedLocal(_factory.SpecialType(SpecialType.System_Int32));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
99LocalSymbol temp = _factory.SynthesizedLocal(dagTemp.Type, syntax: _node, kind: kind);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
325LocalSymbol rhsTemp = _factory.SynthesizedLocal(exprType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
961BoundLocal cache = _factory.Local(_factory.SynthesizedLocal(receiverType)); 968var intermediateRef = _factory.Local(_factory.SynthesizedLocal(receiverType, refKind: RefKind.Ref));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1340var iterationVariable = _factory.SynthesizedLocal(enumeratorInfo.ElementType, node.Syntax);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
96temp = _factory.SynthesizedLocal(receiverType);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
517pinnedTemp = factory.SynthesizedLocal(initializerType, isPinned: true);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (9)
158LocalSymbol enumeratorVar = _factory.SynthesizedLocal(enumeratorType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachEnumerator); 424LocalSymbol disposableVar = _factory.SynthesizedLocal(idisposableTypeSymbol); 610LocalSymbol collectionTemp = _factory.SynthesizedLocal(collectionType, forEachSyntax, kind: SynthesizedLocalKind.ForEachArray, refKind: collectionTempRefKind); 626LocalSymbol positionVar = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex); 904LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 915LocalSymbol positionVar = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex); 1060LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 1080upperVar[dimension] = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayLimit); 1100positionVar[dimension] = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (1)
120LocalSymbol resultTemp = _factory.SynthesizedLocal(node.Type, node.Syntax, kind: SynthesizedLocalKind.LoweringTemp);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
59var outLocal = _factory.SynthesizedLocal(localType);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
89LocalSymbol resultTemp = _factory.SynthesizedLocal(node.Type, node.Syntax, kind: SynthesizedLocalKind.LoweringTemp);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
590LocalSymbol tempSymbol = _factory.SynthesizedLocal(operandType);
Lowering\SpillSequenceSpiller.cs (7)
996var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1056var cache = _F.Local(_F.SynthesizedLocal(receiverType)); 1135var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1150var tmp = _F.SynthesizedLocal(condition.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1250var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1306var clone = _F.SynthesizedLocal(receiver.Type, _F.Syntax, refKind: RefKind.None, kind: SynthesizedLocalKind.Spill); 1336var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
127this.cachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), syntax: F.Syntax, kind: SynthesizedLocalKind.StateMachineCachedState); 151this.cachedThis = F.SynthesizedLocal(thisProxyReplacement.Type, syntax: F.Syntax, kind: SynthesizedLocalKind.FrameCache); 565var sacrificialTemp = F.SynthesizedLocal(type, refKind: RefKind.Ref);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
293LocalSymbol stateMachineVariable = F.SynthesizedLocal(frameType, null); 427var resultVariable = F.SynthesizedLocal(stateMachineType, null);
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
59var builderLocalSymbol = F.SynthesizedLocal(stringBuilder);