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