9 references to WithElementType
Microsoft.CodeAnalysis.CSharp (9)
CodeGen\EmitArrayInitializer.cs (1)
647arrayType = arrayType.WithElementType(TypeWithAnnotations.Create(elementType.EnumUnderlyingTypeOrSelf()));
FlowAnalysis\NullableWalker.cs (1)
4930ArrayTypeSymbol arrayType => arrayType.WithElementType(inferredType),
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
232var replacement = TypeWithAnnotations.Create(((ArrayTypeSymbol)lastParam.Type).WithElementType(original));
Symbols\ArrayTypeSymbol.cs (3)
403result = WithElementType(newElementType); 409return WithElementType(transform(ElementTypeWithAnnotations)); 416return 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)
2027arrayType = arrayType.WithElementType(elementType);