30 references to UserDefined
Microsoft.CodeAnalysis (5)
CodeGen\LocalConstantDefinition.cs (1)
68
=> new LocalSlotDebugInfo(SynthesizedLocalKind.
UserDefined
, LocalDebugId.None);
CodeGen\SynthesizedLocalOrdinalsDispenser.cs (1)
59
Debug.Assert(ordinal == 0 || localKind != SynthesizedLocalKind.
UserDefined
);
SynthesizedLocalKind.cs (3)
248
return kind >= SynthesizedLocalKind.
UserDefined
;
285
case SynthesizedLocalKind.
UserDefined
:
300
return (kind != SynthesizedLocalKind.LambdaDisplayClass && kind != SynthesizedLocalKind.
UserDefined
&& kind != SynthesizedLocalKind.With)
Microsoft.CodeAnalysis.CSharp (23)
CodeGen\EmitStatement.cs (4)
801
Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.
UserDefined
&&
1837
!(local.SynthesizedKind == SynthesizedLocalKind.
UserDefined
&&
1862
Debug.Assert((local.Name == null) == (localKind != SynthesizedLocalKind.
UserDefined
));
1879
Debug.Assert(ordinal == 0 || localKind != SynthesizedLocalKind.
UserDefined
);
CodeGen\Optimizer.cs (1)
1005
localSymbol.SynthesizedKind == SynthesizedLocalKind.
UserDefined
&&
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
100
if (local.SynthesizedKind == SynthesizedLocalKind.
UserDefined
&&
Lowering\Instrumentation\Instrumenter.cs (1)
222
Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.
UserDefined
} or BoundParameter);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (3)
362
Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.
UserDefined
} or BoundParameter);
370
if (original.Right is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.
UserDefined
} rightLocal)
521
var targetSymbol = original.Locals.FirstOrDefault(l => l.SynthesizedKind == SynthesizedLocalKind.
UserDefined
);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
1013
startExpr is not BoundLocal { LocalSymbol.SynthesizedKind: not SynthesizedLocalKind.
UserDefined
})
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
220
CaptureRefInitializer(variableInitializer, local.SynthesizedKind != SynthesizedLocalKind.
UserDefined
? variableInitializer.Syntax : syntax);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (5)
331
if ((local.SynthesizedKind == SynthesizedLocalKind.
UserDefined
&& local.ScopeDesignatorOpt?.Kind() != SyntaxKind.SwitchSection) ||
477
if (local?.SynthesizedKind == SynthesizedLocalKind.
UserDefined
)
479
string fieldName = GeneratedNames.MakeHoistedLocalFieldName(SynthesizedLocalKind.
UserDefined
, slotIndex, local.Name);
480
createdField = F.StateMachineField(type, fieldName, SynthesizedLocalKind.
UserDefined
, slotIndex);
763
Debug.Assert(local.SynthesizedKind == SynthesizedLocalKind.
UserDefined
&&
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
279
if (optimizationLevel == OptimizationLevel.Release && synthesizedKind == SynthesizedLocalKind.
UserDefined
)
Lowering\SyntheticBoundNodeFactory.cs (2)
446
return (InstrumentationState?.IsSuppressed == false && left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.
UserDefined
} or BoundParameter) ?
1664
Debug.Assert(kind != SynthesizedLocalKind.
UserDefined
);
Symbols\Source\SourceLocalSymbol.cs (1)
229
get { return SynthesizedLocalKind.
UserDefined
; }
Symbols\Synthesized\GeneratedNames.cs (2)
211
Debug.Assert((localName != null) == (kind == SynthesizedLocalKind.
UserDefined
));
237
else if (kind == SynthesizedLocalKind.
UserDefined
)
Microsoft.CodeAnalysis.UnitTests (2)
Emit\CustomDebugInfoTests.cs (2)
197
new LocalSlotDebugInfo(SynthesizedLocalKind.
UserDefined
, new LocalDebugId(-1, 10)),
347
new LocalSlotDebugInfo(SynthesizedLocalKind.
UserDefined
, new LocalDebugId(-1, 10)),