6 overrides of SynthesizedKind
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2349internal override SynthesizedLocalKind SynthesizedKind
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
60internal override SynthesizedLocalKind SynthesizedKind => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceLocalSymbol.cs (1)
227internal override SynthesizedLocalKind SynthesizedKind
Symbols\Synthesized\SynthesizedLocal.cs (1)
113internal sealed override SynthesizedLocalKind SynthesizedKind
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
42internal override SynthesizedLocalKind SynthesizedKind
Symbols\UpdatedContainingSymbolLocal.cs (1)
85internal override SynthesizedLocalKind SynthesizedKind => _underlyingLocal.SynthesizedKind;
53 references to SynthesizedKind
Microsoft.CodeAnalysis.CSharp (53)
CodeGen\EmitExpression.cs (2)
1568return ((BoundLocal)receiver).LocalSymbol.SynthesizedKind == SynthesizedLocalKind.FrameCache; 3006if (lhs.Kind == BoundKind.Local && ((BoundLocal)lhs).LocalSymbol.SynthesizedKind.IsLongLived())
CodeGen\EmitStatement.cs (7)
749Debug.Assert(local.RefKind == RefKind.None || local.SynthesizedKind.IsLongLived(), 801Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 1820kind: local.SynthesizedKind, 1822pdbAttributes: local.SynthesizedKind.PdbAttributes(), 1826isSlotReusable: local.SynthesizedKind.IsSlotReusable(_ilEmitStyle != ILEmitStyle.Release)); 1830!(local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 1882return local.SynthesizedKind.IsSlotReusable(_ilEmitStyle != ILEmitStyle.Release);
CodeGen\Optimizer.cs (6)
102if (local.SynthesizedKind == SynthesizedLocalKind.OptimizerTemp) 1908if (local.SynthesizedKind != SynthesizedLocalKind.OptimizerTemp) 1942Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.OptimizerTemp); 1955Debug.Assert(local.SynthesizedKind != SynthesizedLocalKind.OptimizerTemp); 1986(!_debugFriendly || !local.SynthesizedKind.IsLongLived()); 2010Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.LoweringTemp, "only lowering temps may be sometimes reused");
FlowAnalysis\LocalDataFlowPass.cs (1)
81if (symbol is LocalSymbol { SynthesizedKind: SynthesizedLocalKind.LocalStoreTracker })
Lowering\ClosureConversion\LambdaCapturedVariable.cs (5)
66switch (local.SynthesizedKind) 73return GeneratedNames.MakeHoistedLocalFieldName(local.SynthesizedKind, uniqueId++); 79Debug.Assert(local.SynthesizedKind != SynthesizedLocalKind.LocalStoreTracker); 81if (local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 89return GeneratedNames.MakeHoistedLocalFieldName(local.SynthesizedKind, uniqueId++, local.Name);
Lowering\Instrumentation\Instrumenter.cs (1)
222Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (3)
358Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter); 366if (original.Right is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } rightLocal) 516var targetSymbol = original.Locals.FirstOrDefault(l => l.SynthesizedKind == SynthesizedLocalKind.UserDefined);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
955Debug.Assert((object)spreadOperandAsSpan != rewrittenSpreadOperand || spreadOperandAsSpan is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.LoweringTemp });
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
1013startExpr is not BoundLocal { LocalSymbol.SynthesizedKind: not SynthesizedLocalKind.UserDefined })
Lowering\SpillSequenceSpiller.cs (8)
212if (!node.LocalSymbol.SynthesizedKind.IsLongLived()) 397if (local.LocalSymbol.SynthesizedKind == SynthesizedLocalKind.Spill || refKind != RefKind.None) 538Left: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } receiverRefLocal }, 541ValueTypeReceiver: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } } valueTypeReceiver, 550Left: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.None } referenceTypeClone }, 551Right: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.Ref } originalReceiverReference } 554Value: BoundLocal { LocalSymbol: { SynthesizedKind: SynthesizedLocalKind.LoweringTemp, RefKind: RefKind.None } } referenceTypeReceiver 1491if (local.SynthesizedKind.IsLongLived())
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (4)
145local.SynthesizedKind.MustSurviveStateMachineSuspension() && 220CaptureRefInitializer(variableInitializer, local.SynthesizedKind != SynthesizedLocalKind.UserDefined ? variableInitializer.Syntax : syntax); 225return refLocal.SynthesizedKind == SynthesizedLocalKind.Spill || 226(refLocal.SynthesizedKind == SynthesizedLocalKind.ForEachArray &&
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (8)
310Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.Spill || 311(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object)); 326if ((local.SynthesizedKind == SynthesizedLocalKind.UserDefined && local.ScopeDesignatorOpt?.Kind() != SyntaxKind.SwitchSection) || 327local.SynthesizedKind == SynthesizedLocalKind.LambdaDisplayClass) 466if (local?.SynthesizedKind == SynthesizedLocalKind.UserDefined) 738Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.UserDefined && 835Debug.Assert(leftLocal.SynthesizedKind == SynthesizedLocalKind.Spill || 836(leftLocal.SynthesizedKind == SynthesizedLocalKind.ForEachArray && leftLocal.Type.HasInlineArrayAttribute(out _) && leftLocal.Type.TryGetInlineArrayElementField() is object));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
156var synthesizedKind = local.SynthesizedKind; 269var synthesizedKind = local.SynthesizedKind;
Lowering\SyntheticBoundNodeFactory.cs (1)
438return (InstrumentationState?.IsSuppressed == false && left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter) ?
Symbols\LocalDeclarationKind.cs (1)
18/// Check the value of <see cref="LocalSymbol.SynthesizedKind"/> for the kind of synthesized variable.
Symbols\LocalSymbol.cs (1)
396return this.SynthesizedKind;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
44get { return _originalVariable.SynthesizedKind; }