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