97 references to Empty
Microsoft.CodeAnalysis.CSharp (97)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
87
LookupResultKind.
Empty
,
Binder\Binder_Attributes.cs (1)
523
var badLHS = BadExpression(nameSyntax, lookupResultKind: LookupResultKind.
Empty
);
Binder\Binder_Expressions.cs (20)
114
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty);
122
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childNode);
130
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childNodes);
200
private BoundExpression ToBadExpression(BoundExpression expr, LookupResultKind resultKind = LookupResultKind.
Empty
)
867
node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))),
1054
argumentSyntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty,
1503
bool result = lookupResult.Kind != LookupResultKind.
Empty
;
1665
if (lookupResult.Kind != LookupResultKind.
Empty
)
1837
if (lookupResult.Kind != LookupResultKind.
Empty
)
4258
LookupResultKind.
Empty
,
4566
LookupResultKind.
Empty
,
4898
resultKind: LookupResultKind.
Empty
,
4909
resultKind: LookupResultKind.
Empty
,
4952
resultKind: LookupResultKind.
Empty
,
5274
return new BoundBadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType());
5801
LookupResultKind.
Empty
,
6115
case LookupResultKind.
Empty
:
7889
else if (lookupResult.Kind == LookupResultKind.
Empty
)
9252
Debug.Assert(result.Kind != LookupResultKind.
Empty
);
9665
return new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true);
Binder\Binder_Invocation.cs (1)
122
return BadExpression(node, LookupResultKind.
Empty
, ImmutableArray.Create(symbol), args.Add(receiver), wasCompilerGenerated: true);
Binder\Binder_Lookup.cs (3)
75
if (result.Kind != LookupResultKind.Viable && result.Kind != LookupResultKind.
Empty
)
211
if (resultOfThisMember.Kind == LookupResultKind.
Empty
)
239
if (resultOfThisMember.Kind != LookupResultKind.
Empty
)
Binder\Binder_Operators.cs (29)
62
leftPlaceholder: null, leftConversion: null, finalPlaceholder: null, finalConversion: null, LookupResultKind.
Empty
, CreateErrorType(), hasErrors: true);
107
leftPlaceholder: null, leftConversion: null, finalPlaceholder: null, finalConversion: null, LookupResultKind.
Empty
, CreateErrorType(), hasErrors: true);
162
Debug.Assert(resultKind is LookupResultKind.Viable or LookupResultKind.Ambiguous or LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
164
Debug.Assert(resultKind is not (LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
) || originalUserDefinedOperators.IsEmpty);
168
Debug.Assert(resultKind is LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
590
staticResultKind = LookupResultKind.
Empty
;
953
return new BoundBinaryOperator(node, kind, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.
Empty
, left, right, GetBinaryOperatorErrorType(kind, diagnostics, node), true);
994
return new BoundBinaryOperator(node, BinaryOperatorKind.StringConcatenation, BoundBinaryOperator.UncommonData.UnconvertedInterpolatedStringAddition(stringConstant), LookupResultKind.
Empty
, left, right, right.Type);
1466
resultKind: LookupResultKind.
Empty
, left, right, type: GetBinaryOperatorErrorType(kind, diagnostics, node), hasErrors: true);
2092
Debug.Assert(resultKind is LookupResultKind.Viable or LookupResultKind.Ambiguous or LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
2094
Debug.Assert(resultKind is not (LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
) || originalUserDefinedOperators.IsEmpty);
2098
Debug.Assert(resultKind is LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
2131
resultKind = LookupResultKind.
Empty
;
2202
Debug.Assert(resultKind is LookupResultKind.Viable or LookupResultKind.Ambiguous or LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
2204
Debug.Assert(resultKind is not (LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
) || originalUserDefinedOperators.IsEmpty);
2242
resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.
Empty
;
2298
Debug.Assert(resultKind is LookupResultKind.Viable or LookupResultKind.Ambiguous or LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
2300
Debug.Assert(resultKind is not (LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
) || originalUserDefinedOperators.IsEmpty);
2304
Debug.Assert(resultKind is LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
2347
Debug.Assert(resultKind is LookupResultKind.Viable or LookupResultKind.Ambiguous or LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
2349
Debug.Assert(resultKind is not (LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
) || originalUserDefinedOperators.IsEmpty);
2410
resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.
Empty
;
2442
resultKind = LookupResultKind.
Empty
;
3300
LookupResultKind.
Empty
,
3351
Debug.Assert(resultKind is LookupResultKind.Viable or LookupResultKind.Ambiguous or LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
3353
Debug.Assert(resultKind is not (LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
) || originalUserDefinedOperators.IsEmpty);
3357
Debug.Assert(resultKind is LookupResultKind.OverloadResolutionFailure or LookupResultKind.
Empty
);
3704
staticResultKind = LookupResultKind.
Empty
;
4364
resultKind: LookupResultKind.
Empty
,
Binder\Binder_Patterns.cs (2)
382
lengthAccess = new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType(), hasErrors: true) { WasCompilerGenerated = true };
1595
case LookupResultKind.
Empty
:
Binder\Binder_Query.cs (3)
747
yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType());
753
yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type);
814
field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true);
Binder\Binder_Statements.cs (1)
4192
if (call.ResultKind == LookupResultKind.
Empty
)
Binder\Binder_Symbols.cs (3)
223
case LookupResultKind.
Empty
:
1518
receiver = new BoundBadExpression(receiver.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childBoundNodes: [receiver], receiver.Type, hasErrors: true).MakeCompilerGenerated();
2369
if (result.Kind == LookupResultKind.
Empty
)
Binder\Binder_XmlNameAttribute.cs (1)
33
if (lookupResult.Kind == LookupResultKind.
Empty
)
Binder\ForEachLoopBinder.cs (1)
742
LookupResultKind.
Empty
,
Binder\LookupResult.cs (4)
78
_kind = LookupResultKind.
Empty
;
87
return _kind == LookupResultKind.
Empty
&& _error == null && _symbolList.Count == 0;
93
_kind = LookupResultKind.
Empty
;
167
return new SingleLookupResult(LookupResultKind.
Empty
, null, null);
Binder\LookupResultKind.cs (3)
78
case LookupResultKind.
Empty
: return CandidateReason.None;
105
if (resultKind1 == LookupResultKind.
Empty
)
107
if (resultKind2 == LookupResultKind.
Empty
)
Binder\Semantics\Conversions\Conversion.cs (1)
1061
return this.Kind == ConversionKind.NoConversion ? LookupResultKind.
Empty
: LookupResultKind.Viable;
Binder\Semantics\OverloadResolution\MethodGroup.cs (2)
95
this.ResultKind = LookupResultKind.
Empty
;
134
Debug.Assert(this.ResultKind == LookupResultKind.
Empty
);
Binder\SingleLookupResult.cs (1)
31
Debug.Assert(symbol is not null || kind == LookupResultKind.
Empty
);
Binder\SwitchBinder.cs (1)
446
return new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(switchGoverningExpression), switchGoverningType ?? CreateErrorType());
Compilation\CSharpSemanticModel.cs (12)
1928
if (highestResultKind != LookupResultKind.
Empty
&& highestResultKind < resultKind)
1952
if (resultKind == LookupResultKind.
Empty
)
1956
return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.
Empty
, isDynamic);
2328
if (resultKind != LookupResultKind.
Empty
)
3380
resultKind = LookupResultKind.
Empty
;
3505
resultKind = LookupResultKind.
Empty
;
3961
resultKind = LookupResultKind.
Empty
;
4252
if (resultKind == LookupResultKind.
Empty
)
4404
if (resultKind == LookupResultKind.
Empty
)
4572
var resultKind = LookupResultKind.
Empty
;
4727
resultKind = LookupResultKind.
Empty
;
4739
Debug.Assert((members.Count == 0) == (resultKind == LookupResultKind.
Empty
));
Lowering\ClosureConversion\ClosureConversion.cs (1)
1734
return new BoundBadExpression(F.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2039
return new BoundBinaryOperator(syntax, operatorKind, constantValueOpt: null, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.
Empty
, loweredLeft, loweredRight, type);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
228
: new BoundBadExpression(syntax, LookupResultKind.
Empty
, symbols: ImmutableArray<Symbol?>.Empty, childBoundNodes: ImmutableArray<BoundExpression>.Empty, type);
Lowering\LocalRewriter\LoweredDynamicOperation.cs (1)
55
var bad = new BoundBadExpression(children[0].Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, children, resultType);
Lowering\SyntheticBoundNodeFactory.cs (1)
241
return new BoundBadExpression(Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true);
Symbols\ErrorTypeSymbol.cs (1)
35
internal virtual LookupResultKind ResultKind { get { return LookupResultKind.
Empty
; } }
Symbols\ExtendedErrorTypeSymbol.cs (1)
49
_resultKind = LookupResultKind.
Empty
;