ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (8)
227if (!IsExchangable(array.ElementType, foreachType, model.Compilation))
241var charType = model.Compilation.GetSpecialType(SpecialType.System_Char);
242if (!IsExchangable(charType, foreachType, model.Compilation))
254if (collectionType.OriginalDefinition.Equals(model.Compilation.GetTypeByMetadataName(typeof(ImmutableArray<>).FullName!)))
259if (!IsExchangable(indexer.ReturnType, foreachType, model.Compilation))
273model.Compilation.GetTypeByMetadataName).Where(t => !IsNullOrErrorType(t));
283IsExchangable(indexer.ReturnType, foreachType, model.Compilation))
314if (!IsExchangable(indexerImpl.ReturnType, foreachType, model.Compilation))
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (4)
278: semanticModel.Compilation.GlobalNamespace;
813semanticModel.Compilation.Assembly, scope, isRecord, structName, typeParameters, members: default);
849semanticModel.Compilation.Assembly, scope, isRecord, structName, typeParameters, members.ToImmutable());
869model.Compilation.GetSpecialType(SpecialType.System_Void),
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (7)
140var compilation = semanticModel.Compilation;
576(s, g) => CreateStringCheckStatement(s.Compilation, g, parameter, methodNameSuffix, options),
592(s, g) => CreateNumericCheckStatement(s.Compilation, g, parameter, includeZero, options),
640var compilation = semanticModel.Compilation;
693var argumentNullExceptionType = semanticModel.Compilation.ArgumentNullExceptionType();
711(TStatementSyntax)generator.CreateThrowArgumentNullExceptionStatement(semanticModel.Compilation, parameter),
845var (enumIsDefinedGenericMethod, enumIsDefinedNonGenericMethod) = GetEnumIsDefinedMethods(semanticModel.Compilation);