9 references to WithElementType
Microsoft.CodeAnalysis.CSharp (9)
CodeGen\EmitArrayInitializer.cs (1)
649
arrayType = arrayType.
WithElementType
(TypeWithAnnotations.Create(elementType.EnumUnderlyingTypeOrSelf()));
FlowAnalysis\NullableWalker.cs (1)
4713
ArrayTypeSymbol arrayType => arrayType.
WithElementType
(inferredType),
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
238
var replacement = TypeWithAnnotations.Create(((ArrayTypeSymbol)lastParam.Type).
WithElementType
(original));
Symbols\ArrayTypeSymbol.cs (3)
402
result =
WithElementType
(newElementType);
408
return
WithElementType
(transform(ElementTypeWithAnnotations));
415
return
WithElementType
(elementType);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
157
return type.
WithElementType
(elementType);
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
337
return type.
WithElementType
(decodedElementType);
Symbols\TypeSymbolExtensions.cs (1)
2026
arrayType = arrayType.
WithElementType
(elementType);