7 references to SingleElement
Microsoft.CodeAnalysis.CSharp (7)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
427
? SynthesizedReadOnlyListKind.
SingleElement
439
SynthesizedReadOnlyListKind.
SingleElement
=> this.VisitExpression((BoundExpression)elements.Single()),
Symbols\Synthesized\GeneratedNames.cs (1)
481
SynthesizedReadOnlyListKind.
SingleElement
=> "<>z__ReadOnlySingleElementList",
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (4)
278
SynthesizedReadOnlyListKind.
SingleElement
=> typeParameter,
284
_enumeratorType = kind == SynthesizedReadOnlyListKind.
SingleElement
? new SynthesizedReadOnlyListEnumeratorTypeSymbol(this, typeParameter) : null;
285
_field = new SynthesizedFieldSymbol(this, fieldType, kind == SynthesizedReadOnlyListKind.
SingleElement
? "_item" : "_items", isReadOnly: true);
318
new SynthesizedReadOnlyListConstructor(this, fieldType, kind == SynthesizedReadOnlyListKind.
SingleElement
? "item" : "items"));