1299 references to CandidateReason
Microsoft.CodeAnalysis (6)
Compilation\SymbolInfo.cs (5)
46public CandidateReason CandidateReason { get; } 49: this(symbol, ImmutableArray<ISymbol>.Empty, CandidateReason.None) 53internal SymbolInfo(ISymbol symbol, CandidateReason reason) 58internal SymbolInfo(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 63private SymbolInfo(ISymbol? symbol, ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason)
Symbols\IErrorTypeSymbol.cs (1)
39CandidateReason CandidateReason { get; }
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
260CandidateReason.Ambiguous);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (3)
26CandidateReason = CandidateReason.None; 29internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 39public CandidateReason CandidateReason { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
335if (originalSymbolInfo.CandidateReason == CandidateReason.MemberGroup) 892if (_failOnOverloadResolutionFailuresInOriginalCode && originalSymbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
131=> symbolInfo.CandidateReason == CandidateReason.Ambiguous &&
Microsoft.CodeAnalysis.CSharp (25)
Binder\LookupResultKind.cs (16)
74public static CandidateReason ToCandidateReason(this LookupResultKind resultKind) 78case LookupResultKind.Empty: return CandidateReason.None; 79case LookupResultKind.NotATypeOrNamespace: return CandidateReason.NotATypeOrNamespace; 80case LookupResultKind.NotAnAttributeType: return CandidateReason.NotAnAttributeType; 81case LookupResultKind.WrongArity: return CandidateReason.WrongArity; 82case LookupResultKind.Inaccessible: return CandidateReason.Inaccessible; 83case LookupResultKind.NotCreatable: return CandidateReason.NotCreatable; 84case LookupResultKind.NotReferencable: return CandidateReason.NotReferencable; 85case LookupResultKind.NotAValue: return CandidateReason.NotAValue; 86case LookupResultKind.NotAVariable: return CandidateReason.NotAVariable; 87case LookupResultKind.NotInvocable: return CandidateReason.NotInvocable; 88case LookupResultKind.StaticInstanceMismatch: return CandidateReason.StaticInstanceMismatch; 89case LookupResultKind.OverloadResolutionFailure: return CandidateReason.OverloadResolutionFailure; 90case LookupResultKind.Ambiguous: return CandidateReason.Ambiguous; 91case LookupResultKind.MemberGroup: return CandidateReason.MemberGroup; 95return CandidateReason.None;
Compilation\SymbolInfoFactory.cs (3)
28return new SymbolInfo(symbols[0].GetPublicSymbol(), CandidateReason.LateBound); 32return new SymbolInfo(getPublicSymbols(symbols), CandidateReason.LateBound); 49return new SymbolInfo(getPublicSymbols(symbols), (symbols.Count > 0) ? resultKind.ToCandidateReason() : CandidateReason.None);
Compilation\SyntaxTreeSemanticModel.cs (3)
223if ((object)result.Symbol == null && result.CandidateReason == CandidateReason.None && node is ExpressionSyntax && SyntaxFacts.IsInNamespaceOrTypeContext((ExpressionSyntax)node)) 238result = new SymbolInfo(ImmutableArray.Create<ISymbol>(info.Symbol), CandidateReason.NotATypeOrNamespace); 242result = new SymbolInfo(info.CandidateSymbols, CandidateReason.NotATypeOrNamespace);
Symbols\ErrorTypeSymbol.cs (2)
66public CandidateReason CandidateReason 77return CandidateReason.None;
Symbols\PublicModel\ErrorTypeSymbol.cs (1)
36CandidateReason IErrorTypeSymbol.CandidateReason => _underlying.CandidateReason;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
130if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && !symbolInfo.CandidateSymbols.IsEmpty)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
58if (interfaceSymbolInfo.CandidateReason != CandidateReason.WrongArity)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
104if (symbolInfo.CandidateReason != CandidateReason.WrongArity)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (13)
CodeGen\CodeGenFunctionPointersTests.cs (13)
3120expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3347expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3368expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3417expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3464expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3574expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3581expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3626expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3633expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3677expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3684expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3716expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 4122expectedCandidateReason: CandidateReason.OverloadResolutionFailure,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (84)
Attributes\AttributeTests.cs (2)
7545Assert.Equal(CandidateReason.None, info.CandidateReason); 7586Assert.Equal(CandidateReason.None, info.CandidateReason);
Attributes\AttributeTests_RefReadOnly.cs (2)
1385Assert.Equal(CandidateReason.None, result.CandidateReason); 1427Assert.Equal(CandidateReason.None, result.CandidateReason);
Semantics\OutVarTests.cs (1)
1013Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\PatternMatchingTestBase.cs (1)
451Assert.Equal(CandidateReason.None, info.CandidateReason);
Semantics\PatternMatchingTests.cs (1)
3270Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\PatternMatchingTests3.cs (14)
56Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 64Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 116Assert.Equal(CandidateReason.Ambiguous, xSymbol.CandidateReason); 126Assert.Equal(CandidateReason.Ambiguous, ySymbol.CandidateReason); 167Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 175Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 212Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 220Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 265Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 273Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 306Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 314Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 353Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 361Assert.Equal(CandidateReason.None, ySymbol.CandidateReason);
Semantics\PatternMatchingTests4.cs (1)
1024Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\PatternMatchingTests5.cs (16)
1113Assert.Equal(CandidateReason.None, xySymbol.CandidateReason); 1118Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 1123Assert.Equal(CandidateReason.None, yNameSymbol.CandidateReason); 1131Assert.Equal(CandidateReason.None, yxSymbol.CandidateReason); 1136Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 1141Assert.Equal(CandidateReason.None, xNameSymbol.CandidateReason); 1193Assert.Equal(CandidateReason.Ambiguous, xSymbol.CandidateReason); 1203Assert.Equal(CandidateReason.Ambiguous, ySymbol.CandidateReason); 1244Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 1252Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 1296Assert.Equal(CandidateReason.None, xySymbol.CandidateReason); 1304Assert.Equal(CandidateReason.None, xSymbol.CandidateReason); 1312Assert.Equal(CandidateReason.None, yNameSymbol.CandidateReason); 1323Assert.Equal(CandidateReason.None, yxSymbol.CandidateReason); 1331Assert.Equal(CandidateReason.None, ySymbol.CandidateReason); 1339Assert.Equal(CandidateReason.None, xNameSymbol.CandidateReason);
Semantics\PrimaryConstructorTests.cs (25)
1371Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1417Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1477Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1546Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1635Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1820Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1860Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 2124Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2129Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2133Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2142Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2147Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2152Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2225Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2230Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2234Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2364Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2369Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2373Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2431Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 6098Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 7802Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 7814if (!isRecord || keyword == "struct" || symbolInfo.CandidateReason != CandidateReason.NotAVariable) 7816Assert.Equal(CandidateReason.StaticInstanceMismatch, symbolInfo.CandidateReason); 7996if (symbolInfo.CandidateReason == CandidateReason.NotAVariable &&
Semantics\RecordTests.cs (21)
21490Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 21536Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 21596Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 21665Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 21754Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 21939Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 21976Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 22051Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 22281Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22286Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22290Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22299Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22304Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22309Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22382Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22387Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22391Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22521Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22526Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22530Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 28239Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
130if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && !symbolInfo.CandidateSymbols.IsEmpty)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
58if (interfaceSymbolInfo.CandidateReason != CandidateReason.WrongArity)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (184)
Semantics\BetterCandidates.cs (8)
1091Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1099Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1107Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1115Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1123Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1168Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1216Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1269Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\BindingTests.cs (11)
2370Assert.Equal(CandidateReason.NotReferencable, symbolInfo.CandidateReason); 2389Assert.Equal(CandidateReason.NotReferencable, symbolInfo.CandidateReason); 2732Assert.Equal(CandidateReason.None, m0Symbol.CandidateReason); 2744Assert.Equal(CandidateReason.None, m1Symbol.CandidateReason); 2843Assert.Equal(CandidateReason.None, m0Symbol.CandidateReason); 2855Assert.Equal(CandidateReason.None, m1Symbol.CandidateReason); 3049Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3129Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3203Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3288Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3742Assert.Equal(CandidateReason.NotATypeOrNamespace, symbolInfo2.CandidateReason);
Semantics\ColorColorTests.cs (7)
652Assert.Equal(CandidateReason.OverloadResolutionFailure, parentInfo.CandidateReason); 1079Assert.Equal(CandidateReason.None, parentInfo.CandidateReason); 1125Assert.Equal(CandidateReason.None, parentInfo.CandidateReason); 1170Assert.Equal(CandidateReason.OverloadResolutionFailure, parentInfo.CandidateReason); 1215Assert.Equal(CandidateReason.OverloadResolutionFailure, parentInfo.CandidateReason); 1249Assert.Equal(CandidateReason.NotAValue, info.CandidateReason); 1294Assert.Equal(CandidateReason.None, parentInfo.CandidateReason);
Semantics\DeconstructionTests.cs (59)
4267Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4279Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4297Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4322Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4402Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4410Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4428Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4453Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4526Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4538Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4550Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4559Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4570Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4587Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4676Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4684Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4770Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4778Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4848Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4856Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4867Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5056Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5216Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5224Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5242Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5270Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5280Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5360Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5368Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5386Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5414Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5424Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5497Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5505Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5517Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5526Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5537Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5557Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5567Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5684Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5692Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5717Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5794Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5802Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5827Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5897Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5905Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5916Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5933Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 5994Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6004Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6037Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6047Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6077Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6087Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6119Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6129Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6159Assert.Equal(CandidateReason.None, symbols.CandidateReason); 6169Assert.Equal(CandidateReason.None, symbols.CandidateReason);
Semantics\ExpressionBodiedMemberTests.cs (5)
86Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 196Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 238Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 294Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 327Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Semantics\FunctionPointerTests.cs (1)
3970Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Semantics\ImplicitObjectCreationTests.cs (3)
4541Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4548Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4582Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\InteractiveSemanticModelTests.cs (2)
189Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 243Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason);
Semantics\IteratorTests.cs (1)
662Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\LambdaTests.cs (3)
1184Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1212Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1244Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\LocalFunctionTests.cs (2)
1800Assert.Equal(CandidateReason.OverloadResolutionFailure, clsCompliantSymbolInfo.CandidateReason); 1875Assert.Equal(CandidateReason.OverloadResolutionFailure, clsCompliantSymbolInfo.CandidateReason);
Semantics\LookupTests.cs (2)
1504Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1508Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\NameOfTests.cs (17)
687Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason); 713Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason); 749Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason); 795Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason); 832Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 868Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 914Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason); 947Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 1066verifySymbolInfo(CandidateReason.MemberGroup, model.GetSymbolInfo(argument)); 1073verifySymbolInfo(CandidateReason.MemberGroup, model2.GetSymbolInfo(argument2)); 1075verifySymbolInfo(CandidateReason.OverloadResolutionFailure, model.GetSpeculativeSymbolInfo(argument2.Position, argument2, SpeculativeBindingOption.BindAsExpression)); 1079void verifySymbolInfo(CandidateReason reason, SymbolInfo symbolInfo) 1230verifySymbolInfo(CandidateReason.MemberGroup, model.GetSymbolInfo(argument)); 1237verifySymbolInfo(CandidateReason.MemberGroup, model2.GetSymbolInfo(argument2)); 1239verifySymbolInfo(CandidateReason.OverloadResolutionFailure, model.GetSpeculativeSymbolInfo(argument2.Position, argument2, SpeculativeBindingOption.BindAsExpression)); 1243void verifySymbolInfo(CandidateReason reason, SymbolInfo symbolInfo) 1425Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason);
Semantics\NonTrailingNamedArgumentsTests.cs (3)
429Assert.Equal(CandidateReason.OverloadResolutionFailure, symbol.CandidateReason); 540Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 714Assert.Equal(CandidateReason.OverloadResolutionFailure, model.GetSymbolInfo(firstInvocation).CandidateReason);
Semantics\ObjectAndCollectionInitializerTests.cs (7)
3481Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3488Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3528Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 3585Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason); 3622Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3660Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3944Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\OperatorTests.cs (9)
7540Assert.Equal(type.IsDynamic() ? CandidateReason.LateBound : CandidateReason.None, info1.CandidateReason); 8091Assert.True(CandidateReason.LateBound == info1.CandidateReason || CandidateReason.None == info1.CandidateReason); 8095Assert.Equal(CandidateReason.None, info1.CandidateReason); 8100Assert.Equal(CandidateReason.OverloadResolutionFailure, info1.CandidateReason); 8109Assert.Equal(leftType.IsDynamic() || rightType.IsDynamic() ? CandidateReason.LateBound : CandidateReason.None, info1.CandidateReason); 8566Assert.Equal(CandidateReason.None, info1.CandidateReason);
Semantics\OverloadResolutionTests.cs (2)
9075Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason); 9423Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\QueryTests.cs (1)
2400Assert.Equal(CandidateReason.None, symbolInfoForSelect.CandidateReason);
Semantics\RecordStructTests.cs (1)
3250Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Semantics\ScriptSemanticsTests.cs (2)
250Assert.Equal(CandidateReason.None, summary.CandidateReason); 567Assert.Equal(CandidateReason.None, summary.CandidateReason);
Semantics\SemanticErrorTests.cs (1)
3338Assert.Equal(CandidateReason.OverloadResolutionFailure, boundCall.CandidateReason);
Semantics\SuppressAccessibilityChecksTests.cs (1)
65Assert.Equal(CandidateReason.Inaccessible, semanticModel.GetSymbolInfo(invocation).CandidateReason);
Semantics\TopLevelStatementsTests.cs (5)
252Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 263Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 403Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 414Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 6239Assert.Equal(CandidateReason.Inaccessible, semanticModel.GetSymbolInfo(invocation).CandidateReason);
Semantics\UnsafeTests.cs (31)
7262Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 7329Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 7367Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 7409Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 7540Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 7862Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 7871Assert.Equal(CandidateReason.None, methodGroupSummary.CandidateReason); 7880Assert.Equal(CandidateReason.None, callSummary.CandidateReason); 7929Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8173Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8185Assert.Equal(CandidateReason.None, indexSummary.CandidateReason); 8194Assert.Equal(CandidateReason.None, accessSummary.CandidateReason); 8240Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8253Assert.Equal(CandidateReason.None, accessSummary.CandidateReason); 8298Assert.Equal(CandidateReason.None, receiverSummary.CandidateReason); 8311Assert.Equal(CandidateReason.None, accessSummary.CandidateReason); 8881Assert.Equal(CandidateReason.None, summary.CandidateReason); 8916Assert.Equal(CandidateReason.None, summary.CandidateReason); 9343Assert.Equal(CandidateReason.None, summary.CandidateReason); 10235Assert.Equal(CandidateReason.None, summary.CandidateReason); 10262Assert.Equal(CandidateReason.None, info.CandidateReason); 10304Assert.Equal(CandidateReason.None, summary.CandidateReason); 10635Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 10648Assert.Equal(CandidateReason.None, sizeOfSummary.CandidateReason); 10697Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 10710Assert.Equal(CandidateReason.None, sizeOfSummary.CandidateReason); 10757Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 10770Assert.Equal(CandidateReason.None, sizeOfSummary.CandidateReason); 11316Assert.Equal(CandidateReason.None, stackAllocSummary.CandidateReason); 11328Assert.Equal(CandidateReason.None, typeSummary.CandidateReason); 11342Assert.Equal(CandidateReason.None, countSummary.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (355)
Compilation\GetSemanticInfoTests.cs (37)
1224Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1420Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1425Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1461Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 1466Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 1495Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1500Assert.Equal(CandidateReason.None, bindInfo.CandidateReason); 1530Assert.Equal(CandidateReason.WrongArity, bindInfo.CandidateReason); 1815Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 2844Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2875Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 2935Assert.Equal(CandidateReason.Ambiguous, symbolInfo.CandidateReason); 2968Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3027Assert.Equal(CandidateReason.Ambiguous, symbolInfo.CandidateReason); 3060Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3101Assert.Equal(CandidateReason.Ambiguous, symbolInfo.CandidateReason); 3134Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3175Assert.Equal(CandidateReason.Ambiguous, symbolInfo.CandidateReason); 3208Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3761Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3791Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3824Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3851Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3877Assert.Equal(CandidateReason.NotATypeOrNamespace, info.CandidateReason); 3958Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 4003Assert.Equal(CandidateReason.NotATypeOrNamespace, info.CandidateReason); 4296Assert.Equal(CandidateReason.None, info.CandidateReason); 4443Assert.Equal(CandidateReason.Inaccessible, leftInfo.CandidateReason); 4447Assert.Equal(CandidateReason.Inaccessible, rightInfo.CandidateReason); 4493Assert.Equal(CandidateReason.NotReferencable, info.CandidateReason); 4540Assert.Equal(CandidateReason.Inaccessible, typeInfo.CandidateReason); 4599Assert.Equal(CandidateReason.OverloadResolutionFailure, classInfo.CandidateReason); 4601Assert.Equal(CandidateReason.OverloadResolutionFailure, structInfo.CandidateReason); 4646Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 4916Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 5480Assert.Equal(CandidateReason.OverloadResolutionFailure, invocationInfo.CandidateReason); 6016Assert.Equal(CandidateReason.NotReferencable, info.CandidateReason);
Compilation\QueryClauseInfoTests.cs (36)
36new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible), 37new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible)), 39new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible), 40new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible))); 52new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 53new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible)), 55new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 56new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible))); 68new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 69new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible)), 71new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 72new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible))); 84new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible), 85new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible)), 87new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 88new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible))); 92new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, obj), CandidateReason.Inaccessible), 93new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible)), 95new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 96new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible))); 100new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 101new SymbolInfo(ImmutableArray.Create<ISymbol>(obj, int32), CandidateReason.Inaccessible)), 103new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 104new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible))); 108new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 109new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, obj), CandidateReason.Inaccessible)), 111new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 112new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible))); 116new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Ambiguous), 117new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible)), 119new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 120new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible))); 124new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 125new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Ambiguous)), 127new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible), 128new SymbolInfo(ImmutableArray.Create<ISymbol>(int32, int32), CandidateReason.Inaccessible)));
Compilation\SemanticModelAPITests.cs (9)
103Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 1737Assert.Equal(CandidateReason.None, aliasDeclInfo.CandidateReason); 2054Assert.Equal(CandidateReason.NotReferencable, symbolInfo.CandidateReason); 2117Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3233Assert.Equal(CandidateReason.None, info.CandidateReason); 3528Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3551Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4512Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4590Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (16)
3970Assert.Equal(CandidateReason.NotAnAttributeType, symbolInfo.CandidateReason); 4174Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4182Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 4192Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4200Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4207Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4216Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4225Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4258Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4269Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 4286Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4308Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4319Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4332Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4355Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 4377Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Compilation\SemanticModelGetSemanticInfoTests.cs (193)
52Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 122Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 156Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 197Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 238Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 278Assert.Equal(CandidateReason.NotInvocable, semanticInfo.CandidateReason); 315Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 345Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 375Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 408Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 433Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 468Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 508Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 551Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 599Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 647Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 700Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 801Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2584Assert.Equal(CandidateReason.StaticInstanceMismatch, semanticInfo.CandidateReason); 2696Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2737Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2787Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2833Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2952Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 2988Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 3022Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 3431Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 3463Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 3529Assert.Equal(CandidateReason.NotATypeOrNamespace, semanticInfo.CandidateReason); 3843Assert.NotEqual(CandidateReason.None, semanticInfo.CandidateReason); 3942Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 3978Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4075Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 4165Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4191Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4219Assert.Equal(CandidateReason.WrongArity, semanticInfo.CandidateReason); 4252Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4286Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 4378Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4649Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 4923Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 4970Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5022Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5073Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5112Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5159Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 5408Assert.Equal(CandidateReason.NotReferencable, semanticInfo.CandidateReason); 5450Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 5486Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5515Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5734Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5767Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5834Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5902Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 5970Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6037Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6065Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6097Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6375Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6402Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 6647Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6681Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 6812Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 6971Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7175Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7207Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7239Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7268Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7349Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7405Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7431Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7459Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7492Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7528Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7591Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 7629Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7857Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7923Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7955Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 7989Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8025Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8041Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8078Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8094Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8375Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 8409Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 8520Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8690Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8732Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8774Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8815Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 8939Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 9068Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 9129Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 9364Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9423Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9461Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 9534Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9570Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9620Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9675Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 9726Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 9786Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 9837Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 9892Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10183Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10222Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10253Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10288Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10323Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10357Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10391Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10433Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason); 10472Assert.Equal(CandidateReason.StaticInstanceMismatch, semanticInfo.CandidateReason); 10499Assert.Equal(CandidateReason.NotReferencable, semanticInfo.CandidateReason); 10529Assert.Equal(CandidateReason.NotReferencable, semanticInfo.CandidateReason); 10564Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10606Assert.Equal(CandidateReason.NotAValue, semanticInfo.CandidateReason); 10643Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10680Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10719Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 10762Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 10804Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 10841Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 10910Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11150Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11194Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11228Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11466Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11503Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11541Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11578Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 11613Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11801Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11872Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 11943Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12014Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12049Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12085Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12129Assert.Equal(CandidateReason.NotATypeOrNamespace, symbolInfo.CandidateReason); 12158Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12192Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12225Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12262Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12293Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12328Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12361Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12397Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12432Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 12459Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12490Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12713Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12745Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12889Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 12964Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 13002Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 13043Assert.Equal(CandidateReason.NotAValue, semanticInfo.CandidateReason); 13074Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13135Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13169Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13203Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason); 13234Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13388Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13448Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13567Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13597Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13662Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13691Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13747Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13780Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13811Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13845Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 13879Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 13918Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason); 13984Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14011Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14165Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14297Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14343Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason); 14386Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14424Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14513Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14547Assert.Equal(CandidateReason.NotCreatable, semanticInfo.CandidateReason); 14596Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 14669Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 14799Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 14814Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 14895Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 14910Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 15006Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 15022Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 15119Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 15344Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (26)
42Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 66Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 88Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 114Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 145Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 171Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 199Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 230Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 270Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 293Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 322Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 351Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 377Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 422Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 518Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 555Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 591Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 619Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 656Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 683Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 719Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 748Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 775Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 802Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 830Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason); 861Assert.Equal(CandidateReason.LateBound, semanticInfo.CandidateReason);
DocumentationComments\CrefTests.cs (20)
1816Assert.Equal(CandidateReason.None, info.CandidateReason); 2017Assert.Equal(CandidateReason.Ambiguous, info.CandidateReason); 2056Assert.Equal(CandidateReason.None, info.CandidateReason); 2110Assert.Equal(CandidateReason.None, info.CandidateReason); 3159Assert.Equal(CandidateReason.None, info.CandidateReason); 3182Assert.Equal(CandidateReason.Ambiguous, info.CandidateReason); // Candidates have different kinds. 3205Assert.Equal(CandidateReason.Ambiguous, info.CandidateReason); // No parameter list. 3228Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3252Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3276Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3300Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3324Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3347Assert.Equal(CandidateReason.None, info.CandidateReason); 5751Assert.Equal(CandidateReason.None, info.CandidateReason); 5953Assert.Equal(CandidateReason.None, info.CandidateReason); 6002Assert.Equal(CandidateReason.None, info.CandidateReason); 6352Assert.Equal(CandidateReason.NotReferencable, nonCrefInfo.CandidateReason); 6367Assert.Equal(CandidateReason.Inaccessible, nonCrefInfo.CandidateReason); 6432Assert.Equal(CandidateReason.None, info.CandidateReason); 6470Assert.Equal(CandidateReason.None, info.CandidateReason);
DocumentationComments\ParameterTests.cs (2)
334Assert.Equal(CandidateReason.Ambiguous, info.CandidateReason); 357Assert.Equal(CandidateReason.Ambiguous, info.CandidateReason);
Symbols\ConversionTests.cs (1)
2073Assert.Equal(CandidateReason.OverloadResolutionFailure, castInfo.CandidateReason);
Symbols\ExtensionMethodTests.cs (1)
3017Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason);
Symbols\FunctionPointerTypeSymbolTests.cs (2)
1838expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 1857expectedCandidateReason: CandidateReason.OverloadResolutionFailure,
Symbols\Source\FileModifierTests.cs (7)
2604Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 2643Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3514Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3563Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 3718Assert.Equal(CandidateReason.None, info.CandidateReason); 3823Assert.Equal(CandidateReason.None, info.CandidateReason); 3983Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Symbols\Source\UsingAliasTests.cs (2)
712Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason); 755Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason);
Symbols\SymbolErrorTests.cs (3)
16898Assert.Equal(CandidateReason.None, errorFieldType.CandidateReason); 16925Assert.Equal(CandidateReason.Inaccessible, errorFieldType.CandidateReason); 16962Assert.Equal(CandidateReason.Ambiguous, errorFieldType.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (7)
CompilationTestUtils.cs (1)
208public CandidateReason CandidateReason;
FunctionPointerUtilities.cs (6)
142CandidateReason expectedCandidateReason = CandidateReason.None, 212CandidateReason expectedReason, 220Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 232Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason); 258Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (2)
66CandidateReason.Ambiguous or 67CandidateReason.MemberGroup)
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
400return semanticModel.GetSymbolInfo(memberAccess.Name).CandidateReason == CandidateReason.LateBound;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
104if (symbolInfo.CandidateReason != CandidateReason.WrongArity)
Microsoft.CodeAnalysis.Features (8)
AddImport\SymbolReferenceFinder.cs (1)
591if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && !checkForExtensionMethods)
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
135CandidateReason.None));
FullyQualify\AbstractFullyQualifyService.cs (1)
144if (currentSymbolInfo.CandidateReason == CandidateReason.WrongArity)
GenerateType\AbstractGenerateTypeService.State.cs (4)
140if (info.CandidateReason == CandidateReason.NotCreatable) 145if (info.CandidateReason is CandidateReason.Inaccessible or 146CandidateReason.NotReferencable or 147CandidateReason.OverloadResolutionFailure)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
131=> symbolInfo.CandidateReason == CandidateReason.Ambiguous &&
Microsoft.CodeAnalysis.VisualBasic (28)
Binding\LookupResult.vb (17)
43Public Function ToCandidateReason(resultKind As LookupResultKind) As CandidateReason 46Return CandidateReason.None 48Return CandidateReason.OverloadResolutionFailure 50Return CandidateReason.NotATypeOrNamespace 52Return CandidateReason.NotAnEvent 54Return CandidateReason.LateBound 56Return CandidateReason.NotAnAttributeType 58Return CandidateReason.NotAWithEventsMember 60Return CandidateReason.WrongArity 62Return CandidateReason.NotCreatable 64Return CandidateReason.Inaccessible 66Return CandidateReason.NotAValue 68Return CandidateReason.NotAVariable 70Return CandidateReason.NotReferencable 72Return CandidateReason.StaticInstanceMismatch 74Return CandidateReason.Ambiguous 76Return CandidateReason.MemberGroup
Compilation\SemanticModel.vb (2)
2827If(resultKind = LookupResultKind.Good, CandidateReason.None, resultKind.ToCandidateReason())) 2832reason As CandidateReason) As SymbolInfo
Compilation\SymbolInfo.vb (7)
18Dim reason = If(resultKind = LookupResultKind.Good, CandidateReason.None, resultKind.ToCandidateReason()) 22Friend Shared Function Create(symbols As ImmutableArray(Of ISymbol), reason As CandidateReason) As SymbolInfo 24If symbols.IsEmpty AndAlso Not (reason = CandidateReason.None OrElse reason = CandidateReason.LateBound) Then 25reason = CandidateReason.None 28If symbols.Length = 1 AndAlso (reason = CandidateReason.None OrElse reason = CandidateReason.LateBound) Then
Compilation\SyntaxTreeSemanticModel.vb (1)
488If retValue.CandidateReason = CandidateReason.None Then
Symbols\ErrorTypeSymbol.vb (1)
379Public ReadOnly Property CandidateReason As CandidateReason Implements IErrorTypeSymbol.CandidateReason
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (1)
144If symbolInfo.CandidateReason = CandidateReason.OverloadResolutionFailure AndAlso Not symbolInfo.CandidateSymbols.IsEmpty Then
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
94If symbolInfo.CandidateReason = CandidateReason.WrongArity Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (1)
144If symbolInfo.CandidateReason = CandidateReason.OverloadResolutionFailure AndAlso Not symbolInfo.CandidateSymbols.IsEmpty Then
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
94If symbolInfo.CandidateReason = CandidateReason.WrongArity Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (492)
Binding\BindingCollectionInitializerTests.vb (6)
1798Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1808Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1848Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 1893Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1930Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1968Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason)
Binding\ImplicitVariableTests.vb (2)
1240Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1260Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason)
Binding\LookupTests.vb (18)
1929Assert.Equal(CandidateReason.Ambiguous, info3.CandidateReason) 1938Assert.Equal(CandidateReason.Ambiguous, info2.CandidateReason) 1946Assert.Equal(CandidateReason.Ambiguous, info1.CandidateReason) 1962Assert.Equal(If(i = 16, CandidateReason.Ambiguous, If(i = 19, CandidateReason.NotAnAttributeType, CandidateReason.NotATypeOrNamespace)), info2.CandidateReason) 1970Assert.Equal(If(i = 18, CandidateReason.Ambiguous, If(i = 21, CandidateReason.NotAnAttributeType, CandidateReason.NotATypeOrNamespace)), info3.CandidateReason) 1979Assert.Equal(CandidateReason.Ambiguous, info3.CandidateReason) 2241Assert.Equal(If(i = 3, CandidateReason.Ambiguous, CandidateReason.NotATypeOrNamespace), info3.CandidateReason) 2249Assert.Equal(CandidateReason.Ambiguous, info2.CandidateReason) 2256Assert.Equal(CandidateReason.Ambiguous, info1.CandidateReason) 2355Assert.Equal(CandidateReason.OverloadResolutionFailure, info3.CandidateReason) 2599Assert.Equal(CandidateReason.Ambiguous, info3.CandidateReason) 2607Assert.Equal(CandidateReason.Ambiguous, info2.CandidateReason) 2614Assert.Equal(CandidateReason.Ambiguous, info1.CandidateReason)
Compilation\MyTemplateTests.vb (1)
243Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason)
Compilation\SemanticModelAPITests.vb (18)
42Assert.Equal(CandidateReason.None, info.CandidateReason) 418Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 425Assert.Equal(symbolInfo.CandidateReason, CandidateReason.OverloadResolutionFailure) 434Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 441Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 448Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 456Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 464Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1230Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1242Assert.Equal(symbolInfo.CandidateReason, CandidateReason.OverloadResolutionFailure) 1261Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1284Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1296Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1309Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1333Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 1345Assert.Equal(symbolInfo.CandidateReason, CandidateReason.None) 4003Assert.Equal(CandidateReason.None, info.CandidateReason) 4620Assert.Equal(CandidateReason.NotATypeOrNamespace, symbolInfo.CandidateReason)
Semantics\ArrayLiteralTests.vb (5)
1503Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 1637Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 1727Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2056Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2089Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason)
Semantics\BinaryOperators.vb (3)
1044Assert.Equal(CandidateReason.None, info1.CandidateReason) 1046Assert.Equal(CandidateReason.OverloadResolutionFailure, info1.CandidateReason) 1049Assert.Equal(CandidateReason.None, info1.CandidateReason)
Semantics\ConditionalAccessTests.vb (6)
9802Assert.Equal(CandidateReason.NotAValue, info.CandidateReason) 9806Assert.Equal(CandidateReason.NotAValue, info.CandidateReason) 9888Assert.Equal(CandidateReason.NotAValue, info.CandidateReason) 9892Assert.Equal(CandidateReason.NotAValue, info.CandidateReason) 9940Assert.Equal(CandidateReason.NotAValue, info.CandidateReason) 9944Assert.Equal(CandidateReason.NotAValue, info.CandidateReason)
Semantics\GetExtendedSemanticInfoTests.vb (109)
233Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 276Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 319Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 367Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason) 416Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason) 465Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason) 507Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 650Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 701Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 751Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 798Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 857Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 1249Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 1380Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1460Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1625Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 1669Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 1712Assert.Equal(CandidateReason.NotReferencable, semanticSummary.CandidateReason) 1753Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 1801Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 1893Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 1930Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 1965Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1997Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2051Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2084Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2151Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2182Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2638Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 2714Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2749Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2785Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 3219Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 3669Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 3772Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 3799Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 3837Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 4020Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4581Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4622Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4657Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4715Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4796Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4839Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 5064Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 5238Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason) 5284Assert.Equal(CandidateReason.Ambiguous, semanticInfo.CandidateReason) 5346Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 5377Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 5509Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 5539Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 5656Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 5861Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 5916Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 6011Assert.Equal(CandidateReason.NotAnAttributeType, semanticSummary.CandidateReason) 6058Assert.Equal(CandidateReason.NotAnAttributeType, semanticSummary.CandidateReason) 6103Assert.Equal(CandidateReason.NotAnAttributeType, semanticSummary.CandidateReason) 6145Assert.Equal(CandidateReason.WrongArity, semanticSummary.CandidateReason) 6185Assert.Equal(CandidateReason.NotAValue, semanticInfo.CandidateReason) 6780Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 6818Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 6855Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 6893Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 6930Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 6968Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 7005Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 7043Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 7082Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 7124Assert.Equal(CandidateReason.Inaccessible, semanticInfo.CandidateReason) 7166Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 7208Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 7250Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 7283Assert.Equal(CandidateReason.WrongArity, semanticSummary.CandidateReason) 7324Assert.Equal(CandidateReason.WrongArity, semanticSummary.CandidateReason) 7780Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 8079Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 8123Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 8586Assert.Equal(CandidateReason.NotCreatable, semanticSummary.CandidateReason) 8628Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 8668Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 8705Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 8742Assert.Equal(CandidateReason.NotATypeOrNamespace, symbolInfo.CandidateReason) 8764Assert.Equal(CandidateReason.StaticInstanceMismatch, symbolInfo.CandidateReason) 8786Assert.Equal(CandidateReason.StaticInstanceMismatch, symbolInfo.CandidateReason) 8817Assert.Equal(CandidateReason.NotCreatable, semanticSummary.CandidateReason) 8855Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 8890Assert.Equal(CandidateReason.NotCreatable, semanticSummary.CandidateReason) 8928Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 8965Assert.Equal(CandidateReason.NotCreatable, semanticSummary.CandidateReason) 9005Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason) 9048Assert.Equal(CandidateReason.NotCreatable, symbolInfo.CandidateReason) 9073Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 9112Assert.Equal(CandidateReason.NotCreatable, symbolInfo.CandidateReason) 9134Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 9176Assert.Equal(CandidateReason.NotCreatable, symbolInfo.CandidateReason) 9199Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 9241Assert.Equal(CandidateReason.NotCreatable, symbolInfo.CandidateReason) 9266Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 9302Assert.Equal(CandidateReason.NotCreatable, symbolInfo.CandidateReason) 9324Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 9359Assert.Equal(CandidateReason.NotCreatable, semanticSummary.CandidateReason) 9395Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 9430Assert.Equal(CandidateReason.NotCreatable, semanticSummary.CandidateReason) 9475Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 9776Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason) 9819Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason) 9851Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason) 9885Assert.Equal(CandidateReason.NotAnAttributeType, semanticInfo.CandidateReason) 10229Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason)
Semantics\GetSemanticInfoTests.vb (46)
133Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 178Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 268Assert.Equal(CandidateReason.NotAVariable, semanticInfo.CandidateReason) 417Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 467Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 517Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 567Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1541Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 1741Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1748Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1755Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2066Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2148Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2168Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2245Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2299Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2313Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2358Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2372Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 2421Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 3172Assert.Equal(CandidateReason.Ambiguous, semanticSummary.CandidateReason) 3232Assert.Equal(CandidateReason.NotAWithEventsMember, semanticSummary.CandidateReason) 3292Assert.Equal(CandidateReason.NotAnEvent, semanticSummary.CandidateReason) 3385Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3432Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3485Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3539Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3592Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3644Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3689Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 3882Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 5080Assert.Equal(CandidateReason.Inaccessible, leftInfo.CandidateReason) 5084Assert.Equal(CandidateReason.Inaccessible, rightInfo.CandidateReason) 5127Assert.Equal(CandidateReason.None, info.CandidateReason) 5168Assert.Equal(CandidateReason.Inaccessible, typeInfo.CandidateReason) 5213Assert.Equal(CandidateReason.Inaccessible, typeInfo.CandidateReason) 5350Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 5365Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 5439Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 5454Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 5544Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 5560Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 5605Assert.Equal(CandidateReason.LateBound, semanticSummary.CandidateReason) 5982Assert.Equal(CandidateReason.StaticInstanceMismatch, symbolInfo.CandidateReason) 6003Assert.Equal(CandidateReason.NotReferencable, symbolInfo.CandidateReason) 6054Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason)
Semantics\LambdaSemanticInfoTests.vb (4)
668Assert.Equal(CandidateReason.None, info.CandidateReason) 756Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 782Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 812Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason)
Semantics\MethodCalls.vb (1)
2931Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason)
Semantics\NameOfTests.vb (100)
67Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 79Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 91Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 104Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 116Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 132Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 144Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 464Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 476Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 488Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 536Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 548Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 562Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 571Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 620Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 672Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 722Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 775Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 825Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 875Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 887Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 899Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 952Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 964Assert.Equal(CandidateReason.WrongArity, symbolInfo.CandidateReason) 977Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1065Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1077Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 1090Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1133Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1145Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1198Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1210Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 1224Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1233Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1280Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1292Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 1306Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1315Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1362Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1374Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 1387Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1396Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1443Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1455Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 1468Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1477Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1523Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1535Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1548Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1557Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1654Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1666Assert.Equal(CandidateReason.Ambiguous, symbolInfo.CandidateReason) 1747Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1759Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1804Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1816Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1861Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1873Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1918Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1930Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2060Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2072Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2085Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2159Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2171Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 2184Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2260Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2272Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 2285Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2366Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2378Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 2391Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2470Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2482Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2495Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2803Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2815Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 2828Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2878Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2890Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2943Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2955Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3005Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3017Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 3066Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3078Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 3127Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3139Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3187Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3199Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3251Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3263Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 3312Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3324Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3369Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3381Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3427Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3439Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason) 3483Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3495Assert.Equal(CandidateReason.MemberGroup, symbolInfo.CandidateReason)
Semantics\NonTrailingNamedArgumentsTests.vb (1)
746Assert.Equal(CandidateReason.OverloadResolutionFailure, model.GetSymbolInfo(firstInvocation).CandidateReason)
Semantics\OverloadResolution.vb (6)
4324Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 4334Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 4345Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 4433Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 4443Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason) 4454Assert.Equal(CandidateReason.Inaccessible, symbolInfo.CandidateReason)
Semantics\QueryExpressions_SemanticModel.vb (156)
78Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 96Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 115Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 148Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 170Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 198Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 216Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 235Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 304Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 322Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 341Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 370Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 392Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 420Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 438Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 457Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 524Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 542Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 561Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 590Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 612Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 640Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 658Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 677Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 768Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 786Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 805Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 834Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 856Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 884Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 902Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 921Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 930Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 937Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 944Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 951Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 958Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1001Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1085Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1104Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1157Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1177Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1183Assert.Equal(CandidateReason.None, commonSymbolInfo.CandidateReason) 1190Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 1198Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1205Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1212Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1219Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1226Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1306Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1330Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1388Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1408Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1420Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1429Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1434Assert.Equal(CandidateReason.None, commonSymbolInfo.CandidateReason) 1480Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1492Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1554Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1654Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 1682Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 1700Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1707Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1712Assert.Equal(CandidateReason.None, commonSymbolInfo.CandidateReason) 1719Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1726Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1786Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1793Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1800Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1807Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1814Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1821Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 1828Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2110Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2158Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2191Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2202Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2209Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2216Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2224Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2225Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2226Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2235Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2236Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2240Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2255Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2256Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2260Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2270Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2271Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2272Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2281Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2285Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2288Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2297Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2301Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2306Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2318Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2321Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2322Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2333Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2336Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2340Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2352Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2355Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2356Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2367Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2372Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2375Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2386Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2389Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2393Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2405Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2410Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2415Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2426Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2427Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2431Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2442Assert.Equal(CandidateReason.None, collectionInfo.ToQueryableCollectionConversion.CandidateReason) 2443Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2447Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2459Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2462Assert.Equal(CandidateReason.None, collectionInfo.AsClauseConversion.CandidateReason) 2463Assert.Equal(CandidateReason.None, collectionInfo.SelectMany.CandidateReason) 2542Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2676Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2705Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2727Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2756Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2825Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 2910Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 2960Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3334Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 3380Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3400Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason) 3413Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3419Assert.Equal(CandidateReason.None, symbolInfo3.Select1.CandidateReason) 3421Assert.Equal(CandidateReason.None, symbolInfo3.Select2.CandidateReason) 3427Assert.Equal(CandidateReason.None, symbolInfo3.Select1.CandidateReason) 3429Assert.Equal(CandidateReason.None, symbolInfo3.Select2.CandidateReason) 3538Assert.Equal(CandidateReason.None, semanticInfo.CandidateReason) 3569Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3578Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3582Assert.Equal(CandidateReason.None, symbolInfo3.Select2.CandidateReason) 3589Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3593Assert.Equal(CandidateReason.None, symbolInfo3.Select2.CandidateReason) 3600Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3605Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3614Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3620Assert.Equal(CandidateReason.None, symbolInfo1.CandidateReason) 3751Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3756Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3764Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3769Assert.Equal(CandidateReason.None, symbolInfo.CandidateReason) 3822Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason) 3973Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason)
Semantics\SelectCaseTests.vb (8)
34Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 68Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 247Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 284Assert.Equal(CandidateReason.NotAValue, semanticSummary.CandidateReason) 324Assert.Equal(CandidateReason.NotAValue, semanticSummary.CandidateReason) 363Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 403Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) 536Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason)
Semantics\UnaryOperators.vb (1)
702Assert.Equal(CandidateReason.None, info1.CandidateReason)
Semantics\XmlLiteralSemanticModelTests.vb (1)
536Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (16)
DocumentationComments\DocCommentTests.vb (8)
4992Assert.Equal(CandidateReason.Ambiguous, actSymInfo1.CandidateReason) 5011Assert.Equal(CandidateReason.NotReferencable, typeParamSymInfo.CandidateReason) 10092Assert.Equal(CandidateReason.Ambiguous, actual.CandidateReason) 11500Assert.Equal(CandidateReason.Ambiguous, symbolInfo.CandidateReason) 11653Assert.Equal(CandidateReason.NotReferencable, info0.CandidateReason) 11963Assert.Equal(CandidateReason.Ambiguous, actual.CandidateReason) 12018Assert.Equal(CandidateReason.NotReferencable, actual.CandidateReason) 12049Assert.Equal(CandidateReason.Ambiguous, actual.CandidateReason)
SymbolsTests\Source\BindingsTests.vb (3)
506Assert.Equal(CandidateReason.Ambiguous, interfaceIAmbigSymInfo.CandidateReason) 522Assert.Equal(CandidateReason.WrongArity, classYellowSymInfo.CandidateReason) 673Assert.Equal(CandidateReason.Inaccessible, info.CandidateReason)
SymbolsTests\Source\EventTests.vb (1)
1651Assert.Equal(CandidateReason.Inaccessible, semanticSummary.CandidateReason)
SymbolsTests\Source\GroupClassTests.vb (1)
3279Assert.Equal(CandidateReason.NotAValue, symbolInfo.CandidateReason)
SymbolsTests\SymbolErrorTests.vb (3)
23431Assert.Equal(CandidateReason.None, errortype.CandidateReason) 23461Assert.Equal(CandidateReason.Inaccessible, errortyp.CandidateReason) 23497Assert.Equal(CandidateReason.Ambiguous, errortyp.CandidateReason)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
CompilationTestUtils.vb (2)
525Public CandidateReason As CandidateReason = CandidateReason.None
Microsoft.CodeAnalysis.Workspaces (59)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (11)
39private static (bool matched, CandidateReason reason) SymbolsMatch( 53protected static (bool matched, CandidateReason reason) SymbolsMatch( 60protected static (bool matched, CandidateReason reason) Matches( 64return (matched: true, CandidateReason.None); 203protected static FinderLocation CreateFinderLocation(FindReferencesDocumentState state, SyntaxToken token, CandidateReason reason, CancellationToken cancellationToken) 206public static ReferenceLocation CreateReferenceLocation(FindReferencesDocumentState state, SyntaxToken token, CandidateReason reason, CancellationToken cancellationToken) 422candidateReason: CandidateReason.None)); 464candidateReason: CandidateReason.None)); 503GetAdditionalFindUsagesProperties(node, state), CandidateReason.None)); 534GetAdditionalFindUsagesProperties(node, state), CandidateReason.None)); 569GetAdditionalFindUsagesProperties(node, state), CandidateReason.None));
FindSymbols\FindReferences\Finders\AbstractTypeParameterSymbolReferenceFinder.cs (1)
64processResult(CreateFinderLocation(state, token, CandidateReason.None, cancellationToken), processResultData);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (2)
258GetAdditionalFindUsagesProperties(node, state), CandidateReason.None)); 299GetAdditionalFindUsagesProperties(node, state), CandidateReason.None));
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
178candidateReason: CandidateReason.None));
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (1)
58var location = CreateFinderLocation(state, token, CandidateReason.None, cancellationToken);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (5)
232private static (bool matched, CandidateReason reason, SyntaxNode indexerReference) ComputeIndexerInformation( 260private static (bool matched, CandidateReason reason, SyntaxNode indexerReference) ComputeIndexerMemberCRefInformation( 269private static (bool matched, CandidateReason reason, SyntaxNode indexerReference) ComputeConditionalAccessInformation( 288private static (bool matched, CandidateReason reason, SyntaxNode? indexerReference) ComputeElementAccessInformation( 305private static (bool matched, CandidateReason reason, SyntaxNode indexerReference) ComputeImplicitElementAccessInformation(
FindSymbols\ReferenceLocation.cs (5)
64public CandidateReason CandidateReason { get; } 73CandidateReason candidateReason, 89internal ReferenceLocation(Document document, IAliasSymbol? alias, Location location, bool isImplicit, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties, CandidateReason candidateReason) 101CandidateReason.None, containingStringLocation) 111public bool IsCandidateLocation => this.CandidateReason != CandidateReason.None;
Rename\IRemoteRenamerService.cs (2)
56CandidateReason candidateReason, 69public readonly CandidateReason CandidateReason = candidateReason;
Rename\RenameLocation.cs (21)
14CandidateReason candidateReason = CandidateReason.None, 22public readonly CandidateReason CandidateReason = candidateReason; 52internal static bool ShouldRename(CandidateReason candidateReason) 54if (candidateReason != CandidateReason.None) 65case CandidateReason.NotATypeOrNamespace: 73case CandidateReason.NotAnEvent: 74case CandidateReason.NotAWithEventsMember: 79case CandidateReason.NotAnAttributeType: 85case CandidateReason.WrongArity: 91case CandidateReason.NotCreatable: 96case CandidateReason.NotReferencable: 102case CandidateReason.Inaccessible: 108case CandidateReason.NotAValue: 109case CandidateReason.NotAVariable: 115case CandidateReason.NotInvocable: 122case CandidateReason.StaticInstanceMismatch: 128case CandidateReason.OverloadResolutionFailure: 136case CandidateReason.LateBound: 140case CandidateReason.Ambiguous: 145case CandidateReason.MemberGroup:
Rename\RenameUtilities.cs (3)
64if (info.CandidateReason == CandidateReason.MemberGroup) 168if (symbolInfo.CandidateReason == CandidateReason.MemberGroup && symbolInfo.CandidateSymbols.Any()) 177if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && symbolInfo.CandidateSymbols.Length == 1)
Rename\SymbolicRenameLocations.cs (1)
91: result.Locations.Where(x => x.CandidateReason != CandidateReason.MemberGroup));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
260CandidateReason.Ambiguous);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (3)
26CandidateReason = CandidateReason.None; 29internal SymbolKeyResolution(ImmutableArray<ISymbol> candidateSymbols, CandidateReason candidateReason) 39public CandidateReason CandidateReason { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
335if (originalSymbolInfo.CandidateReason == CandidateReason.MemberGroup) 892if (_failOnOverloadResolutionFailuresInOriginalCode && originalSymbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure)