64 references to SynthesizedLocal
Microsoft.CodeAnalysis.CSharp (64)
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)
454LocalSymbol obj = _F.SynthesizedLocal(_F.SpecialType(SpecialType.System_Object)); 488var ex = _F.SynthesizedLocal(_F.WellKnownType(WellKnownType.System_Exception)); 615var catchTemp = _F.SynthesizedLocal(catchType); 1142var 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)); 379var awaiterTemp = F.SynthesizedLocal(getAwaiter.Type, syntax: node.Syntax, kind: SynthesizedLocalKind.Awaiter); 555var criticalNotifyCompletedTemp = F.SynthesizedLocal( 559var notifyCompletionTemp = F.SynthesizedLocal( 563LocalSymbol thisTemp = (F.CurrentType.TypeKind == TypeKind.Class) ? F.SynthesizedLocal(F.CurrentType) : null; 624LocalSymbol 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\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
256var hoistedLocal = @this._factory.SynthesizedLocal(type, syntax: local.GetDeclaratorSyntax(), kind: SynthesizedLocalKind.AwaitByRefSpill);
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)
398LocalSymbol rhsTemp = _factory.SynthesizedLocal(exprType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
1005BoundLocal cache = _factory.Local(_factory.SynthesizedLocal(receiverType)); 1012var intermediateRef = _factory.Local(_factory.SynthesizedLocal(receiverType, refKind: receiverTemp.LocalSymbol.RefKind));
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 (4)
258pinnedTemp = factory.SynthesizedLocal( 320pinnedTemp = factory.SynthesizedLocal( 452pinnedTemp = factory.SynthesizedLocal( 517pinnedTemp = factory.SynthesizedLocal(initializerType, isPinned: true);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (9)
163LocalSymbol enumeratorVar = _factory.SynthesizedLocal(enumeratorType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachEnumerator); 429LocalSymbol disposableVar = _factory.SynthesizedLocal(idisposableTypeSymbol); 615LocalSymbol collectionTemp = _factory.SynthesizedLocal(collectionType, forEachSyntax, kind: SynthesizedLocalKind.ForEachArray, refKind: collectionTempRefKind); 631LocalSymbol positionVar = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex); 909LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 920LocalSymbol positionVar = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex); 1065LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 1085upperVar[dimension] = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayLimit); 1105positionVar[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)
1007var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1067var cache = _F.Local(_F.SynthesizedLocal(receiverType)); 1146var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1161var tmp = _F.SynthesizedLocal(condition.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1261var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1317var clone = _F.SynthesizedLocal(receiver.Type, _F.Syntax, refKind: RefKind.None, kind: SynthesizedLocalKind.Spill); 1347var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
129this.cachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), syntax: F.Syntax, kind: SynthesizedLocalKind.StateMachineCachedState); 153this.cachedThis = F.SynthesizedLocal(thisProxyReplacement.Type, syntax: F.Syntax, kind: SynthesizedLocalKind.FrameCache);
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
97var sacrificialTemp = _factory.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);