1 write to BaseTypeOrInterfaceOpt
Microsoft.CodeAnalysis.Features (1)
GenerateType\AbstractGenerateTypeService.State.cs (1)
258
BaseTypeOrInterfaceOpt
= (INamedTypeSymbol)baseType.WithNullableAnnotation(NullableAnnotation.None);
19 references to BaseTypeOrInterfaceOpt
Microsoft.CodeAnalysis.Features (19)
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
590
if (_state.
BaseTypeOrInterfaceOpt
!= null)
593
var members = from t in _state.
BaseTypeOrInterfaceOpt
.GetBaseTypesAndThis()
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (10)
129
_state.
BaseTypeOrInterfaceOpt
.InstanceConstructors.Any(
137
if (_state.
BaseTypeOrInterfaceOpt
!= null)
139
if (_state.
BaseTypeOrInterfaceOpt
.TypeKind == TypeKind.Interface || argumentList.Count == 0)
155
var delegatedConstructor = _state.
BaseTypeOrInterfaceOpt
.InstanceConstructors.FirstOrDefault(
277
if (_state.
BaseTypeOrInterfaceOpt
== null || _state.
BaseTypeOrInterfaceOpt
.TypeKind == TypeKind.Interface)
282
return RemoveUnavailableTypeParameters(_state.
BaseTypeOrInterfaceOpt
);
287
if (_state.
BaseTypeOrInterfaceOpt
!= null && _state.
BaseTypeOrInterfaceOpt
.TypeKind == TypeKind.Interface)
289
var type = RemoveUnavailableTypeParameters(_state.
BaseTypeOrInterfaceOpt
);
GenerateType\AbstractGenerateTypeService.State.cs (7)
170
IsAttribute =
BaseTypeOrInterfaceOpt
!= null &&
BaseTypeOrInterfaceOpt
.Equals(semanticModel.Compilation.AttributeType());
171
IsException =
BaseTypeOrInterfaceOpt
!= null &&
BaseTypeOrInterfaceOpt
.Equals(semanticModel.Compilation.ExceptionType());
222
if (this.
BaseTypeOrInterfaceOpt
is not null)
270
(
BaseTypeOrInterfaceOpt
== null ||
BaseTypeOrInterfaceOpt
.TypeKind == TypeKind.Interface))