5 implementations of SpecialType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationTypeSymbol.cs (1)
19
public SpecialType
SpecialType
{ get; protected set; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
169
SpecialType ITypeSymbol.
SpecialType
=> UnderlyingTypeSymbol.SpecialType;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
69
public SpecialType
SpecialType
=> _symbol.SpecialType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
276
Public Overridable ReadOnly Property
SpecialType
As SpecialType Implements ITypeSymbol.SpecialType, ITypeSymbolInternal.SpecialType
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationTypeSymbol.cs (1)
19
public SpecialType
SpecialType
{ get; protected set; }
729 references to SpecialType
Microsoft.CodeAnalysis (29)
CodeGen\PermissionSetAttribute.cs (1)
86
member => member.Kind == SymbolKind.Property && ((IPropertySymbol)member).Type.
SpecialType
== SpecialType.System_String));
Compilation\Expression.cs (1)
11
switch (type.
SpecialType
)
Operations\ControlFlowGraphBuilder.cs (5)
3112
if (operation.Target?.Type?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T &&
4182
Debug.Assert(iDisposable.
SpecialType
== SpecialType.System_IDisposable ||
4860
constantValue: ConstantValue.Default(stepValueEnumUnderlyingTypeOrSelf.
SpecialType
),
5144
int bits = stepEnumUnderlyingTypeOrSelf.
SpecialType
.VBForToShiftBits();
6587
Debug.Assert(outParameterArgument is { Parameter: { RefKind: RefKind.Out, Type.
SpecialType
: SpecialType.System_Boolean } });
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (5)
104
AddLiteralValue(type.
SpecialType
, constantValue);
119
AddLiteralValue(enumType.EnumUnderlyingType.
SpecialType
, constantValue);
190
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
267
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
286
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
Symbols\Attributes\CommonAttributeData.cs (10)
203
Debug.Assert(parameters[0].Type.
SpecialType
== SpecialType.System_Byte);
204
Debug.Assert(parameters[1].Type.
SpecialType
== SpecialType.System_Byte);
211
if (parameters[2].Type.
SpecialType
== SpecialType.System_Int32)
213
Debug.Assert(parameters[2].Type.
SpecialType
== SpecialType.System_Int32);
214
Debug.Assert(parameters[3].Type.
SpecialType
== SpecialType.System_Int32);
215
Debug.Assert(parameters[4].Type.
SpecialType
== SpecialType.System_Int32);
223
Debug.Assert(parameters[2].Type.
SpecialType
== SpecialType.System_UInt32);
224
Debug.Assert(parameters[3].Type.
SpecialType
== SpecialType.System_UInt32);
225
Debug.Assert(parameters[4].Type.
SpecialType
== SpecialType.System_UInt32);
371
if (attribute.AttributeConstructor.Parameters[0].Type.
SpecialType
== SpecialType.System_Int16)
Symbols\Attributes\MarshalAsAttributeDecoder.cs (1)
102
if (attribute.AttributeConstructor.Parameters[0].Type.
SpecialType
== SpecialType.System_Int16)
Symbols\ITypeSymbol.cs (6)
201
return typeOpt?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
217
return type?.
SpecialType
== SpecialType.System_Boolean;
222
return type?.
SpecialType
== SpecialType.System_Object;
227
return type?.
SpecialType
.IsSignedIntegralType() == true;
232
return type?.
SpecialType
.IsUnsignedIntegralType() == true;
237
return type?.
SpecialType
.IsNumericType() == true;
Microsoft.CodeAnalysis.CodeStyle (43)
AbstractForEachCastDiagnosticAnalyzer.cs (1)
141
=> collectionElementType.
SpecialType
!= SpecialType.System_Object ||
AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
97
if (type is not {
SpecialType
: SpecialType.System_Boolean })
AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (2)
60
if (rightOperand.Type.
SpecialType
!= SpecialType.System_Boolean ||
61
leftOperand.Type.
SpecialType
!= SpecialType.System_Boolean)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
827
attribute.AttributeConstructor?.Parameters is [_, { Name: "checkId", Type.
SpecialType
: SpecialType.System_String }, ..] &&
836
attribute.AttributeConstructor.Parameters[0].Type.
SpecialType
== SpecialType.System_String &&
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
590
attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.
SpecialType
: SpecialType.System_String, Value: string value }])
728
(IsSpecialMethodWithMatchingProperty("ShouldSerialize") && methodSymbol.ReturnType.
SpecialType
== SpecialType.System_Boolean ||
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
144
value.Type.
SpecialType
== SpecialType.System_Void)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (2)
241
method.Parameters is [{ Type.
SpecialType
: SpecialType.System_Object }, var secondParam] &&
280
methodSymbol.Parameters[0].Type.
SpecialType
== SpecialType.System_String &&
AbstractSimplifyConditionalDiagnosticAnalyzer.cs (2)
154
typeInfo.Type?.
SpecialType
== SpecialType.System_Boolean &&
155
typeInfo.ConvertedType?.
SpecialType
== SpecialType.System_Boolean;
AbstractSimplifyInterpolationHelpers.cs (1)
127
return method.ContainingType.
SpecialType
== SpecialType.System_Object
AbstractSpeculationAnalyzer.cs (5)
448
type1.EnumUnderlyingType?.
SpecialType
== type2.
SpecialType
;
707
&& symbol.ContainingType.
SpecialType
== SpecialType.System_Object
983
if (newReceiverType.
SpecialType
!= SpecialType.None)
990
return newSymbolContainingType.
SpecialType
is SpecialType.System_Array or
AbstractUseNullPropagationDiagnosticAnalyzer.cs (3)
154
if (type is not INamedTypeSymbol namedType || namedType.ConstructedFrom.
SpecialType
!= SpecialType.System_Nullable_T)
182
var whenPartIsNullable = whenPartType?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
360
if (typeSymbol?.
SpecialType
== SpecialType.System_Object)
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
89
var whenPartIsNullable = semanticModel.GetTypeInfo(whenPartMatch).Type?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
303
if (containingType.
SpecialType
!= SpecialType.System_String)
IMethodSymbolExtensions.cs (2)
44
method.Parameters is [{ Type.
SpecialType
: SpecialType.System_Object }, var secondParam] &&
105
methodSymbol.ReturnType.
SpecialType
== SpecialType.System_Int32 ||
INamedTypeSymbolExtensions.cs (1)
615
ContainingType.
SpecialType
: SpecialType.System_Object,
ISemanticFactsExtensions.cs (1)
119
=> type?.
SpecialType
is SpecialType.System_Single or SpecialType.System_Double;
ISymbolExtensions.cs (2)
619
if (!returnType.GetMembers().OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.IsCompleted && p.Type.
SpecialType
== SpecialType.System_Boolean && p.GetMethod != null))
669
ReturnType.
SpecialType
: SpecialType.System_Boolean,
ITypeSymbolExtensions.cs (9)
23
=> type?.
SpecialType
.IsIntegralType() == true;
26
=> type?.
SpecialType
.IsSignedIntegralType() == true;
57
=> symbol?.
SpecialType
== SpecialType.System_Void;
60
=> symbol?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
268
switch (typeSymbol.
SpecialType
)
286
switch (type.
SpecialType
)
374
switch (symbol.
SpecialType
)
404
typeSymbol.AllInterfaces.Any(static i => i.
SpecialType
== SpecialType.System_Collections_IEnumerable) &&
644
switch (type.
SpecialType
)
PopulateSwitchStatementHelpers.cs (1)
139
if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.
SpecialType
!= SpecialType.None)
SemanticModelExtensions.cs (2)
173
type.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T ||
190
if (type.
SpecialType
== SpecialType.System_String)
SymbolEquivalenceComparer.cs (1)
180
=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.
SpecialType
== SpecialType.System_Object;
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
AbstractFlagsEnumGenerator.cs (3)
81
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
175
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
191
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
127
symbol.ContainingType?.
SpecialType
== SpecialType.System_Enum;
CodeGenerationHelpers.cs (2)
85
=> type != null && type.
SpecialType
== specialType;
135
=> type?.
SpecialType
switch
CodeGenerationMethodSymbol.cs (1)
80
=> this.ReturnType == null || this.ReturnType.
SpecialType
== SpecialType.System_Void;
INamedTypeSymbolExtensions.cs (1)
30
namedType.
SpecialType
,
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
210
method.ReturnType.
SpecialType
== SpecialType.System_Int32 &&
SyntaxGeneratorExtensions_Negate.cs (4)
248
var valueType = (operation as IIsPatternOperation)?.Value.Type?.
SpecialType
;
421
if (containingType?.
SpecialType
== SpecialType.System_Array ||
422
containingType?.
SpecialType
== SpecialType.System_String)
430
switch (type?.
SpecialType
)
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (1)
788
return info.ConvertedType?.
SpecialType
!= SpecialType.System_Void;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
631
switch (symbol.
SpecialType
)
Symbols\TypedConstantExtensions.cs (1)
52
SpecialType splType = ((INamedTypeSymbol)constant.Type!).EnumUnderlyingType!.
SpecialType
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (21)
CastSimplifier.cs (8)
92
Parent.Parent: IConversionOperation { Type.
SpecialType
: SpecialType.System_Object } conversionOperation
470
if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.
SpecialType
is SpecialType.System_Object)
579
if (current.ContainingType.
SpecialType
== SpecialType.System_Object)
675
=> type.IsSignedIntegralType() || type?.
SpecialType
is SpecialType.System_IntPtr;
769
if (binaryOperation.LeftOperand.Type?.
SpecialType
== SpecialType.System_Object &&
776
else if (binaryOperation.RightOperand.Type?.
SpecialType
== SpecialType.System_Object &&
959
=> type?.
SpecialType
is SpecialType.System_Double or SpecialType.System_Single;
1217
rewrittenType.
SpecialType
== SpecialType.System_Enum;
ConvertProgramAnalysis_TopLevelStatements.cs (1)
94
if (containingType.BaseType?.
SpecialType
!= SpecialType.System_Object)
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
86
if (castType?.
SpecialType
== SpecialType.System_Object)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
253
if (methodReference.ContainingType.
SpecialType
is SpecialType.System_Object or SpecialType.System_ValueType)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
127
if (lambdaTypeInfo.ConvertedType == null || lambdaTypeInfo.ConvertedType.
SpecialType
is SpecialType.System_Object)
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
197
if (symbol is null || !symbol.IsUserDefinedOperator() || symbol.ContainingType.
SpecialType
== SpecialType.System_String)
215
symbol.ContainingType?.
SpecialType
== SpecialType.System_Object)
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
77
if (semanticModel.GetTypeInfo(castExpression.Type).Type?.
SpecialType
== SpecialType.System_Object)
Helpers.cs (4)
30
p.Type.
SpecialType
== SpecialType.System_Int32)
77
method.OriginalDefinition.Parameters[0].Type.
SpecialType
== SpecialType.System_Int32;
115
=> parameter.Type.
SpecialType
== SpecialType.System_Int32 &&
119
=> parameter.Type.
SpecialType
== SpecialType.System_Int32 &&
ITypeSymbolExtensions.cs (1)
11
switch (typeSymbol.
SpecialType
)
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
78
if (arrayCreationOperation.Type is not IArrayTypeSymbol { ElementType.
SpecialType
: SpecialType.System_Byte })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (19)
ConvertToRecordHelpers.cs (3)
29
methodSymbol.ReturnType.
SpecialType
== SpecialType.System_Boolean &&
37
methodSymbol.Parameters.First().Type.
SpecialType
== SpecialType.System_Object &&
516
else if (parameter.Type.
SpecialType
== SpecialType.System_Object)
CSharpFixReturnTypeCodeFixProvider.cs (1)
107
if (previousReturnType.
SpecialType
is SpecialType.System_Void ||
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
101
else if (type.
SpecialType
is SpecialType.System_IntPtr or SpecialType.System_UIntPtr)
CSharpTypeInferenceService.TypeInferrer.cs (6)
1037
if (parentTypes.Any(static parentType => parentType.InferredType.
SpecialType
== SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate))
1039
return parentTypes.Where(parentType => parentType.InferredType.
SpecialType
== SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate);
1155
else if (symbol.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T)
2019
return types.Select(t => t.InferredType.
SpecialType
== SpecialType.System_Void ? new TypeInferenceInfo(task) : new TypeInferenceInfo(taskOfT.Construct(t.InferredType)));
2253
if (laterUsageInference is not [] and not [{ InferredType.
SpecialType
: SpecialType.System_Object }])
2282
if (inferredDescendantTypes is not [] and not [{ InferredType.
SpecialType
: SpecialType.System_Object }])
ExpressionGenerator.cs (1)
289
memberAccess = memberAccess.WithAdditionalAnnotations(SpecialTypeAnnotation.Create(type.
SpecialType
));
InternalExtensions.cs (1)
36
if (typeInfo.Type != null && typeInfo.Type.
SpecialType
== SpecialType.System_Void)
ITypeParameterSymbolExtensions.cs (1)
64
if (type.
SpecialType
!= SpecialType.System_Object)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
117
syntax = SyntaxFactory.IdentifierName(symbol.
SpecialType
== SpecialType.System_IntPtr ? "nint" : "nuint");
221
if (symbol.
SpecialType
== SpecialType.System_Void)
NamedTypeGenerator.cs (2)
245
var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.
SpecialType
!= SpecialType.System_Int32
324
if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.
SpecialType
!= Microsoft.CodeAnalysis.SpecialType.System_Object)
UseUtf8StringLiteralCodeFixProvider.cs (1)
70
namedType.TypeArguments[0].
SpecialType
== SpecialType.System_Byte;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
92
Assert.Equal(SpecialType.System_String, typeInfo.Type.
SpecialType
);
93
Assert.Equal(SpecialType.System_String, typeInfo.ConvertedType.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenDeconstructTests.cs (3)
7236
Assert.Equal(SpecialType.System_Int32, symbolInfo.Symbol.GetTypeOrReturnType().
SpecialType
);
7511
Assert.Equal(SpecialType.System_Int32, xSymbolInfo.Symbol.GetTypeOrReturnType().
SpecialType
);
7518
Assert.Equal(SpecialType.System_Boolean, zSymbolInfo.Symbol.GetTypeOrReturnType().
SpecialType
);
CodeGen\CodeGenFunctionPointersTests.cs (1)
870
Assert.Equal(SpecialType.System_Object, returnTypeWithAnnotations.CustomModifiers[0].Modifier.
SpecialType
);
CodeGen\IndexAndRangeTests.cs (1)
1002
Assert.Equal(SpecialType.System_Int32, property.Parameters[0].Type.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Attributes\AttributeTests_Tuples.cs (1)
647
Assert.True(constant.Type.
SpecialType
== SpecialType.System_String);
Semantics\PatternMatchingTests.cs (2)
11366
Assert.Equal(SpecialType.System_String, typeInfo.Type.
SpecialType
);
11367
Assert.Equal(SpecialType.System_String, typeInfo.ConvertedType.
SpecialType
);
Semantics\PatternMatchingTests2.cs (2)
2032
Assert.Equal(SpecialType.System_Boolean, typeInfo.Type.
SpecialType
);
2073
Assert.Equal(SpecialType.System_Boolean, typeInfo.Type.
SpecialType
);
Semantics\PatternSwitchTests.cs (2)
3286
Assert.Equal(SpecialType.System_Boolean, type.Type.
SpecialType
);
3287
Assert.Equal(SpecialType.System_Boolean, type.ConvertedType.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.Features (40)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
465
ContainingType: not {
SpecialType
: SpecialType.System_Nullable_T }
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (3)
96
if (type.
SpecialType
== SpecialType.System_Void)
145
t => t.OriginalDefinition.
SpecialType
== SpecialType.System_Collections_Generic_IEnumerable_T ||
169
originalDefinition.
SpecialType
== SpecialType.System_Nullable_T)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
114
if (type.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T)
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
131
if (namedTypeSymbol?.
SpecialType
== SpecialType.System_Object)
Completion\KeywordRecommenders\AbstractSpecialTypePreselectingKeywordRecommender.cs (1)
33
=> context.InferredTypes.Any(static (t, self) => t.
SpecialType
== self.SpecialType, this);
Completion\Providers\DefaultArgumentProvider.cs (1)
37
context.DefaultValue = context.Parameter.Type.
SpecialType
switch
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (5)
310
methodSymbol.ReturnType?.
SpecialType
== SpecialType.System_Int32 &&
375
=> typeSymbol.
SpecialType
== SpecialType.System_Int32;
562
if (returnTypeInfo.Type.OriginalDefinition?.
SpecialType
== SpecialType.System_Collections_Generic_IEnumerable_T)
568
if (returnTypeInfo.ConvertedType.OriginalDefinition?.
SpecialType
== SpecialType.System_Collections_Generic_IEnumerable_T)
755
if (methodSymbol.ReturnType.OriginalDefinition?.
SpecialType
!= SpecialType.System_Collections_Generic_IEnumerable_T)
ConvertProgramAnalysis_TopLevelStatements.cs (1)
94
if (containingType.BaseType?.
SpecialType
!= SpecialType.System_Object)
ConvertToRecordHelpers.cs (3)
29
methodSymbol.ReturnType.
SpecialType
== SpecialType.System_Boolean &&
37
methodSymbol.Parameters.First().Type.
SpecialType
== SpecialType.System_Object &&
516
else if (parameter.Type.
SpecialType
== SpecialType.System_Object)
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
86
if (castType?.
SpecialType
== SpecialType.System_Object)
CSharpFixReturnTypeCodeFixProvider.cs (1)
107
if (previousReturnType.
SpecialType
is SpecialType.System_Void ||
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
253
if (methodReference.ContainingType.
SpecialType
is SpecialType.System_Object or SpecialType.System_ValueType)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
127
if (lambdaTypeInfo.ConvertedType == null || lambdaTypeInfo.ConvertedType.
SpecialType
is SpecialType.System_Object)
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
101
else if (type.
SpecialType
is SpecialType.System_IntPtr or SpecialType.System_UIntPtr)
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
197
if (symbol is null || !symbol.IsUserDefinedOperator() || symbol.ContainingType.
SpecialType
== SpecialType.System_String)
215
symbol.ContainingType?.
SpecialType
== SpecialType.System_Object)
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
77
if (semanticModel.GetTypeInfo(castExpression.Type).Type?.
SpecialType
== SpecialType.System_Object)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
101
return info.Type == null || info.Type.
SpecialType
== Microsoft.CodeAnalysis.SpecialType.System_Object
ExtractMethod\CSharpMethodExtractor.cs (1)
177
if (type.
SpecialType
== SpecialType.System_Void)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
637
} && parameters[0].Type.
SpecialType
== SpecialType.System_Boolean))
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
122
if (info.Type?.
SpecialType
== SpecialType.System_String &&
ExtractMethod\Extensions.cs (1)
264
=> type == null || type.
SpecialType
== SpecialType.System_Object;
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
144
var isIntrinsic = tupleType.TupleElements.All(f => f.Type?.
SpecialType
!= SpecialType.None);
J\s\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs\Helpers.cs (4)
30
p.Type.
SpecialType
== SpecialType.System_Int32)
77
method.OriginalDefinition.Parameters[0].Type.
SpecialType
== SpecialType.System_Int32;
115
=> parameter.Type.
SpecialType
== SpecialType.System_Int32 &&
119
=> parameter.Type.
SpecialType
== SpecialType.System_Int32 &&
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
93
return local?.Type.
SpecialType
switch
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
65
if (namedType.ConstructedFrom.
SpecialType
== SpecialType.System_Nullable_T &&
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
44
namedSymbol => namedSymbol.
SpecialType
is SpecialType.System_Collections_Generic_IEnumerable_T or SpecialType.System_Collections_IEnumerable) &&
UseUtf8StringLiteralCodeFixProvider.cs (1)
70
namedType.TypeArguments[0].
SpecialType
== SpecialType.System_Byte;
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
78
if (arrayCreationOperation.Type is not IArrayTypeSymbol { ElementType.
SpecialType
: SpecialType.System_Byte })
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\FunctionPointerOperations.cs (2)
210
Assert.Equal(SpecialType.System_String, signature.Parameters[0].Type.
SpecialType
);
211
Assert.Equal(SpecialType.System_Void, signature.ReturnType.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (151)
Semantics\ConditionalOperatorTests.cs (1)
1276
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(conditionalExpr.Condition).Type!.
SpecialType
);
Semantics\DeconstructionTests.cs (10)
5991
Assert.Equal(SpecialType.System_Void, type.Type.
SpecialType
);
5992
Assert.Equal(SpecialType.System_Void, type.ConvertedType.
SpecialType
);
6034
Assert.Equal(SpecialType.System_Void, type.Type.
SpecialType
);
6035
Assert.Equal(SpecialType.System_Void, type.ConvertedType.
SpecialType
);
6074
Assert.Equal(SpecialType.System_Void, type.Type.
SpecialType
);
6075
Assert.Equal(SpecialType.System_Void, type.ConvertedType.
SpecialType
);
6116
Assert.Equal(SpecialType.System_Int32, type.Type.
SpecialType
);
6117
Assert.Equal(SpecialType.System_Int32, type.ConvertedType.
SpecialType
);
6156
Assert.Equal(SpecialType.System_Void, type.Type.
SpecialType
);
6157
Assert.Equal(SpecialType.System_Void, type.ConvertedType.
SpecialType
);
Semantics\DelegateTypeTests.cs (8)
752
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
898
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
1222
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
1317
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
1412
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
1830
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
5316
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
5339
Assert.Equal(SpecialType.System_Delegate, typeInfo.ConvertedType!.
SpecialType
);
Semantics\ExpressionBodiedMemberTests.cs (9)
75
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
76
Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.
SpecialType
);
139
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
178
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
179
Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.
SpecialType
);
226
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
227
Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.
SpecialType
);
315
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
316
Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.
SpecialType
);
Semantics\ForEachTests.cs (5)
2139
Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.
SpecialType
);
2143
Assert.Equal(SpecialType.System_Char, typeInfo.Type.
SpecialType
);
2188
Assert.Equal(SpecialType.System_String, loopInfo0.ElementType.
SpecialType
);
2197
Assert.Equal(SpecialType.System_Object, loopInfo1.ElementType.
SpecialType
); // No longer string.
2889
Assert.Equal(SpecialType.System_String, localSymbolType.
SpecialType
);
Semantics\FunctionPointerTests.cs (5)
189
Assert.True(typeInfo.ConvertedType is IPointerTypeSymbol { PointedAtType: {
SpecialType
: SpecialType.System_Void } });
1597
Assert.Equal(SpecialType.System_String, methodSymbol.TypeArguments[0].
SpecialType
);
1599
Assert.Equal(SpecialType.System_String, functionPointer.Signature.Parameters[0].Type.
SpecialType
);
1757
Assert.Equal(SpecialType.System_String, methodSymbol.TypeArguments[0].
SpecialType
);
1759
Assert.Equal(SpecialType.System_String, functionPointer.Signature.ReturnType.
SpecialType
);
Semantics\GenericConstraintsTests.cs (2)
3175
Assert.Equal(SpecialType.System_Int32, inferredMethod.TypeArguments.Single().
SpecialType
);
3230
Assert.Equal(SpecialType.System_Int32, inferredMethod.TypeArguments.Single().
SpecialType
);
Semantics\InteractiveSemanticModelTests.cs (3)
126
Assert.Equal(SpecialType.System_Int32, bindInfo.Type.
SpecialType
);
141
Assert.Equal(SpecialType.System_Int32, bindInfo.Type.
SpecialType
);
268
Assert.Equal(SpecialType.System_Char, semanticInfo.Type.
SpecialType
);
Semantics\InteractiveUsingTests.cs (5)
26
Assert.Equal(SpecialType.System_String, GetSpeculativeType(sub, "String").
SpecialType
);
35
Assert.Equal(SpecialType.System_Int32, GetSpeculativeType(sub, "I").
SpecialType
);
187
Assert.Equal(SpecialType.System_Int32, GetSpeculativeType(sub1, "A").
SpecialType
);
190
Assert.Equal(SpecialType.System_Int16, GetSpeculativeType(sub2, "A").
SpecialType
);
196
Assert.Equal(SpecialType.System_Int64, GetSpeculativeType(sub4, "A").
SpecialType
);
Semantics\InterpolationTests.cs (4)
4580
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
4801
Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.
SpecialType
);
4807
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
4808
Assert.Equal(SpecialType.System_String, semanticInfo.ConvertedType.
SpecialType
);
Semantics\LocalFunctionTests.cs (7)
458
Assert.Equal(SpecialType.System_Int32, argType0.
SpecialType
);
464
Assert.Equal(SpecialType.System_String, argType1.
SpecialType
);
620
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(arg1.Expression).Type.
SpecialType
);
624
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(arg2.Expression).Type.
SpecialType
);
628
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(arg3.Expression).Type.
SpecialType
);
673
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(arg.Expression).Type.
SpecialType
);
727
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(arg.Expression).Type.
SpecialType
);
Semantics\LockTests.cs (1)
48
Assert.Equal(SpecialType.System_Object, localSymbol.Type.
SpecialType
);
Semantics\MethodTypeInferenceTests.cs (2)
1049
Assert.Equal(SpecialType.System_Char, method.TypeArguments.Single().
SpecialType
);
1079
Assert.Equal(SpecialType.System_Char, method.TypeArguments.Single().
SpecialType
);
Semantics\NativeIntegerTests.cs (4)
237
Assert.Equal(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, type.
SpecialType
);
737
Assert.Equal(specialType, type.
SpecialType
);
3638
Assert.Equal(SpecialType.None, underlyingType.
SpecialType
);
4124
Assert.Equal(SpecialType.None, type.
SpecialType
);
Semantics\NullCoalesceAssignmentTests.cs (2)
186
Assert.Equal(SpecialType.System_Int32, semanticModel.GetTypeInfo(defaultLiteral).Type.
SpecialType
);
187
Assert.Equal(SpecialType.System_Int32, semanticModel.GetTypeInfo(defaultLiteral).ConvertedType.
SpecialType
);
Semantics\ObjectAndCollectionInitializerTests.cs (3)
4009
Assert.Equal(SpecialType.System_Int32, typeInfo.Type.
SpecialType
);
4010
Assert.Equal(SpecialType.System_Int32, typeInfo.ConvertedType.
SpecialType
);
4081
Assert.Equal(SpecialType.System_Int32, typeInfo.Type.
SpecialType
);
Semantics\OperatorTests.cs (4)
7629
expectChecked = (type.IsDynamic() || symbol1.ContainingType.EnumUnderlyingTypeOrSelf().
SpecialType
.IsIntegralType());
7637
symbol1.ContainingType.EnumUnderlyingTypeOrSelf().
SpecialType
.IsIntegralType() ||
7638
symbol1.ContainingType.
SpecialType
== SpecialType.System_Char);
8407
isChecked = isDynamic || symbol1.ContainingSymbol.Kind == SymbolKind.PointerType || symbol1.ContainingType.EnumUnderlyingTypeOrSelf().
SpecialType
.IsIntegralType();
Semantics\OverloadResolutionTests.cs (1)
7264
Assert.Equal(SpecialType.System_Int32, methodSymbol.TypeArguments.Single().
SpecialType
);
Semantics\QueryTests.cs (6)
2179
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
2209
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
2236
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
2242
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
2248
Assert.Equal(SpecialType.System_Int32, info2.Type.
SpecialType
);
2301
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
Semantics\RawInterpolationTests_Handler.cs (4)
2907
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
3128
Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.
SpecialType
);
3134
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
3135
Assert.Equal(SpecialType.System_String, semanticInfo.ConvertedType.
SpecialType
);
Semantics\RefLocalsAndReturnsTests.cs (12)
4360
Assert.Equal(SpecialType.System_Int32, ((IArrayTypeSymbol)model.GetTypeInfo(left).Type).ElementType.
SpecialType
);
4363
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
4388
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.
SpecialType
);
4391
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
4416
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.
SpecialType
);
4419
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
4444
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(left).Type.
SpecialType
);
4447
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
4475
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
4503
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
4534
Assert.Equal(SpecialType.System_Object, model.GetTypeInfo(left).Type.
SpecialType
);
4537
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.
SpecialType
);
Semantics\StackAllocInitializerTests.cs (13)
1038
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.
SpecialType
);
1046
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.
SpecialType
);
1047
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.
SpecialType
);
1062
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.
SpecialType
);
1063
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.
SpecialType
);
1070
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.
SpecialType
);
1071
Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.
SpecialType
);
1149
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.
SpecialType
);
1150
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.
SpecialType
);
1165
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.
SpecialType
);
1166
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.
SpecialType
);
1173
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.
SpecialType
);
1174
Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.
SpecialType
);
Semantics\StackAllocSpanExpressionsTests.cs (13)
60
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.
SpecialType
);
68
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.
SpecialType
);
69
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.
SpecialType
);
84
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.
SpecialType
);
85
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.
SpecialType
);
92
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.
SpecialType
);
93
Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.
SpecialType
);
143
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.
SpecialType
);
144
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.
SpecialType
);
159
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.
SpecialType
);
160
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.
SpecialType
);
167
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.
SpecialType
);
168
Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.
SpecialType
);
Semantics\TargetTypedConditionalOperatorTests.cs (1)
363
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(conditionalExpr.Condition).Type!.
SpecialType
);
Semantics\UnsafeTests.cs (24)
4434
Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)type).PointedAtType.
SpecialType
);
4711
Assert.Equal(SpecialType.System_Int32, type.
SpecialType
);
5044
Assert.Equal(SpecialType.System_Void, callSummary.Type.
SpecialType
);
5045
Assert.Equal(SpecialType.System_Void, callSummary.ConvertedType.
SpecialType
);
5107
Assert.Equal(SpecialType.System_Void, callSummary.Type.
SpecialType
);
5550
Assert.NotEqual(SpecialType.System_Void, ((IPointerTypeSymbol)type).PointedAtType.
SpecialType
);
5554
Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)convertedType).PointedAtType.
SpecialType
);
6079
Assert.Equal(SpecialType.System_Int64, summary.Type.
SpecialType
);
6080
Assert.Equal(SpecialType.System_Int64, summary.ConvertedType.
SpecialType
);
6506
Assert.Equal(SpecialType.System_Boolean, summary.Type.
SpecialType
);
6507
Assert.Equal(SpecialType.System_Boolean, summary.ConvertedType.
SpecialType
);
7349
Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)type).PointedAtType.
SpecialType
);
7791
Assert.NotEqual(SpecialType.None, type.
SpecialType
);
7804
Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.
SpecialType
);
7810
Assert.Equal(s_specialTypeSizeOfMap[type.
SpecialType
], sizeOfSummary.ConstantValue);
7866
Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.
SpecialType
);
7872
Assert.Equal(s_specialTypeSizeOfMap[type.GetEnumUnderlyingType().
SpecialType
], sizeOfSummary.ConstantValue);
7913
Assert.Equal(SpecialType.None, type.
SpecialType
);
7926
Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.
SpecialType
);
8459
Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)stackAllocSummary.Type).PointedAtType.
SpecialType
);
8460
Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)stackAllocSummary.ConvertedType).PointedAtType.
SpecialType
);
8471
Assert.Equal(SpecialType.System_Char, typeSummary.Type.
SpecialType
);
8483
Assert.Equal(SpecialType.System_Int16, countSummary.Type.
SpecialType
);
8484
Assert.Equal(SpecialType.System_Int32, countSummary.ConvertedType.
SpecialType
);
Semantics\UsingStatementTests.cs (2)
67
Assert.Equal(SpecialType.System_IDisposable, declaredLocal.Type.
SpecialType
);
1854
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(node).Type.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (95)
Compilation\GetSemanticInfoBrokenCodeTests.cs (1)
271
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
Compilation\GetSemanticInfoTests.cs (39)
1143
Assert.Equal(SpecialType.System_Boolean, info.Type.
SpecialType
);
1325
Assert.Equal(SpecialType.System_Void, bindInfo.Type.
SpecialType
);
1352
Assert.Equal(SpecialType.System_Void, bindInfo.Type.
SpecialType
);
1380
Assert.Equal(SpecialType.System_Void, bindInfo.Type.
SpecialType
);
1422
Assert.Equal(SpecialType.System_Int32, bindInfo.Type.
SpecialType
);
1423
Assert.Equal(SpecialType.System_Int32, bindInfo.ConvertedType.
SpecialType
);
1463
Assert.Equal(SpecialType.System_Int32, bindInfo.Type.
SpecialType
); //still have the type since all candidates agree
1464
Assert.Equal(SpecialType.System_Int32, bindInfo.ConvertedType.
SpecialType
);
2458
Assert.Equal(SpecialType.System_Double, info.Type.
SpecialType
);
2459
Assert.Equal(SpecialType.System_Double, info.ConvertedType.
SpecialType
);
2487
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
2488
Assert.Equal(SpecialType.System_Int32, info.ConvertedType.
SpecialType
);
2511
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
2512
Assert.Equal(SpecialType.System_Int32, info.ConvertedType.
SpecialType
);
3611
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.
SpecialType
);
3612
Assert.Equal(SpecialType.System_Object, literalTypeInfo.ConvertedType.
SpecialType
);
3636
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.
SpecialType
);
3637
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.ConvertedType.
SpecialType
);
3644
Assert.Equal(SpecialType.System_Int64, castTypeInfo.Type.
SpecialType
);
3645
Assert.Equal(SpecialType.System_Object, castTypeInfo.ConvertedType.
SpecialType
);
3669
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.
SpecialType
);
3670
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.ConvertedType.
SpecialType
);
3677
Assert.Equal(SpecialType.System_Object, castTypeInfo.Type.
SpecialType
);
3678
Assert.Equal(SpecialType.System_Object, castTypeInfo.ConvertedType.
SpecialType
);
3705
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.
SpecialType
);
3706
Assert.Equal(SpecialType.System_Int32, literalTypeInfo.ConvertedType.
SpecialType
);
3713
Assert.Equal(SpecialType.System_Int64, cast1TypeInfo.Type.
SpecialType
);
3714
Assert.Equal(SpecialType.System_Int64, cast1TypeInfo.ConvertedType.
SpecialType
);
3725
Assert.Equal(SpecialType.System_Object, cast2TypeInfo.Type.
SpecialType
);
3726
Assert.Equal(SpecialType.System_Object, cast2TypeInfo.ConvertedType.
SpecialType
);
4116
Assert.Equal(SpecialType.System_Collections_Generic_IEnumerable_T, ((ITypeSymbol)info0.Symbol.OriginalDefinition).
SpecialType
);
4117
Assert.Equal(SpecialType.System_Int32, ((INamedTypeSymbol)info0.Symbol).TypeArguments.Single().
SpecialType
);
4120
Assert.Equal(SpecialType.System_Int32, ((ITypeSymbol)info1.Symbol).
SpecialType
);
4124
Assert.Equal(SpecialType.System_Collections_Generic_IEnumerable_T, ((ITypeSymbol)info2.Symbol.OriginalDefinition).
SpecialType
);
4125
Assert.Equal(SpecialType.System_Int32, ((INamedTypeSymbol)info2.Symbol).TypeArguments.Single().
SpecialType
);
4171
Assert.Equal(SpecialType.System_Int32, ((ITypeSymbol)info1.Symbol).
SpecialType
);
4175
Assert.Equal(SpecialType.System_Collections_Generic_IEnumerable_T, ((ITypeSymbol)info2.Symbol.OriginalDefinition).
SpecialType
);
4176
Assert.Equal(SpecialType.System_Int32, ((INamedTypeSymbol)info2.Symbol).TypeArguments.Single().
SpecialType
);
5916
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
);
Compilation\SemanticModelAPITests.cs (23)
55
Assert.Equal(SpecialType.System_Int32, typeInfo.Type.
SpecialType
);
59
Assert.Equal(SpecialType.System_Char, typeInfo.Type.
SpecialType
);
142
Assert.Equal(SpecialType.System_Int32, typeInfo.Type.
SpecialType
);
152
Assert.Equal(SpecialType.System_Char, typeInfo.Type.
SpecialType
);
3166
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
3201
Assert.Equal(SpecialType.System_Int32, info.Type.
SpecialType
);
3202
Assert.Equal(SpecialType.System_Int64, info.ConvertedType.
SpecialType
);
3916
Assert.True(typeInfo0.Type != null && typeInfo0.Type.
SpecialType
== SpecialType.System_Int16);
4190
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[0]).Type.
SpecialType
);
4215
Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(actual[0]).Type.
SpecialType
);
4219
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(actual[1]).Type.
SpecialType
);
4280
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[0]).Type.
SpecialType
);
4284
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[1]).Type.
SpecialType
);
4287
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[2]).Type.
SpecialType
);
4291
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[3]).Type.
SpecialType
);
4295
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[4]).Type.
SpecialType
);
4299
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[5]).Type.
SpecialType
);
4303
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[6]).Type.
SpecialType
);
4307
Assert.Equal(SpecialType.System_String, model.GetTypeInfo(actual[7]).Type.
SpecialType
);
4433
Assert.Equal(SpecialType.System_Boolean, originalTypeInfo.Type.
SpecialType
);
4436
Assert.Equal(SpecialType.System_Boolean, speculativeTypeInfo.Type.
SpecialType
);
4504
Assert.Equal(SpecialType.System_String, type.TupleElements[0].Type.
SpecialType
);
4505
Assert.Equal(SpecialType.System_Int32, type.TupleElements[1].Type.
SpecialType
);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
347
Assert.Equal(SpecialType.System_Int32, paramSymbol.Type.
SpecialType
);
1387
Assert.Equal(9, symbolsInC.Where(s => s.ContainingType == null || s.ContainingType.
SpecialType
!= SpecialType.System_Object).Count());
3674
Assert.Equal(SpecialType.System_Int32, parameter.Type.
SpecialType
);
Compilation\SemanticModelGetSemanticInfoTests.cs (16)
342
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
430
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
5356
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
5381
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
6090
Assert.Equal(SpecialType.System_Void, semanticInfo.Type.
SpecialType
);
6209
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
6229
Assert.Equal(SpecialType.System_String, ((IArrayTypeSymbol)semanticInfo.Type).ElementType.
SpecialType
);
6231
Assert.Equal(SpecialType.System_Collections_IEnumerable, semanticInfo.ConvertedType.
SpecialType
);
6251
Assert.Equal(SpecialType.System_String, semanticInfo.Type.
SpecialType
);
6255
Assert.Equal(SpecialType.System_String, ((ITypeSymbol)symbol).
SpecialType
);
8173
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
8197
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
8218
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
8334
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
9096
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
10985
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (2)
299
Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.
SpecialType
);
300
Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.
SpecialType
);
DocumentationComments\CrefTests.cs (1)
5720
Assert.Equal(SpecialType.System_Decimal, symbol.ContainingType.
SpecialType
);
Symbols\ConversionTests.cs (2)
1804
Assert.Equal(SpecialType.System_Byte, method.Parameters.Single().Type.
SpecialType
);
1838
Assert.Equal(SpecialType.System_Byte, method.Parameters.Single().Type.
SpecialType
);
Symbols\Source\BaseClassTests.cs (2)
2033
Assert.Equal(SpecialType.System_Int32, typeInfo.Type.
SpecialType
);
2034
Assert.Equal(SpecialType.System_Int64, typeInfo.ConvertedType.
SpecialType
);
Symbols\Source\EnumTests.cs (1)
986
Assert.Equal(SpecialType.System_Int32, type.
SpecialType
);
Symbols\Source\NullablePublicAPITests.cs (3)
2638
Assert.Equal(SpecialType.System_String, symbol.Type.
SpecialType
);
4219
Assert.Equal(SpecialType.System_String, ((IFieldSymbol)symbolInfo.Symbol).Type.
SpecialType
);
4249
Assert.Equal(SpecialType.System_String, symbolInfo.Type.
SpecialType
);
Symbols\Source\UsingAliasTests.cs (2)
105
Assert.Equal(SpecialType.System_Object, usingAliasType.
SpecialType
);
220
Assert.Equal(SpecialType.System_Object, usingAliasType.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
CodeGen\WinMdEventTests.cs (1)
672
Assert.Equal(SpecialType.System_Void, type.Type.
SpecialType
);
Microsoft.CodeAnalysis.CSharp.Workspaces (35)
CastSimplifier.cs (8)
92
Parent.Parent: IConversionOperation { Type.
SpecialType
: SpecialType.System_Object } conversionOperation
470
if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.
SpecialType
is SpecialType.System_Object)
579
if (current.ContainingType.
SpecialType
== SpecialType.System_Object)
675
=> type.IsSignedIntegralType() || type?.
SpecialType
is SpecialType.System_IntPtr;
769
if (binaryOperation.LeftOperand.Type?.
SpecialType
== SpecialType.System_Object &&
776
else if (binaryOperation.RightOperand.Type?.
SpecialType
== SpecialType.System_Object &&
959
=> type?.
SpecialType
is SpecialType.System_Double or SpecialType.System_Single;
1217
rewrittenType.
SpecialType
== SpecialType.System_Enum;
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3256
switch (type.
SpecialType
)
CSharpTypeInferenceService.TypeInferrer.cs (6)
1037
if (parentTypes.Any(static parentType => parentType.InferredType.
SpecialType
== SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate))
1039
return parentTypes.Where(parentType => parentType.InferredType.
SpecialType
== SpecialType.System_String || parentType.InferredType.TypeKind == TypeKind.Delegate);
1155
else if (symbol.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T)
2019
return types.Select(t => t.InferredType.
SpecialType
== SpecialType.System_Void ? new TypeInferenceInfo(task) : new TypeInferenceInfo(taskOfT.Construct(t.InferredType)));
2253
if (laterUsageInference is not [] and not [{ InferredType.
SpecialType
: SpecialType.System_Object }])
2282
if (inferredDescendantTypes is not [] and not [{ InferredType.
SpecialType
: SpecialType.System_Object }])
ExpressionGenerator.cs (1)
289
memberAccess = memberAccess.WithAdditionalAnnotations(SpecialTypeAnnotation.Create(type.
SpecialType
));
InternalExtensions.cs (1)
36
if (typeInfo.Type != null && typeInfo.Type.
SpecialType
== SpecialType.System_Void)
ITypeParameterSymbolExtensions.cs (1)
64
if (type.
SpecialType
!= SpecialType.System_Object)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
117
syntax = SyntaxFactory.IdentifierName(symbol.
SpecialType
== SpecialType.System_IntPtr ? "nint" : "nuint");
221
if (symbol.
SpecialType
== SpecialType.System_Void)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
11
switch (typeSymbol.
SpecialType
)
NamedTypeGenerator.cs (2)
245
var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.
SpecialType
!= SpecialType.System_Int32
324
if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.
SpecialType
!= Microsoft.CodeAnalysis.SpecialType.System_Object)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
526
namedSymbols = namedSymbols.RemoveAll(s => s.ContainingType.
SpecialType
is SpecialType.System_Object or SpecialType.System_ValueType);
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
202
=> container.
SpecialType
switch
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (2)
55
=> container.IsSpecialType() || container.
SpecialType
is SpecialType.System_IntPtr or SpecialType.System_UIntPtr;
96
return symbol.Parameters.Length == 2 && symbol.ReturnType.
SpecialType
== SpecialType.System_Boolean;
Rename\CSharpRenameRewriterLanguageService.cs (1)
1066
if (!method.ReturnsVoid && !method.Parameters.Any() && method.ReturnType.
SpecialType
== SpecialType.System_Boolean)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (3)
160
var keywordToken = TryGetPredefinedKeywordToken(semanticModel, type.
SpecialType
);
174
var keywordToken = TryGetPredefinedKeywordToken(semanticModel, type.
SpecialType
);
393
semanticModel.GetTypeInfo(invocationExpr).Type.
SpecialType
== SpecialType.System_String;
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
183
var keywordToken = TryGetPredefinedKeywordToken(semanticModel, namedType.
SpecialType
);
Simplification\Simplifiers\NameSimplifier.cs (2)
253
var keywordToken = TryGetPredefinedKeywordToken(semanticModel, type.
SpecialType
);
262
var keywordToken = TryGetPredefinedKeywordToken(semanticModel, namedType.
SpecialType
);
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (1)
52
var keywordToken = TryGetPredefinedKeywordToken(semanticModel, namedSymbol.
SpecialType
);
Microsoft.CodeAnalysis.Features (60)
AbstractForEachCastDiagnosticAnalyzer.cs (1)
141
=> collectionElementType.
SpecialType
!= SpecialType.System_Object ||
AbstractPopulateSwitchDiagnosticAnalyzer.cs (1)
97
if (type is not {
SpecialType
: SpecialType.System_Boolean })
AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (2)
60
if (rightOperand.Type.
SpecialType
!= SpecialType.System_Boolean ||
61
leftOperand.Type.
SpecialType
!= SpecialType.System_Boolean)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
827
attribute.AttributeConstructor?.Parameters is [_, { Name: "checkId", Type.
SpecialType
: SpecialType.System_String }, ..] &&
836
attribute.AttributeConstructor.Parameters[0].Type.
SpecialType
== SpecialType.System_String &&
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
590
attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.
SpecialType
: SpecialType.System_String, Value: string value }])
728
(IsSpecialMethodWithMatchingProperty("ShouldSerialize") && methodSymbol.ReturnType.
SpecialType
== SpecialType.System_Boolean ||
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
144
value.Type.
SpecialType
== SpecialType.System_Void)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (2)
241
method.Parameters is [{ Type.
SpecialType
: SpecialType.System_Object }, var secondParam] &&
280
methodSymbol.Parameters[0].Type.
SpecialType
== SpecialType.System_String &&
AbstractSimplifyConditionalDiagnosticAnalyzer.cs (2)
154
typeInfo.Type?.
SpecialType
== SpecialType.System_Boolean &&
155
typeInfo.ConvertedType?.
SpecialType
== SpecialType.System_Boolean;
AbstractSimplifyInterpolationHelpers.cs (1)
127
return method.ContainingType.
SpecialType
== SpecialType.System_Object
AbstractUseNullPropagationDiagnosticAnalyzer.cs (3)
154
if (type is not INamedTypeSymbol namedType || namedType.ConstructedFrom.
SpecialType
!= SpecialType.System_Nullable_T)
182
var whenPartIsNullable = whenPartType?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
360
if (typeSymbol?.
SpecialType
== SpecialType.System_Object)
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
89
var whenPartIsNullable = semanticModel.GetTypeInfo(whenPartMatch).Type?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
303
if (containingType.
SpecialType
!= SpecialType.System_String)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (2)
68
if (type.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T)
71
if (type.
SpecialType
== SpecialType.System_Void)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
58
var inferredTypes = context.InferredTypes.Where(t => t.
SpecialType
!= SpecialType.System_Void).ToSet();
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
65
if (symbol.ContainingType?.
SpecialType
== SpecialType.System_Object)
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
55
if (type is { IsReferenceType: true } or { OriginalDefinition.
SpecialType
: SpecialType.System_Nullable_T })
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
239
if (collectionType.
SpecialType
== SpecialType.System_String)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
534
=> property is { IsIndexer: true, Parameters: [{ Type.
SpecialType
: SpecialType.System_Int32 }] };
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
40
if (!IsIntegral(symbol.
SpecialType
))
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
251
method.ContainingType?.
SpecialType
== SpecialType.System_String &&
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
103
var shouldReplaceInvocation = invocationSymbol is { ContainingType.
SpecialType
: SpecialType.System_String, Name: nameof(string.Format) };
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
262
if (attribute is { ConstructorArguments: [{ Type.
SpecialType
: SpecialType.System_String, Value: string stringValue }] })
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
170
m => m is IMethodSymbol { Parameters: [{ Type.
SpecialType
: SpecialType.System_String }, ..] });
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
147
private static bool HasBaseType(INamedTypeSymbol containingType) => containingType.BaseType?.
SpecialType
!= SpecialType.System_Object;
ExtractMethod\MethodExtractor.Analyzer.cs (1)
621
return type.OriginalDefinition.
SpecialType
== SpecialType.None && !WellKnownFrameworkValueType(compilation, type);
ExtractMethod\MethodExtractor.AnalyzerResult.cs (1)
144
return ReturnType.
SpecialType
!= SpecialType.System_Void && !AwaitTaskReturn;
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
207
if (type != null && type.
SpecialType
!= SpecialType.System_Void)
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
376
switch (type.
SpecialType
)
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
65
if (typeParameters.Length == 0 && returnType.
SpecialType
!= SpecialType.System_Void)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
450
inferredType = inferredType.
SpecialType
== SpecialType.System_Void
GenerateType\AbstractGenerateTypeService.State.cs (1)
250
if (baseType.
SpecialType
is
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
387
var condition3 = typeParameter.HasReferenceTypeConstraint && typeParameter.ConstraintTypes.Any(static ts => ts.IsReferenceType && ts.
SpecialType
!= SpecialType.System_Object);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
288
.WhereAsArray(symbol => !symbol.IsErrorType() && symbol.
SpecialType
is not (SpecialType.System_Object or SpecialType.System_ValueType or SpecialType.System_Enum));
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (4)
108
if (parameter.Type.
SpecialType
== SpecialType.System_String)
161
if (parameter.Type.
SpecialType
== SpecialType.System_String)
235
else if (parameter.Type.
SpecialType
== SpecialType.System_String &&
303
return targetMethod.ContainingType.
SpecialType
== SpecialType.System_String;
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
239
return parameter.Type.
SpecialType
== SpecialType.System_Boolean;
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
46
type.
SpecialType
== SpecialType.System_Void)
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
413
if (typeInfo.Type?.
SpecialType
== SpecialType.System_String &&
IntroduceVariable\AbstractIntroduceVariableService.State_Block.cs (1)
33
if (type == null || type.
SpecialType
== SpecialType.System_Void)
IntroduceVariable\AbstractIntroduceVariableService.State_Query.cs (1)
32
if (info.Type == null || info.Type.
SpecialType
== SpecialType.System_Void)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
512
if (symbol.IsEnumType() && symbol.EnumUnderlyingType.
SpecialType
!= SpecialType.System_Int32)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
69
public SpecialType SpecialType => _symbol.
SpecialType
;
PopulateSwitchStatementHelpers.cs (1)
139
if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.
SpecialType
!= SpecialType.None)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
61
var replacementNode = typeSymbol.
SpecialType
is SpecialType.System_IntPtr or SpecialType.System_UIntPtr
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
90
typeSymbol.
SpecialType
is SpecialType.None)
QuickInfo\QuickInfoUtilities.cs (1)
47
if (symbol is INamedTypeSymbol {
SpecialType
: SpecialType.System_Void })
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
132
if (current.ContainingType.
SpecialType
== SpecialType.System_Object)
RQName\RQNodeBuilder.cs (2)
70
if (type != type.ConstructedFrom || type.
SpecialType
== SpecialType.System_Void)
265
if (symbol.
SpecialType
== SpecialType.System_Void)
ValueTracking\ValueTracker.cs (1)
247
return methodSymbol.ReturnType.
SpecialType
!= SpecialType.System_Void;
Microsoft.CodeAnalysis.Test.Utilities (18)
Compilation\ControlFlowGraphVerifier.cs (2)
954
&& arguments[0].Value.Type.
SpecialType
== SpecialType.System_Int32
955
&& arguments[1].Value.Type.
SpecialType
== SpecialType.System_Int32;
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
226
return baseType.TypeKind == TypeKind.Class && baseType.
SpecialType
== SpecialType.System_Object;
266
(targetTypeKind == TypeKind.Class && (sourceTypeKind == TypeKind.Structure || sourceTypeKind == TypeKind.Interface) && targetType.
SpecialType
== SpecialType.System_Object))
Diagnostics\LocalCouldBeConstAnalyzer.cs (2)
89
if ((!localType.IsReferenceType || localType.
SpecialType
== SpecialType.System_String) && localType.
SpecialType
!= SpecialType.None)
Diagnostics\OperationTestAnalyzer.cs (12)
159
conditionRight.Type.
SpecialType
== SpecialType.System_Int32 &&
176
setupAssignment.Value.Type.
SpecialType
== SpecialType.System_Int32)
241
advanceAssignment.Value.Type.
SpecialType
== SpecialType.System_Int32)
250
advanceOperation.RightOperand.Type.
SpecialType
== SpecialType.System_Int32)
265
advanceAssignment.Value.Type.
SpecialType
== SpecialType.System_Int32)
357
singleValueExpression.Type.
SpecialType
== SpecialType.System_Int32)
377
rangeMinExpression.Type.
SpecialType
== SpecialType.System_Int32 &&
380
rangeMaxExpression.Type.
SpecialType
== SpecialType.System_Int32)
400
relationalValueExpression.Type.
SpecialType
== SpecialType.System_Int32)
587
if (argumentValue.HasValue && argument.Type.
SpecialType
== SpecialType.System_Int32)
631
if (literal.Type.
SpecialType
== SpecialType.System_Int32 &&
1521
if (binary.OperatorKind == BinaryOperatorKind.Multiply && binary.Type.
SpecialType
== SpecialType.System_Double)
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\VisualBasicCompilation.vb (2)
846
Return info.Type.
SpecialType
<> SpecialType.System_Void
851
Return info.Type.
SpecialType
<> SpecialType.System_Void
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
418
Dim type = symbol.
SpecialType
Symbols\TypeSymbol.vb (1)
276
Public Overridable ReadOnly Property SpecialType As SpecialType Implements ITypeSymbol.
SpecialType
, ITypeSymbolInternal.SpecialType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (11)
CastAnalyzer.vb (10)
228
If If(castType?.
SpecialType
= SpecialType.System_Object, False) AndAlso
322
DirectCast(castExpressionType.OriginalDefinition, ITypeSymbol).
SpecialType
= SpecialType.System_Nullable_T
383
Select Case destinationType.
SpecialType
385
Select Case sourceType.
SpecialType
400
ElseIf castType.
SpecialType
= SpecialType.System_DateTime
401
Return Not outerType.
SpecialType
= SpecialType.System_DateTime
402
ElseIf castType.
SpecialType
= SpecialType.System_Boolean
403
Return Not (outerType.IsNumericType OrElse outerType.
SpecialType
= SpecialType.System_Boolean)
406
If castType.OriginalDefinition?.
SpecialType
= SpecialType.System_Nullable_T Then
418
If castType.Equals(outerType) OrElse outerType.
SpecialType
= SpecialType.System_Object Then
ExpressionSyntaxExtensions.vb (1)
111
If typeInfo.Type IsNot Nothing AndAlso typeInfo.Type.
SpecialType
= SpecialType.System_Void Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (10)
ExpressionSyntaxExtensions.vb (1)
105
Dim castKeyword = targetType.
SpecialType
.GetPredefinedCastKeyword()
ITypeSymbolExtensions.vb (1)
103
Select Case this.
SpecialType
StringExtensions.vb (1)
96
Select Case type.
SpecialType
TypeSyntaxGeneratorVisitor.vb (2)
81
If symbol.OriginalDefinition.
SpecialType
= SpecialType.System_Nullable_T Then
95
Select Case symbol.
SpecialType
VisualBasicTypeInferenceService.TypeInferrer.vb (5)
486
Return types.Select(Function(t) New TypeInferenceInfo(If(t.InferredType.
SpecialType
= SpecialType.System_Void, task, taskOfT.Construct(t.InferredType))))
511
If t.InferredType.OriginalDefinition.
SpecialType
= SpecialType.System_Nullable_T Then
544
If otherSideTypes.Any(Function(t) t.InferredType.
SpecialType
<> SpecialType.System_Object AndAlso Not t.InferredType.IsErrorType()) Then
773
If memberType.OriginalDefinition.
SpecialType
= SpecialType.System_Collections_Generic_IEnumerable_T OrElse
774
memberType.OriginalDefinition.
SpecialType
= SpecialType.System_Collections_Generic_IEnumerator_T Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_Tuples.vb (1)
443
Assert.True(constant.Type.
SpecialType
= SpecialType.System_String)
Emit\NoPiaEmbedTypes.vb (1)
1881
Assert.Equal(expr.Type.
SpecialType
, SpecialType.System_String)
Microsoft.CodeAnalysis.VisualBasic.Features (8)
Completion\CompletionProviders\OverrideCompletionProvider.vb (1)
193
If overriddenMember.ContainingType.
SpecialType
= SpecialType.System_Object Then
Completion\KeywordRecommenders\Expressions\TrueFalseKeywordRecommender.vb (1)
37
Return types.Any(Function(t) t.
SpecialType
= SpecialType.System_Boolean)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
109
Dim inferredSpecialTypes = context.InferredTypes.Select(Function(t) t.
SpecialType
).ToSet()
Completion\Providers\DefaultArgumentProvider.vb (1)
25
Select Case context.Parameter.Type.
SpecialType
ExtractMethod\Extensions.vb (1)
474
Return type Is Nothing OrElse type.
SpecialType
= SpecialType.System_Object
ExtractMethod\VisualBasicMethodExtractor.vb (1)
91
If type.
SpecialType
= SpecialType.System_Void Then
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (1)
357
Return method.Parameters(0).Type.
SpecialType
= SpecialType.System_Boolean
ExtractMethod\VisualBasicSelectionResult.vb (1)
198
If If(info.Type?.
SpecialType
= SpecialType.System_String, False) AndAlso
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (39)
Semantics\ForeachTest.vb (6)
1168
Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.
SpecialType
)
1172
Assert.Equal(SpecialType.System_Char, typeInfo.Type.
SpecialType
)
1208
Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.
SpecialType
)
1212
Assert.Equal(SpecialType.System_Char, typeInfo.Type.
SpecialType
)
1260
Assert.Equal(SpecialType.System_String, loopInfo0.ElementType.
SpecialType
)
1269
Assert.Equal(SpecialType.System_Object, loopInfo1.ElementType.
SpecialType
) ' No longer string.
Semantics\GetExtendedSemanticInfoTests.vb (20)
1960
Assert.Equal(SpecialType.System_Void, semanticInfo.Type.
SpecialType
)
1961
Assert.Equal(SpecialType.System_Void, semanticInfo.ConvertedType.
SpecialType
)
2929
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
2948
Assert.Equal(System_DateTime, semanticInfo.Type.
SpecialType
)
2967
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
2987
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3028
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3317
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3339
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3361
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3384
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3432
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
3433
Assert.Equal(System_Int16, semanticInfo.ConvertedType.
SpecialType
)
3923
Assert.Equal(semanticInfo.Type.
SpecialType
, System_Int32)
3964
Assert.Equal(semanticInfo.Type.
SpecialType
, System_Int32)
3984
Assert.Equal(semanticInfo.Type.
SpecialType
, System_String)
5622
Assert.Equal(System_Int32, semanticInfo.Type.
SpecialType
)
5627
Assert.Equal(System_Int64, semanticInfo.ConvertedType.
SpecialType
)
5680
Assert.Equal(System_Int64, semanticInfo.Type.
SpecialType
)
5683
Assert.Equal(System_Int32, semanticInfo.ConvertedType.
SpecialType
)
Semantics\GetSemanticInfoTests.vb (11)
3785
Assert.Equal(info.Type.
SpecialType
, SpecialType.System_Object)
3796
Assert.Equal(info.Type.
SpecialType
, SpecialType.System_Object)
6151
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6156
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6213
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6218
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6223
Assert.Equal(SpecialType.System_Object, model.GetTypeInfo(expr).Type.
SpecialType
)
6253
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6283
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6313
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
6351
Assert.Equal(SpecialType.System_Boolean, model.GetTypeInfo(expr).Type.
SpecialType
)
Semantics\NativeIntegerTests.vb (1)
51
Assert.Equal(If(signed, SpecialType.System_IntPtr, SpecialType.System_UIntPtr), type.
SpecialType
)
Semantics\TypeOfTests.vb (1)
763
Assert.Equal(SpecialType.System_Object, typeInfo.ConvertedType.
SpecialType
)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (7)
SymbolsTests\Source\EnumTests.vb (1)
1212
Assert.Equal(type.
SpecialType
, SpecialType.System_Int32)
SymbolsTests\Source\PropertyTests.vb (6)
3796
Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo().Items(1)"), SpeculativeBindingOption.BindAsExpression).Type.
SpecialType
)
3797
Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo.Items(1)"), SpeculativeBindingOption.BindAsExpression).Type.
SpecialType
)
3798
Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo()(1)"), SpeculativeBindingOption.BindAsExpression).Type.
SpecialType
)
3799
Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo(1)"), SpeculativeBindingOption.BindAsExpression).Type.
SpecialType
)
3800
Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("dd.Item(1)"), SpeculativeBindingOption.BindAsExpression).Type.
SpecialType
)
3801
Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Bar(1)"), SpeculativeBindingOption.BindAsExpression).Type.
SpecialType
)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (32)
CastAnalyzer.vb (10)
228
If If(castType?.
SpecialType
= SpecialType.System_Object, False) AndAlso
322
DirectCast(castExpressionType.OriginalDefinition, ITypeSymbol).
SpecialType
= SpecialType.System_Nullable_T
383
Select Case destinationType.
SpecialType
385
Select Case sourceType.
SpecialType
400
ElseIf castType.
SpecialType
= SpecialType.System_DateTime
401
Return Not outerType.
SpecialType
= SpecialType.System_DateTime
402
ElseIf castType.
SpecialType
= SpecialType.System_Boolean
403
Return Not (outerType.IsNumericType OrElse outerType.
SpecialType
= SpecialType.System_Boolean)
406
If castType.OriginalDefinition?.
SpecialType
= SpecialType.System_Nullable_T Then
418
If castType.Equals(outerType) OrElse outerType.
SpecialType
= SpecialType.System_Object Then
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
132
Select Case returnType.OriginalDefinition.
SpecialType
CodeGeneration\MethodGenerator.vb (1)
70
Dim isSub = method.ReturnType.
SpecialType
= SpecialType.System_Void
CodeGeneration\NamedTypeGenerator.vb (2)
149
If(namedType.EnumUnderlyingType IsNot Nothing AndAlso namedType.EnumUnderlyingType.
SpecialType
<> SpecialType.System_Int32,
207
namedType.BaseType.
SpecialType
= SpecialType.System_Object Then
CodeGeneration\ParameterGenerator.vb (1)
48
elementType.OriginalDefinition.
SpecialType
<> SpecialType.System_Nullable_T Then
ITypeSymbolExtensions.vb (1)
103
Select Case this.
SpecialType
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (1)
111
If typeInfo.Type IsNot Nothing AndAlso typeInfo.Type.
SpecialType
= SpecialType.System_Void Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (1)
105
Dim castKeyword = targetType.
SpecialType
.GetPredefinedCastKeyword()
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
156
Return typeSymbol.
SpecialType
<> SpecialType.System_Delegate
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
945
If Not method.ReturnsVoid AndAlso Not method.Parameters.Any() AndAlso method.ReturnType.
SpecialType
= SpecialType.System_Boolean Then
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
117
Dim keywordKind = GetPredefinedKeywordKind(type.
SpecialType
)
Simplification\Simplifiers\ExpressionSimplifier.vb (2)
132
Dim keywordKind = GetPredefinedKeywordKind(DirectCast(symbol, INamedTypeSymbol).
SpecialType
)
246
If isInCref AndAlso TypeOf rightSymbol Is IMethodSymbol AndAlso Not containingType.
SpecialType
= SpecialType.None Then
Simplification\Simplifiers\NameSimplifier.vb (1)
161
Dim keywordKind = GetPredefinedKeywordKind(type.
SpecialType
)
StringExtensions.vb (1)
96
Select Case type.
SpecialType
TypeSyntaxGeneratorVisitor.vb (2)
81
If symbol.OriginalDefinition.
SpecialType
= SpecialType.System_Nullable_T Then
95
Select Case symbol.
SpecialType
VisualBasicTypeInferenceService.TypeInferrer.vb (5)
486
Return types.Select(Function(t) New TypeInferenceInfo(If(t.InferredType.
SpecialType
= SpecialType.System_Void, task, taskOfT.Construct(t.InferredType))))
511
If t.InferredType.OriginalDefinition.
SpecialType
= SpecialType.System_Nullable_T Then
544
If otherSideTypes.Any(Function(t) t.InferredType.
SpecialType
<> SpecialType.System_Object AndAlso Not t.InferredType.IsErrorType()) Then
773
If memberType.OriginalDefinition.
SpecialType
= SpecialType.System_Collections_Generic_IEnumerable_T OrElse
774
memberType.OriginalDefinition.
SpecialType
= SpecialType.System_Collections_Generic_IEnumerator_T Then
Microsoft.CodeAnalysis.Workspaces (51)
AbstractFlagsEnumGenerator.cs (3)
81
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
175
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
191
var underlyingSpecialType = enumType.EnumUnderlyingType.
SpecialType
;
AbstractSpeculationAnalyzer.cs (5)
448
type1.EnumUnderlyingType?.
SpecialType
== type2.
SpecialType
;
707
&& symbol.ContainingType.
SpecialType
== SpecialType.System_Object
983
if (newReceiverType.
SpecialType
!= SpecialType.None)
990
return newSymbolContainingType.
SpecialType
is SpecialType.System_Array or
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
127
symbol.ContainingType?.
SpecialType
== SpecialType.System_Enum;
CodeGenerationHelpers.cs (2)
85
=> type != null && type.
SpecialType
== specialType;
135
=> type?.
SpecialType
switch
CodeGenerationMethodSymbol.cs (1)
80
=> this.ReturnType == null || this.ReturnType.
SpecialType
== SpecialType.System_Void;
Editing\SyntaxGenerator.cs (2)
797
underlyingType: type.EnumUnderlyingType is null or {
SpecialType
: SpecialType.System_Int32 }
799
: TypeExpression(type.EnumUnderlyingType.
SpecialType
),
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
243
typeNameConstant.Type.
SpecialType
!= SpecialType.System_String ||
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
213
switch (type.
SpecialType
)
219
predicateOpt: n => n.BaseType?.
SpecialType
== SpecialType.System_Object).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (2)
61
project, documents, containingType.
SpecialType
.ToPredefinedType(), cancellationToken).ConfigureAwait(false));
178
var predefinedType = symbol.ContainingType.
SpecialType
.ToPredefinedType();
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
47
var documentsWithType = await FindDocumentsAsync(project, documents, underlyingNamedType.
SpecialType
.ToPredefinedType(), cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (2)
70
project, documents, symbol.
SpecialType
.ToPredefinedType(), cancellationToken).ConfigureAwait(false));
201
var predefinedType = symbol.
SpecialType
.ToPredefinedType();
IMethodSymbolExtensions.cs (2)
44
method.Parameters is [{ Type.
SpecialType
: SpecialType.System_Object }, var secondParam] &&
105
methodSymbol.ReturnType.
SpecialType
== SpecialType.System_Int32 ||
ISemanticFactsExtensions.cs (1)
119
=> type?.
SpecialType
is SpecialType.System_Single or SpecialType.System_Double;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
615
ContainingType.
SpecialType
: SpecialType.System_Object,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (2)
619
if (!returnType.GetMembers().OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.IsCompleted && p.Type.
SpecialType
== SpecialType.System_Boolean && p.GetMethod != null))
669
ReturnType.
SpecialType
: SpecialType.System_Boolean,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (9)
23
=> type?.
SpecialType
.IsIntegralType() == true;
26
=> type?.
SpecialType
.IsSignedIntegralType() == true;
57
=> symbol?.
SpecialType
== SpecialType.System_Void;
60
=> symbol?.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T;
268
switch (typeSymbol.
SpecialType
)
286
switch (type.
SpecialType
)
374
switch (symbol.
SpecialType
)
404
typeSymbol.AllInterfaces.Any(static i => i.
SpecialType
== SpecialType.System_Collections_IEnumerable) &&
644
switch (type.
SpecialType
)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
30
namedType.
SpecialType
,
Recommendations\AbstractRecommendationService.cs (1)
79
if (namedType.
SpecialType
== SpecialType.System_Void)
SemanticModelExtensions.cs (2)
173
type.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T ||
190
if (type.
SpecialType
== SpecialType.System_String)
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (3)
407
switch (typeSymbol.
SpecialType
)
441
method.ReturnType.
SpecialType
== SpecialType.System_Boolean &&
442
method.Parameters[0].Type.
SpecialType
== SpecialType.System_Object &&
Shared\Utilities\EnumValueUtilities.cs (1)
34
return CreateOne(enumType.EnumUnderlyingType.
SpecialType
);
SymbolEquivalenceComparer.cs (1)
180
=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.
SpecialType
== SpecialType.System_Object;
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
210
method.ReturnType.
SpecialType
== SpecialType.System_Int32 &&
SyntaxGeneratorExtensions_Negate.cs (4)
248
var valueType = (operation as IIsPatternOperation)?.Value.Type?.
SpecialType
;
421
if (containingType?.
SpecialType
== SpecialType.System_Array ||
422
containingType?.
SpecialType
== SpecialType.System_String)
430
switch (type?.
SpecialType
)
Microsoft.VisualStudio.LanguageServices (10)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
94
typeSymbol.
SpecialType
== SpecialType.System_Void)
Library\ObjectBrowser\AbstractListItemFactory.cs (5)
60
return namedTypeSymbol.
SpecialType
.ToPredefinedType() != PredefinedType.None
101
var fullNameText = namedTypeSymbol.
SpecialType
.ToPredefinedType() != PredefinedType.None
112
var displayText = namedTypeSymbol.
SpecialType
.ToPredefinedType() != PredefinedType.None
208
if (namedTypeSymbol.
SpecialType
== SpecialType.System_Object)
276
typeSymbol.
SpecialType
!= SpecialType.System_Object)
Library\ObjectBrowser\ObjectList.cs (1)
439
if (typeSymbol.
SpecialType
== SpecialType.System_Object)
Library\VsNavInfo\NavInfoFactory.cs (1)
78
if (typeSymbol.
SpecialType
== SpecialType.System_Nullable_T)
ProjectSystem\AbstractEntryPointFinder.cs (2)
51
if (!symbol.ReturnsVoid && symbol.ReturnType.
SpecialType
!= SpecialType.System_Int32)
63
var specialType = elementType.
SpecialType
;
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (1)
714
switch (typeSymbol.
SpecialType
)
LanguageService\CSharpHelpContextService.cs (1)
534
if (symbol is ITypeSymbol type && type.OriginalDefinition.
SpecialType
== SpecialType.System_Nullable_T)
ObjectBrowser\DescriptionBuilder.cs (2)
102
if (underlyingType.
SpecialType
!= SpecialType.System_Int32)
114
if (baseType.
SpecialType
is not SpecialType.System_Object and
Microsoft.VisualStudio.LanguageServices.VisualBasic (7)
CodeModel\VisualBasicCodeModelService.vb (3)
753
If typeSymbol.
SpecialType
= SpecialType.System_Void Then
766
If typeSymbol.
SpecialType
= SpecialType.System_Object Then
774
Select Case typeSymbol.
SpecialType
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
98
Not methodSymbol.ReturnType.
SpecialType
= SpecialType.System_Void Then
Help\VisualBasicHelpContextService.vb (1)
107
If type.
SpecialType
<> SpecialType.None Then
Help\VisualBasicHelpContextService.Visitor.vb (1)
450
ElseIf TypeOf symbol Is ITypeSymbol AndAlso DirectCast(symbol, ITypeSymbol).
SpecialType
<> SpecialType.None Then
ObjectBrowser\DescriptionBuilder.vb (1)
107
If underlyingType IsNot Nothing AndAlso underlyingType.
SpecialType
<> SpecialType.System_Int32 Then