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