11 implementations of TypeKind
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
CodeGenerationArrayTypeSymbol.cs (1)
50
public override TypeKind
TypeKind
=> TypeKind.Array;
CodeGenerationPointerTypeSymbol.cs (1)
25
public override TypeKind
TypeKind
=> TypeKind.Pointer;
CodeGenerationTypeParameterSymbol.cs (1)
70
public override TypeKind
TypeKind
=> TypeKind.TypeParameter;
CodeGenerationTypeSymbol.cs (1)
36
public abstract TypeKind
TypeKind
{ get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
135
TypeKind ITypeSymbol.
TypeKind
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
68
public TypeKind
TypeKind
=> _symbol.TypeKind;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
570
Private ReadOnly Property
ITypeSymbol_TypeKind
As TypeKind Implements ITypeSymbol.TypeKind, ITypeSymbolInternal.TypeKind
Microsoft.CodeAnalysis.Workspaces (4)
CodeGenerationArrayTypeSymbol.cs (1)
50
public override TypeKind
TypeKind
=> TypeKind.Array;
CodeGenerationPointerTypeSymbol.cs (1)
25
public override TypeKind
TypeKind
=> TypeKind.Pointer;
CodeGenerationTypeParameterSymbol.cs (1)
70
public override TypeKind
TypeKind
=> TypeKind.TypeParameter;
CodeGenerationTypeSymbol.cs (1)
36
public abstract TypeKind
TypeKind
{ get; }
1768 references to TypeKind
Microsoft.CodeAnalysis (5)
Compilation\Compilation.cs (2)
3579
return string.Format("{0}: {1} {2} -> {3} {4}", this.AssemblyName, source.
TypeKind
.ToString(), source.Name, destination.
TypeKind
.ToString(), destination.Name);
Compilation\Expression.cs (1)
41
if (type.
TypeKind
== TypeKind.Enum)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (2)
98
if (type.
TypeKind
== TypeKind.Enum)
139
if (typeSymbol.
TypeKind
!= TypeKind.Enum)
Microsoft.CodeAnalysis.CodeStyle (44)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
150
if (value.Type.
TypeKind
== TypeKind.Dynamic)
AbstractUseAutoPropertyAnalyzer.cs (1)
89
if (namedType.
TypeKind
is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
INamedTypeSymbolExtensions.cs (8)
86
if (member.ContainingType.
TypeKind
== TypeKind.Interface)
157
if (implementation?.ContainingType.
TypeKind
== TypeKind.Interface)
203
if (type.
TypeKind
== TypeKind.Interface)
304
if (type.
TypeKind
== TypeKind.Interface)
342
if (classOrStructType.
TypeKind
is not TypeKind.Class and not TypeKind.Struct)
352
if (!interfacesOrAbstractClasses.All(i => i.
TypeKind
== TypeKind.Interface) &&
369
return interfacesOrAbstractClasses.First().
TypeKind
== TypeKind.Interface
521
if (containingType.
TypeKind
is TypeKind.Class or TypeKind.Struct)
ISymbolExtensions.cs (8)
114
return symbol?.ContainingType?.
TypeKind
== TypeKind.Class &&
123
symbol.ContainingType.
TypeKind
== TypeKind.Interface)
163
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Error };
166
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Module };
169
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Interface };
220
=> symbol is { ContainingType.
TypeKind
: TypeKind.Module };
244
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Delegate };
633
if (!methods.Any(x => x.Name == WellKnownMemberNames.OnCompleted && x.ReturnsVoid && x.Parameters is [{ Type.
TypeKind
: TypeKind.Delegate }]))
ISymbolExtensions_Accessibility.cs (1)
199
typeArg.
TypeKind
!= TypeKind.Error &&
ITypeSymbolExtensions.cs (13)
42
if (type is INamedTypeSymbol namedType && namedType.
TypeKind
== TypeKind.Interface && !allInterfaces.Contains(namedType))
54
=> symbol?.
TypeKind
== TypeKind.Class && symbol.IsAbstract;
80
=> symbol?.
TypeKind
== TypeKind.Module;
83
=> symbol?.
TypeKind
== TypeKind.Interface;
86
=> symbol?.
TypeKind
== TypeKind.Delegate;
89
=> symbol?.
TypeKind
== TypeKind.FunctionPointer;
92
=> symbol?.
TypeKind
== TypeKind.Struct;
186
IEnumerable<ITypeSymbol> baseTypes = (baseType.
TypeKind
== TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes();
261
switch (typeSymbol.
TypeKind
)
531
if (t1.
TypeKind
!= t2.
TypeKind
)
625
if (type != null && type.IsValueType && type.
TypeKind
== TypeKind.Enum)
677
if (type.
TypeKind
!= TypeKind.Struct)
NamingStyleRules.cs (1)
74
if (containingType.
TypeKind
is not TypeKind.Class and not TypeKind.Struct)
PopulateSwitchExpressionHelpers.cs (1)
28
if (switchExpressionType?.
TypeKind
== TypeKind.Enum)
PopulateSwitchStatementHelpers.cs (1)
57
if (switchExpressionType?.
TypeKind
== TypeKind.Enum)
SemanticModelExtensions.cs (2)
165
if (type.
TypeKind
== TypeKind.Array && typeArguments.IsEmpty)
174
type.
TypeKind
== TypeKind.Pointer)
SymbolEquivalenceComparer.cs (1)
222
var k = x.
TypeKind
;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
500
if (x.
TypeKind
== TypeKind.Delegate)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
195
if (x.
TypeKind
== TypeKind.Delegate)
SymbolKey.SymbolKeyWriter.cs (1)
404
if (namedTypeSymbol.
TypeKind
== TypeKind.Error)
SymbolKey.TupleTypeSymbolKey.cs (1)
24
var isError = symbol.TupleUnderlyingType!.
TypeKind
== TypeKind.Error;
SymbolSpecification.cs (1)
400
SymbolCategory.Type => symbol is ITypeSymbol type && type.
TypeKind
== (TypeKind)_kind,
SymbolUsageAnalysis.Walker.cs (1)
383
symbol.GetSymbolType()?.
TypeKind
!= TypeKind.Delegate)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
AbstractFlagsEnumGenerator.cs (1)
36
if (typeSymbol.
TypeKind
!= TypeKind.Enum)
AbstractUnsealClassCodeFixProvider.cs (1)
40
type.
TypeKind
== TypeKind.Class && type.IsSealed && !type.IsStatic)
AbstractUseConditionalExpressionCodeFixProvider.cs (2)
182
conversion.Type.
TypeKind
!= TypeKind.Error)
186
if (conversion.Operand.Type == null || conversion.Operand.Type.
TypeKind
!= TypeKind.Error)
CodeGenerationHelpers.cs (1)
153
if (namedType.
TypeKind
!= TypeKind.Enum)
INamedTypeSymbolExtensions.cs (1)
25
namedType.
TypeKind
,
Microsoft.CodeAnalysis.CSharp (19)
SymbolDisplay\SymbolDisplayVisitor.cs (3)
261
if (type != null && type.
TypeKind
!= TypeKind.Error)
317
(containingType.
TypeKind
!= TypeKind.Interface && !IsEnumMember(symbol) & !IsLocalFunction(symbol))))
409
&& symbol.ContainingType.
TypeKind
== TypeKind.Enum
SymbolDisplay\SymbolDisplayVisitor.Members.cs (3)
63
if (symbol.ContainingType.
TypeKind
== TypeKind.Enum)
883
if (type.
TypeKind
== TypeKind.Enum)
932
(containingType.
TypeKind
!= TypeKind.Interface && !IsEnumMember(symbol) && !IsLocalFunction(symbol))))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (11)
221
if (typeArg.
TypeKind
!= TypeKind.Pointer)
274
var shouldSkip = namespaceSymbol.IsGlobalNamespace && symbol.
TypeKind
== TypeKind.Error;
319
if (symbol.IsAnonymousType && symbol.
TypeKind
!= TypeKind.Delegate)
359
if (symbolName is null && symbol.IsAnonymousType && symbol.
TypeKind
== TypeKind.Delegate)
496
if (tupleSymbol.
TypeKind
== TypeKind.Error ||
564
if (symbol.
TypeKind
== TypeKind.Error &&
583
symbol.
TypeKind
== TypeKind.Delegate &&
590
switch (symbol.
TypeKind
)
611
throw ExceptionUtilities.UnexpectedValue(symbol.
TypeKind
);
678
if (symbol.IsAnonymousType && symbol.
TypeKind
!= TypeKind.Delegate)
690
switch (symbol.
TypeKind
)
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
20
else if (type.IsReferenceType || type.
TypeKind
== TypeKind.Pointer || ITypeSymbolHelpers.IsNullableType(type))
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
147
if (symbol.
TypeKind
!= TypeKind.Error)
Microsoft.CodeAnalysis.CSharp.CodeStyle (19)
CastSimplifier.cs (8)
245
if (originalDelegateCreationOperation.Type?.
TypeKind
!= TypeKind.Delegate)
262
if (rewrittenDelegateCreationOperation.Type?.
TypeKind
!= TypeKind.Delegate)
297
if (originalConvertedType is null || originalConvertedType.
TypeKind
== TypeKind.Error)
330
if (rewrittenConvertedType is null || rewrittenConvertedType.
TypeKind
== TypeKind.Error || !rewrittenConversion.Exists)
479
originalConvertedType.IsReferenceType && rewrittenConvertedType.
TypeKind
== TypeKind.Dynamic)
802
if (!original.IsReferenceType || original.
TypeKind
== TypeKind.Interface)
1097
if (originalMemberSymbol.ContainingType.
TypeKind
== TypeKind.Interface)
1137
rewrittenType.
TypeKind
== TypeKind.Array ||
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
128
if (asType?.
TypeKind
== TypeKind.Dynamic)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
111
if (isType?.
TypeKind
== TypeKind.Dynamic)
CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
57
if (namedTypeSymbol.
TypeKind
!= TypeKind.Struct)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
45
TypeKind
: TypeKind.Struct,
149
return instance is { Type.
TypeKind
: TypeKind.Struct } ||
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
81
if (typeSymbol.
TypeKind
is not TypeKind.Struct)
CSharpUseAutoPropertyAnalyzer.cs (1)
111
if (symbolInfo.GetAnySymbol() is not IFieldSymbol { ContainingType.
TypeKind
: TypeKind.Struct })
CSharpUseImplicitTypeHelper.cs (1)
294
if (declaredType != null && declaredType.
TypeKind
== TypeKind.Dynamic)
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
92
if (syntaxContext.SemanticModel.GetTypeInfo(invocationExpression.Expression, syntaxContext.CancellationToken).Type is {
TypeKind
: TypeKind.FunctionPointer })
SemanticModelExtensions.cs (2)
212
if (containingType != null && containingType.
TypeKind
== TypeKind.Interface)
440
if (parameter.Type.OriginalDefinition.
TypeKind
!= TypeKind.TypeParameter)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (32)
ConvertToRecordEngine.cs (4)
41
TypeKind
: TypeKind.Class or TypeKind.Struct,
292
recordKeyword = type.
TypeKind
== TypeKind.Class
396
type.
TypeKind
== TypeKind.Class
402
type.
TypeKind
== TypeKind.Class
CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
90
if (type != null && type.
TypeKind
!= TypeKind.Error)
129
return type.
TypeKind
== TypeKind.Enum &&
CSharpTypeInferenceService.TypeInferrer.cs (3)
447
if (type.
TypeKind
== TypeKind.Delegate)
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);
ExpressionGenerator.cs (1)
61
if (type is INamedTypeSymbol {
TypeKind
: TypeKind.Enum } enumType)
ITypeParameterSymbolExtensions.cs (3)
58
typeParameter.ConstraintTypes.Where(t => t.
TypeKind
== TypeKind.Class).Concat(
59
typeParameter.ConstraintTypes.Where(t => t.
TypeKind
== TypeKind.Interface).Concat(
60
typeParameter.ConstraintTypes.Where(t => t.
TypeKind
is not TypeKind.Class and not TypeKind.Interface)));
ITypeSymbolExtensions.cs (1)
153
if (typeSymbol.
TypeKind
is TypeKind.Class or TypeKind.Struct)
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
50
if (symbol.ContainingType.
TypeKind
== TypeKind.Submission)
64
if (symbol.
TypeKind
!= TypeKind.Error)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (4)
190
if (symbol.
TypeKind
== TypeKind.Error && symbol.Name == "var")
235
if (innerType.
TypeKind
!= TypeKind.Pointer)
270
if (symbol.ContainingType.
TypeKind
!= TypeKind.Submission)
289
if (symbol.
TypeKind
!= TypeKind.Error)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
3049
return ((INamedTypeSymbol)symbol).
TypeKind
== TypeKind.Enum;
3052
return target.IsType && ((ITypeSymbol)target).
TypeKind
== TypeKind.Enum;
NamedTypeGenerator.cs (8)
91
if (info.Context.GenerateMembers && namedType.
TypeKind
!= TypeKind.Delegate)
183
if (namedType.
TypeKind
== TypeKind.Enum)
187
else if (namedType.
TypeKind
== TypeKind.Delegate)
195
var isRecordClass = namedType.
TypeKind
is TypeKind.Class;
206
var kind = namedType.
TypeKind
== TypeKind.Struct ? SyntaxKind.StructDeclaration :
207
namedType.
TypeKind
== TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
288
if (namedType.
TypeKind
== TypeKind.Class)
324
if (namedType.
TypeKind
== TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
PositionalParameterInfo.cs (1)
180
if (containingType.
TypeKind
== TypeKind.Struct && !containingType.IsReadOnly)
UseExplicitTypeForConstCodeFixProvider.cs (1)
52
if (type == null || type.
TypeKind
== TypeKind.Error || type.IsAnonymousType)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
SymbolKey\SymbolKeyTestBase.cs (1)
408
else if (tinfo.Type != null && tinfo.Type.
TypeKind
!= TypeKind.Delegate)
Workspaces\WorkspaceTests_EditorFeatures.cs (5)
486
Assert.NotEqual(TypeKind.Error, classC.
TypeKind
);
505
Assert.Equal(TypeKind.Error, classCz.
TypeKind
);
531
Assert.NotEqual(TypeKind.Error, classCy.
TypeKind
);
588
Assert.NotEqual(TypeKind.Error, classCy.
TypeKind
);
619
if (classCz.
TypeKind
== TypeKind.Error)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Semantics\PatternMatchingTests2.cs (5)
2356
Assert.Equal(TypeKind.Error, ti.Type.
TypeKind
);
2362
Assert.Equal(TypeKind.Error, ti.Type.
TypeKind
);
2368
Assert.Equal(TypeKind.Error, ti.Type.
TypeKind
);
2370
Assert.Equal(TypeKind.Error, ti.ConvertedType.
TypeKind
);
2376
Assert.Equal(TypeKind.Error, ti.ConvertedType.
TypeKind
);
Microsoft.CodeAnalysis.CSharp.Features (43)
ChangeSignature\CSharpChangeSignatureService.cs (1)
156
if (typeSymbol != null && typeSymbol.IsKind(SymbolKind.NamedType) && ((ITypeSymbol)typeSymbol).
TypeKind
== TypeKind.Delegate)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (2)
104
if (type.
TypeKind
== TypeKind.Interface)
112
if (type.
TypeKind
== TypeKind.TypeParameter)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (4)
129
if (type.
TypeKind
!= TypeKind.Enum)
184
if (type.
TypeKind
== TypeKind.Enum)
289
if (containingType?.
TypeKind
== TypeKind.Enum &&
346
if (type.
TypeKind
is TypeKind.Struct or TypeKind.Class)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
75
if (symbol?.
TypeKind
!= TypeKind.Interface)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (3)
175
if (semanticModel.GetTypeInfo(objectCreationExpression, cancellationToken).Type is INamedTypeSymbol type && within != null && type.
TypeKind
!= TypeKind.Delegate)
215
(within.
TypeKind
== TypeKind.Struct || within.
TypeKind
== TypeKind.Class))
ConvertToRecordEngine.cs (4)
41
TypeKind
: TypeKind.Class or TypeKind.Struct,
292
recordKeyword = type.
TypeKind
== TypeKind.Class
396
type.
TypeKind
== TypeKind.Class
402
type.
TypeKind
== TypeKind.Class
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
128
if (asType?.
TypeKind
== TypeKind.Dynamic)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
111
if (isType?.
TypeKind
== TypeKind.Dynamic)
CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
57
if (namedTypeSymbol.
TypeKind
!= TypeKind.Struct)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
45
TypeKind
: TypeKind.Struct,
149
return instance is { Type.
TypeKind
: TypeKind.Struct } ||
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
81
if (typeSymbol.
TypeKind
is not TypeKind.Struct)
CSharpReplaceDefaultLiteralCodeFixProvider.cs (2)
90
if (type != null && type.
TypeKind
!= TypeKind.Error)
129
return type.
TypeKind
== TypeKind.Enum &&
CSharpUseAutoPropertyAnalyzer.cs (1)
111
if (symbolInfo.GetAnySymbol() is not IFieldSymbol { ContainingType.
TypeKind
: TypeKind.Struct })
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1933
=> symbol.
TypeKind
switch
2515
{ ContainingType.
TypeKind
: TypeKind.Interface } and not INamedTypeSymbol
2520
IFieldSymbol { ContainingType.
TypeKind
: TypeKind.Enum }
ExtractMethod\CSharpMethodExtractor.cs (1)
182
if (type.
TypeKind
is TypeKind.Error or
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
108
if (returnType.
TypeKind
== TypeKind.Array && containingScope is InitializerExpressionSyntax)
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (2)
185
semanticInfo.
TypeKind
== TypeKind.Error ||
186
semanticInfo.
TypeKind
== TypeKind.Unknown)
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
137
info.ConvertedType.
TypeKind
!= TypeKind.Interface)
GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
43
return classType?.
TypeKind
is TypeKind.Class or TypeKind.Struct;
ImplementInterface\CSharpImplementInterfaceService.cs (1)
58
if (interfaceSymbolInfo.GetAnySymbol() is INamedTypeSymbol interfaceType && interfaceType.
TypeKind
== TypeKind.Interface)
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
92
if (syntaxContext.SemanticModel.GetTypeInfo(invocationExpression.Expression, syntaxContext.CancellationToken).Type is {
TypeKind
: TypeKind.FunctionPointer })
NavigationBar\CSharpNavigationBarItemService.cs (1)
208
return symbol.ContainingType.
TypeKind
== TypeKind.Enum
PositionalParameterInfo.cs (1)
180
if (containingType.
TypeKind
== TypeKind.Struct && !containingType.IsReadOnly)
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
85
if (within.
TypeKind
is not TypeKind.Struct and not TypeKind.Class)
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (2)
86
if (invokedType is INamedTypeSymbol {
TypeKind
: TypeKind.Delegate } or IFunctionPointerTypeSymbol)
140
if (invokedType is INamedTypeSymbol {
TypeKind
: TypeKind.Delegate } expressionType)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (2)
87
if (type.
TypeKind
== TypeKind.Delegate)
126
Debug.Assert(type.
TypeKind
== TypeKind.Delegate);
UseExplicitTypeForConstCodeFixProvider.cs (1)
52
if (type == null || type.
TypeKind
== TypeKind.Error || type.IsAnonymousType)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (71)
Semantics\DeconstructionTests.cs (6)
4275
Assert.Equal(TypeKind.Struct, typeInfo.Type.
TypeKind
);
4276
Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[0].
TypeKind
);
4277
Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[1].
TypeKind
);
4534
Assert.Equal(TypeKind.Struct, typeInfo.Type.
TypeKind
);
4535
Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[0].
TypeKind
);
4536
Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)typeInfo.Type).TypeArguments[1].
TypeKind
);
Semantics\ExpressionBodiedMemberTests.cs (1)
259
Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.
TypeKind
);
Semantics\ForEachTests.cs (1)
2890
Assert.NotEqual(TypeKind.Error, localSymbolType.
TypeKind
);
Semantics\FunctionPointerTests.cs (5)
190
Assert.Equal(TypeKind.FunctionPointer, typeInfo.Type!.
TypeKind
);
276
Assert.Equal(TypeKind.FunctionPointer, typeInfo.ConvertedType!.
TypeKind
);
1918
Assert.Equal(TypeKind.TypeParameter, m1InvocationSymbol.TypeArguments[0].
TypeKind
);
1920
Assert.Equal(TypeKind.TypeParameter, functionPointer.Signature.ReturnType.
TypeKind
);
1921
Assert.Equal(TypeKind.TypeParameter, functionPointer.Signature.Parameters[0].Type.
TypeKind
);
Semantics\InteractiveSemanticModelTests.cs (9)
46
Assert.Equal(TypeKind.Error, baseType.
TypeKind
);
158
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
160
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
183
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
185
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
209
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
211
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
237
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
239
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
Semantics\IteratorTests.cs (1)
335
Assert.Equal(TypeKind.Error, typeInfo.Type.
TypeKind
);
Semantics\LambdaTests.cs (16)
2121
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2166
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2212
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2258
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2304
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2334
Assert.Equal(TypeKind.Struct, typeInfo.Type.
TypeKind
);
2361
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2416
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2462
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2508
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2541
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2574
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2611
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
2998
Assert.Equal(TypeKind.Error, model.GetTypeInfo(contentType).Type.
TypeKind
);
3007
Assert.Equal(TypeKind.Error, model.GetTypeInfo(b).Type.
TypeKind
);
5602
Assert.Equal(TypeKind.TypeParameter, expectedType.
TypeKind
);
Semantics\LocalFunctionTests.cs (2)
1779
Assert.Equal(TypeKind.Error, aTypeInfo.Type.
TypeKind
);
1854
Assert.Equal(TypeKind.Error, aTypeInfo.Type.
TypeKind
);
Semantics\NativeIntegerTests.cs (4)
239
Assert.Equal(TypeKind.Struct, type.
TypeKind
);
735
Assert.Equal(TypeKind.Error, type.
TypeKind
);
15393
Assert.Equal(TypeKind.Interface, symbol.
TypeKind
);
15423
Assert.Equal(TypeKind.TypeParameter, symbol.
TypeKind
);
Semantics\NullableReferenceTypesTests.cs (1)
3327
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
Semantics\OutVarTests.cs (9)
19678
Assert.True(compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type.
TypeKind
== TypeKind.Error);
19721
Assert.True(compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type.
TypeKind
== TypeKind.Error);
20651
Assert.True(compilation.GetSemanticModel(tree).GetTypeInfo(x4Ref).Type.
TypeKind
== TypeKind.Error);
20766
Assert.True(model.GetTypeInfo(x1Ref).Type.
TypeKind
== TypeKind.Error);
20769
Assert.True(model.GetTypeInfo(x2Ref).Type.
TypeKind
== TypeKind.Error);
20772
Assert.True(model.GetTypeInfo(x3Ref).Type.
TypeKind
== TypeKind.Error);
20775
Assert.True(model.GetTypeInfo(x4Ref).Type.
TypeKind
== TypeKind.Error);
33204
Assert.Equal(TypeKind.Class, model.GetTypeInfo(declaration2).Type.
TypeKind
);
33211
Assert.Equal(TypeKind.Class, typeInfo.Type.
TypeKind
);
Semantics\QueryTests.cs (2)
3382
Assert.NotEqual(TypeKind.Error, typeInfo2.Type.
TypeKind
);
3391
Assert.NotEqual(TypeKind.Error, typeInfo1.Type.
TypeKind
);
Semantics\ScriptSemanticsTests.cs (4)
251
Assert.Equal(TypeKind.Error, summary.Type.
TypeKind
);
252
Assert.Equal(TypeKind.Error, summary.ConvertedType.
TypeKind
);
568
Assert.Equal(TypeKind.Error, summary.Type.
TypeKind
);
569
Assert.Equal(TypeKind.Error, summary.ConvertedType.
TypeKind
);
Semantics\UnsafeTests.cs (10)
4433
Assert.Equal(TypeKind.Pointer, type.
TypeKind
);
4502
Assert.Equal(TypeKind.Pointer, typeInfo.Type.
TypeKind
);
4503
Assert.Equal(TypeKind.Error, ((IPointerTypeSymbol)typeInfo.Type).PointedAtType.
TypeKind
);
4540
Assert.Equal(TypeKind.Pointer, typeInfo.Type.
TypeKind
);
4541
Assert.Equal(TypeKind.Error, ((IPointerTypeSymbol)typeInfo.Type).PointedAtType.
TypeKind
);
5513
Assert.Equal(TypeKind.Pointer, typeInfo.ConvertedType.
TypeKind
);
5549
Assert.Equal(TypeKind.Pointer, type.
TypeKind
);
5553
Assert.Equal(TypeKind.Pointer, convertedType.
TypeKind
);
7348
Assert.Equal(TypeKind.Pointer, type.
TypeKind
);
7853
Assert.Equal(TypeKind.Enum, type.
TypeKind
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (555)
Compilation\GetSemanticInfoTests.cs (9)
1497
Assert.Equal(TypeKind.Error, bindInfo.Type.
TypeKind
);
1498
Assert.Equal(TypeKind.Struct, bindInfo.ConvertedType.
TypeKind
);
1818
Assert.Equal(TypeKind.Array, candidate.Parameters.Last().Type.
TypeKind
);
1819
Assert.Equal(TypeKind.TypeParameter, ((IMethodSymbol)candidate.OriginalDefinition).Parameters.Last().Type.
TypeKind
);
4381
Assert.Equal(TypeKind.Enum, info.Type.
TypeKind
);
4683
Assert.Equal(TypeKind.TypeParameter, paramType0.
TypeKind
);
4685
Assert.Equal(TypeKind.Class, paramType1.
TypeKind
);
4728
Assert.Equal(TypeKind.TypeParameter, paramType0.
TypeKind
);
4730
Assert.Equal(TypeKind.Class, paramType1.
TypeKind
);
Compilation\SemanticModelAPITests.cs (8)
2277
Assert.Equal(TypeKind.Pointer, typeInfo.Type.
TypeKind
);
2279
Assert.Equal(TypeKind.Pointer, typeInfo.ConvertedType.
TypeKind
);
3134
Assert.Equal(TypeKind.Error, ((IParameterSymbol)symbol).Type.
TypeKind
);
3167
Assert.Equal(TypeKind.Error, info.ConvertedType.
TypeKind
);
4331
Assert.Equal(TypeKind.Dynamic, dynamicType.Type.
TypeKind
);
4566
Assert.Equal(TypeKind.Class, type.
TypeKind
);
4582
Assert.Equal(TypeKind.Class, type.TupleElements[0].Type.
TypeKind
);
4583
Assert.Equal(TypeKind.Class, type.TupleElements[1].Type.
TypeKind
);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (7)
1012
Assert.Equal(TypeKind.Class, symbol.
TypeKind
);
2330
Assert.Equal(TypeKind.Error, info.Type.
TypeKind
);
2983
Assert.Equal(TypeKind.Interface, dsym2.
TypeKind
);
2989
Assert.Equal(TypeKind.Struct, dsym3.
TypeKind
);
4750
Assert.Equal(TypeKind.Enum, enumSymbol.
TypeKind
);
4780
Assert.Equal(TypeKind.Struct, structSymbol.
TypeKind
);
4781
Assert.Equal(TypeKind.Interface, interfaceSymbol.
TypeKind
);
Compilation\SemanticModelGetSemanticInfoTests.cs (527)
85
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
87
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
116
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
118
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
150
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
152
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
191
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
193
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
232
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
234
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
272
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
274
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
309
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
311
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
462
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
464
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
502
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
504
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
545
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
547
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
593
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
595
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
641
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
643
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
694
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
696
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
725
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
727
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
761
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
763
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
1643
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
1645
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
1719
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
1721
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
1750
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
1779
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
1781
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
1808
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
1810
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
1838
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
1840
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
1868
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
1870
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
1898
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
1900
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
1927
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
1929
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
1957
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
1959
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
1987
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
1989
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2017
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2019
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2049
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2051
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2081
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2083
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2118
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
2120
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
2151
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2153
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2191
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
2193
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
2263
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
2265
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
2298
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
2300
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
2348
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2350
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2394
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2396
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2437
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2439
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2492
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2494
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2544
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2546
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2576
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
2578
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
2649
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
2651
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
2690
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2692
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2870
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2872
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2946
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
2948
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
2982
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
2984
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3072
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3074
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3117
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3119
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3394
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
3396
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
3425
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
3427
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3457
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
3459
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
3492
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
3494
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
3523
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
3525
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
3589
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3591
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3627
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3629
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3671
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3673
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3705
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3707
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3739
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3741
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3773
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3775
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3803
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
3805
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
3835
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
3837
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
3864
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3866
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3899
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
3901
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3938
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
3972
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
3974
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
4007
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4009
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
4038
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4040
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4069
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4071
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
4135
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4137
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4159
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
4161
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
4185
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
4187
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
4246
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4248
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
4280
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4282
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4318
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4320
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4372
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
4374
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
4443
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4445
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
4474
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4476
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
4569
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4571
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4607
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4609
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4643
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4645
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4673
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
);
4675
Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.
TypeKind
);
4711
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
);
4713
Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.
TypeKind
);
4747
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
);
4749
Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.
TypeKind
);
4783
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
);
4785
Assert.Equal(TypeKind.Enum, semanticInfo.ConvertedType.
TypeKind
);
4814
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
);
4816
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4851
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4853
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
4878
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
4880
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
4964
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
4966
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5016
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5018
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5106
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5108
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5153
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5155
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5199
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5201
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5278
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5280
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5320
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5322
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5444
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
5446
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
5480
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5482
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5509
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5511
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5542
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5544
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5574
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5576
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5606
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5608
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5658
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
5694
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5704
Assert.Equal(TypeKind.Error, lambdaSym.Parameters[0].Type.
TypeKind
);
5728
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
5730
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
5761
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5763
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5795
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5797
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5828
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5830
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5862
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5864
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5896
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5898
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5931
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5933
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5964
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
5966
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
5998
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6000
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6031
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6033
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6059
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6061
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6091
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6093
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6117
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6119
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6144
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6146
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6177
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6179
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6329
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
6331
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
6344
Assert.Equal(TypeKind.Error, param.Type.
TypeKind
);
6365
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6367
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6437
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
6519
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
6521
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
6554
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
6556
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
6591
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
6593
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
6675
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
6677
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
6806
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6808
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6875
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
6877
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
6920
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6922
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
6965
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
6967
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7078
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7080
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7106
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
7108
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
7137
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
7139
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
7169
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
);
7171
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
7201
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
7203
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
7233
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
);
7235
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
7288
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7290
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7316
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7318
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7343
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7345
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7378
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7380
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7399
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7401
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7482
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7484
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
7526
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
);
7698
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
7700
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
7727
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
7729
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
7851
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
);
7853
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
7917
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
);
7919
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
7983
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
);
7985
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
8303
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
8369
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
8371
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
8403
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
8405
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
8514
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
8516
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
8560
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
8562
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
8605
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
8607
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
8646
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
8686
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
8726
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
8728
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
8770
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
8809
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
8811
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
8851
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
8853
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
8893
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
8895
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
8933
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
8935
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
9064
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9123
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9125
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9358
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
9360
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
9417
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
9419
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
9456
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9458
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9614
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
9616
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
9669
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9671
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9720
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9722
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9780
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
9782
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
9831
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9833
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9886
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
9888
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
9917
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9919
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9951
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9953
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
9987
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
9989
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10023
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10025
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10059
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10061
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10103
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10105
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10140
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10142
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10177
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10179
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10216
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10218
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10247
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10249
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10282
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10284
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10317
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
10319
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
10351
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
10353
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
10385
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
10387
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
10466
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
10468
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
10494
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10523
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10558
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
10560
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
10600
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
10602
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
10637
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
10639
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
10674
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
10676
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
10713
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
);
10715
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
);
10756
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
10758
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
10798
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10800
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10835
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
10837
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
10904
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
10906
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
11011
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11013
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11042
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11044
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11075
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11077
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11108
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11110
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11144
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
11146
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
11222
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
11224
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
11266
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11268
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11303
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11305
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11340
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11342
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11380
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11382
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11427
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11429
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11460
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11462
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11497
Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.
TypeKind
);
11499
Assert.Equal(TypeKind.TypeParameter, semanticInfo.ConvertedType.
TypeKind
);
11572
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11574
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11710
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
11712
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
11795
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
11797
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
11831
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
11833
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
11866
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
11868
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
11901
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
11903
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
11937
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
11939
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
11973
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
11975
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
12008
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
12010
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
12043
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
12045
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
12079
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
12081
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
12186
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
12188
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
12256
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
12258
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
12322
Assert.Equal(TypeKind.TypeParameter, semanticInfo.Type.
TypeKind
);
12324
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
12426
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
12428
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
12484
Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.
TypeKind
);
12486
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
12526
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12528
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12572
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12610
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12612
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12644
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12646
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12676
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
12678
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
12739
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12741
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12771
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12773
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12803
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12805
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12846
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12848
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12922
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12924
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12958
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12960
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
12996
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
12998
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
13037
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13039
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13070
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
13098
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
13100
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
13129
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13131
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13163
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13165
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13197
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13199
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13263
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
13265
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
13323
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13325
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13442
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
13444
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
13503
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
13505
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
13804
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
13806
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
13839
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
13841
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
13873
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13875
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13912
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13914
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13951
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
13953
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
13978
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
13980
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
14005
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
);
14007
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
14081
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
14083
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
14119
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
14121
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
14159
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
);
14161
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
);
14245
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
14247
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
14337
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
14339
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
14380
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
14382
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
14541
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
);
14543
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
);
14626
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
14628
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
15084
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
15086
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
15152
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
15154
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
15183
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
15185
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
15214
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
15216
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
);
15245
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
15247
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
15276
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
);
15278
Assert.Equal(TypeKind.Struct, semanticInfo.ConvertedType.
TypeKind
);
15338
Assert.Equal(TypeKind.Dynamic, semanticInfo.Type.
TypeKind
);
15340
Assert.Equal(TypeKind.Dynamic, semanticInfo.ConvertedType.
TypeKind
);
15405
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
);
15407
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
);
DocumentationComments\CrefTests.cs (1)
6540
Assert.Equal(TypeKind.Error, ((INamedTypeSymbol)actualSymbol1).TypeArguments.Single().
TypeKind
);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1025
Assert.Equal(TypeKind.Class, classDisposable.
TypeKind
);
Symbols\TypeTests.cs (2)
1705
Assert.Equal(TypeKind.Enum, memType.GetNullableUnderlyingType().
TypeKind
);
1773
Assert.Equal(TypeKind.Interface, ((ITypeSymbol)tinfo.Type).
TypeKind
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Extensions.cs (3)
673
return type.
TypeKind
== TypeKind.Dynamic;
678
return type.
TypeKind
== TypeKind.Delegate;
795
return type.
TypeKind
== TypeKind.Enum ? ((INamedTypeSymbol)type).EnumUnderlyingType : type;
Microsoft.CodeAnalysis.CSharp.Workspaces (39)
CastSimplifier.cs (8)
245
if (originalDelegateCreationOperation.Type?.
TypeKind
!= TypeKind.Delegate)
262
if (rewrittenDelegateCreationOperation.Type?.
TypeKind
!= TypeKind.Delegate)
297
if (originalConvertedType is null || originalConvertedType.
TypeKind
== TypeKind.Error)
330
if (rewrittenConvertedType is null || rewrittenConvertedType.
TypeKind
== TypeKind.Error || !rewrittenConversion.Exists)
479
originalConvertedType.IsReferenceType && rewrittenConvertedType.
TypeKind
== TypeKind.Dynamic)
802
if (!original.IsReferenceType || original.
TypeKind
== TypeKind.Interface)
1097
if (originalMemberSymbol.ContainingType.
TypeKind
== TypeKind.Interface)
1137
rewrittenType.
TypeKind
== TypeKind.Array ||
Classification\SyntaxClassification\SyntaxTokenClassifier.cs (1)
23
private static readonly Func<ITypeSymbol, bool> s_shouldInclude = t => t.
TypeKind
!= TypeKind.Error && t.GetArity() > 0;
CSharpTypeInferenceService.TypeInferrer.cs (3)
447
if (type.
TypeKind
== TypeKind.Delegate)
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);
CSharpUseImplicitTypeHelper.cs (1)
294
if (declaredType != null && declaredType.
TypeKind
== TypeKind.Dynamic)
ExpressionGenerator.cs (1)
61
if (type is INamedTypeSymbol {
TypeKind
: TypeKind.Enum } enumType)
ITypeParameterSymbolExtensions.cs (3)
58
typeParameter.ConstraintTypes.Where(t => t.
TypeKind
== TypeKind.Class).Concat(
59
typeParameter.ConstraintTypes.Where(t => t.
TypeKind
== TypeKind.Interface).Concat(
60
typeParameter.ConstraintTypes.Where(t => t.
TypeKind
is not TypeKind.Class and not TypeKind.Interface)));
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
50
if (symbol.ContainingType.
TypeKind
== TypeKind.Submission)
64
if (symbol.
TypeKind
!= TypeKind.Error)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (4)
190
if (symbol.
TypeKind
== TypeKind.Error && symbol.Name == "var")
235
if (innerType.
TypeKind
!= TypeKind.Pointer)
270
if (symbol.ContainingType.
TypeKind
!= TypeKind.Submission)
289
if (symbol.
TypeKind
!= TypeKind.Error)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
3049
return ((INamedTypeSymbol)symbol).
TypeKind
== TypeKind.Enum;
3052
return target.IsType && ((ITypeSymbol)target).
TypeKind
== TypeKind.Enum;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
153
if (typeSymbol.
TypeKind
is TypeKind.Class or TypeKind.Struct)
NamedTypeGenerator.cs (8)
91
if (info.Context.GenerateMembers && namedType.
TypeKind
!= TypeKind.Delegate)
183
if (namedType.
TypeKind
== TypeKind.Enum)
187
else if (namedType.
TypeKind
== TypeKind.Delegate)
195
var isRecordClass = namedType.
TypeKind
is TypeKind.Class;
206
var kind = namedType.
TypeKind
== TypeKind.Struct ? SyntaxKind.StructDeclaration :
207
namedType.
TypeKind
== TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
288
if (namedType.
TypeKind
== TypeKind.Class)
324
if (namedType.
TypeKind
== TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
Rename\CSharpRenameRewriterLanguageService.cs (2)
805
if (renamedSymbol is INamedTypeSymbol {
TypeKind
: not TypeKind.Enum } namedType)
810
if (renamedSymbol.ContainingSymbol is INamedTypeSymbol {
TypeKind
: not TypeKind.Enum } containingNamedType &&
SemanticModelExtensions.cs (2)
212
if (containingType != null && containingType.
TypeKind
== TypeKind.Interface)
440
if (parameter.Type.OriginalDefinition.
TypeKind
!= TypeKind.TypeParameter)
Simplification\CSharpSimplificationService.Expander.cs (1)
800
if (typeinfo.Type != null && typeinfo.Type.
TypeKind
== TypeKind.Dynamic)
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (4)
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (2)
64
if (symbol.ContainingType is INamedTypeSymbol namedTypeSymbol && symbol.ContainingType.
TypeKind
== TypeKind.Interface)
68
else if (symbol is INamedTypeSymbol namedTypeSymbol2 && namedTypeSymbol2.
TypeKind
== TypeKind.Interface)
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
87
if (interfaceSymbol == null || interfaceSymbol.
TypeKind
!= TypeKind.Interface)
Snippets\SnippetFunctions\AbstractSnippetFunctionGenerateSwitchCases.cs (1)
43
if (!TryGetEnumTypeSymbol(cancellationToken, out var typeSymbol) || typeSymbol.
TypeKind
!= TypeKind.Enum)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
SymbolFinder\DependentTypeFinderTests.cs (2)
580
var delegates = transitiveImpls.Where(i => i.
TypeKind
== TypeKind.Delegate);
610
var enums = transitiveImpls.Where(i => i.
TypeKind
== TypeKind.Enum);
SymbolFinder\FindSymbolAtPositionTests.cs (1)
63
Assert.Equal(TypeKind.Enum, fieldSymbol.ContainingType.
TypeKind
);
Microsoft.CodeAnalysis.Features (88)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
150
if (value.Type.
TypeKind
== TypeKind.Dynamic)
AbstractUnsealClassCodeFixProvider.cs (1)
40
type.
TypeKind
== TypeKind.Class && type.IsSealed && !type.IsStatic)
AbstractUseAutoPropertyAnalyzer.cs (1)
89
if (namedType.
TypeKind
is not TypeKind.Class and not TypeKind.Struct and not TypeKind.Module)
AbstractUseConditionalExpressionCodeFixProvider.cs (2)
182
conversion.Type.
TypeKind
!= TypeKind.Error)
186
if (conversion.Operand.Type == null || conversion.Operand.Type.
TypeKind
!= TypeKind.Error)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (1)
56
ContainingType.
TypeKind
== TypeKind.Interface ||
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
106
=> typeSymbol.
TypeKind
is TypeKind.Class or TypeKind.Struct;
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (3)
85
if (type.
TypeKind
== TypeKind.Interface ||
86
type.
TypeKind
== TypeKind.Pointer ||
87
type.
TypeKind
== TypeKind.Dynamic ||
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
91
if (enclosingSymbol.
TypeKind
is not (TypeKind.Struct or TypeKind.Class))
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (2)
97
.Where(symbol => declaredSymbol.
TypeKind
== symbol.
TypeKind
&&
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
88
if (namedType.
TypeKind
== TypeKind.Interface)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (1)
85
if (symbol is IAliasSymbol { Target: ITypeSymbol {
TypeKind
: not TypeKind.Error } target })
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
52
if (type is {
TypeKind
: TypeKind.Error })
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
279
if (collectionType.
TypeKind
== TypeKind.Interface && knownCollectionInterfaces.Contains(collectionType.OriginalDefinition))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
345
=> symbol.
TypeKind
switch
356
=> symbol.IsConst ? ((symbol.ContainingType.
TypeKind
== TypeKind.Enum) ? FeaturesResources.enum_value : FeaturesResources.const_field) :
3447
if (symbol.ContainingType is not {
TypeKind
: TypeKind.Class or TypeKind.Struct })
3894
if (oldType.
TypeKind
!= newType.
TypeKind
||
4297
if (newContainingSymbol.ContainingSymbol is INamedTypeSymbol {
TypeKind
: TypeKind.Delegate } newContainingDelegateType)
4711
var intoStruct = symbol.ContainingType.
TypeKind
== TypeKind.Struct;
4737
if (type.
TypeKind
== TypeKind.Struct)
4742
if (type.
TypeKind
!= TypeKind.Class)
ExtractInterface\AbstractExtractInterfaceService.cs (2)
272
var candidateInterfaceName = type.
TypeKind
== TypeKind.Interface ? type.Name : "I" + type.Name;
336
if (typeToExtractFrom.
TypeKind
== TypeKind.Interface)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
108
&& thisParameterBeingRead.Type is {
TypeKind
: TypeKind.Struct, IsReadOnly: false };
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
193
else if (symbol is INamedTypeSymbol {
TypeKind
: TypeKind.Class } namedType)
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
200
if (containingType?.
TypeKind
is not TypeKind.Class and not TypeKind.Struct)
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.State.cs (1)
70
if (ContainingType == null || ContainingType.
TypeKind
== TypeKind.Interface)
GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (2)
58
baseType.
TypeKind
== TypeKind.Error)
109
if (classType.
TypeKind
== TypeKind.Struct)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (3)
94
if (containingType?.
TypeKind
is not TypeKind.Class and not TypeKind.Struct)
181
if (info.ContainingType != null && info.ContainingType.
TypeKind
!= TypeKind.Interface)
298
if (generateEquals && containingType.
TypeKind
== TypeKind.Struct)
GenerateMember\AbstractGenerateMemberService.cs (2)
43
if (!typeKinds.Contains(typeToGenerateIn.
TypeKind
))
46
if (typeToGenerateIn.
TypeKind
== TypeKind.Interface && isStatic)
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
400
return TypeToGenerateIn?.
TypeKind
is (TypeKind?)TypeKind.Class or (TypeKind?)TypeKind.Struct;
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (2)
61
var classTypes = constraints.Where(ts => ts.
TypeKind
== TypeKind.Class).ToList();
62
var nonClassTypes = constraints.Where(ts => ts.
TypeKind
!= TypeKind.Class).ToList();
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
81
generateMethodBodies: _state.TypeToGenerateIn.
TypeKind
!= TypeKind.Interface),
98
generateMethodBodies: _state.TypeToGenerateIn.
TypeKind
!= TypeKind.Interface),
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
51
state.TypeToGenerateIn.
TypeKind
!= TypeKind.Interface &&
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
198
return isAbstract || State.TypeToGenerateIn.
TypeKind
== TypeKind.Interface || throwStatement == null
230
if (State.TypeToGenerateIn.
TypeKind
!= TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (2)
119
return _state.TypeToGenerateIn.
TypeKind
!= TypeKind.Interface && _refKind != RefKind.None
126
if (state.TypeToGenerateIn.
TypeKind
== TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.cs (3)
106
if (state.TypeToGenerateIn.
TypeKind
== TypeKind.Interface && state.IsStatic)
116
var isOnlyReadAndIsInInterface = state.TypeToGenerateIn.
TypeKind
== TypeKind.Interface && !state.IsWrittenTo;
150
if (state.TypeToGenerateIn.
TypeKind
!= TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
90
if (this.TypeToGenerateIn.
TypeKind
== TypeKind.Interface)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (3)
139
if (_state.BaseTypeOrInterfaceOpt.
TypeKind
== TypeKind.Interface || argumentList.Count == 0)
276
if (_state.BaseTypeOrInterfaceOpt == null || _state.BaseTypeOrInterfaceOpt.
TypeKind
== TypeKind.Interface)
286
if (_state.BaseTypeOrInterfaceOpt != null && _state.BaseTypeOrInterfaceOpt.
TypeKind
== TypeKind.Interface)
GenerateType\AbstractGenerateTypeService.State.cs (3)
245
if (baseType.
TypeKind
is not TypeKind.Class and not TypeKind.Interface)
275
(BaseTypeOrInterfaceOpt == null || BaseTypeOrInterfaceOpt.
TypeKind
== TypeKind.Interface))
293
if (TypeToGenerateInOpt.
TypeKind
is not TypeKind.Class and
GoToBase\FindBaseHelpers.cs (3)
21
(namedTypeSymbol.
TypeKind
== TypeKind.Class ||
22
namedTypeSymbol.
TypeKind
== TypeKind.Interface ||
23
namedTypeSymbol.
TypeKind
== TypeKind.Struct))
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
385
var condition1 = typeParameter.ConstraintTypes.Count(t => t.
TypeKind
== TypeKind.Class) >= 2;
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (2)
43
if (idisposable?.
TypeKind
== TypeKind.Interface)
70
if (state.ClassOrStructType.
TypeKind
!= TypeKind.Class)
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
85
return !symbol.IsStatic && namedType.
TypeKind
is TypeKind.Interface or TypeKind.Class or TypeKind.Struct;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
303
if (memberSymbol.
TypeKind
== TypeKind.Interface)
316
Debug.Assert(memberSymbol.
TypeKind
is TypeKind.Class or TypeKind.Struct);
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
92
methodSymbol.ContainingType.
TypeKind
== TypeKind.Interface)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
97
if (containingType == null || containingType.
TypeKind
== TypeKind.Interface)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
522
if (symbol.
TypeKind
== TypeKind.Delegate)
582
if (symbol.ContainingType != null && symbol.ContainingType.
TypeKind
== TypeKind.Enum)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
68
public TypeKind TypeKind => _symbol.
TypeKind
;
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
154
return oldType.
TypeKind
;
PopulateSwitchExpressionHelpers.cs (1)
28
if (switchExpressionType?.
TypeKind
== TypeKind.Enum)
PopulateSwitchStatementHelpers.cs (1)
57
if (switchExpressionType?.
TypeKind
== TypeKind.Enum)
PullMemberUp\MemberAndDestinationValidator.cs (1)
17
if (destination.
TypeKind
is not TypeKind.Interface and not TypeKind.Class)
PullMemberUp\MembersPuller.cs (3)
69
return pullMembersUpOptions.Destination.
TypeKind
switch
133
if (analysisResult.Member.ContainingType.
TypeKind
== TypeKind.Interface)
504
if (destination.
TypeKind
== TypeKind.Interface)
PullMemberUp\PullMembersUpOptionsBuilder.cs (1)
20
if (destination.
TypeKind
== TypeKind.Interface)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
381
if (property.ContainingType.
TypeKind
== TypeKind.Interface)
RQName\RQNodeBuilder.cs (3)
289
else if (symbol.
TypeKind
== TypeKind.TypeParameter)
293
else if (symbol.
TypeKind
== TypeKind.Unknown)
297
else if (symbol.
TypeKind
== TypeKind.Dynamic)
Shared\Extensions\ISymbolExtensions_2.cs (2)
40
if (containingType != null && containingType.
TypeKind
== TypeKind.Enum)
58
switch (((INamedTypeSymbol)symbol).
TypeKind
)
Snippets\SnippetFunctionService.cs (1)
59
if (typeSymbol?.
TypeKind
!= TypeKind.Enum)
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (6)
205
if (derivedType.
TypeKind
== TypeKind.Class || derivedType.
TypeKind
== TypeKind.Structure)
211
else if (derivedType.
TypeKind
== TypeKind.Interface)
226
return baseType.
TypeKind
== TypeKind.Class && baseType.SpecialType == SpecialType.System_Object;
261
TypeKind targetTypeKind = targetType.
TypeKind
;
262
TypeKind sourceTypeKind = sourceType.
TypeKind
;
Diagnostics\EmptyArrayAnalyzer.cs (1)
76
&& elementType?.
TypeKind
!= TypeKind.Pointer)
Microsoft.CodeAnalysis.VisualBasic (12)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
29
If symbol.ContainingType.
TypeKind
= TypeKind.Enum Then
616
(containingType.
TypeKind
<> TypeKind.Interface AndAlso Not IsEnumMember(symbol))) Then
620
(containingType Is Nothing OrElse containingType.
TypeKind
<> TypeKind.Module) AndAlso
SymbolDisplay\SymbolDisplayVisitor.Types.vb (5)
199
symbol.
TypeKind
= TypeKind.Delegate AndAlso
253
Select Case symbol.
TypeKind
270
Throw ExceptionUtilities.UnexpectedValue(symbol.
TypeKind
)
323
Select Case symbol.
TypeKind
438
Dim keyword = GetTypeKindKeyword(symbol.
TypeKind
)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
318
(containingType.
TypeKind
<> TypeKind.Interface AndAlso Not IsEnumMember(symbol))) Then
365
symbol.ContainingType.
TypeKind
= TypeKind.Enum AndAlso
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
107
If symbol.
TypeKind
<> TypeKind.Error Then
Symbols\TypeSymbol.vb (1)
570
Private ReadOnly Property ITypeSymbol_TypeKind As TypeKind Implements ITypeSymbol.
TypeKind
, ITypeSymbolInternal.TypeKind
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
SemanticModelExtensions.vb (1)
256
If parameter.Type.
TypeKind
<> TypeKind.TypeParameter Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (13)
ExpressionSyntaxGeneratorVisitor.vb (2)
40
If symbol.ContainingType.
TypeKind
= TypeKind.Submission Then
48
If symbol.
TypeKind
<> TypeKind.[Error] Then
IMethodSymbolExtensions.vb (1)
32
If parameter.Type.
TypeKind
= TypeKind.Delegate Then
SyntaxTreeExtensions.vb (3)
328
objectCreationType.
TypeKind
= TypeKind.Delegate Then
800
Return DirectCast(symbol, INamedTypeSymbol).
TypeKind
= TypeKind.Enum
803
Return target.IsType AndAlso DirectCast(target, ITypeSymbol).
TypeKind
= TypeKind.Enum
TypeSyntaxGeneratorVisitor.vb (2)
160
If symbol.ContainingType.
TypeKind
= TypeKind.Submission Then
167
If _addGlobal AndAlso symbol.
TypeKind
<> TypeKind.[Error] Then
VisualBasicSyntaxContextExtensions.vb (1)
125
objectCreationType.
TypeKind
= TypeKind.Delegate Then
VisualBasicTypeInferenceService.TypeInferrer.vb (4)
30
If info.Type IsNot Nothing AndAlso info.Type.
TypeKind
<> TypeKind.Error Then
34
If info.ConvertedType IsNot Nothing AndAlso info.ConvertedType.
TypeKind
<> TypeKind.Error Then
296
If namedType.
TypeKind
= TypeKind.Delegate Then
712
Return lambdaTypes.Where(Function(t) t.InferredType.
TypeKind
= TypeKind.Delegate).SelectMany(Function(t) t.InferredType.GetMembers(WellKnownMemberNames.DelegateInvokeName).OfType(Of IMethodSymbol)().Select(Function(m) New TypeInferenceInfo(m.ReturnType)))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\CompilationEmitTests.vb (1)
2039
Assert.Equal(m.Single().
TypeKind
, TypeKind.Module)
Microsoft.CodeAnalysis.VisualBasic.Features (29)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
131
If typeSymbol IsNot Nothing AndAlso typeSymbol.IsKind(SymbolKind.NamedType) AndAlso DirectCast(typeSymbol, ITypeSymbol).
TypeKind
= TypeKind.Delegate Then
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (7)
181
If delegateSymbol.Arity <> 0 AndAlso delegateSymbol.TypeArguments.Any(Function(n) n.
TypeKind
= TypeKind.TypeParameter) Then
190
Not (targetType.
TypeKind
= TypeKind.Class OrElse targetType.
TypeKind
= TypeKind.Interface) OrElse
261
If targetType Is Nothing OrElse (targetType.
TypeKind
<> TypeKind.Interface AndAlso targetType.
TypeKind
<> TypeKind.Class) Then
357
Not (targetType.
TypeKind
= TypeKind.Class OrElse targetType.
TypeKind
= TypeKind.Interface) OrElse
Completion\CompletionProviders\EnumCompletionProvider.vb (1)
61
If enumType.
TypeKind
<> TypeKind.Enum Then
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
147
If type IsNot Nothing AndAlso within IsNot Nothing AndAlso type.
TypeKind
<> TypeKind.[Delegate] Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
1852
Select Case symbol.
TypeKind
2484
If type.
TypeKind
= TypeKind.Module Then
2521
If newSymbol.ContainingType.
TypeKind
= TypeKind.Enum Then
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (2)
137
type.
TypeKind
= TypeKind.Error OrElse
138
type.
TypeKind
= TypeKind.Unknown Then
ExtractMethod\VisualBasicMethodExtractor.vb (2)
96
If type.
TypeKind
= TypeKind.Error OrElse type.
TypeKind
= TypeKind.Unknown Then
ExtractMethod\VisualBasicSelectionResult.vb (1)
211
info.ConvertedType.
TypeKind
<> TypeKind.Interface Then
GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsService.vb (1)
35
Return classType IsNot Nothing AndAlso classType.
TypeKind
= TypeKind.Class
ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
72
interfaceTypes = interfaceTypes.WhereNotNull().Where(Function(t) t.
TypeKind
= TypeKind.Interface).ToList()
InitializeParameter\VisualBasicInitializeMemberFromParameterCodeRefactoringProvider.vb (2)
50
Return If(containingType.
TypeKind
= TypeKind.Class Or containingType.
TypeKind
= TypeKind.Module, Accessibility.Private, Accessibility.Public)
NavigationBar\VisualBasicNavigationBarItemService.vb (5)
111
If type.
TypeKind
= TypeKind.Enum Then
116
If type.
TypeKind
<> TypeKind.Interface Then
215
If workspaceSupportsDocumentChanges AndAlso type.
TypeKind
= TypeKind.Class Then
228
If workspaceSupportsDocumentChanges AndAlso type.
TypeKind
= TypeKind.Class Then
236
If type.
TypeKind
<> TypeKind.Delegate Then
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (1)
146
If parameter.Type.
TypeKind
= TypeKind.Delegate Then
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.vb (1)
88
Dim itemsAndSelected = If(type.
TypeKind
= TypeKind.Delegate,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (531)
Compilation\MyTemplateTests.vb (2)
238
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
240
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (10)
685
Assert.Equal(TypeKind.Class, typeSymbol.
TypeKind
)
690
Assert.Equal(TypeKind.Class, typeSymbol2.
TypeKind
)
697
Assert.Equal(TypeKind.Structure, typeSymbol3.
TypeKind
)
705
Assert.Equal(TypeKind.Interface, typeSymbol4.
TypeKind
)
714
Assert.Equal(TypeKind.Class, typeSymbol5.
TypeKind
)
724
Assert.Equal(TypeKind.Class, typeSymbol6.
TypeKind
)
730
Assert.Equal(TypeKind.Class, typeSymbol7.
TypeKind
)
735
Assert.Equal(TypeKind.Class, typeSymbol8.
TypeKind
)
740
Assert.Equal(TypeKind.Enum, typeSymbol9.
TypeKind
)
2954
Assert.Equal(TypeKind.Class, symbol.
TypeKind
)
ExtensionMethods\SemanticModelTests.vb (2)
182
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
184
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
Semantics\ArrayLiteralTests.vb (5)
1497
Assert.Equal(TypeKind.Error, semanticSummary.Type.
TypeKind
)
1499
Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.
TypeKind
)
1633
Assert.Equal(TypeKind.Array, semanticSummary.ConvertedType.
TypeKind
)
1689
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
1723
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
Semantics\GetExtendedSemanticInfoTests.vb (283)
115
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
117
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
150
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
152
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
187
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
189
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
227
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
229
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
270
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
272
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
313
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
315
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
361
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
363
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
410
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
412
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
459
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
461
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
501
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
503
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
695
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
697
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
793
Assert.Equal(TypeKind.[Class], semanticSummary.Type.
TypeKind
)
851
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
853
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
908
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
910
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
1002
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
1004
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
1053
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
1055
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
1104
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
1106
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
1151
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1153
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1197
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1199
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1243
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1245
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1291
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1293
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1336
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1338
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1373
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1375
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1416
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1418
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1454
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
)
1456
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
)
1581
Assert.Equal(TypeKind.Interface, semanticInfo.Type.
TypeKind
)
1583
Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.
TypeKind
)
1990
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
1992
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
2025
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2045
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2047
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2078
Assert.Equal(TypeKind.Struct, semanticInfo.Type.
TypeKind
)
2080
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2113
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2115
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2145
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
)
2147
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2176
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
2178
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
2207
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
2209
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2249
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2251
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2362
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
2364
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2401
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2403
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2439
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2441
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2472
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2474
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2515
Assert.Equal(TypeKind.Enum, semanticInfo.Type.
TypeKind
)
2517
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2596
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2598
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2710
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2779
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
2781
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2882
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
2884
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
3072
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
)
3074
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
)
3093
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
)
3095
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
)
3116
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
)
3118
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
)
3143
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
3145
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
3179
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
3181
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
3553
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
3555
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
3612
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
3614
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
3663
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
3665
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
3716
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
3718
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
3766
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
3768
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
3793
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3795
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3901
Assert.Equal(semanticInfo.Type.
TypeKind
, TypeKind.Error)
3942
Assert.Equal(semanticInfo.Type.
TypeKind
, TypeKind.Error)
4057
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4059
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4095
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4097
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4160
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4162
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4193
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4195
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4234
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4236
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4272
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4274
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4311
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4313
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4345
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4347
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4384
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4386
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4420
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4422
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4459
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4461
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4498
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4500
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4575
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4577
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4617
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4619
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4652
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
4654
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4709
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4711
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
4752
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4754
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4790
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
4792
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4833
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4835
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4868
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4870
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4899
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4901
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
4931
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
4933
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
5058
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
5060
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
5096
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
5098
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
5127
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
5129
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
5232
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
5234
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
5278
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
5280
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
5340
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5342
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5371
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5373
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5407
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5409
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5438
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5440
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5471
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5473
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5502
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5504
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
5532
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5534
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
5650
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5652
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5713
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
5715
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
5772
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
5774
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
6097
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
6099
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
6179
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
6181
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
6932
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
)
6934
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
)
7007
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
)
7009
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
)
7082
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
)
7084
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
)
7157
Assert.Equal(TypeKind.Delegate, semanticInfo.Type.
TypeKind
)
7159
Assert.Equal(TypeKind.Delegate, semanticInfo.ConvertedType.
TypeKind
)
7238
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
7240
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
7322
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
7324
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
7364
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
7366
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
7438
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
7440
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
7477
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
7479
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
7572
Assert.Equal(TypeKind.Class, semanticInfo1.Type.
TypeKind
)
7574
Assert.Equal(TypeKind.Class, semanticInfo1.ConvertedType.
TypeKind
)
7583
Assert.Equal(TypeKind.Class, semanticInfo2.Type.
TypeKind
)
7585
Assert.Equal(TypeKind.Class, semanticInfo2.ConvertedType.
TypeKind
)
7627
Assert.Equal(TypeKind.Class, semanticInfo1.Type.
TypeKind
)
7629
Assert.Equal(TypeKind.Class, semanticInfo1.ConvertedType.
TypeKind
)
7638
Assert.Equal(TypeKind.Class, semanticInfo2.Type.
TypeKind
)
7640
Assert.Equal(TypeKind.Class, semanticInfo2.ConvertedType.
TypeKind
)
7687
Assert.Equal(TypeKind.Structure, semanticInfo1.Type.
TypeKind
)
7689
Assert.Equal(TypeKind.Structure, semanticInfo1.ConvertedType.
TypeKind
)
7703
Assert.Equal(TypeKind.Structure, semanticInfo2.Type.
TypeKind
)
7705
Assert.Equal(TypeKind.Structure, semanticInfo2.ConvertedType.
TypeKind
)
7823
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
7825
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
7859
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
7861
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
7894
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
7896
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
7930
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
7932
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
7969
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
7971
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
8008
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
8010
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
8047
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
8049
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
8086
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
8088
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
8124
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
8126
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
8162
Assert.Equal(TypeKind.Interface, semanticSummary.Type.
TypeKind
)
8164
Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.
TypeKind
)
8373
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
8375
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
8418
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
8420
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
8456
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
8458
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
8556
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
8558
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
8742
Assert.Equal(TypeKind.Module, semanticSummary.Type.
TypeKind
)
8744
Assert.Equal(TypeKind.Module, semanticSummary.ConvertedType.
TypeKind
)
8822
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
8969
Assert.Equal(TypeKind.Module, semanticSummary.Type.
TypeKind
)
8971
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
9042
Assert.Equal(TypeKind.Interface, semanticSummary.Type.
TypeKind
)
9044
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
9119
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
9121
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
9512
Assert.Equal(TypeKind.TypeParameter, semanticSummary.Type.
TypeKind
)
9589
Assert.Equal(TypeKind.Interface, semanticSummary.Type.
TypeKind
)
9591
Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.
TypeKind
)
9625
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9627
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9658
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9660
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9693
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9695
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9728
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9730
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9763
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9765
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9811
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9813
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9851
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9853
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9891
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9893
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9934
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9936
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
9966
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
9968
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
10000
Assert.Equal(TypeKind.[Class], semanticInfo.Type.
TypeKind
)
10002
Assert.Equal(TypeKind.[Class], semanticInfo.ConvertedType.
TypeKind
)
10046
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
10048
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
10088
Assert.Equal(TypeKind.TypeParameter, semanticSummary.Type.
TypeKind
)
10090
Assert.Equal(TypeKind.TypeParameter, semanticSummary.ConvertedType.
TypeKind
)
Semantics\GetSemanticInfoTests.vb (61)
128
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
130
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
173
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
175
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
219
Assert.Equal(TypeKind.Array, semanticInfo.Type.
TypeKind
)
221
Assert.Equal(TypeKind.Array, semanticInfo.ConvertedType.
TypeKind
)
312
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
314
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
362
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
364
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
412
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
414
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
462
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
464
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
512
Assert.Equal(TypeKind.Error, semanticInfo.Type.
TypeKind
)
514
Assert.Equal(TypeKind.Error, semanticInfo.ConvertedType.
TypeKind
)
562
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
564
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
763
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
765
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1499
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
1501
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
1536
Assert.Equal(TypeKind.Error, semanticSummary.Type.
TypeKind
)
1538
Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.
TypeKind
)
2049
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2051
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2062
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2064
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2076
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2078
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2089
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
2091
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
2144
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
2146
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
2164
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
2166
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
2242
Assert.Equal(TypeKind.Array, semanticSummary.ConvertedType.
TypeKind
)
2295
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2297
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2309
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2311
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2354
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2356
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2368
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
2370
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
2417
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
2419
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3380
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3382
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
3427
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3429
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3480
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3482
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3534
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3536
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3587
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3589
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3639
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3641
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
3684
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
3686
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
Semantics\IFOperatorTest.vb (2)
1163
semanticInfos(1).ConvertedType.
TypeKind
<> TypeKind.TypeParameter AndAlso
1164
semanticInfos(2).ConvertedType.
TypeKind
<> TypeKind.TypeParameter) Then
Semantics\LambdaSemanticInfoTests.vb (24)
37
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
39
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
69
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
71
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
103
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
105
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
135
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
137
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
210
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
212
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
245
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
247
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
280
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
282
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
318
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
320
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
353
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
355
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
392
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
394
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
432
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
434
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
718
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
720
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
Semantics\NativeIntegerTests.vb (1)
53
Assert.Equal(TypeKind.Struct, type.
TypeKind
)
Semantics\OptionalArgumentTests.vb (2)
1057
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
1059
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
Semantics\QueryExpressions_SemanticModel.vb (104)
69
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
71
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
89
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
91
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
108
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
110
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
139
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
141
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
158
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
160
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
187
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
189
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
209
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
211
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
228
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
230
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
295
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
297
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
315
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
317
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
334
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
336
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
361
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
363
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
380
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
382
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
409
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
411
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
431
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
433
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
450
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
452
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
515
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
517
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
535
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
537
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
554
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
556
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
581
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
583
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
600
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
602
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
629
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
631
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
651
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
653
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
670
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
672
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
759
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
761
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
779
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
781
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
798
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
800
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
825
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
827
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
844
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
846
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
873
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
875
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
895
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
897
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
914
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
916
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
993
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
995
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1076
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1078
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1149
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1151
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1297
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1299
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1323
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
1325
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
1379
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1381
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1401
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1403
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1545
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1547
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
1645
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
1647
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2101
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
2103
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2149
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2151
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2182
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2184
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2532
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2534
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2667
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2669
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2718
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2720
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
2775
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
2777
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
2900
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
2902
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
3324
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
3326
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
3360
Assert.Equal(TypeKind.Class, semanticInfo.Type.
TypeKind
)
3362
Assert.Equal(TypeKind.Class, semanticInfo.ConvertedType.
TypeKind
)
3528
Assert.Equal(TypeKind.Structure, semanticInfo.Type.
TypeKind
)
3530
Assert.Equal(TypeKind.Structure, semanticInfo.ConvertedType.
TypeKind
)
Semantics\SelectCaseTests.vb (23)
30
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
62
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
64
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
98
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
100
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
137
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
139
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
210
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
241
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
243
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
278
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
280
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
318
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
320
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
359
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
397
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
399
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
491
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
493
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
530
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
532
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
574
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
576
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
Semantics\SyncLockTests.vb (10)
241
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
346
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
349
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
375
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
380
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
408
Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.
TypeKind
)
438
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
443
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
468
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
473
Assert.Equal(TypeKind.Class, semanticSummary.Type.
TypeKind
)
Semantics\XmlLiteralSemanticModelTests.vb (2)
530
Assert.Equal(TypeKind.Error, semanticSummary.Type.
TypeKind
)
532
Assert.Equal(TypeKind.Error, semanticSummary.ConvertedType.
TypeKind
)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (21)
SymbolsTests\Source\BindingsTests.vb (13)
361
Assert.Equal(TypeKind.Class, typeSymbol.
TypeKind
)
366
Assert.Equal(TypeKind.Class, typeSymbol2.
TypeKind
)
373
Assert.Equal(TypeKind.Structure, typeSymbol3.
TypeKind
)
381
Assert.Equal(TypeKind.Interface, typeSymbol4.
TypeKind
)
390
Assert.Equal(TypeKind.Class, typeSymbol5.
TypeKind
)
401
Assert.Equal(TypeKind.Class, typeSymbol6.
TypeKind
)
477
Assert.Equal(TypeKind.Class, importsOrangeSymInfo.Type.
TypeKind
)
488
Assert.Equal(TypeKind.Class, importsYellowSymInfo.Type.
TypeKind
)
500
Assert.Equal(TypeKind.Error, interfaceIAmbigSymInfo.Type.
TypeKind
)
518
Assert.Equal(TypeKind.Class, classYellowSymInfo.Type.
TypeKind
)
532
Assert.Equal(TypeKind.Error, elvisSymInfo.Type.
TypeKind
)
539
Assert.Equal(TypeKind.Interface, iEnumSymInfo.Type.
TypeKind
)
681
Assert.Equal(TypeKind.Class, info.Type.
TypeKind
)
SymbolsTests\Source\EventTests.vb (8)
1569
Assert.Equal(TypeKind.Structure, semanticSummary.Type.
TypeKind
)
1571
Assert.Equal(TypeKind.Structure, semanticSummary.ConvertedType.
TypeKind
)
1607
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
1609
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
1645
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
1647
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
1685
Assert.Equal(TypeKind.Delegate, semanticSummary.Type.
TypeKind
)
1687
Assert.Equal(TypeKind.Delegate, semanticSummary.ConvertedType.
TypeKind
)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (36)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
148
If TypeOf symbol Is ITypeSymbol AndAlso DirectCast(symbol, ITypeSymbol).
TypeKind
= TypeKind.Error Then
CodeGeneration\ExpressionGenerator.vb (1)
49
ElseIf type?.
TypeKind
= TypeKind.Enum Then
CodeGeneration\NamedTypeGenerator.vb (8)
53
declaration = If(options.Context.GenerateMembers AndAlso namedType.
TypeKind
<> TypeKind.Delegate,
94
If namedType.
TypeKind
= TypeKind.Enum Then
96
ElseIf namedType.
TypeKind
= TypeKind.Delegate Then
100
Dim isInterface = namedType.
TypeKind
= TypeKind.Interface
101
Dim isStruct = namedType.
TypeKind
= TypeKind.Struct
102
Dim isModule = namedType.
TypeKind
= TypeKind.Module
187
If namedType.
TypeKind
= TypeKind.Class Then
205
If namedType.
TypeKind
= TypeKind.Struct OrElse
Editing\VisualBasicImportAdder.vb (1)
130
If type?.
TypeKind
= TypeKind.Module Then
ExpressionSyntaxGeneratorVisitor.vb (2)
40
If symbol.ContainingType.
TypeKind
= TypeKind.Submission Then
48
If symbol.
TypeKind
<> TypeKind.[Error] Then
IMethodSymbolExtensions.vb (1)
32
If parameter.Type.
TypeKind
= TypeKind.Delegate Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (3)
328
objectCreationType.
TypeKind
= TypeKind.Delegate Then
800
Return DirectCast(symbol, INamedTypeSymbol).
TypeKind
= TypeKind.Enum
803
Return target.IsType AndAlso DirectCast(target, ITypeSymbol).
TypeKind
= TypeKind.Enum
Recommendations\VisualBasicRecommendationServiceRunner.vb (9)
269
If container Is Nothing OrElse TryCast(container, ITypeSymbol)?.
TypeKind
= TypeKind.Enum Then
398
Dim isInterface = TryCast(typeOrAssemblySymbol, ITypeSymbol)?.
TypeKind
= TypeKind.Interface
457
Return namedTypeSymbol.
TypeKind
= TypeKind.Interface OrElse
473
If namedTypeSymbol.
TypeKind
= TypeKind.Interface Then
491
If type.
TypeKind
= TypeKind.Class AndAlso Not type.IsSealed AndAlso Not Equals(type, within) Then
495
If type.
TypeKind
= TypeKind.Class OrElse
496
type.
TypeKind
= TypeKind.Module OrElse
497
type.
TypeKind
= TypeKind.Struct Then
521
If namedTypeSymbol.
TypeKind
= TypeKind.Class AndAlso Not namedTypeSymbol.IsSealed AndAlso Not Equals(namedTypeSymbol, within) Then
SemanticModelExtensions.vb (1)
256
If parameter.Type.
TypeKind
<> TypeKind.TypeParameter Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (2)
106
If type.
TypeKind
<> TypeKind.Interface AndAlso type.
TypeKind
<> TypeKind.Enum Then
TypeSyntaxGeneratorVisitor.vb (2)
160
If symbol.ContainingType.
TypeKind
= TypeKind.Submission Then
167
If _addGlobal AndAlso symbol.
TypeKind
<> TypeKind.[Error] Then
VisualBasicSyntaxContextExtensions.vb (1)
125
objectCreationType.
TypeKind
= TypeKind.Delegate Then
VisualBasicTypeInferenceService.TypeInferrer.vb (4)
30
If info.Type IsNot Nothing AndAlso info.Type.
TypeKind
<> TypeKind.Error Then
34
If info.ConvertedType IsNot Nothing AndAlso info.ConvertedType.
TypeKind
<> TypeKind.Error Then
296
If namedType.
TypeKind
= TypeKind.Delegate Then
712
Return lambdaTypes.Where(Function(t) t.InferredType.
TypeKind
= TypeKind.Delegate).SelectMany(Function(t) t.InferredType.GetMembers(WellKnownMemberNames.DelegateInvokeName).OfType(Of IMethodSymbol)().Select(Function(m) New TypeInferenceInfo(m.ReturnType)))
Microsoft.CodeAnalysis.Workspaces (70)
AbstractFlagsEnumGenerator.cs (1)
36
if (typeSymbol.
TypeKind
!= TypeKind.Enum)
Classification\ClassificationExtensions.cs (1)
10
=> type.
TypeKind
switch
CodeGenerationHelpers.cs (1)
153
if (namedType.
TypeKind
!= TypeKind.Enum)
Editing\SymbolEditorExtensions.cs (1)
30
if (baseOrInterfaceType.
TypeKind
!= TypeKind.Error)
Editing\SyntaxGenerator.cs (2)
770
var declaration = type.
TypeKind
switch
856
switch (type.
TypeKind
)
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
45
private static readonly Func<INamedTypeSymbol, bool> s_isInterface = static t => t is {
TypeKind
: TypeKind.Interface };
46
private static readonly Func<INamedTypeSymbol, bool> s_isNonSealedClass = static t => t is {
TypeKind
: TypeKind.Class, IsSealed: false };
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (2)
22
if (type?.
TypeKind
== TypeKind.Interface)
54
t => t.
TypeKind
is TypeKind.Class or
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
20
=> symbol.
TypeKind
!= TypeKind.Error;
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
29
return symbol.ContainingType.
TypeKind
== TypeKind.Delegate
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
118
if (searchSymbol.IsConstructor() && searchSymbol.ContainingType.
TypeKind
== TypeKind.Delegate)
FindSymbols\SymbolFinder_Hierarchy.cs (1)
119
if (symbol is { DeclaredAccessibility: Accessibility.Public, ContainingType.
TypeKind
: TypeKind.Class or TypeKind.Struct })
ISymbolExtensions_Accessibility.cs (1)
199
typeArg.
TypeKind
!= TypeKind.Error &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (8)
86
if (member.ContainingType.
TypeKind
== TypeKind.Interface)
157
if (implementation?.ContainingType.
TypeKind
== TypeKind.Interface)
203
if (type.
TypeKind
== TypeKind.Interface)
304
if (type.
TypeKind
== TypeKind.Interface)
342
if (classOrStructType.
TypeKind
is not TypeKind.Class and not TypeKind.Struct)
352
if (!interfacesOrAbstractClasses.All(i => i.
TypeKind
== TypeKind.Interface) &&
369
return interfacesOrAbstractClasses.First().
TypeKind
== TypeKind.Interface
521
if (containingType.
TypeKind
is TypeKind.Class or TypeKind.Struct)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (8)
114
return symbol?.ContainingType?.
TypeKind
== TypeKind.Class &&
123
symbol.ContainingType.
TypeKind
== TypeKind.Interface)
163
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Error };
166
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Module };
169
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Interface };
220
=> symbol is { ContainingType.
TypeKind
: TypeKind.Module };
244
=> symbol is ITypeSymbol {
TypeKind
: TypeKind.Delegate };
633
if (!methods.Any(x => x.Name == WellKnownMemberNames.OnCompleted && x.ReturnsVoid && x.Parameters is [{ Type.
TypeKind
: TypeKind.Delegate }]))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (13)
42
if (type is INamedTypeSymbol namedType && namedType.
TypeKind
== TypeKind.Interface && !allInterfaces.Contains(namedType))
54
=> symbol?.
TypeKind
== TypeKind.Class && symbol.IsAbstract;
80
=> symbol?.
TypeKind
== TypeKind.Module;
83
=> symbol?.
TypeKind
== TypeKind.Interface;
86
=> symbol?.
TypeKind
== TypeKind.Delegate;
89
=> symbol?.
TypeKind
== TypeKind.FunctionPointer;
92
=> symbol?.
TypeKind
== TypeKind.Struct;
186
IEnumerable<ITypeSymbol> baseTypes = (baseType.
TypeKind
== TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes();
261
switch (typeSymbol.
TypeKind
)
531
if (t1.
TypeKind
!= t2.
TypeKind
)
625
if (type != null && type.IsValueType && type.
TypeKind
== TypeKind.Enum)
677
if (type.
TypeKind
!= TypeKind.Struct)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
25
namedType.
TypeKind
,
NamingStyleRules.cs (1)
74
if (containingType.
TypeKind
is not TypeKind.Class and not TypeKind.Struct)
Recommendations\AbstractRecommendationServiceRunner.cs (3)
402
if (originalConstraintType.
TypeKind
== TypeKind.TypeParameter)
409
else if (originalConstraintType.
TypeKind
== TypeKind.Interface)
419
else if (originalConstraintType.
TypeKind
== TypeKind.Class)
Rename\RenameUtilities.cs (1)
224
symbol.ContainingType.
TypeKind
== TypeKind.Interface)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
107
((INamedTypeSymbol)referencedSymbol.ContainingSymbol).
TypeKind
== TypeKind.Interface &&
SemanticModelExtensions.cs (2)
165
if (type.
TypeKind
== TypeKind.Array && typeArguments.IsEmpty)
174
type.
TypeKind
== TypeKind.Pointer)
Shared\Extensions\IMethodSymbolExtensions.cs (1)
22
Contract.ThrowIfFalse(delegateType.
TypeKind
== TypeKind.Delegate);
Shared\Extensions\ISymbolExtensions.cs (2)
493
if (typeSymbol.
TypeKind
== TypeKind.Class)
499
else if (typeSymbol.
TypeKind
== TypeKind.Interface)
Shared\Extensions\ITypeSymbolExtensions.cs (1)
164
typeSymbol.
TypeKind
== TypeKind.Interface)
Shared\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
83
symbol = updatedContainingType.GetTypeMembers(symbol.Name, symbol.Arity).First(m => m.
TypeKind
== symbol.
TypeKind
);
Shared\Extensions\SemanticModelExtensions.cs (1)
140
if (namedType.
TypeKind
== TypeKind.Delegate ||
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
83
if (containingType?.
TypeKind
== TypeKind.Struct)
Shared\Utilities\SignatureComparer.cs (2)
176
property1.ContainingType.
TypeKind
== TypeKind.Interface)
186
property2.ContainingType.
TypeKind
== TypeKind.Interface)
SymbolEquivalenceComparer.cs (1)
222
var k = x.
TypeKind
;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
500
if (x.
TypeKind
== TypeKind.Delegate)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
195
if (x.
TypeKind
== TypeKind.Delegate)
SymbolKey.SymbolKeyWriter.cs (1)
404
if (namedTypeSymbol.
TypeKind
== TypeKind.Error)
SymbolKey.TupleTypeSymbolKey.cs (1)
24
var isError = symbol.TupleUnderlyingType!.
TypeKind
== TypeKind.Error;
SymbolSpecification.cs (1)
400
SymbolCategory.Type => symbol is ITypeSymbol type && type.
TypeKind
== (TypeKind)_kind,
SymbolUsageAnalysis.Walker.cs (1)
383
symbol.GetSymbolType()?.
TypeKind
!= TypeKind.Delegate)
Microsoft.VisualStudio.LanguageServices (36)
Implementation\ContainedLanguageRefactorNotifyService.cs (1)
77
else if (symbol is INamedTypeSymbol && (symbol as INamedTypeSymbol).
TypeKind
== TypeKind.Class)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (5)
91
if (typeSymbol.
TypeKind
== TypeKind.Unknown ||
92
typeSymbol.
TypeKind
== TypeKind.Error ||
93
typeSymbol.
TypeKind
== TypeKind.TypeParameter ||
181
if (symbol.
TypeKind
== TypeKind.Delegate)
448
return (symbol.Kind == SymbolKind.NamedType && ((INamedTypeSymbol)symbol).
TypeKind
== TypeKind.Delegate)
Library\ObjectBrowser\AbstractListItemFactory.cs (3)
216
if (namedTypeSymbol.
TypeKind
!= TypeKind.Interface)
268
if (typeSymbol.
TypeKind
== TypeKind.Interface)
275
else if (typeSymbol.
TypeKind
!= TypeKind.Module &&
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
30
if (fieldSymbol.ContainingType.
TypeKind
== TypeKind.Enum)
Library\ObjectBrowser\Lists\TypeListItem.cs (1)
18
_typeKind = typeSymbol.
TypeKind
;
Library\ObjectBrowser\ObjectList.cs (2)
444
if (typeSymbol.
TypeKind
== TypeKind.Module)
449
if (typeSymbol.
TypeKind
== TypeKind.Interface && typeSymbol.Interfaces.IsEmpty)
Library\VsNavInfo\NavInfoFactory.cs (3)
82
else if (typeSymbol.
TypeKind
== TypeKind.Pointer)
86
else if (typeSymbol.
TypeKind
== TypeKind.Array)
98
if (typeSymbol.
TypeKind
is TypeKind.Error or
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (2)
176
.Where(t => t.
TypeKind
== currentType.
TypeKind
&& (t.IsStaticType() || !currentType.IsStaticType()))
Progression\GraphBuilder.cs (7)
556
switch (namedType.
TypeKind
)
594
throw ExceptionUtilities.UnexpectedValue(namedType.
TypeKind
);
598
node[RoslynGraphProperties.TypeKind] = namedType.
TypeKind
;
615
node[RoslynGraphProperties.TypeKind] = method.ContainingType.
TypeKind
;
628
if (field.ContainingType.
TypeKind
== TypeKind.Enum)
648
node[RoslynGraphProperties.TypeKind] = property.ContainingType.
TypeKind
;
661
node[RoslynGraphProperties.TypeKind] = eventSymbol.ContainingType.
TypeKind
;
Progression\GraphNodeIdCreation.cs (7)
79
if (symbol.
TypeKind
== TypeKind.TypeParameter)
107
if (underlyingType.
TypeKind
== TypeKind.Dynamic)
216
while (pointerType.PointedAtType.
TypeKind
== TypeKind.Pointer)
241
if (underlyingType.
TypeKind
== TypeKind.Dynamic)
245
else if (underlyingType.
TypeKind
!= TypeKind.TypeParameter)
274
while (symbol.
TypeKind
== TypeKind.Array)
279
while (symbol.
TypeKind
== TypeKind.Pointer)
Progression\GraphQueries\InheritedByGraphQuery.cs (2)
29
if (namedType.
TypeKind
== TypeKind.Class)
40
else if (namedType.
TypeKind
== TypeKind.Interface)
Progression\GraphQueries\InheritsGraphQuery.cs (1)
46
else if (namedType.
TypeKind
== TypeKind.Interface && !namedType.OriginalDefinition.AllInterfaces.IsEmpty)
PullMemberUp\MainDialog\PullMemberUpDialogViewModel.cs (1)
74
MemberSelectionViewModel.UpdateMembersBasedOnDestinationKind(_selectedDestination.Symbol.
TypeKind
);
Microsoft.VisualStudio.LanguageServices.CSharp (22)
CodeModel\CSharpCodeModelService.cs (9)
685
if (typeSymbol.
TypeKind
== TypeKind.Unknown)
698
if (typeSymbol.
TypeKind
== TypeKind.Array)
702
else if (typeSymbol.
TypeKind
== TypeKind.Pointer)
707
typeSymbol.
TypeKind
is TypeKind.Dynamic or
757
if (typeSymbol.
TypeKind
is TypeKind.Class or
3716
return typeSymbol.
TypeKind
== TypeKind.Class;
3720
return typeSymbol.
TypeKind
== TypeKind.Interface;
3813
return typeSymbol.
TypeKind
== TypeKind.Interface;
3827
typeSymbol.
TypeKind
!= TypeKind.Interface)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
39
if (namedType.
TypeKind
== TypeKind.Delegate)
ObjectBrowser\DescriptionBuilder.cs (11)
35
Debug.Assert(typeSymbol.
TypeKind
== TypeKind.Delegate);
69
switch (typeSymbol.
TypeKind
)
88
Debug.Fail("Invalid type kind encountered: " + typeSymbol.
TypeKind
.ToString());
97
if (typeSymbol.
TypeKind
== TypeKind.Enum)
176
typeSymbol.
TypeKind
!= TypeKind.Interface)
182
typeSymbol.
TypeKind
!= TypeKind.Struct &&
183
typeSymbol.
TypeKind
!= TypeKind.Enum &&
184
typeSymbol.
TypeKind
!= TypeKind.Delegate)
244
if (memberSymbol.ContainingType != null && memberSymbol.ContainingType.
TypeKind
== TypeKind.Interface)
259
fieldSymbol.ContainingType.
TypeKind
== TypeKind.Enum)
466
if (fieldSymbol.ContainingType.
TypeKind
!= TypeKind.Enum)
Progression\CSharpProgressionLanguageService.cs (1)
124
case IFieldSymbol f: return f.ContainingType.
TypeKind
== TypeKind.Enum ? null : f.Type;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
235
namedTypeMock.SetupGet(s => s.
TypeKind
).Returns(typeKind);
Microsoft.VisualStudio.LanguageServices.Implementation (15)
CodeModel\AbstractCodeModelService.cs (6)
222
switch (namedType.
TypeKind
)
259
if (typeSymbol.
TypeKind
is TypeKind.Pointer or
266
if (typeSymbol.
TypeKind
is TypeKind.Error or
278
if (typeSymbol.
TypeKind
== TypeKind.Dynamic)
546
switch (typeSymbol.
TypeKind
)
568
Debug.Fail("Unexpected TypeKind: " + typeSymbol.
TypeKind
);
CodeModel\CodeTypeRef.cs (3)
93
if (typeSymbol.
TypeKind
== Microsoft.CodeAnalysis.TypeKind.Array)
97
else if (typeSymbol.
TypeKind
== Microsoft.CodeAnalysis.TypeKind.Pointer)
132
if (typeSymbol.
TypeKind
== Microsoft.CodeAnalysis.TypeKind.Array)
CodeModel\Collections\BasesCollection.cs (2)
77
if (symbol.
TypeKind
== TypeKind.Interface || _interfaces)
139
if (symbol.
TypeKind
== TypeKind.Interface || _interfaces)
CodeModel\ExternalElements\AbstractExternalCodeType.cs (1)
63
if (typeSymbol.
TypeKind
== TypeKind.Interface)
CodeModel\MethodXml\AbstractMethodXmlBuilder.cs (1)
388
if (type.
TypeKind
== TypeKind.Array)
CodeModel\RootCodeModel.cs (2)
144
typeSymbol.
TypeKind
== TypeKind.Error ||
145
typeSymbol.
TypeKind
== TypeKind.Unknown)
Microsoft.VisualStudio.LanguageServices.VisualBasic (31)
CodeModel\Extenders\GenericExtender.vb (4)
35
Select Case typeSymbol.
TypeKind
48
Select Case typeSymbol.
TypeKind
63
Select Case typeSymbol.
TypeKind
85
Select Case typeSymbol.
TypeKind
CodeModel\MethodXML\MethodXmlBuilder.vb (3)
80
If type.
TypeKind
= TypeKind.Array AndAlso
372
symbolOpt?.ContainingType?.
TypeKind
= TypeKind.Module Then
595
If type.
TypeKind
= TypeKind.Array Then
CodeModel\VisualBasicCodeModelService.vb (10)
757
If typeSymbol.
TypeKind
= TypeKind.Array Then
761
If typeSymbol.
TypeKind
= TypeKind.Pointer Then
765
If typeSymbol IsNot Nothing AndAlso Not typeSymbol.
TypeKind
= TypeKind.Error Then
770
If typeSymbol.
TypeKind
= TypeKind.Enum Then
805
If typeSymbol.
TypeKind
= TypeKind.Pointer Then
809
If typeSymbol.
TypeKind
= TypeKind.TypeParameter Then
2907
(symbol.Kind = SymbolKind.NamedType AndAlso DirectCast(symbol, INamedTypeSymbol).
TypeKind
= TypeKind.Module) OrElse
4247
Return typeSymbol.
TypeKind
= TypeKind.Class
4249
Return typeSymbol.
TypeKind
= TypeKind.Interface
4315
Return typeSymbol.
TypeKind
= TypeKind.Interface
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
45
If namedTypeSymbol.
TypeKind
= TypeKind.Delegate Then
ObjectBrowser\DescriptionBuilder.vb (12)
30
Debug.Assert(typeSymbol.
TypeKind
= TypeKind.Delegate)
67
Select Case typeSymbol.
TypeKind
79
Debug.Fail("Invalid type kind encountered: " & typeSymbol.
TypeKind
.ToString())
94
If typeSymbol.
TypeKind
= TypeKind.Class Then
105
If typeSymbol.
TypeKind
= TypeKind.Enum Then
279
If eventType IsNot Nothing AndAlso eventType.
TypeKind
= TypeKind.Delegate Then
314
typeSymbol.
TypeKind
<> TypeKind.Interface Then
319
typeSymbol.
TypeKind
<> TypeKind.Delegate AndAlso
320
typeSymbol.
TypeKind
<> TypeKind.Module AndAlso
321
typeSymbol.
TypeKind
<> TypeKind.Enum AndAlso
322
typeSymbol.
TypeKind
<> TypeKind.Structure Then
329
If memberSymbol.ContainingType IsNot Nothing And memberSymbol.ContainingType.
TypeKind
= TypeKind.Interface Then
Progression\VisualBasicProgressionLanguageService.vb (1)
82
If symbol.Kind = SymbolKind.Field AndAlso symbol.ContainingType.
TypeKind
= TypeKind.Enum Then