7031 references to SymbolKind
ConfigurationSchemaGenerator (4)
ILLink.RoslynAnalyzer (26)
Microsoft.Analyzers.Extra (4)
Microsoft.Analyzers.Local (4)
Microsoft.AspNetCore.Analyzers (5)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers (6)
Microsoft.AspNetCore.Components.SdkAnalyzers (6)
Microsoft.AspNetCore.Mvc.Analyzers (4)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
Microsoft.CodeAnalysis (126)
Microsoft.CodeAnalysis.CodeStyle (227)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
71}, SymbolKind.NamedType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (28)
35case SymbolKind.Alias:
40case SymbolKind.Parameter:
44case SymbolKind.TypeParameter:
49while (symbol != null && symbol.Kind != SymbolKind.Namespace)
116if (symbol.Kind is SymbolKind.Event or SymbolKind.Property)
147if (symbol.Kind is not SymbolKind.Method and not SymbolKind.Property and not SymbolKind.Event)
175if (symbol.Kind == SymbolKind.Event)
180if (symbol.Kind == SymbolKind.Property)
185if (symbol.Kind == SymbolKind.Method)
222=> symbol?.Kind == SymbolKind.ArrayType;
230public static bool IsKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind)
233public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind)
236public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2)
242public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3)
248public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, params SymbolKind[] kinds)
258=> symbol?.Kind == SymbolKind.Field && symbol.ContainingType.IsEnumType();
340SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
341SymbolKind.Method => ((IMethodSymbol)symbol).Arity,
521=> symbol != null && symbol.Kind == SymbolKind.NamedType && symbol.IsStatic;
524=> symbol?.Kind == SymbolKind.Namespace;
581if (symbol.Kind != SymbolKind.Local)
767public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [NotNullWhen(true)] out TSymbol? result) where TSymbol : class, ISymbol
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (26)
66new SymbolKindOrTypeKind(SymbolKind.Namespace),
74new SymbolKindOrTypeKind(SymbolKind.Property),
77new SymbolKindOrTypeKind(SymbolKind.Field),
78new SymbolKindOrTypeKind(SymbolKind.Event),
79new SymbolKindOrTypeKind(SymbolKind.Parameter),
81new SymbolKindOrTypeKind(SymbolKind.Local),
101public bool AppliesTo(SymbolKind symbolKind, Accessibility accessibility)
164case SymbolKind.Namespace:
167case SymbolKind.Parameter:
168case SymbolKind.TypeParameter:
171case SymbolKind.Method:
293foreach (var symbolKindElement in symbolKindListElement.Elements(nameof(SymbolKind)))
344public SymbolKindOrTypeKind(SymbolKind symbolKind)
359public SymbolKind? SymbolKind => (_category == SymbolCategory.Other) ? (SymbolKind)_kind : null;
366SymbolCategory.Other => symbol.IsKind((SymbolKind)_kind),
375SymbolCategory.Other => new XElement(nameof(SymbolKind), (SymbolKind)_kind),
426var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value);
432CodeAnalysis.SymbolKind.Method => new(CodeAnalysis.MethodKind.Ordinary),
502var kind = symbol.Kind;
503if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)
510if (kind == SymbolKind.Field && ((IFieldSymbol)symbol).IsReadOnly)
518if ((kind == SymbolKind.Field && ((IFieldSymbol)symbol).IsConst) ||
519(kind == SymbolKind.Local && ((ILocalSymbol)symbol).IsConst))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (28)
29var xKind = GetKindAndUnwrapAlias(ref x);
30var yKind = GetKindAndUnwrapAlias(ref y);
39if ((xKind == SymbolKind.DynamicType && IsObjectType(y)) ||
40(yKind == SymbolKind.DynamicType && IsObjectType(x)))
48if (xKind == SymbolKind.ArrayType && y.IsReadOnlySpan())
52else if (x.IsReadOnlySpan() && yKind == SymbolKind.ArrayType)
111private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
116SymbolKind.ArrayType => ArrayTypesAreEquivalent((IArrayTypeSymbol)x, (IArrayTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
117SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y),
118SymbolKind.DynamicType => NullableAnnotationsEquivalent((IDynamicTypeSymbol)x, (IDynamicTypeSymbol)y),
119SymbolKind.Event => EventsAreEquivalent((IEventSymbol)x, (IEventSymbol)y, equivalentTypesWithDifferingAssemblies),
120SymbolKind.Field => FieldsAreEquivalent((IFieldSymbol)x, (IFieldSymbol)y, equivalentTypesWithDifferingAssemblies),
121SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y),
122SymbolKind.Local => LocalsAreEquivalent((ILocalSymbol)x, (ILocalSymbol)y),
123SymbolKind.Method => MethodsAreEquivalent((IMethodSymbol)x, (IMethodSymbol)y, equivalentTypesWithDifferingAssemblies),
124SymbolKind.NetModule => ModulesAreEquivalent((IModuleSymbol)x, (IModuleSymbol)y),
125SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
126SymbolKind.ErrorType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
127SymbolKind.Namespace => NamespacesAreEquivalent((INamespaceSymbol)x, (INamespaceSymbol)y, equivalentTypesWithDifferingAssemblies),
128SymbolKind.Parameter => ParametersAreEquivalent((IParameterSymbol)x, (IParameterSymbol)y, equivalentTypesWithDifferingAssemblies),
129SymbolKind.PointerType => PointerTypesAreEquivalent((IPointerTypeSymbol)x, (IPointerTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
130SymbolKind.Property => PropertiesAreEquivalent((IPropertySymbol)x, (IPropertySymbol)y, equivalentTypesWithDifferingAssemblies),
131SymbolKind.RangeVariable => RangeVariablesAreEquivalent((IRangeVariableSymbol)x, (IRangeVariableSymbol)y),
132SymbolKind.TypeParameter => TypeParametersAreEquivalent((ITypeParameterSymbol)x, (ITypeParameterSymbol)y, equivalentTypesWithDifferingAssemblies),
133SymbolKind.Preprocessing => PreprocessingSymbolsAreEquivalent((IPreprocessingSymbol)x, (IPreprocessingSymbol)y),
134SymbolKind.FunctionPointerType => FunctionPointerTypesAreEquivalent((IFunctionPointerTypeSymbol)x, (IFunctionPointerTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
367if (x.Kind == SymbolKind.ErrorType &&
371Debug.Assert(y.Kind == SymbolKind.ErrorType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (17)
44if (x.Kind == SymbolKind.DynamicType ||
59SymbolKind.ArrayType => CombineHashCodes((IArrayTypeSymbol)x, currentHash),
60SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash),
61SymbolKind.Event => CombineHashCodes((IEventSymbol)x, currentHash),
62SymbolKind.Field => CombineHashCodes((IFieldSymbol)x, currentHash),
63SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash),
64SymbolKind.Local => CombineHashCodes((ILocalSymbol)x, currentHash),
65SymbolKind.Method => CombineHashCodes((IMethodSymbol)x, currentHash),
66SymbolKind.NetModule => CombineHashCodes((IModuleSymbol)x, currentHash),
67SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
68SymbolKind.Namespace => CombineHashCodes((INamespaceSymbol)x, currentHash),
69SymbolKind.Parameter => CombineHashCodes((IParameterSymbol)x, currentHash),
70SymbolKind.PointerType => CombineHashCodes((IPointerTypeSymbol)x, currentHash),
71SymbolKind.Property => CombineHashCodes((IPropertySymbol)x, currentHash),
72SymbolKind.RangeVariable => CombineHashCodes((IRangeVariableSymbol)x, currentHash),
73SymbolKind.TypeParameter => CombineHashCodes((ITypeParameterSymbol)x, currentHash),
74SymbolKind.Preprocessing => CombineHashCodes((IPreprocessingSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle.Fixes (61)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
109document.Document, state, SymbolKind.Property, state.DetermineMaximalAccessibility(), cancellationToken).ConfigureAwait(false))
125Document document, State state, SymbolKind kind, Accessibility accessibility, CancellationToken cancellationToken)
191document, state, SymbolKind.Local, Accessibility.NotApplicable, cancellationToken).ConfigureAwait(false))
207document, state, SymbolKind.Parameter, Accessibility.NotApplicable, cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (15)
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (15)
114case SymbolKind symbolKind:
163ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Field)),
195ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Field)),
227ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Field)),
259ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Field)),
421ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Parameter)),
453ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Parameter)),
485ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Parameter)),
517ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Local)),
581ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Property)),
645ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.TypeParameter)),
678new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Field),
679new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Local)),
711ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Local)),
718ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(SymbolKind.Local)),
Microsoft.CodeAnalysis.CSharp (1271)
Binder\BinderFactory.BinderFactoryVisitor.cs (10)
521return (SourceMemberMethodSymbol)GetMemberSymbol(methodName, baseMethodDeclarationSyntax.FullSpan, container, SymbolKind.Method);
540return (SourcePropertySymbol)GetMemberSymbol(propertyName, basePropertyDeclarationSyntax.Span, container, SymbolKind.Property);
557return (SourceEventSymbol)GetMemberSymbol(eventName, eventDeclarationSyntax.Span, container, SymbolKind.Event);
560private Symbol GetMemberSymbol(string memberName, TextSpan memberSpan, NamedTypeSymbol container, SymbolKind kind)
562Debug.Assert(kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event);
592bool checkSymbol(Symbol sym, TextSpan memberSpan, SymbolKind kind, out Symbol result)
601if (kind is SymbolKind.Method or SymbolKind.Property)
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
70}, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (25)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (13)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (13)
233[InlineData("} namespace [|c2|] {", "} namespace C2 {", SymbolKind.Namespace, Accessibility.Public)]
239[InlineData("class M<[|t|]> {}", "class M<T> {}", SymbolKind.TypeParameter, Accessibility.Private)]
240[InlineData("void M<[|t|]>() {}", "void M<T>() {}", SymbolKind.TypeParameter, Accessibility.Private)]
241[InlineData("int [|m|] { get; }", "int M { get; }", SymbolKind.Property, Accessibility.Private)]
244[InlineData("int [|m|];", "int M;", SymbolKind.Field, Accessibility.Private)]
245[InlineData("event System.EventHandler [|m|];", "event System.EventHandler M;", SymbolKind.Event, Accessibility.Private)]
246[InlineData("void Outer(int [|m|]) {}", "void Outer(int M) {}", SymbolKind.Parameter, Accessibility.Private)]
247[InlineData("void Outer() { void Inner(int [|m|]) {} }", "void Outer() { void Inner(int M) {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
248[InlineData("void Outer() { System.Action<int> action = [|m|] => {} }", "void Outer() { System.Action<int> action = M => {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
249[InlineData("void Outer() { System.Action<int> action = ([|m|]) => {} }", "void Outer() { System.Action<int> action = (M) => {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
250[InlineData("void Outer() { System.Action<int> action = (int [|m|]) => {} }", "void Outer() { System.Action<int> action = (int M) => {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
251[InlineData("void Outer() { System.Action<int> action = delegate (int [|m|]) {} }", "void Outer() { System.Action<int> action = delegate (int M) {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
252[InlineData("void Outer() { int [|m|]; }", "void Outer() { int M; }", SymbolKind.Local, Accessibility.NotApplicable)]
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (103)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (8)
2923SpecificationStyle(new SymbolKindOrTypeKind(SymbolKind.Local), name: "Local1"),
2924SpecificationStyle(new SymbolKindOrTypeKind(SymbolKind.Local), name: "Local1"),
2954SpecificationStyle(new SymbolKindOrTypeKind(SymbolKind.Field), "Field"),
2955SpecificationStyle(new SymbolKindOrTypeKind(SymbolKind.Property), "Property"),
2957SpecificationStyle(new SymbolKindOrTypeKind(SymbolKind.Local), "Local"),
2995ImmutableArray.Create(new SymbolKindOrTypeKind(SymbolKind.Parameter)),
3001ImmutableArray.Create(new SymbolKindOrTypeKind(SymbolKind.Parameter), new SymbolKindOrTypeKind(SymbolKind.Local)),
Completion\CompletionProviders\DeclarationNameCompletionProviderTests_NameDeclarationInfoTests.cs (38)
34new SymbolKindOrTypeKind(SymbolKind.Field),
35new SymbolKindOrTypeKind(SymbolKind.Property),
52new SymbolKindOrTypeKind(SymbolKind.Field),
53new SymbolKindOrTypeKind(SymbolKind.Property),
70new SymbolKindOrTypeKind(SymbolKind.Property),
87new SymbolKindOrTypeKind(SymbolKind.Field),
88new SymbolKindOrTypeKind(SymbolKind.Property),
105new SymbolKindOrTypeKind(SymbolKind.Field));
124new SymbolKindOrTypeKind(SymbolKind.Local),
144new SymbolKindOrTypeKind(SymbolKind.Local));
163new SymbolKindOrTypeKind(SymbolKind.Local),
183new SymbolKindOrTypeKind(SymbolKind.Local));
202new SymbolKindOrTypeKind(SymbolKind.Local));
221new SymbolKindOrTypeKind(SymbolKind.Local));
240new SymbolKindOrTypeKind(SymbolKind.Local));
277new SymbolKindOrTypeKind(SymbolKind.Local));
294new SymbolKindOrTypeKind(SymbolKind.Parameter));
311new SymbolKindOrTypeKind(SymbolKind.Parameter));
328new SymbolKindOrTypeKind(SymbolKind.Parameter));
345new SymbolKindOrTypeKind(SymbolKind.Parameter));
363new SymbolKindOrTypeKind(SymbolKind.Parameter));
378new SymbolKindOrTypeKind(SymbolKind.TypeParameter));
390new SymbolKindOrTypeKind(SymbolKind.TypeParameter));
403new SymbolKindOrTypeKind(SymbolKind.Field));
416new SymbolKindOrTypeKind(SymbolKind.Field));
429new SymbolKindOrTypeKind(SymbolKind.Property),
443new SymbolKindOrTypeKind(SymbolKind.Property),
457new SymbolKindOrTypeKind(SymbolKind.Property),
471new SymbolKindOrTypeKind(SymbolKind.Property),
499new SymbolKindOrTypeKind(SymbolKind.Field),
500new SymbolKindOrTypeKind(SymbolKind.Property),
521new SymbolKindOrTypeKind(SymbolKind.Local));
541new SymbolKindOrTypeKind(SymbolKind.Local));
563new SymbolKindOrTypeKind(SymbolKind.Local));
709new SymbolKindOrTypeKind(SymbolKind.Local),
729new SymbolKindOrTypeKind(SymbolKind.Local),
749new SymbolKindOrTypeKind(SymbolKind.Local),
768new SymbolKindOrTypeKind(SymbolKind.Local),
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (27)
50new SymbolKindOrTypeKind(SymbolKind.Property)
177new SymbolKindOrTypeKind(SymbolKind.Property),
179new SymbolKindOrTypeKind(SymbolKind.Field),
180new SymbolKindOrTypeKind(SymbolKind.Event),
225new SymbolKindOrTypeKind(SymbolKind.Property),
227new SymbolKindOrTypeKind(SymbolKind.Field),
228new SymbolKindOrTypeKind(SymbolKind.Event),
269new SymbolKindOrTypeKind(SymbolKind.Parameter),
270new SymbolKindOrTypeKind(SymbolKind.Local),
340[InlineData("property,method", new object[] { SymbolKind.Property, MethodKind.Ordinary })]
341[InlineData("namespace", new object[] { SymbolKind.Namespace })]
342[InlineData("type_parameter", new object[] { SymbolKind.TypeParameter })]
344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
346[InlineData("property,method,invalid", new object[] { SymbolKind.Property, MethodKind.Ordinary })]
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (92)
CodeGen\CodeGenDeconstructTests.cs (37)
3613Assert.Equal(SymbolKind.Field, field.Kind);
3700Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
3705Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind);
3753Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
3802Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
3805Assert.Equal(SymbolKind.NamedType, x1Alias.Target.Kind);
3810Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind);
3942Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
3947Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind);
3988Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
3993Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x2Type).Symbol.Kind);
4408Assert.Equal(SymbolKind.Parameter, symbol.Kind);
5035Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(xType).Symbol.Kind);
5041Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(yType).Symbol.Kind);
5187Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
5313Assert.Equal(SymbolKind.Local, x1Symbol.Kind);
5318Assert.Equal(SymbolKind.Local, x2Symbol.Kind);
5349Assert.Equal(SymbolKind.Local, x1Symbol.Kind);
5354Assert.Equal(SymbolKind.Local, x2Symbol.Kind);
5475Assert.Equal(SymbolKind.Field, firstX1Symbol.Kind);
5480Assert.Equal(SymbolKind.Field, secondX1Symbol.Kind);
5507Assert.Equal(SymbolKind.Field, firstYSymbol.Kind);
5512Assert.Equal(SymbolKind.Field, secondYSymbol.Kind);
5538Assert.Equal(SymbolKind.Field, firstXSymbol.Kind);
5543Assert.Equal(SymbolKind.Field, secondXSymbol.Kind);
5612Assert.Equal(SymbolKind.ErrorType, xTypeISymbol.Kind);
5818Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
5821Assert.Equal(SymbolKind.NamedType, x1Alias.Target.Kind);
5826Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x3Type).Symbol.Kind);
5829Assert.Equal(SymbolKind.NamedType, x3Alias.Target.Kind);
5870Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x1Type).Symbol.Kind);
5876Assert.Equal(SymbolKind.NamedType, model.GetSymbolInfo(x3Type).Symbol.Kind);
6005Assert.Equal(SymbolKind.Discard, isymbol.Kind);
6040Assert.Equal(SymbolKind.Discard, symbol.Kind);
6049Assert.Equal(SymbolKind.Discard, symbolClone.Kind);
6093Assert.Equal(SymbolKind.Discard, symbol.Kind);
6140Assert.Equal(SymbolKind.Discard, symbol.Kind);
CodeGen\CodeGenTupleTest.cs (36)
3351Assert.Equal(SymbolKind.ErrorType, mTuple.TupleUnderlyingType.Kind);
4502Assert.Equal(SymbolKind.NamedType, unnamedTuple.Kind);
4513Assert.Equal(SymbolKind.NamedType, namedTuple.Kind);
5819Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
5824Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
5877Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
5882Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
5916Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind);
5919Assert.Equal(SymbolKind.NamedType, tuple.Kind);
5954Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.Kind);
5959Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.Kind);
5978Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind);
5997Assert.Equal(SymbolKind.ErrorType, tupleWithSomeNames.Kind);
6015Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind);
6194Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
6198Assert.Equal(SymbolKind.NamedType, types[0].Kind);
6199Assert.Equal(SymbolKind.ErrorType, types[1].Kind);
6373Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
6398Assert.Equal(SymbolKind.NamedType, tuple.Kind);
6421Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.Kind);
6437Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind);
6452Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind);
6547Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind);
6551Assert.Equal(SymbolKind.NamedType, types[0].Kind);
6552Assert.Equal(SymbolKind.ErrorType, types[1].Kind);
11153Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind);
11417Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind);
11629if (members1[i].Kind == SymbolKind.Method)
11646else if (members1[i].Kind == SymbolKind.Property)
12735Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind);
15821Assert.Equal(SymbolKind.Property, m1P1.Kind);
15852Assert.Equal(SymbolKind.Property, m1this.Kind);
16050Assert.Equal(SymbolKind.Event, m1E1.Kind);
16084Assert.Equal(SymbolKind.Event, m1E2.Kind);
17374Assert.Equal(SymbolKind.Field, sym.Symbol.Kind);
17409Assert.Equal(SymbolKind.Field, bobField.Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (173)
Attributes\AttributeTests_Security.cs (27)
676ParentKind = SymbolKind.NamedType,
695ParentKind = SymbolKind.NamedType,
729ParentKind = SymbolKind.Method,
772ParentKind = SymbolKind.Method,
810ParentKind = SymbolKind.Method,
850ParentKind = SymbolKind.NamedType,
903ParentKind = SymbolKind.Method,
955ParentKind = SymbolKind.NamedType,
974ParentKind = SymbolKind.NamedType,
1015ParentKind = SymbolKind.Method,
1034ParentKind = SymbolKind.Method,
1081ParentKind = SymbolKind.NamedType,
1100ParentKind = SymbolKind.NamedType,
1143ParentKind = SymbolKind.Method,
1162ParentKind = SymbolKind.Method,
1215ParentKind = SymbolKind.Assembly,
1232ParentKind = SymbolKind.Assembly,
1249ParentKind = SymbolKind.NamedType,
1268ParentKind = SymbolKind.Method,
1309ParentKind = SymbolKind.Assembly,
1326ParentKind = SymbolKind.NamedType,
1345ParentKind = SymbolKind.Method,
1389ParentKind = SymbolKind.Assembly,
1406ParentKind = SymbolKind.NamedType,
1425ParentKind = SymbolKind.NamedType,
1444ParentKind = SymbolKind.Method,
1519ParentKind = SymbolKind.NamedType,
Diagnostics\DiagnosticAnalyzerTests.cs (49)
246context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.NamedType);
516SymbolKind.Namespace, SymbolKind.NamedType, SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.Property);
842}, SymbolKind.Method);
2859TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType),
2873TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Namespace),
2884TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Method),
2902TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Field),
2909TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Property),
2916TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Event),
2923TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Parameter));
2929var analyzer1 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Namespace, analyzerId: 1);
2930var analyzer2 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Method, analyzerId: 2);
2955var analyzer1 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, analyzerId: 1);
2956var analyzer2 = new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Method, analyzerId: 2);
2989var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method,
2990SymbolKind.Property, SymbolKind.Event, SymbolKind.Field, SymbolKind.Parameter };
3033TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Namespace, OperationKind.VariableDeclarationGroup),
3045TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.VariableDeclarationGroup),
3062TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.Method, OperationKind.VariableDeclarationGroup),
3083var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method,
3084SymbolKind.Property, SymbolKind.Event, SymbolKind.Field, SymbolKind.Parameter };
3143var symbolKinds = new[] { SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Method,
3144SymbolKind.Property, SymbolKind.Event, SymbolKind.Field, SymbolKind.Parameter };
3191var analyzers = new DiagnosticAnalyzer[] { new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType, OperationKind.Invocation) };
3223var analyzers = new DiagnosticAnalyzer[] { new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.NamedType, OperationKind.FieldReference) };
3265var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType));
3311var analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.NamedType));
3347var analyzer1 = new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.Field, analyzerId: 1);
3348var analyzer2 = new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.Field, analyzerId: 2);
Semantics\PrimaryConstructorTests.cs (36)
964Assert.Equal(SymbolKind.Local, outVar.Kind);
1011Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1076Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1304Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1317Assert.Equal(SymbolKind.Local, symbol.Kind);
1328Assert.Equal(SymbolKind.Method, symbol.Kind);
1533Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1622Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1971Assert.Equal(SymbolKind.Parameter, symbol.Kind);
2645Assert.Equal(SymbolKind.Parameter, symbol.Kind);
2683Assert.Equal(SymbolKind.Parameter, symbol.Kind);
2720Assert.Equal(SymbolKind.Parameter, symbol.Kind);
2756Assert.Equal(SymbolKind.Parameter, symbol.Kind);
4079context.RegisterSymbolAction(Handle, SymbolKind.Method);
4080context.RegisterSymbolAction(Handle, SymbolKind.Property);
4081context.RegisterSymbolAction(Handle, SymbolKind.Parameter);
4082context.RegisterSymbolAction(Handle, SymbolKind.NamedType);
4165context.RegisterSymbolStartAction(Handle1, SymbolKind.Method);
4166context.RegisterSymbolStartAction(Handle1, SymbolKind.Property);
4167context.RegisterSymbolStartAction(Handle1, SymbolKind.Parameter);
4168context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
5142context.RegisterSymbolAction(Handle1, SymbolKind.Method);
5143context.RegisterSymbolAction(Handle2, SymbolKind.Property);
5144context.RegisterSymbolAction(Handle3, SymbolKind.Parameter);
5482context.RegisterSymbolAction(Handle, SymbolKind.Method);
5483context.RegisterSymbolAction(Handle, SymbolKind.Property);
5484context.RegisterSymbolAction(Handle, SymbolKind.Parameter);
5485context.RegisterSymbolAction(Handle, SymbolKind.NamedType);
5569context.RegisterSymbolStartAction(Handle1, SymbolKind.Method);
5570context.RegisterSymbolStartAction(Handle1, SymbolKind.Property);
5571context.RegisterSymbolStartAction(Handle1, SymbolKind.Parameter);
5572context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
7822Assert.Equal(SymbolKind.Property, symbol.Kind);
7828Assert.Equal(SymbolKind.Parameter, symbol.Kind);
8762Assert.Equal(SymbolKind.Parameter, symbol.Kind);
9168Assert.Equal(SymbolKind.Parameter, symbol.Kind);
Semantics\RecordTests.cs (27)
451Assert.Equal(SymbolKind.Parameter, parameter.Kind);
457Assert.Equal(SymbolKind.Parameter, initializer.Kind);
483Assert.Equal(SymbolKind.Local, outVar.Kind);
21081return comp.GetMember<NamedTypeSymbol>(typeName).GetMembers().WhereAsArray(m => m.Kind == SymbolKind.Property);
21148Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
21378Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
21391Assert.Equal(SymbolKind.Local, symbol!.Kind);
21402Assert.Equal(SymbolKind.Method, symbol!.Kind);
21607Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
21696Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
22083Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
24647Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
24682Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
24716Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
24751Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
26517context.RegisterSymbolAction(Handle, SymbolKind.Method);
26518context.RegisterSymbolAction(Handle, SymbolKind.Property);
26519context.RegisterSymbolAction(Handle, SymbolKind.Parameter);
26520context.RegisterSymbolAction(Handle, SymbolKind.NamedType);
26612context.RegisterSymbolStartAction(Handle1, SymbolKind.Method);
26613context.RegisterSymbolStartAction(Handle1, SymbolKind.Property);
26614context.RegisterSymbolStartAction(Handle1, SymbolKind.Parameter);
26615context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
27609context.RegisterSymbolAction(Handle1, SymbolKind.Method);
27610context.RegisterSymbolAction(Handle2, SymbolKind.Property);
27611context.RegisterSymbolAction(Handle3, SymbolKind.Parameter);
28348Assert.Equal(SymbolKind.Property, model.GetSymbolInfo(cref).Symbol!.Kind);
Microsoft.CodeAnalysis.CSharp.Features (85)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (28)
28[new SymbolKindOrTypeKind(SymbolKind.Parameter)];
31[new SymbolKindOrTypeKind(SymbolKind.Property)];
105_ => [new SymbolKindOrTypeKind(SymbolKind.Local)], cancellationToken);
127_ => [new SymbolKindOrTypeKind(SymbolKind.Local)], cancellationToken);
154[new SymbolKindOrTypeKind(SymbolKind.Local)],
175_ => [new SymbolKindOrTypeKind(SymbolKind.Local), new SymbolKindOrTypeKind(MethodKind.LocalFunction)],
348(_ => [new SymbolKindOrTypeKind(SymbolKind.Local)])
395possibleDeclarationComputer: d => [new SymbolKindOrTypeKind(SymbolKind.Local)],
411possibleDeclarationComputer: d => [new SymbolKindOrTypeKind(SymbolKind.Local)],
422[new SymbolKindOrTypeKind(SymbolKind.TypeParameter)],
511return [new SymbolKindOrTypeKind(SymbolKind.Field)];
515new SymbolKindOrTypeKind(SymbolKind.Field),
516new SymbolKindOrTypeKind(SymbolKind.Property),
521possibleTypes = possibleTypes.Remove(new SymbolKindOrTypeKind(SymbolKind.Field));
527possibleTypes = possibleTypes.Remove(new SymbolKindOrTypeKind(SymbolKind.Field));
528possibleTypes = possibleTypes.Remove(new SymbolKindOrTypeKind(SymbolKind.Property));
538? [new SymbolKindOrTypeKind(SymbolKind.Local)] :
541[new SymbolKindOrTypeKind(SymbolKind.Local), new SymbolKindOrTypeKind(MethodKind.LocalFunction)];
627public static Glyph GetGlyph(SymbolKind kind, Accessibility? declaredAccessibility)
631SymbolKind.Field => Glyph.FieldPublic,
632SymbolKind.Local => Glyph.Local,
633SymbolKind.Method => Glyph.MethodPublic,
634SymbolKind.Parameter => Glyph.Parameter,
635SymbolKind.Property => Glyph.PropertyPublic,
636SymbolKind.RangeVariable => Glyph.RangeVariable,
637SymbolKind.TypeParameter => Glyph.TypeParameter,
661public static SymbolKind GetSymbolKind(SymbolKindOrTypeKind symbolKindOrTypeKind)
666symbolKindOrTypeKind.MethodKind.HasValue ? SymbolKind.Method :
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
70}, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (18)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (13)
233[InlineData("} namespace [|c2|] {", "} namespace C2 {", SymbolKind.Namespace, Accessibility.Public)]
239[InlineData("class M<[|t|]> {}", "class M<T> {}", SymbolKind.TypeParameter, Accessibility.Private)]
240[InlineData("void M<[|t|]>() {}", "void M<T>() {}", SymbolKind.TypeParameter, Accessibility.Private)]
241[InlineData("int [|m|] { get; }", "int M { get; }", SymbolKind.Property, Accessibility.Private)]
244[InlineData("int [|m|];", "int M;", SymbolKind.Field, Accessibility.Private)]
245[InlineData("event System.EventHandler [|m|];", "event System.EventHandler M;", SymbolKind.Event, Accessibility.Private)]
246[InlineData("void Outer(int [|m|]) {}", "void Outer(int M) {}", SymbolKind.Parameter, Accessibility.Private)]
247[InlineData("void Outer() { void Inner(int [|m|]) {} }", "void Outer() { void Inner(int M) {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
248[InlineData("void Outer() { System.Action<int> action = [|m|] => {} }", "void Outer() { System.Action<int> action = M => {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
249[InlineData("void Outer() { System.Action<int> action = ([|m|]) => {} }", "void Outer() { System.Action<int> action = (M) => {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
250[InlineData("void Outer() { System.Action<int> action = (int [|m|]) => {} }", "void Outer() { System.Action<int> action = (int M) => {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
251[InlineData("void Outer() { System.Action<int> action = delegate (int [|m|]) {} }", "void Outer() { System.Action<int> action = delegate (int M) {} }", SymbolKind.Parameter, Accessibility.NotApplicable)]
252[InlineData("void Outer() { int [|m|]; }", "void Outer() { int M; }", SymbolKind.Local, Accessibility.NotApplicable)]
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (266)
Semantics\ColorColorTests.cs (83)
50SymbolKind.Property, "E F.E { get; set; }",
51SymbolKind.Method, "void E.M(System.Int32 x)");
75SymbolKind.Field, "E F.E",
76SymbolKind.Method, "void E.M(System.Int32 x)",
100SymbolKind.Event, "event E F.E",
101SymbolKind.Method, "void E.Invoke(System.Int32 x)");
123SymbolKind.Parameter, "E E",
124SymbolKind.Method, "void E.M(System.Int32 x)");
147SymbolKind.Local, "E E",
148SymbolKind.Method, "void E.M(System.Int32 x)");
196SymbolKind.Field, "E F.E",
197SymbolKind.Property, "System.Int32 E.P { get; set; }",
224SymbolKind.Field, "E F.E",
225SymbolKind.Field, "System.Int32 E.F",
255SymbolKind.Field, "E F.E",
256SymbolKind.Event, "event System.Action E.Event",
286SymbolKind.NamedType, "E",
287SymbolKind.Field, "E.Element",
318SymbolKind.NamedType, "C",
319SymbolKind.NamedType, "C.Inner",
347SymbolKind.Field, "E F.E",
348SymbolKind.Method, "void E.M(System.Int32 x)",
376SymbolKind.Field, "E F.E",
377SymbolKind.Method, "void E.M<System.Int32>(System.Int32 x)",
405SymbolKind.Field, "E F.E",
406SymbolKind.Method, "void E.M<System.Boolean>(System.Boolean x)",
438SymbolKind.Field, "E F.E",
439SymbolKind.Method, "void E.M(System.Int32 x)",
471SymbolKind.Field, "E F.E",
472SymbolKind.Method, "void E.M(System.Int32 x)",
506SymbolKind.Property, "E F.E { get; set; }",
507SymbolKind.Method, "void E.M(System.Int32 x)");
533SymbolKind.NamedType, "E",
534SymbolKind.Method, "void E.M(params System.Int32[] a)");
560SymbolKind.Property, "E F.Q { get; set; }",
561SymbolKind.Method, "void E.M(System.Int32 x)");
594Assert.Equal(SymbolKind.Alias, alias.Kind);
601Assert.Equal(SymbolKind.Method, parentInfo.Symbol.Kind);
641Assert.Equal(SymbolKind.Local, info.Symbol.Kind);
680SymbolKind.Local, "E E",
681SymbolKind.Method, "void E.M(System.Int32 x)");
709SymbolKind.NamedType, "E",
710SymbolKind.Method, "void E.M(params System.Int32[] a)");
760SymbolKind.Property, "E F.Q { get; set; }",
761SymbolKind.Method, "void E.M(System.Int32 x)",
799SymbolKind.NamedType, "E",
800SymbolKind.Method, "void E.M(params System.Int32[] a)",
838SymbolKind.Property, "E F.E { get; set; }",
839SymbolKind.Method, "void E.M(System.Int32 x)",
877SymbolKind.NamedType, "E",
878SymbolKind.Method, "void E.M(params System.Int32[] a)",
907SymbolKind.NamedType, "C",
908SymbolKind.Method, "void C.Static()");
931SymbolKind.NamedType, "C",
932SymbolKind.Method, "void C.Static()");
955SymbolKind.NamedType, "Color",
956SymbolKind.Field, "Color.Red");
1070Assert.Equal(SymbolKind.Property, info.Symbol.Kind);
1116Assert.Equal(SymbolKind.Property, info.Symbol.Kind);
1162Assert.Equal(SymbolKind.Property, info.Symbol.Kind);
1207Assert.Equal(SymbolKind.Property, info.Symbol.Kind);
1251Assert.Equal(SymbolKind.Event, candidate.Kind);
1285Assert.Equal(SymbolKind.Field, info.Symbol.Kind);
1323SymbolKind.NamedType, "E",
1324SymbolKind.Method, "void E.M(params System.Int32[] a)",
1353SymbolKind.NamedType, "E",
1354SymbolKind.Method, "void E.M(params System.Int32[] a)");
1382SymbolKind.Property, "E F.E { get; set; }",
1383SymbolKind.Method, "void E.M(System.Int32 x)",
1411SymbolKind.NamedType, "E",
1412SymbolKind.Method, "void E.M(params System.Int32[] a)",
1439SymbolKind.Local, "E E",
1440SymbolKind.Method, "void E.M(System.Int32 x)");
1790Assert.Equal(SymbolKind.NamedType, actualSymbol.Symbol.Kind);
1824Assert.Equal(SymbolKind.NamedType, actualSymbol.Symbol.Kind);
1831SymbolKind exprSymbolKind,
1833SymbolKind parentSymbolKind,
1889Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind);
1903Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind);
1946Assert.Equal(SymbolKind.Local, symbolInfo.Symbol.Kind);
1960Assert.Equal(SymbolKind.Local, symbolInfo.Symbol.Kind);
2003Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind);
2017Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind);
Semantics\DeconstructionTests.cs (28)
3952Assert.Equal(SymbolKind.Local, symbol.Kind);
3957Assert.NotEqual(SymbolKind.Local, symbol.Kind);
3966Assert.Equal(SymbolKind.Local, symbol.Kind);
3971Assert.NotEqual(SymbolKind.Local, symbol.Kind);
4285Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
4291Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
4377Assert.Equal(SymbolKind.Field, a.Kind);
4381Assert.Equal(SymbolKind.Field, b.Kind);
4385Assert.Equal(SymbolKind.Field, c.Kind);
4389Assert.Equal(SymbolKind.Field, d.Kind);
4416Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
4422Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
4544Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
4553Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5230Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5236Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5335Assert.Equal(SymbolKind.Field, a.Kind);
5339Assert.Equal(SymbolKind.Field, b.Kind);
5343Assert.Equal(SymbolKind.Field, c.Kind);
5347Assert.Equal(SymbolKind.Field, d.Kind);
5374Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5380Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5511Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5520Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
5769Assert.Equal(SymbolKind.Field, a.Kind);
5773Assert.Equal(SymbolKind.Field, b.Kind);
5777Assert.Equal(SymbolKind.Field, c.Kind);
5781Assert.Equal(SymbolKind.Field, d.Kind);
Semantics\LocalFunctionTests.cs (18)
4968Assert.Equal(SymbolKind.Local, b1Symbol.Kind);
6411Assert.Equal(SymbolKind.Local, symbol.Kind);
6447Assert.Equal(SymbolKind.Local, symbol.Kind);
6450Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
6491Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
6494Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
6497Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
6538Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
6541Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
6544Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
7373Assert.Equal(SymbolKind.TypeParameter, symbolInfo.Symbol.Kind);
7635private void VerifyTParameter(CSharpCompilation comp, int index, string expectedContainer, bool findAnyways = false, string lookupFinds = "TParameter", SymbolKind symbolKind = SymbolKind.TypeParameter)
7656Assert.Equal(SymbolKind.TypeParameter, typeInfo.Type.Kind);
7891VerifyTParameter(comp, 1, "C", symbolKind: SymbolKind.NamedType, lookupFinds: "System.String C.TParameter");
8365VerifyTParameter(comp, 1, "C", symbolKind: SymbolKind.NamedType, lookupFinds: "System.String C.TParameter");
8427VerifyTParameter(comp, 1, "C", lookupFinds: "System.String C.TParameter", symbolKind: SymbolKind.NamedType);
8954Assert.Equal(SymbolKind.Parameter, symbolInfo.Symbol.Kind);
Semantics\QueryTests.cs (18)
1459Assert.Equal(SymbolKind.RangeVariable, x.Kind);
1467Assert.Equal(SymbolKind.RangeVariable, y.Kind);
1475Assert.Equal(SymbolKind.RangeVariable, z.Kind);
1668Assert.Equal(SymbolKind.RangeVariable, x.Kind);
1676Assert.Equal(SymbolKind.RangeVariable, y.Kind);
1684Assert.Equal(SymbolKind.RangeVariable, z.Kind);
2180Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind);
2210Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind);
2237Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind);
2243Assert.Equal(SymbolKind.RangeVariable, info.Symbol.Kind);
2277Assert.Equal(SymbolKind.RangeVariable, symbol.Kind);
2330Assert.Equal(SymbolKind.RangeVariable, symbol.Kind);
2902Assert.Equal(SymbolKind.RangeVariable, x.Kind);
2935Assert.Equal(SymbolKind.RangeVariable, x.Kind);
3141Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
3473Assert.Equal(SymbolKind.RangeVariable, x.Kind);
3523Assert.Equal(SymbolKind.RangeVariable, symbol.Kind);
3563Assert.Equal(SymbolKind.RangeVariable, symbol.Kind);
Semantics\RecordStructTests.cs (21)
2598Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
2633Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
2667Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
2702Assert.Equal(SymbolKind.Parameter, symbol!.Kind);
3289Assert.Equal(SymbolKind.Property, model.GetSymbolInfo(cref).Symbol!.Kind);
3337Assert.Equal(SymbolKind.Property, model.GetSymbolInfo(cref).Symbol!.Kind);
3388Assert.Equal(SymbolKind.Property, model.GetSymbolInfo(cref).Symbol!.Kind);
5852Assert.Equal(SymbolKind.Parameter, parameter.Kind);
5858Assert.Equal(SymbolKind.Parameter, initializer.Kind);
5894Assert.Equal(SymbolKind.Local, outVar.Kind);
6183context.RegisterSymbolAction(Handle, SymbolKind.Method);
6184context.RegisterSymbolAction(Handle, SymbolKind.Property);
6185context.RegisterSymbolAction(Handle, SymbolKind.Parameter);
6186context.RegisterSymbolAction(Handle, SymbolKind.NamedType);
6279context.RegisterSymbolStartAction(Handle1, SymbolKind.Method);
6280context.RegisterSymbolStartAction(Handle1, SymbolKind.Property);
6281context.RegisterSymbolStartAction(Handle1, SymbolKind.Parameter);
6282context.RegisterSymbolStartAction(Handle1, SymbolKind.NamedType);
6817context.RegisterSymbolAction(Handle1, SymbolKind.Method);
6818context.RegisterSymbolAction(Handle2, SymbolKind.Property);
6819context.RegisterSymbolAction(Handle3, SymbolKind.Parameter);
Semantics\TopLevelStatementsTests.cs (22)
704Assert.Equal(SymbolKind.Local, local.Kind);
706Assert.Equal(SymbolKind.Method, local.ContainingSymbol.Kind);
708Assert.Equal(SymbolKind.NamedType, local.ContainingSymbol.ContainingSymbol.Kind);
2429Assert.Equal(SymbolKind.Label, declSymbol.Kind);
3952Assert.False(symbols.Any(s => s.Kind == SymbolKind.Parameter));
4101Assert.False(symbols.Any(s => s.Kind == SymbolKind.Parameter));
4136Assert.False(symbols.Any(s => s.Kind == SymbolKind.Parameter));
4141Assert.False(symbols.Any(s => s.Kind == SymbolKind.Parameter));
4223Assert.Equal(SymbolKind.Method, local.ContainingSymbol.Kind);
4225Assert.Equal(SymbolKind.NamedType, local.ContainingSymbol.ContainingSymbol.Kind);
4899Assert.Equal(SymbolKind.Label, label.Kind);
4901Assert.Equal(SymbolKind.Method, label.ContainingSymbol.Kind);
4903Assert.Equal(SymbolKind.NamedType, label.ContainingSymbol.ContainingSymbol.Kind);
4984Assert.Equal(SymbolKind.Label, label.Kind);
4986Assert.Equal(SymbolKind.Method, label.ContainingSymbol.Kind);
4988Assert.Equal(SymbolKind.NamedType, label.ContainingSymbol.ContainingSymbol.Kind);
6530context.RegisterSymbolAction(Handle, SymbolKind.Method);
6605context.RegisterSymbolStartAction(Handle1, SymbolKind.Method);
6606context.RegisterSymbolStartAction(Handle2, SymbolKind.NamedType);
7269context.RegisterSymbolAction(Handle1, SymbolKind.Method);
7270context.RegisterSymbolAction(Handle2, SymbolKind.Namespace);
7271context.RegisterSymbolAction(Handle3, SymbolKind.NamedType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (955)
Compilation\GetSemanticInfoTests.cs (19)
45Assert.Equal(SymbolKind.Parameter, sym.Symbol.Kind);
75Assert.Equal(SymbolKind.Method, sym.Symbol.Kind);
105Assert.Equal(SymbolKind.Method, sym.Symbol.Kind);
139Assert.Equal(SymbolKind.Method, sym.Symbol.Kind);
1073Assert.Equal(SymbolKind.Method, baseConstructor.Kind);
1092Assert.Equal(SymbolKind.Method, baseConstructor.Kind);
1533Assert.Equal(SymbolKind.Field, candidate.Kind);
1562Assert.Equal(SymbolKind.NamedType, symbol.Kind);
1612Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
1708Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1710Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind);
1743Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1745Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind);
1778Assert.Equal(SymbolKind.Parameter, symbol.Kind);
1780Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind);
2541Assert.Equal(SymbolKind.Parameter, symbol.Kind);
2727Assert.Equal(SymbolKind.Local, symbol.Kind);
3556Assert.Equal(SymbolKind.Namespace, info.Symbol.Kind);
4790Assert.Equal(SymbolKind.ErrorType, lambda.ReturnType.Kind);
Compilation\IndexedProperties_BindingTests.cs (6)
42IndexedPropertiesBindingChecks(source, reference, SymbolKind.Method, "get_P1");
63IndexedPropertiesBindingChecks(source, reference, SymbolKind.Property, "P1");
84IndexedPropertiesBindingChecks(source, reference, SymbolKind.Property, "P1");
104IndexedPropertiesBindingChecks(source, reference, SymbolKind.Property, "P1");
130IndexedPropertiesBindingChecks(source, reference, SymbolKind.Property, "P1");
133private void IndexedPropertiesBindingChecks(string source, MetadataReference reference, SymbolKind symbolKind, string name)
Compilation\SemanticModelAPITests.cs (45)
155Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind);
1342Assert.Equal(SymbolKind.Alias, model.GetDeclaredSymbol(usingSyntax).Kind);
1369Assert.Equal(SymbolKind.Method, symbol.Kind);
1731Assert.Equal(SymbolKind.Alias, aliasSymbol.Kind);
1790Assert.Equal(SymbolKind.Local, local.Kind);
1802Assert.Equal(SymbolKind.Local, info.Symbol.Kind);
1809Assert.Equal(SymbolKind.Local, info2.Symbol.Kind);
1843Assert.Equal(SymbolKind.Local, local.Kind);
1856Assert.Equal(SymbolKind.Local, local.Kind);
1889Assert.Equal(SymbolKind.Label, label.Kind);
2085Assert.Equal(SymbolKind.Method, symbol.Kind);
2102Assert.Equal(SymbolKind.Method, symbol.Kind);
2121Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
2123Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
2286Assert.Equal(SymbolKind.Local, symbol.Kind);
2396Assert.Equal(SymbolKind.Local, local.Kind);
2408Assert.Equal(SymbolKind.Local, info.Symbol.Kind);
2579Assert.Equal(SymbolKind.Local, local.Kind);
2593Assert.Equal(SymbolKind.Local, local.Kind);
2607Assert.Equal(SymbolKind.Local, local.Kind);
2612Assert.Equal(SymbolKind.Parameter, param.Kind);
2650Assert.Equal(SymbolKind.Label, label.Kind);
2695SymbolKind expectedSymbolKind,
2802speculatedUsingExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.Namespace, "System.Collections");
2817speculatedUsingExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException");
2837speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException");
2868speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException");
2871speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException");
2874speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.NamedType, "System.ArgumentException");
2938Assert.Equal(SymbolKind.NamedType, symbol.Kind);
2944Assert.Equal(SymbolKind.NamedType, symbol.Kind);
2978Assert.Equal(SymbolKind.NamedType, symbol.Kind);
2984Assert.Equal(SymbolKind.NamedType, symbol.Kind);
3023Assert.Equal(SymbolKind.NamedType, symbol.Kind);
3028Assert.Equal(SymbolKind.NamedType, symbol.Kind);
3033Assert.Equal(SymbolKind.NamedType, symbol.Kind);
3039Assert.Equal(SymbolKind.NamedType, symbol.Kind);
3051Assert.Equal(SymbolKind.Method, symbol.Kind);
3056Assert.Equal(SymbolKind.Method, symbol.Kind);
3061Assert.Equal(SymbolKind.NamedType, symbol.Kind);
3067Assert.Equal(SymbolKind.Method, symbol.Kind);
3132Assert.Equal(SymbolKind.Parameter, symbol.Kind);
3617Assert.Equal(SymbolKind.NamedType, oldSymbol.Kind);
3624Assert.Equal(SymbolKind.NamedType, newSymbol.Kind);
3850Assert.Equal(SymbolKind.Alias, symbol.Kind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (36)
433Assert.Equal(SymbolKind.Event, symbol.Kind);
455Assert.Equal(SymbolKind.Property, symbol.Kind);
477Assert.Equal(SymbolKind.Property, symbol.Kind);
502Assert.Equal(SymbolKind.Event, symbol.Kind);
524Assert.Equal(SymbolKind.Property, symbol.Kind);
546Assert.Equal(SymbolKind.Property, symbol.Kind);
970Assert.Equal(SymbolKind.TypeParameter, ptsym.Kind);
988Assert.Equal(SymbolKind.Parameter, psym.Kind);
1090Assert.Equal(SymbolKind.NamedType, symbols[0].Kind);
1094Assert.Equal(SymbolKind.Local, symbols[0].Kind);
1131Assert.Equal(SymbolKind.NamedType, symbols[0].Kind);
1139Assert.Equal(SymbolKind.Field, symbols[0].Kind);
1143Assert.Equal(SymbolKind.Alias, symbols[0].Kind);
1180Assert.Equal(SymbolKind.NamedType, symbols[0].Kind);
1388Assert.True(symbolsInC.Any(s => s.Name == "A" && s.Kind == SymbolKind.NamedType));
1389Assert.True(symbolsInC.Any(s => s.Name == "B" && s.Kind == SymbolKind.NamedType));
1390Assert.True(symbolsInC.Any(s => s.Name == "C" && s.Kind == SymbolKind.NamedType));
1391Assert.True(symbolsInC.Any(s => s.Name == "M" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "A"));
1392Assert.True(symbolsInC.Any(s => s.Name == "M" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "B"));
1393Assert.True(symbolsInC.Any(s => s.Name == "M" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "C"));
1394Assert.True(symbolsInC.Any(s => s.Name == "F" && s.Kind == SymbolKind.Method && s.ContainingType.Name == "C"));
1395Assert.True(symbolsInC.Any(s => s.Name == "System" && s.Kind == SymbolKind.Namespace));
1396Assert.True(symbolsInC.Any(s => s.Name == "Microsoft" && s.Kind == SymbolKind.Namespace));
1722symbol.Kind == SymbolKind.Method && (((IMethodSymbol)symbol).IsExtensionMethod || ((IMethodSymbol)symbol).MethodKind == MethodKind.ReducedExtension);
1885symbol.Kind == SymbolKind.Method && (((IMethodSymbol)symbol).IsExtensionMethod || ((IMethodSymbol)symbol).MethodKind == MethodKind.ReducedExtension);
2820Assert.Equal(SymbolKind.Namespace, n1.Kind);
3454Assert.Equal(SymbolKind.Alias, symbol.Kind);
3590Assert.Equal(SymbolKind.Method, symbol.Kind);
3615Assert.Equal(SymbolKind.Method, symbol.Kind);
3639Assert.Equal(SymbolKind.NamedType, enumTypeSymbol.Kind);
3643Assert.Equal(SymbolKind.Field, symbol.Kind);
3671Assert.Equal(SymbolKind.Parameter, info.Symbol.Kind);
3713Assert.Equal(SymbolKind.Label, symbol.Kind);
3849Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind);
4747Assert.Equal(SymbolKind.NamedType, enumSymbol.Kind);
4751Assert.Equal(SymbolKind.Event, eventSymbol.Kind);
Compilation\SemanticModelGetSemanticInfoTests.cs (301)
56Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
58Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
91Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
126Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
160Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
201Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
242Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
282Assert.Equal(SymbolKind.Field, sortedCandidates[0].Kind);
319Assert.Equal(SymbolKind.Field, sortedCandidates[0].Kind);
349Assert.Equal(SymbolKind.Field, symbol.Kind);
379Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
437Assert.Equal(SymbolKind.Field, symbol.Kind);
472Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
512Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
555Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
557Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
603Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
605Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
651Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
653Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
704Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
706Assert.Equal(SymbolKind.Property, sortedCandidates[1].Kind);
736Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
770Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
805Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
1649Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
1693Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
1725Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
2124Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
2157Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2197Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
2269Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
2304Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2354Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2400Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2443Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2498Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2550Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2618Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
2655Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2700Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
2702Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
2741Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
2743Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
2791Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
2793Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
2837Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
2876Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2912Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
2956Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
2992Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
3026Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
3078Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3123Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3163Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3205Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3251Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3290Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3326Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3363Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3400Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3498Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3533Assert.Equal(SymbolKind.Local, sortedCandidates[0].Kind);
3561Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
3595Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3633Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3677Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3711Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3745Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3779Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
3809Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
3870Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
3905Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
4013Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
4044Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
4079Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
4112Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
4141Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
4223Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
4290Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
4292Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
4324Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
4385Assert.Equal(SymbolKind.Namespace, semanticInfo.Type.ContainingSymbol.Kind);
4410Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
4416Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
4453Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
4480Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
4547Assert.Equal(SymbolKind.Parameter, symbol.Kind);
4548Assert.True(symbol.ContainingSymbol.Kind == SymbolKind.Property && ((IPropertySymbol)symbol.ContainingSymbol).IsIndexer);
4575Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
4613Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
4679Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
4717Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
4753Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
4789Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
4820Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
4857Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
4884Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
4892Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.ContainingSymbol.Kind);
4928Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
4929Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
4974Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
4976Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
4978Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind);
4983Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
4985Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
4987Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind);
5026Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
5028Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
5030Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind);
5035Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
5037Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
5039Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind);
5117Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
5163Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
5205Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
5245Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
5284Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
5326Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
5412Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
5454Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
5456Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
5458Assert.Equal(SymbolKind.NamedType, sortedCandidates[2].Kind);
5548Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
5580Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
5612Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
5637Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
5662Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
5698Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
5801Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
5868Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
5937Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
6004Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
6123Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
6150Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
6183Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
6254Assert.Equal(SymbolKind.NamedType, symbol.Kind);
6335Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
6372Assert.Equal(SymbolKind.Method, symbol.Kind);
6406Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
6442Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
6525Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
6560Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
6597Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
6685Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
6881Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
6926Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
7000Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7029Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7053Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
7084Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7112Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7143Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7294Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7322Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7525Assert.Equal(SymbolKind.NamedType, semanticInfo.Type.Kind);
7558Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
7595Assert.Equal(SymbolKind.Parameter, sortedCandidates[0].Kind);
7597Assert.Equal(SymbolKind.Parameter, sortedCandidates[1].Kind);
7666Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
7705Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
7734Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind);
7759Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
7778Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind);
7797Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind);
7824Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
7889Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
8124Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind);
8148Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind);
8241Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind);
8379Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
8413Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
8566Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
8611Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
8650Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
8857Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
8899Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
9133Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9311Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
9313Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
9368Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9370Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9427Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9429Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9465Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
9467Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
9469Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind);
9538Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9540Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9575Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9577Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9624Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9626Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9790Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9792Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9841Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
9896Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
9898Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
9923Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
9935Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
9957Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
9971Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
9993Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
10007Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
10029Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
10043Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
10065Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
10079Assert.Equal(SymbolKind.Alias, aliasInfo.Kind);
10109Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
10146Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
10187Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
10226Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
10257Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
10292Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
10327Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
10329Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
10361Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
10363Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
10395Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
10397Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
10438Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
10440Assert.Equal(SymbolKind.NamedType, sortedCandidates[1].Kind);
10475Assert.Equal(SymbolKind.Field, sortedCandidates[0].Kind);
10503Assert.Equal(SymbolKind.Parameter, sortedCandidates[0].Kind);
10528Assert.Equal(SymbolKind.Parameter, semanticInfo.CandidateSymbols[0].Kind);
10533Assert.Equal(SymbolKind.Parameter, sortedCandidates[0].Kind);
10567Assert.Equal(SymbolKind.Field, sortedCandidates[0].Kind);
10610Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
10647Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
10684Assert.Equal(SymbolKind.Field, sortedCandidates[0].Kind);
10723Assert.Equal(SymbolKind.Event, sortedCandidates[0].Kind);
10766Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
10808Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
10845Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
11154Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
11156Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
11158Assert.Equal(SymbolKind.Method, sortedCandidates[2].Kind);
11232Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
11234Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
11272Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
11309Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
11346Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
11386Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
11433Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
11545Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
11582Assert.Equal(SymbolKind.Field, sortedCandidates[0].Kind);
11644Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
11678Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
11716Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
11761Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind);
11837Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
11907Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
11979Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
12161Assert.Equal(SymbolKind.NamedType, semanticInfo.CandidateSymbols[0].Kind);
12229Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
12297Assert.Equal(SymbolKind.TypeParameter, sortedCandidates[0].Kind);
12365Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
12401Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
12533Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
12574Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
12616Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
12650Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
12682Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
12777Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
12809Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
12852Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
12928Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
12968Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
13006Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
13047Assert.Equal(SymbolKind.Property, sortedCandidates[0].Kind);
13104Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
13139Assert.Equal(SymbolKind.Method, symbol.Kind);
13173Assert.Equal(SymbolKind.Method, symbol.Kind);
13207Assert.Equal(SymbolKind.Method, symbol.Kind);
13238Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
13269Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind);
13329Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
13509Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind);
13883Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
13922Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
13957Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
14048Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
14087Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
14125Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
14207Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
14251Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
14347Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
14428Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
14517Assert.Equal(SymbolKind.NamedType, sortedCandidates[0].Kind);
14632Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
14671Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
15090Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
15123Assert.Equal(SymbolKind.Method, sortedCandidates[0].Kind);
15125Assert.Equal(SymbolKind.Method, sortedCandidates[1].Kind);
15158Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind);
15189Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
15220Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
15251Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
15282Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind);
15309Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
15411Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind);
DocumentationComments\CrefTests.cs (11)
742Assert.Equal(SymbolKind.NamedType, GetReferencedSymbol(crefSyntax, compilation).Kind);
787Assert.Equal(SymbolKind.NamedType, GetReferencedSymbol(crefSyntax, compilation).Kind);
817Assert.Equal(SymbolKind.Method, GetReferencedSymbol(crefSyntax, compilation).Kind);
864Assert.Equal(SymbolKind.Method, GetReferencedSymbol(crefSyntax, compilation).Kind);
1813Assert.Equal(SymbolKind.Method, actualSymbol.Kind);
5922InstanceConstructors.Single(ctor => ctor.Parameters.Length == 1 && ctor.GetParameterType(0).Kind == SymbolKind.ArrayType);
6075Assert.Equal(SymbolKind.Method, methodSymbol.Kind);
6282Assert.Equal(SymbolKind.Field, symbolInfo.Symbol.Kind);
6288Assert.Equal(SymbolKind.Field, symbolInfo.Symbol.Kind);
6298Assert.Equal(SymbolKind.Field, symbolInfo.Symbol.Kind);
7066Assert.Equal(SymbolKind.Property, symbol.Kind);
DocumentationComments\DocumentationCommentIDTests.cs (19)
33Assert.Equal(SymbolKind.Alias, symbol.Kind);
49Assert.Equal(SymbolKind.ArrayType, symbol.Kind);
63Assert.Equal(SymbolKind.Assembly, symbol.Kind);
79Assert.Equal(SymbolKind.DynamicType, symbol.Kind);
94Assert.Equal(SymbolKind.ErrorType, symbol.Kind);
109Assert.Equal(SymbolKind.Event, symbol.Kind);
124Assert.Equal(SymbolKind.Field, symbol.Kind);
146Assert.Equal(SymbolKind.Label, symbol.Kind);
167Assert.Equal(SymbolKind.Local, symbol.Kind);
184Assert.Equal(SymbolKind.Method, symbol.Kind);
198Assert.Equal(SymbolKind.NetModule, symbol.Kind);
212Assert.Equal(SymbolKind.NamedType, symbol.Kind);
226Assert.Equal(SymbolKind.Namespace, symbol.Kind);
240Assert.Equal(SymbolKind.Namespace, symbol.Kind);
257Assert.Equal(SymbolKind.Parameter, symbol.Kind);
273Assert.Equal(SymbolKind.PointerType, symbol.Kind);
288Assert.Equal(SymbolKind.Property, symbol.Kind);
311Assert.Equal(SymbolKind.RangeVariable, symbol.Kind);
326Assert.Equal(SymbolKind.TypeParameter, symbol.Kind);
Symbols\CompilationCreationTests.cs (115)
140Assert.Equal(SymbolKind.ErrorType, asm1[1].GlobalNamespace.GetTypeMembers("Class4").
164Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind);
195Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind);
216Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind);
221Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind);
226Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind);
254Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind);
279Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind);
284Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind);
289Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind);
304Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind);
309Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind);
314Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind);
319Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind);
324Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind);
370Assert.Equal(SymbolKind.ErrorType, retval15.Kind);
374Assert.Equal(SymbolKind.ErrorType, retval16.Kind);
378Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind);
393Assert.Equal(SymbolKind.ErrorType, retval18.Kind);
397Assert.Equal(SymbolKind.ErrorType, retval19.Kind);
401Assert.Equal(SymbolKind.ErrorType, retval20.Kind);
405Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind);
410Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind);
458Assert.Equal(SymbolKind.ErrorType, asm1[1].GlobalNamespace.GetTypeMembers("Class4").
475Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind);
497Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind);
518Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind);
523Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind);
528Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind);
546Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind);
571Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind);
576Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind);
581Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind);
596Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind);
601Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind);
606Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind);
611Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind);
616Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind);
636Assert.Equal(SymbolKind.ErrorType, retval15.Kind);
640Assert.Equal(SymbolKind.ErrorType, retval16.Kind);
644Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind);
659Assert.Equal(SymbolKind.ErrorType, retval18.Kind);
663Assert.Equal(SymbolKind.ErrorType, retval19.Kind);
667Assert.Equal(SymbolKind.ErrorType, retval20.Kind);
671Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind);
676Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind);
747Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind);
843Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind);
864Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind);
869Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind);
874Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind);
984Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind);
1009Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind);
1014Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind);
1019Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind);
1034Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind);
1039Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind);
1044Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind);
1049Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind);
1054Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind);
1107Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind);
1134Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind);
1139Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind);
1195Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind);
1222Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind);
1243Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind);
1248Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind);
1253Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind);
1275Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind);
1300Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind);
1305Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind);
1310Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind);
1325Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind);
1330Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind);
1335Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind);
1340Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind);
1345Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind);
1380Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind);
1407Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind);
1412Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind);
1458Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind);
1517Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind);
1538Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind);
1543Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind);
1548Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind);
1605Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind);
1630Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind);
1635Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind);
1640Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind);
1655Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind);
1660Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind);
1665Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind);
1670Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind);
1675Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind);
1743Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind);
1770Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind);
1775Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind);
1841Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind);
1868Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind);
1889Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind);
1894Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind);
1899Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind);
1921Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind);
1946Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind);
1951Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind);
1956Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind);
1971Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind);
1976Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind);
1981Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind);
1986Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind);
1991Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind);
2028Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind);
2055Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind);
2060Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind);
2528Assert.NotEqual(SymbolKind.ErrorType, typeC5.Kind);
Symbols\Metadata\PE\MissingTypeReferences.cs (17)
46Assert.Equal(SymbolKind.ErrorType, @base.Kind);
64Assert.Equal(SymbolKind.ErrorType, @base.Kind);
101Assert.Equal(SymbolKind.ErrorType, @base.Kind);
112Assert.Equal(SymbolKind.ErrorType, @base.ContainingSymbol.Kind);
116Assert.Equal(SymbolKind.ErrorType, @base.ContainingSymbol.ContainingSymbol.Kind);
130Assert.Equal(SymbolKind.ErrorType, @base.Kind);
145Assert.Equal(SymbolKind.ErrorType, @base.Kind);
160Assert.Equal(SymbolKind.ErrorType, @base.Kind);
173Assert.Equal(SymbolKind.ErrorType, genericBase.Kind);
177Assert.Equal(SymbolKind.ErrorType, @base.Kind);
194Assert.Equal(SymbolKind.ErrorType, @base.Kind);
210Assert.Equal(SymbolKind.NamedType, genericBase.ContainingSymbol.Kind);
213Assert.Equal(SymbolKind.ErrorType, @base.Kind);
228Assert.Equal(SymbolKind.ErrorType, genericBase.ContainingSymbol.Kind);
231Assert.Equal(SymbolKind.ErrorType, @base.Kind);
250Assert.Equal(SymbolKind.ErrorType, genericBase.ContainingSymbol.Kind);
253Assert.Equal(SymbolKind.ErrorType, @base.Kind);
Symbols\Metadata\PE\NoPia.cs (63)
156Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
164Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
200Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
208Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
213Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
215Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
237Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
239Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
244Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
246Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
270Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind);
271Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind);
275Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
277Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
304Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
311Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
528Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
537Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
542Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
550Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
571Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
573Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
578Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
580Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
604Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind);
605Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind);
612Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
614Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
640Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
646Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
717Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
718Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
719Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind);
724Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
736Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
737Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
739Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
780Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind);
794Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind);
809Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind);
810Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind);
858Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind);
1018Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1019Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1020Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind);
1025Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1037Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1038Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1040Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1147Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind);
1161Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind);
1176Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind);
1177Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind);
1225Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind);
1239Assert.NotEqual(SymbolKind.ErrorType, varI5.Kind);
1240Assert.NotEqual(SymbolKind.ErrorType, varI6.Kind);
1241Assert.NotEqual(SymbolKind.ErrorType, varI5_Foo.ReturnType.Kind);
1242Assert.NotEqual(SymbolKind.ErrorType, ((NamedTypeSymbol)varI5_Foo.ReturnType).TypeArguments()[0].Kind);
1249Assert.NotEqual(SymbolKind.ErrorType, varI7_Foo.ReturnType.Kind);
1250Assert.NotEqual(SymbolKind.ErrorType, ((NamedTypeSymbol)varI7_Foo.ReturnType).TypeArguments()[0].Kind);
1253Assert.NotEqual(SymbolKind.ErrorType, varI7_Bar.ReturnType.Kind);
1254Assert.NotEqual(SymbolKind.ErrorType, ((NamedTypeSymbol)varI7_Bar.ReturnType).TypeArguments()[0].Kind);
1259Assert.NotEqual(SymbolKind.ErrorType, varI1.Kind);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (31)
36Assert.Equal(SymbolKind.ErrorType, localField.Type.BaseType().Kind);
56Assert.Equal(SymbolKind.ErrorType, importedField.Type.Kind);
76Assert.Equal(SymbolKind.ErrorType, importedField.Type.Kind);
95Assert.Equal(SymbolKind.NamedType, importedField.Type.Kind);
98Assert.Equal(SymbolKind.NamedType, outer.Kind);
101Assert.Equal(SymbolKind.ErrorType, inner.Kind);
118Assert.Equal(SymbolKind.NamedType, var1.Type.Kind);
140Assert.Equal(SymbolKind.ErrorType, m.Parameters.Where(arg => arg.Name == "c1").Select(arg => arg).Single().Type.BaseType().Kind);
145Assert.Equal(SymbolKind.ErrorType, m.ReturnType.BaseType().Kind);
165Assert.Equal(SymbolKind.NamedType, var1.Type.Kind);
184Assert.Equal(SymbolKind.ErrorType, importedProperty.Parameters.Single(arg => arg.Name == "x").Type.Kind);
203Assert.Equal(SymbolKind.ErrorType, importedProperty.Type.Kind);
222Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind);
241Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind);
260Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind);
279Assert.Equal(SymbolKind.ErrorType, importedMethod.ReturnType.Kind);
298Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind);
317Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Single(arg => arg.Name == "x").Type.Kind);
336Assert.Equal(SymbolKind.ErrorType, importedField.Type.Kind);
354Assert.Equal(SymbolKind.NamedType, var1.Type.Kind);
371Assert.Equal(SymbolKind.NamedType, var1.Type.Kind);
391Assert.Equal(SymbolKind.ErrorType, localField.Type.BaseType().Kind);
412Assert.Equal(SymbolKind.NamedType, localField.Type.Kind);
445Assert.Equal(SymbolKind.Parameter, m.Parameters.Where(arg => arg.Name == "c1").Select(arg => arg).Single().Kind);
450Assert.Equal(SymbolKind.NamedType, m.ReturnType.Kind);
468Assert.Equal(SymbolKind.NamedType, classLocalType.Kind);
489Assert.Equal(SymbolKind.ArrayType, localField.Type.Kind);
490Assert.Equal(SymbolKind.ErrorType, ((ArrayTypeSymbol)localField.Type).ElementType.Kind);
505Assert.Equal(SymbolKind.ArrayType, localField.Type.Kind);
521Assert.Equal(SymbolKind.ErrorType, localMethod.ReturnType.Kind);
571Assert.Equal(SymbolKind.ErrorType, m.ReturnType.Kind);
Symbols\Retargeting\NoPia.cs (73)
464Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
472Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
506Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
514Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
519Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
521Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
541Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
543Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
548Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
550Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
573Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind);
574Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind);
578Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
580Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
606Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
612Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
765Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
773Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
807Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
815Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
820Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
822Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
842Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
844Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
849Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
851Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
874Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind);
875Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind);
879Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
881Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
907Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
913Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1069Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1077Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1111Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1119Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1124Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1126Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1146Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1148Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1153Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1155Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1178Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind);
1179Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind);
1183Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1185Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1211Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind);
1217Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind);
1349Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1350Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1351Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind);
1356Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1370Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1371Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1373Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1415Assert.Equal(SymbolKind.ErrorType, assemblies1[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind);
1423Assert.Equal(SymbolKind.ErrorType, assemblies2[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind);
1460Assert.Equal(SymbolKind.ErrorType, assemblies1[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind);
1468Assert.Equal(SymbolKind.ErrorType, assemblies2[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind);
1902Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1903Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1904Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind);
1909Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1923Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1924Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1926Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1952Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1953Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1954Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind);
1959Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
1973Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind);
1974Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind);
1976Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
Symbols\Source\BaseClassTests.cs (11)
40Assert.Equal(SymbolKind.ErrorType, x.BaseType().Kind);
41Assert.Equal(SymbolKind.ErrorType, y.BaseType().Kind);
60Assert.Equal(SymbolKind.ErrorType, x.BaseType().Kind);
61Assert.Equal(SymbolKind.ErrorType, y.BaseType().Kind);
186Assert.Equal(SymbolKind.ErrorType, a.Interfaces()[0].Kind);
1321Assert.NotEqual(SymbolKind.ErrorType, d.BaseType().Kind);
1340Assert.Equal(SymbolKind.ArrayType, garg.Kind);
1392Assert.Equal(SymbolKind.ErrorType, a2.BaseType().Kind);
1395Assert.Equal(SymbolKind.ErrorType, b2.BaseType().Kind);
1415Assert.Equal(SymbolKind.ErrorType, abase.Kind);
1417Assert.Equal(SymbolKind.ErrorType, bbase.Kind);
Symbols\Source\DeclaringSyntaxNodeTests.cs (28)
93if (symbol.Kind == SymbolKind.Namespace && ((INamespaceSymbol)symbol).IsGlobalNamespace)
134private void CheckDeclaringSyntax<TNode>(CSharpCompilation comp, SyntaxTree tree, string name, SymbolKind kind)
356if (member.Kind == SymbolKind.Property)
523if (memb.Kind == SymbolKind.Method && ((IMethodSymbol)memb).MethodKind == MethodKind.Constructor)
577if (memb.Kind == SymbolKind.Method)
604CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc1", SymbolKind.Local);
605CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc2", SymbolKind.Local);
606CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc3", SymbolKind.Local);
607CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc4", SymbolKind.Local);
608CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc5", SymbolKind.Local);
609CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc6", SymbolKind.Local);
610CheckDeclaringSyntax<VariableDeclaratorSyntax>(comp, tree, "loc7", SymbolKind.Local);
611CheckDeclaringSyntax<ForEachStatementSyntax>(comp, tree, "loc8", SymbolKind.Local);
639CheckDeclaringSyntax<LabeledStatementSyntax>(comp, tree, "lab1", SymbolKind.Label);
640CheckDeclaringSyntax<LabeledStatementSyntax>(comp, tree, "lab2", SymbolKind.Label);
641CheckDeclaringSyntax<LabeledStatementSyntax>(comp, tree, "lab3", SymbolKind.Label);
642CheckDeclaringSyntax<SwitchLabelSyntax>(comp, tree, "case 4:", SymbolKind.Label);
643CheckDeclaringSyntax<SwitchLabelSyntax>(comp, tree, "case 3:", SymbolKind.Label);
644CheckDeclaringSyntax<SwitchLabelSyntax>(comp, tree, "default", SymbolKind.Label);
664CheckDeclaringSyntax<UsingDirectiveSyntax>(comp, tree, "ConsoleAlias", SymbolKind.Alias);
665CheckDeclaringSyntax<UsingDirectiveSyntax>(comp, tree, "ListOfIntAlias", SymbolKind.Alias);
666CheckDeclaringSyntax<UsingDirectiveSyntax>(comp, tree, "GooAlias", SymbolKind.Alias);
690CheckDeclaringSyntax<QueryClauseSyntax>(comp, tree, "range1", SymbolKind.RangeVariable);
691CheckDeclaringSyntax<QueryClauseSyntax>(comp, tree, "range2", SymbolKind.RangeVariable);
692CheckDeclaringSyntax<QueryContinuationSyntax>(comp, tree, "range3", SymbolKind.RangeVariable);
693CheckDeclaringSyntax<QueryClauseSyntax>(comp, tree, "range4", SymbolKind.RangeVariable);
694CheckDeclaringSyntax<QueryClauseSyntax>(comp, tree, "range5", SymbolKind.RangeVariable);
695CheckDeclaringSyntax<JoinIntoClauseSyntax>(comp, tree, "range6", SymbolKind.RangeVariable);
Symbols\Source\UsingAliasTests.cs (12)
52Assert.Equal(SymbolKind.Alias, alias1.Kind);
112Assert.Equal(SymbolKind.Alias, alias1.Kind);
169Assert.Equal(SymbolKind.Alias, alias1.Kind);
227Assert.Equal(SymbolKind.Alias, alias1.Kind);
488Assert.Equal(SymbolKind.Alias, symbols[0].Kind);
509Assert.Equal(SymbolKind.Alias, symbols[0].Kind);
546Assert.Equal(SymbolKind.Alias, model.GetAliasInfo(exprSyntaxToBind).Kind);
566Assert.Equal(SymbolKind.Alias, model.GetAliasInfo(exprSyntaxToBind).Kind);
585Assert.Equal(SymbolKind.Alias, model.GetAliasInfo(exprSyntaxToBind).Kind);
605Assert.Equal(SymbolKind.Alias, model.GetAliasInfo(exprSyntaxToBind).Kind);
705Assert.Equal(SymbolKind.ErrorType, alias.Target.Kind);
748Assert.Equal(SymbolKind.ErrorType, alias.Target.Kind);
Symbols\TypeTests.cs (24)
470Assert.Equal(SymbolKind.Field, field1.Kind);
485Assert.Equal(SymbolKind.Field, field1.Kind);
495Assert.Equal(SymbolKind.Method, method.Kind);
544Assert.Equal(SymbolKind.ArrayType, sym1.Kind);
573Assert.Equal(SymbolKind.ArrayType, sym2.Kind);
592Assert.Equal(SymbolKind.ArrayType, sym1.Kind);
598Assert.Equal(SymbolKind.ArrayType, sym2.Kind);
604Assert.Equal(SymbolKind.ArrayType, sym3.Kind);
631Assert.Equal(SymbolKind.Field, m.Kind);
641Assert.Equal(SymbolKind.Field, obj.Kind);
645Assert.NotEqual(SymbolKind.ErrorType, objType.Kind);
649Assert.Equal(SymbolKind.Field, dyn.Kind);
653Assert.NotEqual(SymbolKind.ErrorType, dynType.Kind);
683Assert.Equal(SymbolKind.Field, symbol.Kind);
855Assert.Equal(SymbolKind.NamedType, igoo.Kind);
868Assert.Equal(SymbolKind.NamedType, classA.Kind);
880Assert.Equal(SymbolKind.NamedType, structS.Kind);
907Assert.Equal(SymbolKind.Field, varA.Kind);
909Assert.Equal(SymbolKind.NamedType, varA.Type.Kind);
1243Assert.Equal(SymbolKind.ErrorType, typeAb.Kind);
1250Assert.Equal(SymbolKind.ErrorType, typeBi.Kind);
1257Assert.Equal(SymbolKind.ErrorType, typeCi.Kind);
1264Assert.Equal(SymbolKind.ErrorType, typeDi.TypeArguments()[2].Kind);
1480Assert.Equal(SymbolKind.Field, varX.Kind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (28)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (74)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (18)
Diagnostics\DiagnosticServiceTests.vb (12)
1257context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.Method)
1463End Sub, SymbolKind.NamedType)
1544context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType)
1569context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType)
1604End Sub, SymbolKind.NamedType)
1621context.RegisterSymbolAction(AddressOf AnalyzeSymbol, SymbolKind.NamedType)
1645Private Shared ReadOnly Property SymbolKindsOfInterest As SymbolKind()
1745context.RegisterSymbolAction(Sub(s) Return, SymbolKind.NamedType)
1777context.RegisterSymbolAction(AddressOf compilationAnalyzer.AnalyzeSymbol, SymbolKind.NamedType)
1888End Sub, SymbolKind.Method)
2458Assert.Equal(SymbolKind.Method, analyzedMethod.Kind)
2522context.RegisterSymbolAction(Sub(symbolContext) AnalyzedMethodSymbols.Add(symbolContext.Symbol), SymbolKind.Method)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (5)
Microsoft.CodeAnalysis.Features (253)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (10)
34where m.Kind is SymbolKind.Event or
35SymbolKind.Field or
36SymbolKind.Method or
37SymbolKind.NamedType or
38SymbolKind.Property
47SymbolKind.Field => new WrappedFieldSymbol((IFieldSymbol)m, docCommentFormattingService),
48SymbolKind.Event => new WrappedEventSymbol((IEventSymbol)m, canImplementImplicitly, docCommentFormattingService),
49SymbolKind.Method => new WrappedMethodSymbol((IMethodSymbol)m, canImplementImplicitly, docCommentFormattingService),
50SymbolKind.NamedType => new WrappedNamedTypeSymbol((INamedTypeSymbol)m, canImplementImplicitly, docCommentFormattingService),
51SymbolKind.Property => new WrappedPropertySymbol((IPropertySymbol)m, canImplementImplicitly, docCommentFormattingService),
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
71}, SymbolKind.NamedType);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
109document.Document, state, SymbolKind.Property, state.DetermineMaximalAccessibility(), cancellationToken).ConfigureAwait(false))
125Document document, State state, SymbolKind kind, Accessibility accessibility, CancellationToken cancellationToken)
191document, state, SymbolKind.Local, Accessibility.NotApplicable, cancellationToken).ConfigureAwait(false))
207document, state, SymbolKind.Parameter, Accessibility.NotApplicable, cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.Test.Utilities (81)
Diagnostics\CommonDiagnosticAnalyzers.cs (32)
767}, SymbolKind.NamedType);
789context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Namespace);
964cc.RegisterSymbolAction(c => ReportDiagnostic(c.ReportDiagnostic, ActionKind.Symbol), SymbolKind.NamedType);
1004}, SymbolKind.NamedType);
1044}, SymbolKind.NamedType);
1179}, SymbolKind.NamedType);
1211}, SymbolKind.NamedType);
1538}, SymbolKind.NamedType);
1573if (context.OwningSymbol.Kind != SymbolKind.Method ||
1591if (context.OwningSymbol.Kind != SymbolKind.Method ||
1602}, SymbolKind.NamedType);
1606if (context.OwningSymbol.Kind != SymbolKind.Method)
1619if (context.OwningSymbol.Kind != SymbolKind.Method)
1700compilationStartContext.RegisterSymbolAction(symbolContext => namedTypes.Add(symbolContext.Symbol), SymbolKind.NamedType);
1816}, SymbolKind.NamedType);
1859context.RegisterSymbolAction(SymbolAction, SymbolKind.Parameter);
1871private readonly SymbolKind _symbolKind;
1876public SymbolStartAnalyzer(bool topLevelAction, SymbolKind symbolKind, OperationKind? operationKindOpt = null, int? analyzerId = null)
2430}, SymbolKind.NamedType);
2441}, SymbolKind.NamedType);
2451}, SymbolKind.NamedType);
2545SymbolKind.NamedType);
2611SymbolKind.Field);
2751SymbolKind.NamedType, SymbolKind.Method);
2767}, SymbolKind.NamedType);
2940context.RegisterSymbolAction(context => HandleCallback(context.Symbol.Locations[0], context.Compilation, context.ReportDiagnostic, context.CancellationToken), SymbolKind.NamedType);
3016context.RegisterSymbolAction(symbolContext => AnalyzedSymbols.Add(symbolContext.Symbol), SymbolKind.NamedType, SymbolKind.Method);
3036}, SymbolKind.NamedType);
3131}, SymbolKind.NamedType);
3148}, SymbolKind.NamedType);
Diagnostics\TrackingDiagnosticAnalyzer.cs (29)
30public readonly SymbolKind? SymbolKind;
39SymbolKind = symbol == null ? (SymbolKind?)null : symbol.Kind;
84SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Parameter, SymbolKind.Property
107protected virtual bool IsOnCodeBlockSupported(SymbolKind symbolKind, MethodKind methodKind, bool returnsVoid)
112public void VerifyOnCodeBlockCalledForAllSymbolAndMethodKinds(HashSet<SymbolKind> symbolKindsWithNoCodeBlocks = null, bool allowUnexpectedCalls = false)
117new { SymbolKind = SymbolKind.Event, MethodKind = InvalidMethodKind, ReturnsVoid = false },
118new { SymbolKind = SymbolKind.Field, MethodKind = InvalidMethodKind, ReturnsVoid = false },
119new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Constructor, ReturnsVoid = true },
120new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Conversion, ReturnsVoid = false },
121new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Destructor, ReturnsVoid = true }, // C# only
122new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventAdd, ReturnsVoid = true },
123new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventRemove, ReturnsVoid = true },
124new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventRaise, ReturnsVoid = true }, // VB only
125new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.ExplicitInterfaceImplementation, ReturnsVoid = true }, // C# only
126new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Ordinary, ReturnsVoid = false },
127new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.Ordinary, ReturnsVoid = true },
128new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.PropertyGet, ReturnsVoid = false },
129new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.PropertySet, ReturnsVoid = true },
130new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.StaticConstructor, ReturnsVoid = true },
131new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.UserDefinedOperator, ReturnsVoid = false },
132new { SymbolKind = SymbolKind.Property, MethodKind = InvalidMethodKind, ReturnsVoid = false },
133new { SymbolKind = SymbolKind.NamedType, MethodKind = InvalidMethodKind, ReturnsVoid = false },
134new { SymbolKind = SymbolKind.Namespace, MethodKind = InvalidMethodKind, ReturnsVoid = false }
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic (1135)
Analysis\FlowAnalysis\AbstractFlowPass.vb (8)
110Debug.Assert(_info.Symbol.Kind = SymbolKind.Field OrElse
111_info.Symbol.Kind = SymbolKind.Property OrElse
112_info.Symbol.Kind = SymbolKind.Method OrElse
113_info.Symbol.Kind = SymbolKind.Parameter)
239Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).Parameters, ImmutableArray(Of ParameterSymbol).Empty)
253Return Me.symbol.Kind = SymbolKind.Method AndAlso DirectCast(Me.symbol, MethodSymbol).Locations.Length = 1
263Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol), Nothing)
273Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).ReturnType, Nothing)
Binding\Binder_Expressions.vb (53)
660If symbols.Count = 1 AndAlso symbols(0).Kind = SymbolKind.ErrorType Then
1907Case SymbolKind.Method
1911Case SymbolKind.Field, SymbolKind.Property
1919Case SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Parameter
2237Case SymbolKind.Method, SymbolKind.Property
2241Case SymbolKind.Field
2585Case SymbolKind.Field, SymbolKind.Method, SymbolKind.Property, SymbolKind.Event
2723Case SymbolKind.Field, SymbolKind.Property
2728Case SymbolKind.Local, SymbolKind.Parameter, SymbolKind.RangeVariable
3092((lookupResult.Symbols(0).Kind <> SymbolKind.Method AndAlso lookupResult.Symbols(0).Kind <> SymbolKind.Property) OrElse
3139Case SymbolKind.Method
3152Case SymbolKind.Property
3164Case SymbolKind.Event
3197Case SymbolKind.Field
3244Case SymbolKind.Local
3281Case SymbolKind.RangeVariable
3286Case SymbolKind.Parameter
3298Case SymbolKind.NamedType, SymbolKind.ErrorType
3339Case SymbolKind.TypeParameter
3345Case SymbolKind.Namespace
3351Case SymbolKind.Alias
3358Case SymbolKind.NamedType, SymbolKind.ErrorType
3364Case SymbolKind.Namespace
3424If candidate.Kind = SymbolKind.Namespace AndAlso
3439If candidate Is Nothing OrElse candidate.Kind = SymbolKind.ErrorType Then
3516Case SymbolKind.Method
3520Case SymbolKind.Property
3524Case SymbolKind.Field
4006Case SymbolKind.Method
4008Case SymbolKind.Field
4012Case SymbolKind.Property
4014Case SymbolKind.Parameter
4016Case SymbolKind.Local
4018Case SymbolKind.RangeVariable
4629Return ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(ContainingMember, MethodSymbol).IsAsync
4633Return ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(ContainingMember, MethodSymbol).IsIterator
4740If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Method Then
4792If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Property Then
4838If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Method Then
4960ElseIf ContainingMember.Kind = SymbolKind.Method Then
Semantics\AccessCheck.vb (30)
103Case SymbolKind.ArrayType
106Case SymbolKind.NamedType
109Case SymbolKind.Alias
112Case SymbolKind.ErrorType
116Case SymbolKind.TypeParameter, SymbolKind.Parameter, SymbolKind.Local, SymbolKind.RangeVariable,
117SymbolKind.Label, SymbolKind.Namespace, SymbolKind.Assembly, SymbolKind.NetModule
121Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event, SymbolKind.Field
154If typeArgs(i).Kind <> SymbolKind.TypeParameter Then
496Case SymbolKind.TypeParameter
498Case SymbolKind.NamedType, SymbolKind.ErrorType
599Case SymbolKind.TypeParameter, SymbolKind.ErrorType
601Case SymbolKind.ArrayType
603Case SymbolKind.NamedType
661If container IsNot Nothing AndAlso container.Kind = SymbolKind.Namespace Then
867If Not (exposingMember.Kind = SymbolKind.NamedType AndAlso IsTypeNestedIn(exposedType, DirectCast(exposingMember, NamedTypeSymbol))) Then
871Debug.Assert(exposingMember.Kind = SymbolKind.NamedType)
993Debug.Assert(member.Kind <> SymbolKind.Namespace, "How can a Member be a namespace ?")
998If member.Kind = SymbolKind.NamedType Then
1171If member.Kind = SymbolKind.NamedType Then
Symbols\Source\SourceMethodSymbol.vb (7)
1057container.FindMember(propertyIdentifier.ValueText, SymbolKind.Property, propertyIdentifier.Span, tree),
1088container.FindMember(eventIdentifier.ValueText, SymbolKind.Event, eventIdentifier.Span, tree),
1124Return container.FindMember(propertyIdentifier.ValueText, SymbolKind.Property, propertyIdentifier.Span, tree)
1128Return container.FindMember(eventIdentifier.ValueText, SymbolKind.Event, eventIdentifier.Span, tree)
1132Return container.FindMember(delegateIdentifier.ValueText, SymbolKind.NamedType, delegateIdentifier.Span, tree)
1136SymbolKind.Method, GetMethodLocationFromSyntax(syntax), tree), MethodSymbol)
1753If Me.IsAccessor() AndAlso Me.AssociatedSymbol.Kind = SymbolKind.Event Then
Symbols\Symbol.vb (30)
146Public MustOverride ReadOnly Property Kind As SymbolKind
208Case SymbolKind.Namespace
210Case SymbolKind.NamedType
251Case SymbolKind.ErrorType
253Case SymbolKind.Assembly
256Case SymbolKind.NetModule
592Case SymbolKind.Local
595Case SymbolKind.Label,
596SymbolKind.Alias
600Case SymbolKind.Namespace,
601SymbolKind.Field,
602SymbolKind.RangeVariable,
603SymbolKind.Property,
604SymbolKind.Event,
605SymbolKind.Parameter,
606SymbolKind.TypeParameter,
607SymbolKind.ErrorType,
608SymbolKind.Preprocessing
611Case SymbolKind.NamedType
617Case SymbolKind.Method
627Case SymbolKind.Assembly, SymbolKind.NetModule, SymbolKind.ArrayType
657If Me.Kind = SymbolKind.Method Then
735If Me.Kind = SymbolKind.Assembly Then
740Dim [module] = If(Me.Kind = SymbolKind.NetModule, Me, Me.ContainingModule)
997Case SymbolKind.Field
1000Case SymbolKind.Method
1003Case SymbolKind.Property
1319Private ReadOnly Property ISymbol_Kind As SymbolKind Implements ISymbol.Kind, ISymbolInternal.Kind
Symbols\SymbolExtensions.vb (43)
30Case SymbolKind.Namespace
33Case SymbolKind.NamedType
53Case SymbolKind.Field, SymbolKind.Local, SymbolKind.Parameter, SymbolKind.RangeVariable
56Case SymbolKind.Method
69Case SymbolKind.Property
76Case SymbolKind.Event
100If target.Kind = SymbolKind.Namespace Then
138If kind = SymbolKind.Method Then
140ElseIf kind <> SymbolKind.Property Then
165Case SymbolKind.Method
171Case SymbolKind.Property
196Case SymbolKind.Field, SymbolKind.Property, SymbolKind.Method, SymbolKind.Event
209Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event
243Return symbol.Kind = SymbolKind.Method AndAlso IsAccessor(DirectCast(symbol, MethodSymbol))
248Return symbol.Kind = SymbolKind.Property AndAlso DirectCast(symbol, PropertySymbol).IsWithEvents
257Return symbol.Kind = SymbolKind.Property AndAlso Not DirectCast(symbol, PropertySymbol).IsWithEvents
280Return this.Kind = SymbolKind.Method AndAlso DirectCast(this, MethodSymbol).IsReducedExtensionMethod
289Case SymbolKind.Method
291Case SymbolKind.Property
293Case SymbolKind.Event
306Case SymbolKind.Method
308Case SymbolKind.NamedType, SymbolKind.ErrorType
322Case SymbolKind.Method
324Case SymbolKind.Field
326Case SymbolKind.Property
328Case SymbolKind.Parameter
341Case SymbolKind.Method
343Case SymbolKind.Property
376Return symbol.Kind = SymbolKind.Method AndAlso DirectCast(symbol, MethodSymbol).IsUserDefinedOperator()
404Dim upperLevelType = If(symbol.Kind = SymbolKind.NamedType, DirectCast(symbol, NamedTypeSymbol), symbol.ContainingType)
456While If(member?.Kind = SymbolKind.Method, False) AndAlso DirectCast(member, MethodSymbol).MethodKind = MethodKind.AnonymousFunction
466Case SymbolKind.Method
469Case SymbolKind.Property
472Case SymbolKind.Event
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (13)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (16)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (85)
CodeGen\CodeGenTuples.vb (34)
5750Assert.Equal(SymbolKind.ErrorType, mTuple.TupleUnderlyingType.Kind)
6893Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind)
6897Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
6927Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind)
6930Assert.Equal(SymbolKind.NamedType, tuple.Kind)
6946Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind)
6950Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
6966Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind)
6970Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
6987Assert.Equal(SymbolKind.ErrorType, tupleWithSomeNames.TupleUnderlyingType.Kind)
6991Assert.Equal(SymbolKind.NamedType, tupleWithSomeNames.Kind)
7009Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7153Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7157Assert.Equal(SymbolKind.NamedType, types(0).Kind)
7158Assert.Equal(SymbolKind.ErrorType, types(1).Kind)
7249Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind)
7253Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7278Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind)
7281Assert.Equal(SymbolKind.NamedType, tuple.Kind)
7296Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind)
7300Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7314Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind)
7318Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7334Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7435Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.Kind)
7439Assert.Equal(SymbolKind.NamedType, types(0).Kind)
7440Assert.Equal(SymbolKind.ErrorType, types(1).Kind)
9040Assert.Equal(SymbolKind.Field, sym.Symbol.Kind) ' Incorrectly returns Local
9227Where m.Kind = SymbolKind.Field
9274Where m.Kind = SymbolKind.Field
15033Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind)
15210If members1(i).Kind = SymbolKind.Method Then
15224ElseIf members1(i).Kind = SymbolKind.Property Then
16291Assert.Equal(SymbolKind.NamedType, m1Tuple.Kind)
Emit\CompilationEmitTests.vb (22)
2572Case SymbolKind.Assembly
2575Case SymbolKind.NamedType
2578Case SymbolKind.Method
2621Public ParentKind As SymbolKind
2666.ParentKind = SymbolKind.NamedType,
2684.ParentKind = SymbolKind.NamedType,
2724.ParentKind = SymbolKind.Method,
2770.ParentKind = SymbolKind.NamedType,
2831.ParentKind = SymbolKind.Method,
2890.ParentKind = SymbolKind.NamedType,
2908.ParentKind = SymbolKind.NamedType,
2956.ParentKind = SymbolKind.Method,
2974.ParentKind = SymbolKind.Method,
3028.ParentKind = SymbolKind.Method,
3046.ParentKind = SymbolKind.Method,
3095.ParentKind = SymbolKind.NamedType,
3113.ParentKind = SymbolKind.NamedType,
3165.ParentKind = SymbolKind.Assembly,
3181.ParentKind = SymbolKind.Assembly,
3197.ParentKind = SymbolKind.NamedType,
3215.ParentKind = SymbolKind.Method,
3614.ParentKind = SymbolKind.NamedType,
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (12)
Microsoft.CodeAnalysis.VisualBasic.Features (37)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (465)
Binding\Binder_Expressions_Tests.vb (14)
2866Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind)
2880Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind)
2912Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind)
2926Assert.Equal(SymbolKind.NamedType, symbolInfo.Symbol.Kind)
3066Assert.Equal(SymbolKind.NamedType, symbol.Kind)
3112Assert.Equal(SymbolKind.NamedType, symbol.Kind)
3158Assert.Equal(SymbolKind.NamedType, symbol.Kind)
3207Assert.Equal(SymbolKind.Field, symbol.Kind)
3261Assert.Equal(SymbolKind.NamedType, symbol.Kind)
3309Assert.Equal(SymbolKind.Field, symbol.Kind)
3353Assert.Equal(SymbolKind.NamedType, symbol.Kind)
3406Assert.Equal(SymbolKind.NamedType, symbol.Kind)
3452Assert.Equal(SymbolKind.Field, symbol.Kind)
3496Assert.Equal(SymbolKind.Field, symbol.Kind)
Binding\ImplicitVariableTests.vb (12)
889symbolKind:=SymbolKind.Local)
899symbolKind:=SymbolKind.Method)
921symbolKind:=SymbolKind.Method,
935symbolKind:=SymbolKind.Method,
1025Assert.Equal(SymbolKind.Local, l1.Kind)
1030Assert.Equal(SymbolKind.Local, l2.Kind)
1067Assert.Equal(SymbolKind.Local, l2.Kind)
1072Assert.Equal(SymbolKind.Local, l1.Kind)
1239Private Sub VerifySemanticInfo(semanticInfo As SemanticInfoSummary, expectedType As TypeSymbol, symbolKind? As SymbolKind, expectedSymbol As String)
1259Private Sub VerifySemanticInfoSummary(semanticInfo As SemanticInfoSummary, expectedType As TypeSymbol, symbolKind? As SymbolKind)
1280VerifySemanticInfoSummary(semanticInfo, objectSymbol, SymbolKind.Local)
1283Private Sub VerifyImplicitDeclarationBindExpression(code As XCData, expression As String, expectedTypeName As String, Optional symbolKind? As SymbolKind = Nothing, Optional expectedSymbol As String = Nothing)
Compilation\SemanticModelAPITests.vb (38)
75Assert.Equal(SymbolKind.Local, syminfo.Symbol.Kind)
82Assert.Equal(SymbolKind.Local, syminfo.Symbol.Kind)
123Assert.Equal(SymbolKind.Local, infoP.Symbol.Kind)
163Assert.Equal(SymbolKind.Local, infoP.Symbol.Kind)
284Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
341Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
502Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind)
511Assert.Equal(SymbolKind.Method, speculativeSymbolInfo.Symbol.Kind)
543Assert.Equal(SymbolKind.NamedType, oldSymbol.Kind)
551Assert.Equal(SymbolKind.NamedType, newSymbol.Kind)
777Assert.Equal(SymbolKind.Local, local.Kind)
789Assert.Equal(SymbolKind.Local, argSymbolInfo.Symbol.Kind)
796Assert.Equal(SymbolKind.Local, argSymbolInfo.Symbol.Kind)
834Assert.Equal(SymbolKind.Local, local.Kind)
849Assert.Equal(SymbolKind.Local, local.Kind)
908Assert.Equal(SymbolKind.Local, local.Kind)
948Assert.Equal(SymbolKind.Label, label.Kind)
1018Assert.Equal(SymbolKind.Local, local.Kind)
1054Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind)
1094Assert.Equal(SymbolKind.Method, symbolInfo.Symbol.Kind)
1449Assert.Equal(SymbolKind.Local, local.Kind)
1461Assert.Equal(SymbolKind.Local, argSymbolInfo.Symbol.Kind)
1598Assert.Equal(SymbolKind.Local, local.Kind)
1614Assert.Equal(SymbolKind.Local, local.Kind)
1630Assert.Equal(SymbolKind.Local, local.Kind)
1635Assert.Equal(SymbolKind.Parameter, param.Kind)
1674Assert.Equal(SymbolKind.Label, label.Kind)
1714Private Shared Sub TestGetSpeculativeSemanticModelForTypeSyntax_Common(model As SemanticModel, position As Integer, speculatedTypeSyntax As TypeSyntax, bindingOption As SpeculativeBindingOption, expectedSymbolKind As SymbolKind, expectedTypeDisplayString As String)
1773speculatedTypeExpression, SpeculativeBindingOption.BindAsTypeOrNamespace, SymbolKind.Namespace, "System.Collections")
1793speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException")
1824speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException")
1829speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "N.I")
1865speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException")
1868speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException")
1871speculatedTypeExpression, SpeculativeBindingOption.BindAsExpression, SymbolKind.NamedType, "System.ArgumentException")
1918speculatedMemberName, SpeculativeBindingOption.BindAsExpression, SymbolKind.Method, "I.Method2")
4071Assert.Equal(SymbolKind.Local, getterSymbol.Kind)
4080Assert.Equal(SymbolKind.Property, setterSymbol.Kind)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (15)
484Assert.Equal(SymbolKind.Local, bindInfo1.Symbol.Kind)
530Assert.Equal(SymbolKind.Local, bindInfo1.Symbol.Kind)
1424Assert.Equal(SymbolKind.Parameter, symbol.Kind)
1523Assert.Equal(SymbolKind.ErrorType, aliasSymbol.Target.Kind)
2019Assert.Equal(SymbolKind.Field, varSymbol1.Kind)
2029Assert.Equal(SymbolKind.Field, varSymbol2.Kind)
2039Assert.Equal(SymbolKind.Field, varSymbol3.Kind)
2049Assert.Equal(SymbolKind.Field, varSymbol4.Kind)
2059Assert.Equal(SymbolKind.Field, varSymbol5.Kind)
2069Assert.Equal(SymbolKind.Parameter, varSymbol6.Kind)
2079Assert.Equal(SymbolKind.Local, varSymbol7.Kind)
2090Assert.Equal(SymbolKind.Local, varSymbol8.Kind)
2544Assert.Equal(SymbolKind.Parameter, symbol.Kind)
2861Assert.Equal(SymbolKind.Local, sym.Kind)
2868Assert.Equal(SymbolKind.Local, sym.Kind)
DeclaringSyntaxNodeTests.vb (29)
80If symbol.Kind = SymbolKind.Namespace AndAlso DirectCast(symbol, NamespaceSymbol).IsGlobalNamespace Then
102Private Sub CheckDeclaringSyntax(Of TNode As VisualBasicSyntaxNode)(comp As VisualBasicCompilation, tree As SyntaxTree, name As String, kind As SymbolKind)
514If memb.Kind = SymbolKind.Method AndAlso (DirectCast(memb, MethodSymbol)).MethodKind = MethodKind.Constructor Then
545fld.AssociatedSymbol.Kind = SymbolKind.Event) Then
581fld.AssociatedSymbol.Kind = SymbolKind.Event) Then
597If memb.Kind = SymbolKind.Method Then
635CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc1", SymbolKind.Local)
636CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc2", SymbolKind.Local)
637CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc3", SymbolKind.Local)
638CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc4", SymbolKind.Local)
639CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc5", SymbolKind.Local)
640CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc6", SymbolKind.Local)
641CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc7", SymbolKind.Local)
643CheckDeclaringSyntax(Of ModifiedIdentifierSyntax)(comp, tree, "loc9", SymbolKind.Local)
667CheckDeclaringSyntax(Of LabelStatementSyntax)(comp, tree, "lab1", SymbolKind.Label)
668CheckDeclaringSyntax(Of LabelStatementSyntax)(comp, tree, "lab2", SymbolKind.Label)
669CheckDeclaringSyntax(Of LabelStatementSyntax)(comp, tree, "lab3", SymbolKind.Label)
689CheckDeclaringSyntax(Of SimpleImportsClauseSyntax)(comp, tree, "ConsoleAlias", SymbolKind.Alias)
690CheckDeclaringSyntax(Of SimpleImportsClauseSyntax)(comp, tree, "GooAlias", SymbolKind.Alias)
691CheckDeclaringSyntax(Of SimpleImportsClauseSyntax)(comp, tree, "ListOfIntAlias", SymbolKind.Alias)
715CheckDeclaringSyntax(Of CollectionRangeVariableSyntax)(comp, tree, "range1", SymbolKind.RangeVariable)
716CheckDeclaringSyntax(Of ExpressionRangeVariableSyntax)(comp, tree, "range2", SymbolKind.RangeVariable)
717CheckDeclaringSyntax(Of ExpressionRangeVariableSyntax)(comp, tree, "range3", SymbolKind.RangeVariable)
718CheckDeclaringSyntax(Of CollectionRangeVariableSyntax)(comp, tree, "range4", SymbolKind.RangeVariable)
719CheckDeclaringSyntax(Of CollectionRangeVariableSyntax)(comp, tree, "range5", SymbolKind.RangeVariable)
720CheckDeclaringSyntax(Of CollectionRangeVariableSyntax)(comp, tree, "range6", SymbolKind.RangeVariable)
721CheckDeclaringSyntax(Of ExpressionRangeVariableSyntax)(comp, tree, "range7", SymbolKind.RangeVariable)
722CheckDeclaringSyntax(Of CollectionRangeVariableSyntax)(comp, tree, "range8", SymbolKind.RangeVariable)
723CheckDeclaringSyntax(Of AggregationRangeVariableSyntax)(comp, tree, "range9", SymbolKind.RangeVariable)
Semantics\GetExtendedSemanticInfoTests.vb (209)
121Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
156Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
193Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
237Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
280Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
323Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
371Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
373Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind)
420Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
422Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind)
469Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
471Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind)
511Assert.Equal(SymbolKind.Field, sortedCandidates(0).Kind)
550Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
598Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
654Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
802Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
804Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
806Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind)
861Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
863Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
865Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind)
914Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
962Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
1008Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
1059Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
1110Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
1157Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
1203Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
1253Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
1297Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
1342Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
1422Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
1525Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
1540Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
1555Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
1570Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
1587Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
1629Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
1673Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
1675Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
1716Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
1757Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
1855Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
1934Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
2119Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
2213Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
2255Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
2287Assert.Equal(SymbolKind.Alias, semanticInfo.Alias.Kind)
2330Assert.Equal(SymbolKind.Alias, semanticInfo.Alias.Kind)
2370Assert.Equal(SymbolKind.Alias, semanticInfo.Alias.Kind)
2409Assert.Equal(SymbolKind.Alias, semanticInfo.Alias.Kind)
2447Assert.Equal(SymbolKind.Alias, semanticInfo.Alias.Kind)
2478Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
2521Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind)
2602Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
2642Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
2644Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
2646Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind)
2648Assert.Equal(SymbolKind.Method, sortedCandidates(3).Kind)
2650Assert.Equal(SymbolKind.Method, sortedCandidates(4).Kind)
2652Assert.Equal(SymbolKind.Method, sortedCandidates(5).Kind)
2654Assert.Equal(SymbolKind.Method, sortedCandidates(6).Kind)
2656Assert.Equal(SymbolKind.Method, sortedCandidates(7).Kind)
2658Assert.Equal(SymbolKind.Method, sortedCandidates(8).Kind)
2660Assert.Equal(SymbolKind.Method, sortedCandidates(9).Kind)
2662Assert.Equal(SymbolKind.Method, sortedCandidates(10).Kind)
2664Assert.Equal(SymbolKind.Method, sortedCandidates(11).Kind)
2789Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
2837Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
2888Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
3149Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
3185Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
3478Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
3559Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind)
3618Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
3722Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
3803Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
3805Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
3807Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind)
3841Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
3843Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
3845Assert.Equal(SymbolKind.Method, sortedCandidates(2).Kind)
4024Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
4063Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind)
4101Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
4131Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4166Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
4199Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
4240Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
4278Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
4317Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
4351Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4390Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4426Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4465Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4504Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4540Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
4585Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
4587Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
4626Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
4661Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
4719Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
4721Assert.Equal(SymbolKind.Property, sortedCandidates(1).Kind)
4758Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
4800Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
4802Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
4843Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
4845Assert.Equal(SymbolKind.Method, sortedCandidates(1).Kind)
4874Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
4905Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
4937Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
4969Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
4996Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
5030Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
5102Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
5133Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
5165Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
5197Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
5242Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
5244Assert.Equal(SymbolKind.NamedType, sortedCandidates(1).Kind)
5288Assert.Equal(SymbolKind.Field, sortedCandidates(0).Kind)
5290Assert.Equal(SymbolKind.Field, sortedCandidates(1).Kind)
5316Assert.Equal(SymbolKind.Namespace, semanticInfo.Symbol.Kind)
5413Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
5444Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
5477Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
5744Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind)
5780Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
5814Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
5865Assert.Equal(SymbolKind.Parameter, sortedCandidates(0).Kind)
5869Assert.Equal(SymbolKind.Parameter, sortedCandidates(1).Kind)
5975Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
6062Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
6107Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
6149Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
6189Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
6779Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
6854Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
6929Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
7004Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
7212Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
7254Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
7287Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
7328Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
7363Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
7409Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
7458Assert.Equal(SymbolKind.Local, semanticInfo1.Symbol.Kind)
7468Assert.Equal(SymbolKind.Local, semanticInfo2.Symbol.Kind)
7513Assert.Equal(SymbolKind.Local, semanticInfo1.Symbol.Kind)
7523Assert.Equal(SymbolKind.Local, semanticInfo2.Symbol.Kind)
7573Assert.Equal(SymbolKind.Local, semanticInfo1.Symbol.Kind)
7576Assert.Equal(SymbolKind.Method, semanticInfo1.Symbol.ContainingSymbol.Kind)
7589Assert.Equal(SymbolKind.Local, semanticInfo2.Symbol.Kind)
7592Assert.Equal(SymbolKind.Method, semanticInfo2.Symbol.ContainingSymbol.Kind)
7709Assert.Equal(SymbolKind.Field, semanticSummary.Symbol.Kind)
7745Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
7816Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
7820Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
7821Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
7855Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
7859Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
7860Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
7894Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
7898Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
7899Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
7933Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
7937Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
7938Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
7972Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
7976Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
7977Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
8010Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
8014Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
8015Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
8048Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
8052Assert.Equal(SymbolKind.Alias, semanticSummary.Alias.Kind)
8053Assert.Equal(SymbolKind.NamedType, semanticSummary.Alias.Target.Kind)
8083Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
8127Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
8167Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
8212Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
8259Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
8304Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
8342Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
8400Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
8442Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
8591Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
8709Assert.Equal(SymbolKind.Method, semanticSummary.CandidateSymbols(0).Kind)
9434Assert.Equal(SymbolKind.NamedType, sortedCandidates(0).Kind)
9510Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
9519Assert.Equal(SymbolKind.[Alias], aliasInfo.Kind)
9543Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
9554Assert.Equal(SymbolKind.[Alias], aliasInfo.Kind)
9578Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
9589Assert.Equal(SymbolKind.[Alias], aliasInfo.Kind)
9613Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
9624Assert.Equal(SymbolKind.[Alias], aliasInfo.Kind)
9648Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
9659Assert.Equal(SymbolKind.[Alias], aliasInfo.Kind)
9696Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
9736Assert.Equal(SymbolKind.NamedType, semanticInfo.Symbol.Kind)
9780Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
9823Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
9855Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
9889Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
9932Assert.Equal(SymbolKind.NamedType, semanticSummary.Symbol.Kind)
9974Assert.Equal(SymbolKind.Field, semanticSummary.Symbol.Kind)
10222Assert.Equal(SymbolKind.ErrorType, [alias].Target.Kind)
Semantics\GetSemanticInfoTests.vb (53)
224Assert.Equal(SymbolKind.Field, semanticInfo.Symbol.Kind)
272Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
317Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
367Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
719Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
768Assert.Equal(SymbolKind.Property, semanticInfo.Symbol.Kind)
804Assert.Equal(SymbolKind.Parameter, symbol.Kind)
806Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind)
841Assert.Equal(SymbolKind.Parameter, symbol.Kind)
843Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind)
876Assert.Equal(SymbolKind.Parameter, parameter.Kind)
878Assert.Equal(SymbolKind.Method, parameter.ContainingSymbol.Kind)
910Assert.Equal(SymbolKind.Parameter, symbol.Kind)
912Assert.Equal(SymbolKind.Method, symbol.ContainingSymbol.Kind)
947Assert.Equal(SymbolKind.Parameter, symbol.Kind)
978Assert.Equal(SymbolKind.Label, symbol.Kind)
986Assert.Equal(SymbolKind.Label, symbol.Kind)
993Assert.Equal(SymbolKind.Label, labelSymbol.Kind)
1023Assert.Equal(SymbolKind.Label, declaredSymbol.Kind)
1050Assert.Equal(SymbolKind.Label, declaredSymbol.Kind)
1080Assert.Equal(SymbolKind.Label, semanticSummary.Symbol.Kind)
1229Assert.Equal(SymbolKind.NamedType, symbol.Kind)
1238Assert.Equal(SymbolKind.NamedType, symbol.Kind)
1249Assert.Equal(SymbolKind.NamedType, symbol.Kind)
1504Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
1849Assert.Equal(SymbolKind.Parameter, semanticSummary.Symbol.Kind)
1883Assert.Equal(SymbolKind.Parameter, semanticSummary.Symbol.Kind)
1917Assert.Equal(SymbolKind.Parameter, semanticSummary.Symbol.Kind)
1955Assert.Equal(SymbolKind.Parameter, semanticSummary.Symbol.Kind)
2003Assert.Equal(SymbolKind.Parameter, semanticSummary.Symbol.Kind)
2053Assert.Equal(SymbolKind.Field, semanticSummary.Symbol.Kind)
2080Assert.Equal(SymbolKind.Field, semanticSummary.Symbol.Kind)
2093Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
2463Assert.Equal(SymbolKind.Property, speculativeSymbolInfo.Symbol.Kind)
2496Assert.Equal(SymbolKind.Property, speculativeSymbolInfo.Symbol.Kind)
2531Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
2573Assert.Equal(SymbolKind.Property, semanticSummary.Symbol.Kind)
2658Assert.Equal(SymbolKind.Property, semanticSummary.Symbol.Kind)
2744Assert.Equal(SymbolKind.Property, semanticSummary.Symbol.Kind)
2787Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
2835Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
2888Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
2949Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
3014Assert.Equal(SymbolKind.Property, semanticSummary.Symbol.Kind)
3176Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
3178Assert.Equal(SymbolKind.Property, sortedCandidates(1).Kind)
3236Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
3296Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
3328Assert.Equal(SymbolKind.Method, sym.Kind)
3352Assert.Equal(SymbolKind.Method, sym.Kind)
5610Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
6058Assert.Equal(SymbolKind.Property, sortedCandidates(0).Kind)
6060Assert.Equal(SymbolKind.Property, sortedCandidates(1).Kind)
Semantics\LambdaSemanticInfoTests.vb (13)
43Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
75Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
109Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
141Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
216Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
251Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
286Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
324Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
359Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
398Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
438Assert.Equal(SymbolKind.Local, semanticInfo.Symbol.Kind)
539Assert.Equal(SymbolKind.Parameter, e.Kind)
724Assert.Equal(SymbolKind.Parameter, semanticInfo.Symbol.Kind)
Semantics\SelectCaseTests.vb (11)
104Assert.Equal(SymbolKind.Local, semanticSummary.Symbol.Kind)
143Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
180Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
214Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
288Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
328Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
367Assert.Equal(SymbolKind.Method, sortedCandidates(0).Kind)
497Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind)
580Assert.Equal(SymbolKind.Local, semanticSummary.Symbol.Kind)
737Assert.Equal(SymbolKind.Parameter, symbolInfo.Symbol.Kind)
774Assert.Equal(SymbolKind.Parameter, symbolInfo.Symbol.Kind)
Semantics\WithBlockSemanticModelTests.vb (12)
48Assert.Equal(SymbolKind.Field, symbolInfo.Symbol.Kind)
75Assert.Equal(SymbolKind.Method, semanticInfo.Symbol.Kind)
111Assert.Equal(SymbolKind.Property, speculativeSymbolInfo.Symbol.Kind)
366Assert.Equal(SymbolKind.Parameter, symbolInfo1.Symbol.Kind)
370Assert.Equal(SymbolKind.Parameter, symbolInfo2.Symbol.Kind)
412Assert.Equal(SymbolKind.Parameter, symbolInfo1.Symbol.Kind)
416Assert.Equal(SymbolKind.Parameter, symbolInfo2.Symbol.Kind)
464Assert.Equal(SymbolKind.Parameter, symbolInfo1.Symbol.Kind)
468Assert.Equal(SymbolKind.Parameter, symbolInfo2.Symbol.Kind)
472Assert.Equal(SymbolKind.Parameter, symbolInfo3.Symbol.Kind)
521Assert.Equal(SymbolKind.Property, symbolInfo1.Symbol.Kind)
525Assert.Equal(SymbolKind.Property, symbolInfo2.Symbol.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (496)
DocumentationComments\DocCommentTests.vb (72)
5010Assert.Equal(SymbolKind.TypeParameter, typeParamSymInfo.CandidateSymbols.Single().Kind)
6688SymbolKind.Method),
6702SymbolKind.Method))
6708SymbolKind.Method),
6734SymbolKind.NamedType, SymbolKind.TypeParameter),
6741SymbolKind.NamedType, SymbolKind.TypeParameter),
6748SymbolKind.NamedType, SymbolKind.TypeParameter))
6760SymbolKind.NamedType, SymbolKind.TypeParameter),
6767SymbolKind.NamedType, SymbolKind.TypeParameter),
6774SymbolKind.NamedType, SymbolKind.TypeParameter))
6875Assert.Equal(SymbolKind.NamedType, type.Kind)
6954Assert.Equal(SymbolKind.Method, method.Kind)
6990SymbolKind.Parameter),
6995SymbolKind.Parameter),
7000SymbolKind.Parameter),
7005SymbolKind.TypeParameter))
7009SymbolKind.Parameter))
7013SymbolKind.Parameter))
7017SymbolKind.Parameter))
7049SymbolKind.Parameter),
7054SymbolKind.Parameter),
7059SymbolKind.Parameter),
7064SymbolKind.TypeParameter))
7068SymbolKind.Parameter))
7072SymbolKind.Parameter))
7076SymbolKind.Parameter))
7108SymbolKind.TypeParameter),
7113SymbolKind.TypeParameter),
7118SymbolKind.TypeParameter),
7123SymbolKind.Parameter))
7127SymbolKind.TypeParameter),
7132SymbolKind.TypeParameter),
7137SymbolKind.TypeParameter),
7170SymbolKind.TypeParameter),
7175SymbolKind.TypeParameter),
7180SymbolKind.TypeParameter),
7185SymbolKind.Parameter))
7189SymbolKind.TypeParameter),
7194SymbolKind.TypeParameter),
7199SymbolKind.TypeParameter),
7232SymbolKind.TypeParameter, SymbolKind.Parameter),
7237SymbolKind.TypeParameter, SymbolKind.Parameter),
7242SymbolKind.TypeParameter, SymbolKind.Parameter),
7247SymbolKind.TypeParameter, SymbolKind.Parameter),
7252SymbolKind.TypeParameter, SymbolKind.Parameter),
7257SymbolKind.TypeParameter, SymbolKind.Parameter),
7299text.IndexOf("name=""X""", StringComparison.Ordinal) + 6), SymbolKind.Field, SymbolKind.Parameter),
7305text.IndexOf("cref=""X""", StringComparison.Ordinal) + 6), SymbolKind.Field, SymbolKind.Parameter),
7347text.IndexOf("name=""X""", StringComparison.Ordinal) + 6), SymbolKind.Field, SymbolKind.TypeParameter),
7353text.IndexOf("cref=""X""", StringComparison.Ordinal) + 6), SymbolKind.Field, SymbolKind.TypeParameter),
7388text.IndexOf("Of Integer", StringComparison.Ordinal) + 3), SymbolKind.Field),
7395name:="Int32"), SymbolKind.NamedType)
7404container:=DirectCast(symInteger(0), NamedTypeSymbol)), SymbolKind.Method),
11941Private Shared Function FilterOfSymbolKindOnly(symbols As ImmutableArray(Of ISymbol), ParamArray kinds() As SymbolKind) As ImmutableArray(Of ISymbol)
11942Dim filter As New HashSet(Of SymbolKind)(kinds)
11968If actual.Symbol IsNot Nothing AndAlso actual.Symbol.Kind = SymbolKind.TypeParameter Then ' Works everywhere since we want it to work in name attributes.
SymbolsTests\AssemblyAndNamespaceTests.vb (12)
46Assert.Equal(SymbolKind.Assembly, sym.Kind)
74Assert.Equal(SymbolKind.NetModule, sym.Kind)
109Assert.Equal(SymbolKind.NamedType, sym1.Kind)
209Assert.Equal(SymbolKind.Namespace, globalNS.Kind)
227Assert.Equal(SymbolKind.Namespace, nsA.Kind)
232Assert.Equal(SymbolKind.Namespace, nsB.Kind)
237Assert.Equal(SymbolKind.Namespace, nsD.Kind)
273Assert.Equal(SymbolKind.Namespace, globalNS.Kind)
279Assert.Equal(SymbolKind.Namespace, nsGoo.Kind)
285Assert.Equal(SymbolKind.Namespace, nsBar.Kind)
303Assert.Equal(SymbolKind.Namespace, nsA.Kind)
308Assert.Equal(SymbolKind.Namespace, nsB.Kind)
SymbolsTests\CompilationCreationTests.vb (117)
100Assert.Equal(type.Kind, SymbolKind.ErrorType) ' Not available
102Assert.NotEqual(type.Kind, SymbolKind.ErrorType)
273Assert.Equal(SymbolKind.ErrorType, asm1(1).GlobalNamespace.GetTypeMembers("Class4").Single().GetMembers("Foo").OfType(Of MethodSymbol)().Single().ReturnType.Kind)
291Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind)
317Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind)
332Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind)
335Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind)
338Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind)
361Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind)
380Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind)
383Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind)
386Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind)
396Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind)
399Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind)
402Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind)
405Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind)
408Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind)
446Assert.Equal(SymbolKind.ErrorType, retval15.Kind)
448Assert.Equal(SymbolKind.ErrorType, retval16.Kind)
450Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind)
460Assert.Equal(SymbolKind.ErrorType, retval18.Kind)
462Assert.Equal(SymbolKind.ErrorType, retval19.Kind)
464Assert.Equal(SymbolKind.ErrorType, retval20.Kind)
466Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind)
469Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind)
513Assert.Equal(SymbolKind.ErrorType, asm1(1).GlobalNamespace.GetTypeMembers("Class4").Single().GetMembers("Foo").OfType(Of MethodSymbol)().Single().ReturnType.Kind)
522Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind)
537Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind)
552Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind)
555Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind)
558Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind)
570Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind)
589Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind)
592Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind)
595Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind)
605Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind)
608Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind)
611Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind)
614Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind)
617Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind)
631Assert.Equal(SymbolKind.ErrorType, retval15.Kind)
633Assert.Equal(SymbolKind.ErrorType, retval16.Kind)
635Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind)
645Assert.Equal(SymbolKind.ErrorType, retval18.Kind)
647Assert.Equal(SymbolKind.ErrorType, retval19.Kind)
649Assert.Equal(SymbolKind.ErrorType, retval20.Kind)
651Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind)
654Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind)
701Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind)
754Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind)
769Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind)
772Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind)
775Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind)
853Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind)
872Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind)
875Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind)
878Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind)
888Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind)
891Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind)
894Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind)
897Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind)
900Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind)
929Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind)
945Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind)
948Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind)
990Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind)
1009Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind)
1024Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind)
1027Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind)
1030Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind)
1046Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind)
1065Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind)
1068Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind)
1071Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind)
1081Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind)
1084Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind)
1087Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind)
1090Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind)
1093Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind)
1116Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind)
1132Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind)
1135Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind)
1171Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind)
1212Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind)
1228Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind)
1231Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind)
1234Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind)
1278Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind)
1297Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind)
1300Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind)
1303Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind)
1313Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind)
1316Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind)
1319Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind)
1322Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind)
1325Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind)
1381Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind)
1397Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind)
1400Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind)
1457Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind)
1476Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind)
1491Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind)
1494Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind)
1497Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind)
1513Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind)
1532Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind)
1535Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind)
1538Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind)
1548Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind)
1551Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind)
1554Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind)
1557Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind)
1560Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind)
1587Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind)
1603Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind)
1606Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind)
1966Assert.NotEqual(SymbolKind.ErrorType, typeC5.Kind)
SymbolsTests\Metadata\MetadataMemberTests.vb (16)
157Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
167Assert.Equal(SymbolKind.Method, ctor.Kind)
199Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
212Assert.Equal(SymbolKind.Method, member1.Kind)
255Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
273Assert.Equal(SymbolKind.Parameter, p1.Kind)
318Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
328Assert.Equal(SymbolKind.Method, member1.Kind)
371Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
384Assert.Equal(SymbolKind.Parameter, p2.Kind)
636Assert.Equal(SymbolKind.Field, symbol.Kind)
645Assert.Equal(SymbolKind.Field, symbol.Kind)
654Assert.Equal(SymbolKind.Field, symbol.Kind)
663Assert.Equal(SymbolKind.Field, symbol.Kind)
672Assert.Equal(SymbolKind.Field, symbol.Kind)
727Dim mems = tsym.GetMembers().Where(Function(s) s.Kind = SymbolKind.Method)
SymbolsTests\Metadata\MetadataTypeTests.vb (14)
32Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
44Assert.Equal(SymbolKind.Namespace, ns.Kind)
103Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
120Assert.Equal(SymbolKind.NamedType, class1.Kind)
157Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
173Assert.Equal(SymbolKind.NamedType, type1.Kind)
212Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
228Assert.Equal(SymbolKind.NamedType, type1.Kind)
266Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
281Assert.Equal(SymbolKind.NamedType, type1.Kind)
318Assert.Equal(SymbolKind.Assembly, mscorNS.Kind)
331Assert.Equal(SymbolKind.ArrayType, type2.Kind)
332Assert.Equal(SymbolKind.ArrayType, type3.Kind)
1190If member.Kind <> SymbolKind.Namespace Then
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (15)
42Assert.Equal(SymbolKind.ErrorType, base.Kind)
59Assert.Equal(SymbolKind.ErrorType, base.Kind)
97Assert.Equal(SymbolKind.ErrorType, base.Kind)
108Assert.Equal(SymbolKind.ErrorType, base.ContainingSymbol.Kind)
113Assert.Equal(SymbolKind.ErrorType, baseContainerContainer.Kind)
129Assert.Equal(SymbolKind.ErrorType, base.Kind)
144Assert.Equal(SymbolKind.ErrorType, base.Kind)
159Assert.Equal(SymbolKind.ErrorType, base.Kind)
172Assert.Equal(SymbolKind.ErrorType, genericBase.Kind)
176Assert.Equal(SymbolKind.ErrorType, base.Kind)
209Assert.Equal(SymbolKind.NamedType, genericBase.ContainingSymbol.Kind)
212Assert.Equal(SymbolKind.ErrorType, base.Kind)
229Assert.Equal(SymbolKind.ErrorType, genericBase.ContainingSymbol.Kind)
234Assert.Equal(SymbolKind.ErrorType, base.Kind)
260Assert.Equal(SymbolKind.ErrorType, base.Kind)
SymbolsTests\Metadata\PE\NoPia.vb (63)
107Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
114Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
143Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
150Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
153Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
155Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
171Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
173Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
176Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
178Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
196Assert.NotEqual(SymbolKind.ErrorType, param(0).[Type].Kind)
197Assert.NotEqual(SymbolKind.ErrorType, param(1).[Type].Kind)
199Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
201Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
222Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
228Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
407Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
414Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
417Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
424Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
442Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
444Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
447Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
449Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
470Assert.NotEqual(SymbolKind.ErrorType, param(0).[Type].Kind)
471Assert.NotEqual(SymbolKind.ErrorType, param(1).[Type].Kind)
476Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
478Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
499Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
504Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
558Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind)
559Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind)
560Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test3").ReturnType.Kind)
563Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
567Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind)
568Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind)
570Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
600Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind)
609Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind)
619Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind)
620Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind)
654Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind)
775Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind)
776Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind)
777Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test3").ReturnType.Kind)
781Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
785Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind)
786Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind)
788Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
877Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind)
887Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind)
898Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind)
899Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind)
933Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind)
944Assert.NotEqual(SymbolKind.ErrorType, varI5.Kind)
945Assert.NotEqual(SymbolKind.ErrorType, varI6.Kind)
946Assert.NotEqual(SymbolKind.ErrorType, varI5_Foo.ReturnType.Kind)
947Assert.NotEqual(SymbolKind.ErrorType, (DirectCast(varI5_Foo.ReturnType, NamedTypeSymbol)).TypeArguments(0).Kind)
952Assert.NotEqual(SymbolKind.ErrorType, varI7_Foo.ReturnType.Kind)
953Assert.NotEqual(SymbolKind.ErrorType, (DirectCast(varI7_Foo.ReturnType, NamedTypeSymbol)).TypeArguments(0).Kind)
955Assert.NotEqual(SymbolKind.ErrorType, varI7_Bar.ReturnType.Kind)
956Assert.NotEqual(SymbolKind.ErrorType, (DirectCast(varI7_Bar.ReturnType, NamedTypeSymbol)).TypeArguments(0).Kind)
959Assert.NotEqual(SymbolKind.ErrorType, varI1.Kind)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (32)
34Assert.Equal(SymbolKind.ErrorType, localField.[Type].BaseType.Kind)
50Assert.Equal(SymbolKind.ErrorType, importedField.[Type].Kind)
66Assert.Equal(SymbolKind.ErrorType, importedField.[Type].Kind)
83Assert.Equal(SymbolKind.NamedType, importedField.Type.Kind)
86Assert.Equal(SymbolKind.NamedType, outer.Kind)
89Assert.Equal(SymbolKind.ErrorType, inner.Kind)
103Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind)
120Assert.Equal(SymbolKind.ErrorType, m.Parameters.[Where](Function(arg) arg.Name = "c1").[Select](Function(arg) arg).[Single]().[Type].BaseType.Kind)
124Assert.Equal(SymbolKind.ErrorType, m.ReturnType.BaseType.Kind)
141Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind)
157Assert.Equal(SymbolKind.ErrorType, importedProperty.Parameters.Where(Function(arg) arg.Name = "x").Single().Type.Kind)
173Assert.Equal(SymbolKind.ErrorType, importedProperty.Type.Kind)
189Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind)
205Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind)
221Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind)
237Assert.Equal(SymbolKind.ErrorType, importedMethod.ReturnType.Kind)
253Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind)
269Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Single]().[Type].Kind)
283Assert.Equal(SymbolKind.ErrorType, importedField.[Type].Kind)
296Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind)
297Assert.Equal(SymbolKind.ErrorType, var1.DelegateParameters.First().Type.Kind)
309Assert.Equal(SymbolKind.NamedType, var1.[Type].Kind)
325Assert.Equal(SymbolKind.ErrorType, localField.[Type].BaseType.Kind)
342Assert.Equal(SymbolKind.NamedType, localField.[Type].Kind)
370Assert.Equal(SymbolKind.Parameter, m.Parameters.[Where](Function(arg) arg.Name = "c1").[Select](Function(arg) arg).[Single]().Kind)
375Assert.Equal(SymbolKind.NamedType, m.ReturnType.Kind)
391Assert.Equal(SymbolKind.NamedType, classLocalType.Kind)
408Assert.Equal(SymbolKind.ArrayType, localField.Type.Kind)
409Assert.Equal(SymbolKind.ErrorType, DirectCast(localField.Type, ArrayTypeSymbol).ElementType.Kind)
419Assert.Equal(SymbolKind.ArrayType, localField.[Type].Kind)
430Assert.Equal(SymbolKind.ErrorType, localMethod.ReturnType.Kind)
483Assert.Equal(SymbolKind.ErrorType, m.ReturnType.Kind)
SymbolsTests\Retargeting\NoPia.vb (27)
397Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
405Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
430Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
437Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
440Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
442Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
457Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
459Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
462Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
464Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
481Assert.NotEqual(SymbolKind.ErrorType, param(0).[Type].Kind)
482Assert.NotEqual(SymbolKind.ErrorType, param(1).[Type].Kind)
484Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
486Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
505Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind)
510Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind)
620Assert.Equal(SymbolKind.ErrorType, assemblies1(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind)
623Assert.Equal(SymbolKind.ErrorType, assemblies2(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind)
652Assert.Equal(SymbolKind.ErrorType, assemblies1(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind)
655Assert.Equal(SymbolKind.ErrorType, assemblies2(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind)
1045Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind)
1046Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind)
1047Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test3").ReturnType.Kind)
1050Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
1058Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind)
1059Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind)
1061Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
SymbolsTests\Source\TypeTests.vb (44)
81Assert.Equal(SymbolKind.Namespace, globalNS.Kind)
92Assert.Equal(SymbolKind.NamedType, ifaceA.Kind)
110Assert.Equal(SymbolKind.NamedType, classB.Kind)
127Assert.Equal(SymbolKind.NamedType, delegateB.Kind)
148Assert.Equal(SymbolKind.NamedType, enumE.Kind)
163Assert.Equal(SymbolKind.NamedType, structI.Kind)
178Assert.Equal(SymbolKind.NamedType, moduleM.Kind)
240Assert.Equal(SymbolKind.NamedType, outerClass.Kind)
256Assert.Equal(SymbolKind.NamedType, i1Class.Kind)
266Assert.Equal(SymbolKind.NamedType, i3Interface.Kind)
276Assert.Equal(SymbolKind.NamedType, i4Enum.Kind)
290Assert.Equal(SymbolKind.NamedType, i2Arity1.Kind)
304Assert.Equal(SymbolKind.NamedType, i2Arity2.Kind)
344Assert.Equal(SymbolKind.ArrayType, field1.Type.Kind)
347Assert.Equal(SymbolKind.ArrayType, sym1.Kind)
353Assert.Equal(SymbolKind.ArrayType, field1.Type.Kind)
355Assert.Equal(SymbolKind.ArrayType, field1.Type.Kind)
362Assert.Equal(SymbolKind.ArrayType, sym2.Type.Kind)
368Assert.Equal(SymbolKind.ArrayType, sym3.Type.Kind)
372Assert.Equal(SymbolKind.ArrayType, sym4.Type.Kind)
378Assert.Equal(SymbolKind.ArrayType, sym5.Kind)
406Assert.Equal(SymbolKind.ArrayType, sym1.Kind)
414Assert.Equal(SymbolKind.ArrayType, sym2.Kind)
420Assert.Equal(SymbolKind.ArrayType, sym3.Kind)
453Assert.Equal(SymbolKind.ArrayType, sym1.Kind)
469Assert.Equal(SymbolKind.ArrayType, sym22.Kind)
476Assert.Equal(SymbolKind.ArrayType, sym3.Kind)
483Assert.Equal(SymbolKind.ArrayType, sym4.Kind)
490Assert.Equal(SymbolKind.ArrayType, sym5.Kind)
503Assert.Equal(SymbolKind.ArrayType, sym62.Kind)
548Assert.Equal(SymbolKind.Namespace, globalNS.Kind)
553Assert.Equal(SymbolKind.NamedType, enumE.Kind)
565Dim ctor = enumMembers.Where(Function(s) s.Kind = SymbolKind.Method)
567Assert.Equal(SymbolKind.Method, ctor(0).Kind)
569Dim _val = enumMembers.Where(Function(s) Not s.IsShared AndAlso s.Kind = SymbolKind.Field)
606Assert.Equal(SymbolKind.NamedType, classA.Kind)
616Assert.Equal(SymbolKind.NamedType, igoo.Kind)
626Assert.Equal(SymbolKind.NamedType, structS.Kind)
694Assert.Equal(SymbolKind.Field, varA.Kind)
696Assert.Equal(SymbolKind.NamedType, varA.Type.Kind)
736Assert.Equal(SymbolKind.Field, mem1.Kind)
744Assert.Equal(SymbolKind.Method, mem2.Kind)
754Assert.Equal(SymbolKind.Method, mem3.Kind)
776Assert.Equal(SymbolKind.ErrorType, baseType.Kind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (104)
Microsoft.CodeAnalysis.Workspaces (330)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (28)
35case SymbolKind.Alias:
40case SymbolKind.Parameter:
44case SymbolKind.TypeParameter:
49while (symbol != null && symbol.Kind != SymbolKind.Namespace)
116if (symbol.Kind is SymbolKind.Event or SymbolKind.Property)
147if (symbol.Kind is not SymbolKind.Method and not SymbolKind.Property and not SymbolKind.Event)
175if (symbol.Kind == SymbolKind.Event)
180if (symbol.Kind == SymbolKind.Property)
185if (symbol.Kind == SymbolKind.Method)
222=> symbol?.Kind == SymbolKind.ArrayType;
230public static bool IsKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind)
233public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind)
236public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2)
242public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3)
248public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, params SymbolKind[] kinds)
258=> symbol?.Kind == SymbolKind.Field && symbol.ContainingType.IsEnumType();
340SymbolKind.NamedType => ((INamedTypeSymbol)symbol).Arity,
341SymbolKind.Method => ((IMethodSymbol)symbol).Arity,
521=> symbol != null && symbol.Kind == SymbolKind.NamedType && symbol.IsStatic;
524=> symbol?.Kind == SymbolKind.Namespace;
581if (symbol.Kind != SymbolKind.Local)
767public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [NotNullWhen(true)] out TSymbol? result) where TSymbol : class, ISymbol
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (26)
66new SymbolKindOrTypeKind(SymbolKind.Namespace),
74new SymbolKindOrTypeKind(SymbolKind.Property),
77new SymbolKindOrTypeKind(SymbolKind.Field),
78new SymbolKindOrTypeKind(SymbolKind.Event),
79new SymbolKindOrTypeKind(SymbolKind.Parameter),
81new SymbolKindOrTypeKind(SymbolKind.Local),
101public bool AppliesTo(SymbolKind symbolKind, Accessibility accessibility)
164case SymbolKind.Namespace:
167case SymbolKind.Parameter:
168case SymbolKind.TypeParameter:
171case SymbolKind.Method:
293foreach (var symbolKindElement in symbolKindListElement.Elements(nameof(SymbolKind)))
344public SymbolKindOrTypeKind(SymbolKind symbolKind)
359public SymbolKind? SymbolKind => (_category == SymbolCategory.Other) ? (SymbolKind)_kind : null;
366SymbolCategory.Other => symbol.IsKind((SymbolKind)_kind),
375SymbolCategory.Other => new XElement(nameof(SymbolKind), (SymbolKind)_kind),
426var symbolKind = (SymbolKind)Enum.Parse(typeof(SymbolKind), symbolKindElement.Value);
432CodeAnalysis.SymbolKind.Method => new(CodeAnalysis.MethodKind.Ordinary),
502var kind = symbol.Kind;
503if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)
510if (kind == SymbolKind.Field && ((IFieldSymbol)symbol).IsReadOnly)
518if ((kind == SymbolKind.Field && ((IFieldSymbol)symbol).IsConst) ||
519(kind == SymbolKind.Local && ((ILocalSymbol)symbol).IsConst))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (28)
29var xKind = GetKindAndUnwrapAlias(ref x);
30var yKind = GetKindAndUnwrapAlias(ref y);
39if ((xKind == SymbolKind.DynamicType && IsObjectType(y)) ||
40(yKind == SymbolKind.DynamicType && IsObjectType(x)))
48if (xKind == SymbolKind.ArrayType && y.IsReadOnlySpan())
52else if (x.IsReadOnlySpan() && yKind == SymbolKind.ArrayType)
111private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
116SymbolKind.ArrayType => ArrayTypesAreEquivalent((IArrayTypeSymbol)x, (IArrayTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
117SymbolKind.Assembly => AssembliesAreEquivalent((IAssemblySymbol)x, (IAssemblySymbol)y),
118SymbolKind.DynamicType => NullableAnnotationsEquivalent((IDynamicTypeSymbol)x, (IDynamicTypeSymbol)y),
119SymbolKind.Event => EventsAreEquivalent((IEventSymbol)x, (IEventSymbol)y, equivalentTypesWithDifferingAssemblies),
120SymbolKind.Field => FieldsAreEquivalent((IFieldSymbol)x, (IFieldSymbol)y, equivalentTypesWithDifferingAssemblies),
121SymbolKind.Label => LabelsAreEquivalent((ILabelSymbol)x, (ILabelSymbol)y),
122SymbolKind.Local => LocalsAreEquivalent((ILocalSymbol)x, (ILocalSymbol)y),
123SymbolKind.Method => MethodsAreEquivalent((IMethodSymbol)x, (IMethodSymbol)y, equivalentTypesWithDifferingAssemblies),
124SymbolKind.NetModule => ModulesAreEquivalent((IModuleSymbol)x, (IModuleSymbol)y),
125SymbolKind.NamedType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
126SymbolKind.ErrorType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
127SymbolKind.Namespace => NamespacesAreEquivalent((INamespaceSymbol)x, (INamespaceSymbol)y, equivalentTypesWithDifferingAssemblies),
128SymbolKind.Parameter => ParametersAreEquivalent((IParameterSymbol)x, (IParameterSymbol)y, equivalentTypesWithDifferingAssemblies),
129SymbolKind.PointerType => PointerTypesAreEquivalent((IPointerTypeSymbol)x, (IPointerTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
130SymbolKind.Property => PropertiesAreEquivalent((IPropertySymbol)x, (IPropertySymbol)y, equivalentTypesWithDifferingAssemblies),
131SymbolKind.RangeVariable => RangeVariablesAreEquivalent((IRangeVariableSymbol)x, (IRangeVariableSymbol)y),
132SymbolKind.TypeParameter => TypeParametersAreEquivalent((ITypeParameterSymbol)x, (ITypeParameterSymbol)y, equivalentTypesWithDifferingAssemblies),
133SymbolKind.Preprocessing => PreprocessingSymbolsAreEquivalent((IPreprocessingSymbol)x, (IPreprocessingSymbol)y),
134SymbolKind.FunctionPointerType => FunctionPointerTypesAreEquivalent((IFunctionPointerTypeSymbol)x, (IFunctionPointerTypeSymbol)y, equivalentTypesWithDifferingAssemblies),
367if (x.Kind == SymbolKind.ErrorType &&
371Debug.Assert(y.Kind == SymbolKind.ErrorType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (17)
44if (x.Kind == SymbolKind.DynamicType ||
59SymbolKind.ArrayType => CombineHashCodes((IArrayTypeSymbol)x, currentHash),
60SymbolKind.Assembly => CombineHashCodes((IAssemblySymbol)x, currentHash),
61SymbolKind.Event => CombineHashCodes((IEventSymbol)x, currentHash),
62SymbolKind.Field => CombineHashCodes((IFieldSymbol)x, currentHash),
63SymbolKind.Label => CombineHashCodes((ILabelSymbol)x, currentHash),
64SymbolKind.Local => CombineHashCodes((ILocalSymbol)x, currentHash),
65SymbolKind.Method => CombineHashCodes((IMethodSymbol)x, currentHash),
66SymbolKind.NetModule => CombineHashCodes((IModuleSymbol)x, currentHash),
67SymbolKind.NamedType => CombineHashCodes((INamedTypeSymbol)x, currentHash),
68SymbolKind.Namespace => CombineHashCodes((INamespaceSymbol)x, currentHash),
69SymbolKind.Parameter => CombineHashCodes((IParameterSymbol)x, currentHash),
70SymbolKind.PointerType => CombineHashCodes((IPointerTypeSymbol)x, currentHash),
71SymbolKind.Property => CombineHashCodes((IPropertySymbol)x, currentHash),
72SymbolKind.RangeVariable => CombineHashCodes((IRangeVariableSymbol)x, currentHash),
73SymbolKind.TypeParameter => CombineHashCodes((ITypeParameterSymbol)x, currentHash),
74SymbolKind.Preprocessing => CombineHashCodes((IPreprocessingSymbol)x, currentHash),
Microsoft.CodeAnalysis.Workspaces.UnitTests (27)
EditorConfigParsing\NamingStyleParserTests.cs (15)
82symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Field), symbolKind));
118symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Parameter), symbolKind),
119symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Local), symbolKind));
156symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Namespace), symbolKind),
161symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Property), symbolKind),
164symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Field), symbolKind),
165symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Event), symbolKind),
167symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Parameter), symbolKind),
168symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.TypeParameter), symbolKind),
169symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Local), symbolKind));
204symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Field), symbolKind));
277symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Field), symbolKind),
278symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Local), symbolKind));
314symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Field), symbolKind));
351symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Field), symbolKind));
Microsoft.DotNet.CodeAnalysis (5)
Microsoft.Extensions.Logging.Generators (4)
Microsoft.Extensions.Options.SourceGeneration (8)
Microsoft.Gen.Logging (12)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics (6)
Microsoft.Gen.MetricsReports (2)
Microsoft.Interop.ComInterfaceGenerator (9)
Microsoft.Interop.LibraryImportGenerator (6)
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
Microsoft.Interop.SourceGeneration (4)
Microsoft.ML.CodeAnalyzer.Tests (1)
Microsoft.ML.InternalCodeAnalyzer (8)
Microsoft.VisualStudio.LanguageServices (112)
Progression\GraphProvider.cs (24)
183nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType)))
199if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType) &&
216if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field)))
226if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
244if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType) &&
256if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
272if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.NamedType) &&
283if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
294if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
306if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
340private static bool IsAnySymbolKind(GraphNode node, params SymbolKind[] symbolKinds)
Microsoft.VisualStudio.LanguageServices.CSharp (22)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (45)
GlyphExtensionsTests.cs (45)
24SymbolKind.Assembly);
27SymbolKind.NetModule);
30SymbolKind.Namespace);
33SymbolKind.TypeParameter);
36SymbolKind.DynamicType);
40SymbolKind.Method,
44SymbolKind.Method,
70SymbolKind.PointerType,
71pointedAtType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class));
75SymbolKind.Property);
79SymbolKind.Field,
80containingType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Enum));
84SymbolKind.Field,
89SymbolKind.Field);
91TestGlyph(StandardGlyphGroup.GlyphGroupVariable, SymbolKind.Parameter);
92TestGlyph(StandardGlyphGroup.GlyphGroupVariable, SymbolKind.Local);
93TestGlyph(StandardGlyphGroup.GlyphGroupVariable, SymbolKind.RangeVariable);
94TestGlyph(StandardGlyphGroup.GlyphGroupIntrinsic, SymbolKind.Label);
95TestGlyph(StandardGlyphGroup.GlyphGroupEvent, SymbolKind.Event);
99SymbolKind.ArrayType,
100elementType: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class));
104SymbolKind.Alias,
105target: (INamedTypeSymbol)CreateSymbolMock(SymbolKind.NamedType, typeKind: TypeKind.Class));
110(SymbolKind)1000));
114SymbolKind.NamedType,
118SymbolKind.NamedType,
122SymbolKind.NamedType,
126SymbolKind.NamedType,
130SymbolKind.NamedType,
134SymbolKind.NamedType,
138SymbolKind.NamedType,
144SymbolKind.NamedType,
153SymbolKind.Method,
162SymbolKind.Method,
171SymbolKind.Property,
177SymbolKind kind = SymbolKind.Method,
194SymbolKind kind,
212if (kind == SymbolKind.ArrayType)
218if (kind == SymbolKind.Alias)
224if (kind == SymbolKind.Method)
231if (kind == SymbolKind.NamedType)
237if (kind == SymbolKind.Field)
243if (kind == SymbolKind.PointerType)
249if (kind == SymbolKind.Property)
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
Microsoft.VisualStudio.LanguageServices.VisualBasic (24)
Microsoft.VisualStudio.LanguageServices.Xaml (6)
Roslyn.Test.PdbUtilities (1)
SemanticSearch.BuildTask (3)
System.Private.CoreLib.Generators (3)
System.Text.Json.SourceGeneration (4)
System.Text.RegularExpressions.Generator (4)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (1)