14 references to StripRefIfNeeded
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
73
context.ReportDiagnostic(CreateDiagnostic(descriptor, declarationStatement, declaredType.
StripRefIfNeeded
().Span, typeStyle.Severity));
CSharpTypeStyleHelper.State.cs (2)
78
var declaredTypeSymbol = semanticModel.GetTypeInfo(variableDeclaration.Type.
StripRefIfNeeded
(), cancellationToken).Type;
96
? IsMadeOfSpecialTypes(semanticModel.GetTypeInfo(typeSyntax.
StripRefIfNeeded
()).Type)
CSharpUseExplicitTypeHelper.cs (4)
44
if (!variableDeclaration.Type.
StripRefIfNeeded
().IsVar)
56
if (!forEachStatement.Type.
StripRefIfNeeded
().IsVar)
80
if (!typeName.
StripRefIfNeeded
().IsTypeInferred(semanticModel))
149
var declaredType = semanticModel.GetTypeInfo(typeName.
StripRefIfNeeded
(), cancellationToken).Type;
CSharpUseImplicitTypeHelper.cs (4)
33
if (typeName.
StripRefIfNeeded
().IsVar)
49
var type = variableDeclaration.Type.
StripRefIfNeeded
();
95
Debug.Assert(!typeName.
StripRefIfNeeded
().IsVar, "'var' special case should have prevented analysis of this variable.");
293
var declaredType = semanticModel.GetTypeInfo(typeName.
StripRefIfNeeded
(), cancellationToken).Type;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
UseExplicitTypeCodeFixProvider.cs (2)
88
typeSyntax = typeSyntax.
StripRefIfNeeded
();
133
typeSyntax = typeSyntax.
StripRefIfNeeded
();
UseImplicitTypeCodeFixProvider.cs (1)
59
type = type.
StripRefIfNeeded
();