298 references to SynthesizedLocalKind
Microsoft.CodeAnalysis (38)
CodeGen\LocalConstantDefinition.cs (1)
68=> new LocalSlotDebugInfo(SynthesizedLocalKind.UserDefined, LocalDebugId.None);
CodeGen\LocalDefinition.cs (1)
66SynthesizedLocalKind synthesizedKind,
CodeGen\LocalSlotDebugInfo.cs (2)
12public readonly SynthesizedLocalKind SynthesizedKind; 15public LocalSlotDebugInfo(SynthesizedLocalKind synthesizedKind, LocalDebugId id)
CodeGen\LocalSlotManager.cs (3)
124SynthesizedLocalKind kind, 177kind: SynthesizedLocalKind.EmitterTemp, 192SynthesizedLocalKind kind,
CodeGen\SignatureOnlyLocalDefinition.cs (1)
84=> new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
CodeGen\SynthesizedLocalOrdinalsDispenser.cs (3)
19private static long MakeKey(SynthesizedLocalKind localKind, int syntaxOffset) 33public int AssignLocalOrdinal(SynthesizedLocalKind localKind, int syntaxOffset) 59Debug.Assert(ordinal == 0 || localKind != SynthesizedLocalKind.UserDefined);
CodeGen\VariableSlotAllocator.cs (2)
21SynthesizedLocalKind kind, 36SynthesizedLocalKind synthesizedKind,
Emit\EditAndContinue\EncHoistedLocalInfo.cs (1)
20SlotInfo = new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
Emit\EditAndContinue\EncHoistedLocalMetadata.cs (2)
13public readonly SynthesizedLocalKind SynthesizedKind; 15public EncHoistedLocalMetadata(string name, Cci.ITypeReference type, SynthesizedLocalKind synthesizedKind)
Emit\EditAndContinue\EncLocalInfo.cs (1)
25SlotInfo = new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
Emit\EditAndContinue\EncVariableSlotAllocator.cs (2)
150SynthesizedLocalKind kind, 200SynthesizedLocalKind synthesizedKind,
Emit\EditAndContinueMethodDebugInformation.cs (5)
122mapBuilder.Add(new LocalSlotDebugInfo(SynthesizedLocalKind.LoweringTemp, default)); 126var kind = (SynthesizedLocalKind)((b & 0x3f) - 1); 164SynthesizedLocalKind kind = localSlot.SynthesizedKind; 165Debug.Assert(kind <= SynthesizedLocalKind.MaxValidValueForLocalVariableSerializedToDebugInformation);
Symbols\ILocalSymbolInternal.cs (1)
11SynthesizedLocalKind SynthesizedKind { get; }
SynthesizedLocalKind.cs (13)
246public static bool IsLongLived(this SynthesizedLocalKind kind) 248return kind >= SynthesizedLocalKind.UserDefined; 251public static bool MustSurviveStateMachineSuspension(this SynthesizedLocalKind kind) 265return IsLongLived(kind) && kind != SynthesizedLocalKind.ConditionalBranchDiscriminator; 268public static bool IsSlotReusable(this SynthesizedLocalKind kind, OptimizationLevel optimizations) 273public static bool IsSlotReusable(this SynthesizedLocalKind kind, bool isDebug) 285case SynthesizedLocalKind.UserDefined: 286case SynthesizedLocalKind.LambdaDisplayClass: 287case SynthesizedLocalKind.With: 295public static LocalVariableAttributes PdbAttributes(this SynthesizedLocalKind kind) 300return (kind != SynthesizedLocalKind.LambdaDisplayClass && kind != SynthesizedLocalKind.UserDefined && kind != SynthesizedLocalKind.With)
Microsoft.CodeAnalysis.CSharp (137)
CodeGen\CodeGenerator.cs (1)
177var localSymbol = new SynthesizedLocal(_method, _method.ReturnTypeWithAnnotations, SynthesizedLocalKind.FunctionReturnValue, bodySyntax);
CodeGen\EmitExpression.cs (1)
1528return ((BoundLocal)receiver).LocalSymbol.SynthesizedKind == SynthesizedLocalKind.FrameCache;
CodeGen\EmitStatement.cs (6)
776Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 1807!(local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 1829var localKind = local.SynthesizedKind; 1832Debug.Assert((local.Name == null) == (localKind != SynthesizedLocalKind.UserDefined)); 1837if (!localKind.IsLongLived() || localKind == SynthesizedLocalKind.InstrumentationPayload) 1849Debug.Assert(ordinal == 0 || localKind != SynthesizedLocalKind.UserDefined);
CodeGen\Optimizer.cs (8)
102if (local.SynthesizedKind == SynthesizedLocalKind.OptimizerTemp) 1841if (local.SynthesizedKind != SynthesizedLocalKind.OptimizerTemp) 1875Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.OptimizerTemp); 1888Debug.Assert(local.SynthesizedKind != SynthesizedLocalKind.OptimizerTemp); 1943Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.LoweringTemp, "only lowering temps may be sometimes reused"); 2226internal override SynthesizedLocalKind SynthesizedKind 2228get { return SynthesizedLocalKind.OptimizerTemp; } 2237SynthesizedLocalKind kind, SyntaxNode syntax
Compiler\MethodBodySynthesizer.cs (1)
430tmps[i] = new SynthesizedLocal(accessor, TypeWithAnnotations.Create(delegateType), SynthesizedLocalKind.LoweringTemp);
Compiler\MethodCompiler.cs (1)
1705if (field.SlotDebugInfo.SynthesizedKind == SynthesizedLocalKind.AwaiterField)
FlowAnalysis\LocalDataFlowPass.cs (1)
81if (symbol is LocalSymbol { SynthesizedKind: SynthesizedLocalKind.LocalStoreTracker })
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (2)
60internal override SynthesizedLocalKind SynthesizedKind => throw ExceptionUtilities.Unreachable(); 65SynthesizedLocalKind kind, SyntaxNode syntax
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (6)
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); 1032var newLocal = F.SynthesizedLocal(local.Type, pendingCatch.SyntaxOpt, kind: SynthesizedLocalKind.ExceptionFilterAwaitHoistedExceptionLocal);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (3)
89? F.SynthesizedLocal(asyncMethodBuilderMemberCollection.ResultType, syntax: F.Syntax, kind: SynthesizedLocalKind.AsyncMethodReturnValue) 118result = F.StateMachineField(awaiterType, fieldName, SynthesizedLocalKind.AwaiterField, slotIndex); 370var awaiterTemp = F.SynthesizedLocal(getAwaiter.Type, syntax: node.Syntax, kind: SynthesizedLocalKind.Awaiter);
Lowering\ClosureConversion\ClosureConversion.cs (2)
655LocalSymbol framePointer = new SynthesizedLocal(_topLevelMethod, TypeWithAnnotations.Create(frameType), SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntaxOpt); 1691var cacheLocal = F.SynthesizedLocal(type, kind: SynthesizedLocalKind.CachedAnonymousMethodDelegate);
Lowering\ClosureConversion\LambdaCapturedVariable.cs (5)
62if (local.SynthesizedKind == SynthesizedLocalKind.LambdaDisplayClass) 67if (local.SynthesizedKind == SynthesizedLocalKind.ExceptionFilterAwaitHoistedExceptionLocal) 72if (local.SynthesizedKind == SynthesizedLocalKind.InstrumentationPayload) 78Debug.Assert(local.SynthesizedKind != SynthesizedLocalKind.LocalStoreTracker); 80if (local.SynthesizedKind == SynthesizedLocalKind.UserDefined &&
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
126_methodPayload = methodBodyFactory.SynthesizedLocal(_payloadType, kind: SynthesizedLocalKind.InstrumentationPayload, syntax: methodBody.Syntax);
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
201var local = factory.SynthesizedLocal(condition.Type, synthesizedVariableSyntax, kind: SynthesizedLocalKind.ConditionalBranchDiscriminator);
Lowering\Instrumentation\Instrumenter.cs (1)
221Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (5)
181var scope = new Scope(factory.SynthesizedLocal(contextType, methodBody.Syntax, kind: SynthesizedLocalKind.LocalStoreTracker)); 275_scope.Open(_factory.SynthesizedLocal(_contextType, original.Syntax, kind: SynthesizedLocalKind.LocalStoreTracker)); 360Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter); 368if (original.Right is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } rightLocal) 518var targetSymbol = original.Locals.FirstOrDefault(l => l.SynthesizedKind == SynthesizedLocalKind.UserDefined);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
98var kind = _generateSequencePoints ? SynthesizedLocalKind.SwitchCasePatternMatching : SynthesizedLocalKind.LoweringTemp;
Lowering\LocalRewriter\LocalRewriter_Await.cs (1)
48kind: SynthesizedLocalKind.Spill);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1409SynthesizedLocalKind kind = SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
390var localSymbol = new SynthesizedLocal(_factory.CurrentFunction, TypeWithAnnotations.Create(outputPlaceholder.Type), SynthesizedLocalKind.LoweringTemp);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (3)
265kind: SynthesizedLocalKind.FixedReference); 327kind: SynthesizedLocalKind.FixedReference); 421kind: SynthesizedLocalKind.FixedReference);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (8)
123LocalSymbol enumeratorVar = _factory.SynthesizedLocal(enumeratorType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachEnumerator); 537LocalSymbol collectionTemp = _factory.SynthesizedLocal(collectionType, forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 548LocalSymbol positionVar = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex); 716LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 727LocalSymbol positionVar = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayIndex); 847LocalSymbol arrayVar = _factory.SynthesizedLocal(arrayType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArray); 867upperVar[dimension] = _factory.SynthesizedLocal(intType, syntax: forEachSyntax, kind: SynthesizedLocalKind.ForEachArrayLimit); 887positionVar[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_LockStatement.cs (2)
56BoundLocal boundLockTemp = _factory.StoreToTemp(rewrittenArgument, out assignmentToLockTemp, syntaxOpt: lockSyntax, kind: SynthesizedLocalKind.Lock); 103kind: SynthesizedLocalKind.LockTaken);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
55var countTemp = CaptureExpressionInTempIfNeeded(rewrittenCount, sideEffects, locals, SynthesizedLocalKind.Spill);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
89LocalSymbol resultTemp = _factory.SynthesizedLocal(node.Type, node.Syntax, kind: SynthesizedLocalKind.LoweringTemp);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (3)
175boundTemp = _factory.StoreToTemp(tempInit, out tempAssignment, kind: SynthesizedLocalKind.Using); 180boundTemp = _factory.StoreToTemp(rewrittenExpression, out tempAssignment, syntaxOpt: usingSyntax, kind: SynthesizedLocalKind.Using); 251BoundLocal boundTemp = _factory.StoreToTemp(tempInit, out tempAssignment, kind: SynthesizedLocalKind.Using);
Lowering\SpillSequenceSpiller.cs (14)
398if (local.LocalSymbol.SynthesizedKind == SynthesizedLocalKind.Spill || refKind != RefKind.None) 446kind: SynthesizedLocalKind.Spill, 467Left: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } receiverRefLocal }, 470ValueTypeReceiver: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } } valueTypeReceiver, 479Left: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.None } referenceTypeClone }, 480Right: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } originalReceiverReference } 483Value: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.None } } referenceTypeReceiver 925var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1064var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1152var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1210var clone = _F.SynthesizedLocal(receiver.Type, _F.Syntax, refKind: RefKind.None, kind: SynthesizedLocalKind.Spill); 1244var tmp = _F.SynthesizedLocal(node.Type, kind: SynthesizedLocalKind.Spill, syntax: _F.Syntax); 1393/// <see cref="SynthesizedLocalKind.Spill"/>. 1405LocalSymbol longLived = local.WithSynthesizedLocalKindAndSyntax(SynthesizedLocalKind.Spill, _F.Syntax);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
81if (variable is SynthesizedLocal local && local.SynthesizedKind == SynthesizedLocalKind.Spill)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (13)
125this.cachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), syntax: F.Syntax, kind: SynthesizedLocalKind.StateMachineCachedState); 146this.cachedThis = F.SynthesizedLocal(thisProxyReplacement.Type, syntax: F.Syntax, kind: SynthesizedLocalKind.FrameCache); 310Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.Spill); 325if ((local.SynthesizedKind == SynthesizedLocalKind.UserDefined && local.ScopeDesignatorOpt?.Kind() != SyntaxKind.SwitchSection) || 326local.SynthesizedKind == SynthesizedLocalKind.LambdaDisplayClass) 465if (local?.SynthesizedKind == SynthesizedLocalKind.UserDefined) 467string fieldName = GeneratedNames.MakeHoistedLocalFieldName(SynthesizedLocalKind.UserDefined, slotIndex, local.Name); 468return F.StateMachineField(type, fieldName, SynthesizedLocalKind.UserDefined, slotIndex); 492Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.Spill); 647const SynthesizedLocalKind kind = SynthesizedLocalKind.AwaitByRefSpill; 720Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 817Debug.Assert(leftLocal.SynthesizedKind == SynthesizedLocalKind.Spill);
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (2)
31: this(stateMachineType, type, name, new LocalSlotDebugInfo(SynthesizedLocalKind.LoweringTemp, LocalDebugId.None), slotIndex: -1, isPublic: isPublic) 36public StateMachineFieldSymbol(NamedTypeSymbol stateMachineType, TypeSymbol type, string name, SynthesizedLocalKind synthesizedKind, int slotIndex, bool isPublic)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (4)
156var synthesizedKind = local.SynthesizedKind; 172Debug.Assert(synthesizedKind == SynthesizedLocalKind.Spill); 268var synthesizedKind = local.SynthesizedKind; 274if (optimizationLevel == OptimizationLevel.Release && synthesizedKind == SynthesizedLocalKind.UserDefined)
Lowering\SyntheticBoundNodeFactory.cs (9)
233public StateMachineFieldSymbol StateMachineField(TypeSymbol type, string name, SynthesizedLocalKind synthesizedKind, int slotIndex) 451return (InstrumentationState?.IsSuppressed == false && left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter) ? 555SynthesizedLocalKind kind = SynthesizedLocalKind.LoweringTemp 584SynthesizedLocalKind.LoweringTemp, 1510SynthesizedLocalKind kind = SynthesizedLocalKind.LoweringTemp, 1522Debug.Assert(kind != SynthesizedLocalKind.UserDefined); 1597temp = new SynthesizedLocal(this.CurrentFunction, TypeWithAnnotations.Create(node.Type), SynthesizedLocalKind.LoweringTemp);
Operations\CSharpOperationFactory.cs (1)
1968SynthesizedLocalKind.LockTaken,
Symbols\LocalSymbol.cs (3)
31internal abstract SynthesizedLocalKind SynthesizedKind 42SynthesizedLocalKind kind, SyntaxNode syntax 385SynthesizedLocalKind ILocalSymbolInternal.SynthesizedKind
Symbols\Source\SourceLocalSymbol.cs (3)
228internal override SynthesizedLocalKind SynthesizedKind 230get { return SynthesizedLocalKind.UserDefined; } 234SynthesizedLocalKind kind, SyntaxNode syntax
Symbols\Synthesized\GeneratedNames.cs (6)
205internal static string MakeHoistedLocalFieldName(SynthesizedLocalKind kind, int slotIndex, string? localName = null) 207Debug.Assert((localName != null) == (kind == SynthesizedLocalKind.UserDefined)); 229if (kind == SynthesizedLocalKind.LambdaDisplayClass) 233else if (kind == SynthesizedLocalKind.UserDefined) 260internal static string? MakeSynthesizedLocalName(SynthesizedLocalKind kind, ref int uniqueId) 265if (kind == SynthesizedLocalKind.LambdaDisplayClass)
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 (4)
23private readonly SynthesizedLocalKind _kind; 37SynthesizedLocalKind kind, 74SynthesizedLocalKind kind, SyntaxNode syntax 113internal sealed override SynthesizedLocalKind SynthesizedKind
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (2)
42internal override SynthesizedLocalKind SynthesizedKind 124SynthesizedLocalKind kind, SyntaxNode syntax
Symbols\UpdatedContainingSymbolLocal.cs (2)
85internal override SynthesizedLocalKind SynthesizedKind => _underlyingLocal.SynthesizedKind; 100SynthesizedLocalKind kind, SyntaxNode syntax
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (5)
EEAssemblyBuilder.cs (2)
142SynthesizedLocalKind synthesizedKind, 152public override bool TryGetPreviousHoistedLocalSlotIndex(SyntaxNode currentDeclarator, Cci.ITypeReference currentType, SynthesizedLocalKind synthesizedKind, LocalDebugId currentId, DiagnosticBag diagnostics, out int slotIndex)
Symbols\EELocalSymbolBase.cs (3)
46internal sealed override SynthesizedLocalKind SynthesizedKind 48get { return SynthesizedLocalKind.UserDefined; } 57SynthesizedLocalKind kind, SyntaxNode syntax
Microsoft.CodeAnalysis.UnitTests (4)
Emit\CustomDebugInfoTests.cs (4)
201new LocalSlotDebugInfo(SynthesizedLocalKind.UserDefined, new LocalDebugId(-1, 10)), 202new LocalSlotDebugInfo(SynthesizedLocalKind.TryAwaitPendingCaughtException, new LocalDebugId(-20000, 10))); 301new LocalSlotDebugInfo(SynthesizedLocalKind.UserDefined, new LocalDebugId(-1, 10)), 302new LocalSlotDebugInfo(SynthesizedLocalKind.TryAwaitPendingCaughtException, new LocalDebugId(-20000, 10)));
Microsoft.CodeAnalysis.VisualBasic (110)
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (2)
36Friend Overrides ReadOnly Property SynthesizedKind As SynthesizedLocalKind 38Return SynthesizedLocalKind.UserDefined
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
112If local.SynthesizedKind = SynthesizedLocalKind.UserDefined Then 117Return local.SynthesizedKind <> SynthesizedLocalKind.ConditionalBranchDiscriminator
Binding\Binder_AnonymousTypes.vb (1)
346local = New SynthesizedLocal(Me.ContainingMember, Me._fields(fieldIndex).Type, SynthesizedLocalKind.LoweringTemp)
Binding\Binder_Delegates.vb (1)
451Dim tempParamSymbol = New SynthesizedLocal(toMethod, parameterType, SynthesizedLocalKind.LoweringTemp)
Binding\Binder_Lambda.vb (1)
1103Return New SynthesizedLocal(lambdaSymbol, lambdaSymbol.ReturnType, SynthesizedLocalKind.FunctionReturnValue, header)
Binding\MethodBodyBinder.vb (1)
80Return New SynthesizedLocal(methodSymbol, methodSymbol.ReturnType, SynthesizedLocalKind.FunctionReturnValue, DirectCast(methodBlock, OperatorBlockSyntax).BlockStatement)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (2)
195Dim localMyFieldBoxed As LocalSymbol = New SynthesizedLocal(Me, objectType, SynthesizedLocalKind.LoweringTemp) 196Dim localOtherFieldBoxed As LocalSymbol = New SynthesizedLocal(Me, objectType, SynthesizedLocalKind.LoweringTemp)
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (3)
74Dim local = New SynthesizedLocal(accessor, accessor.ReturnType, SynthesizedLocalKind.LoweringTemp) 174Dim handlerLocal = New SynthesizedLocal(accessor, handledEvent.delegateCreation.Type, SynthesizedLocalKind.LoweringTemp) 210Dim withEventsLocal = New SynthesizedLocal(accessor, withEventsValue.Type, SynthesizedLocalKind.LoweringTemp)
CodeGen\EmitStatement.vb (3)
1332Debug.Assert((local.Name Is Nothing) = (localKind <> SynthesizedLocalKind.UserDefined)) 1345Debug.Assert(ordinal = 0 OrElse localKind <> SynthesizedLocalKind.UserDefined) 1456synthesizedKind:=SynthesizedLocalKind.EmitterTemp,
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
1265Debug.Assert(local.SynthesizedKind <> SynthesizedLocalKind.OptimizerTemp) 1291Debug.Assert(local.SynthesizedKind = SynthesizedLocalKind.OptimizerTemp)
CodeGen\Optimizer\StackScheduler.DummyLocal.vb (1)
16MyBase.New(container, Nothing, SynthesizedLocalKind.OptimizerTemp)
Compilation\MethodCompiler.vb (1)
1713If field.SlotDebugInfo.SynthesizedKind = SynthesizedLocalKind.AwaiterField Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
35Dim awaiterTemp As LocalSymbol = Me.F.SynthesizedLocal(awaiterType, kind:=SynthesizedLocalKind.Awaiter, syntax:=node.Syntax)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (2)
85Me._exprRetValue = Me.F.SynthesizedLocal(Me._owner._resultType, SynthesizedLocalKind.StateMachineReturnValue, F.Syntax) 118result = Me.F.StateMachineField(awaiterType, Me._method, fieldName, SynthesizedLocalKind.AwaiterField, slotIndex, accessibility:=Accessibility.Friend)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
121_methodPayload = methodBodyFactory.SynthesizedLocal(_payloadType, kind:=SynthesizedLocalKind.InstrumentationPayload, syntax:=methodBody.Syntax)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (2)
46lazyConditionalBranchLocal = New SynthesizedLocal(currentMethodOrLambda, condition.Type, SynthesizedLocalKind.ConditionalBranchDiscriminator, synthesizedVariableSyntax) 48Debug.Assert(lazyConditionalBranchLocal.SynthesizedKind = SynthesizedLocalKind.ConditionalBranchDiscriminator)
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
63Me._methodValue = Me.F.SynthesizedLocal(F.CurrentMethod.ReturnType, SynthesizedLocalKind.StateMachineReturnValue, F.Syntax)
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (2)
45Case SynthesizedLocalKind.LambdaDisplayClass 49Case SynthesizedLocalKind.With
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
268Dim isDelegateRelaxationFrame = If(TryCast(captured, SynthesizedLocal)?.SynthesizedKind = SynthesizedLocalKind.DelegateRelaxationReceiver, False) 504Dim framePointer = New SynthesizedLocal(Me._topLevelMethod, frameType, SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntax)
Lowering\LocalRewriter\LocalRewriter.vb (3)
695kind As SynthesizedLocalKind, 701Debug.Assert(kind = SynthesizedLocalKind.LoweringTemp OrElse syntaxOpt IsNot Nothing) 776valueOpt = CacheToLocalIfNotConst(container, value, temporariesBuilder, sideEffectsBuilder, SynthesizedLocalKind.LoweringTemp, syntaxOpt:=Nothing)
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
93boundTemp = New BoundLocal(syntax, New SynthesizedLocal(Me._currentMethodOrLambda, receiverType, SynthesizedLocalKind.LoweringTemp), receiverType)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
510Dim temp = New SynthesizedLocal(Me._currentMethodOrLambda, node.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
56Dim temp As New SynthesizedLocal(_currentMethodOrLambda, node.LeftOperand.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_Call.vb (2)
236Dim temp = New SynthesizedLocal(Me._currentMethodOrLambda, rewrittenArgument.Type, SynthesizedLocalKind.LoweringTemp) 323Dim temp = New SynthesizedLocal(Me._currentMethodOrLambda, argument.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (1)
66temp = New SynthesizedLocal(Me._currentMethodOrLambda, receiverType, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
72tempVariableSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, rewrittenTestExpressionType, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_DelegateCreation.vb (1)
30captureTemp = New SynthesizedLocal(Me._currentMethodOrLambda, placeholderOpt.Type, SynthesizedLocalKind.DelegateRelaxationReceiver, syntaxOpt:=placeholderOpt.Syntax)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (5)
93Dim tempLocal = New SynthesizedLocal(Me._currentMethodOrLambda, node.ControlVariable.Type, SynthesizedLocalKind.LoweringTemp) 227SynthesizedLocalKind.ForEachArray) 249SynthesizedLocalKind.ForEachArrayIndex) 355kind As SynthesizedLocalKind 575SynthesizedLocalKind.ForEachEnumerator)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (6)
77rewrittenInitialValue = CacheToLocalIfNotConst(_currentMethodOrLambda, rewrittenInitialValue, locals, cacheAssignments, SynthesizedLocalKind.ForInitialValue, blockSyntax) 78rewrittenLimit = CacheToLocalIfNotConst(_currentMethodOrLambda, rewrittenLimit, locals, cacheAssignments, SynthesizedLocalKind.ForLimit, blockSyntax) 79rewrittenStep = CacheToLocalIfNotConst(_currentMethodOrLambda, rewrittenStep, locals, cacheAssignments, SynthesizedLocalKind.ForStep, blockSyntax) 94positiveFlag = New SynthesizedLocal(_currentMethodOrLambda, greaterThanOrEqual.Type, SynthesizedLocalKind.ForDirection, blockSyntax) 151positiveFlag = New SynthesizedLocal(_currentMethodOrLambda, isUp.Type, SynthesizedLocalKind.ForDirection, blockSyntax) 418Dim loopObjLocal = New SynthesizedLocal(Me._currentMethodOrLambda, objType, SynthesizedLocalKind.ForInitialValue, blockSyntax)
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (5)
118Dim arrayTemp As LocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, arrayCreation.Type, SynthesizedLocalKind.LoweringTemp) 207Dim arrayTemp As LocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, arrayCreation.Type, SynthesizedLocalKind.LoweringTemp) 753copyBackFlagArrayTemp = New SynthesizedLocal(Me._currentMethodOrLambda, copyBackFlagArray.Type, SynthesizedLocalKind.LoweringTemp) 757valueArrayTemp = New SynthesizedLocal(Me._currentMethodOrLambda, argumentsArray.Type, SynthesizedLocalKind.LoweringTemp) 839Dim valueTemp = New SynthesizedLocal(Me._currentMethodOrLambda, callerInvocation.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
118temp = New SynthesizedLocal(Me._currentMethodOrLambda, operand.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (2)
210tempLocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, expressionType, SynthesizedLocalKind.LoweringTemp) 318Dim tempLocalSymbol As LocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, expressionType, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
236Dim groupLocal = New SynthesizedLocal(Me._currentMethodOrLambda, node.CapturedGroupOpt.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
55Dim temp As LocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, receiver.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
234Dim tempLocal = New SynthesizedLocal(Me._currentMethodOrLambda, selectExprType, SynthesizedLocalKind.SelectCaseValue, selectStatementSyntax)
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (3)
50Dim tempLockObjectLocal As LocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, objectType, SynthesizedLocalKind.Lock, syntaxNode.SyncLockStatement) 183tempLockTaken = New SynthesizedLocal(Me._currentMethodOrLambda, enterMethod.Parameters(1).Type, SynthesizedLocalKind.LockTaken, DirectCast(syntaxNode.Parent, SyncLockStatementSyntax)) 185tempLockTaken = New SynthesizedLocal(Me._currentMethodOrLambda, enterMethod.Parameters(1).Type, SynthesizedLocalKind.LoweringTemp)
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (4)
43_currentLineTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorCurrentLine, DirectCast(nodeFactory.Syntax, StatementSyntax)) 147_unstructuredExceptionHandling.ActiveHandlerTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorActiveHandler, DirectCast(nodeFactory.Syntax, StatementSyntax)) 149_unstructuredExceptionHandling.ResumeTargetTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorResumeTarget, DirectCast(nodeFactory.Syntax, StatementSyntax)) 153_unstructuredExceptionHandling.CurrentStatementTemporary = New SynthesizedLocal(_topMethod, int32, SynthesizedLocalKind.OnErrorCurrentStatement, DirectCast(nodeFactory.Syntax, StatementSyntax))
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
131SynthesizedLocalKind.Using,
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
149Dim local = New BoundLocal(syntax, New SynthesizedLocal(Me._currentMethodOrLambda, type, SynthesizedLocalKind.LoweringTemp), type) 281Dim local As New SynthesizedLocal(Me._topMethod, type, SynthesizedLocalKind.XmlInExpressionLambda, Me._currentMethodOrLambda.Syntax)
Lowering\StateMachineRewriter\StateMachineFieldSymbol.vb (2)
35New LocalSlotDebugInfo(SynthesizedLocalKind.LoweringTemp, LocalDebugId.None), 46synthesizedKind As SynthesizedLocalKind,
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (4)
95CachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), SynthesizedLocalKind.StateMachineCachedState, F.Syntax) 259Debug.Assert(local.SynthesizedKind = SynthesizedLocalKind.Spill) 268If local.SynthesizedKind = SynthesizedLocalKind.UserDefined OrElse local.SynthesizedKind = SynthesizedLocalKind.LambdaDisplayClass Then
Lowering\StateMachineRewriter\StateMachineRewriter.vb (4)
183If local.SynthesizedKind = SynthesizedLocalKind.ConditionalBranchDiscriminator Then 344Case SynthesizedLocalKind.LambdaDisplayClass 346Case SynthesizedLocalKind.UserDefined 348Case SynthesizedLocalKind.With
Lowering\SyntheticBoundNodeFactory.vb (3)
121Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, synthesizedKind As SynthesizedLocalKind, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol 400Public Function SynthesizedLocal(type As TypeSymbol, Optional kind As SynthesizedLocalKind = SynthesizedLocalKind.LoweringTemp, Optional syntax As SyntaxNode = Nothing) As LocalSymbol
Lowering\UseTwiceRewriter.vb (3)
144Dim temp = New SynthesizedLocal(containingMember, type, SynthesizedLocalKind.LoweringTemp) 253Dim temp = New SynthesizedLocal(containingMember, lvalue.Type, SynthesizedLocalKind.LoweringTemp, isByRef:=True) 406Dim temp = New SynthesizedLocal(containingMember, boundArgument.Type, SynthesizedLocalKind.LoweringTemp)
Lowering\WithExpressionRewriter.vb (2)
89Dim local As New SynthesizedLocal(state.ContainingMember, type, SynthesizedLocalKind.With, _withSyntax) 114Dim local As New SynthesizedLocal(state.ContainingMember, type, SynthesizedLocalKind.With, _withSyntax, isByRef:=True)
Operations\VisualBasicOperationFactory.vb (2)
1173SynthesizedLocalKind.ForInitialValue, boundForToStatement.Syntax), 1416SynthesizedLocalKind.LockTaken,
Symbols\Source\LocalSymbol.vb (5)
121Friend MustOverride ReadOnly Property SynthesizedKind As SynthesizedLocalKind 465Private ReadOnly Property ILocalSymbolInternal_SynthesizedKind As SynthesizedLocalKind Implements ILocalSymbolInternal.SynthesizedKind 517Friend Overrides ReadOnly Property SynthesizedKind As SynthesizedLocalKind 519Return SynthesizedLocalKind.UserDefined 965Friend Overrides ReadOnly Property SynthesizedKind As SynthesizedLocalKind
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
266New SynthesizedLocal(Me, _containingType, SynthesizedLocalKind.LoweringTemp), 357New SynthesizedLocal(Me, _containingType, SynthesizedLocalKind.LoweringTemp),
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
381tmps(i) = New SynthesizedLocal(accessor, delegateType, SynthesizedLocalKind.LoweringTemp)
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
29FunctionLocal = New SynthesizedLocal(Me, ResultType, SynthesizedLocalKind.FunctionReturnValue, Syntax)
Symbols\SynthesizedSymbols\GeneratedNames.vb (3)
214Friend Shared Function MakeSynthesizedLocalName(kind As SynthesizedLocalKind, ByRef uniqueId As Integer) As String 220Case SynthesizedLocalKind.LambdaDisplayClass 224Case SynthesizedLocalKind.With
Symbols\SynthesizedSymbols\SynthesizedLocal.vb (4)
16Private ReadOnly _kind As SynthesizedLocalKind 22kind As SynthesizedLocalKind, 75Friend Overrides ReadOnly Property SynthesizedKind As SynthesizedLocalKind 89Return _kind = SynthesizedLocalKind.FunctionReturnValue
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
EEAssemblyBuilder.vb (2)
147synthesizedKind As SynthesizedLocalKind, 173Public Overrides Function TryGetPreviousHoistedLocalSlotIndex(currentDeclarator As SyntaxNode, currentType As ITypeReference, synthesizedKind As SynthesizedLocalKind, currentId As LocalDebugId, diagnostics As DiagnosticBag, <Out> ByRef slotIndex As Integer) As Boolean
Symbols\EELocalSymbolBase.vb (2)
44Friend NotOverridable Overrides ReadOnly Property SynthesizedKind As SynthesizedLocalKind 46Return SynthesizedLocalKind.UserDefined