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