74 references to Empty
Microsoft.CodeAnalysis.CSharp (74)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
87
LookupResultKind.
Empty
,
Binder\Binder_Attributes.cs (1)
521
var badLHS = BadExpression(nameSyntax, lookupResultKind: LookupResultKind.
Empty
);
Binder\Binder_Expressions.cs (20)
108
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty);
116
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childNode);
124
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childNodes);
194
private BoundExpression ToBadExpression(BoundExpression expr, LookupResultKind resultKind = LookupResultKind.
Empty
)
854
node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))),
1041
argumentSyntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty,
1484
bool result = lookupResult.Kind != LookupResultKind.
Empty
;
1600
if (lookupResult.Kind != LookupResultKind.
Empty
)
1770
if (lookupResult.Kind != LookupResultKind.
Empty
)
4184
LookupResultKind.
Empty
,
4492
LookupResultKind.
Empty
,
4824
resultKind: LookupResultKind.
Empty
,
4835
resultKind: LookupResultKind.
Empty
,
4878
resultKind: LookupResultKind.
Empty
,
5200
return new BoundBadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType());
5721
LookupResultKind.
Empty
,
6035
case LookupResultKind.
Empty
:
7808
else if (lookupResult.Kind == LookupResultKind.
Empty
)
8855
Debug.Assert(result.Kind != LookupResultKind.
Empty
);
9268
return new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true);
Binder\Binder_Invocation.cs (1)
121
return BadExpression(node, LookupResultKind.
Empty
, ImmutableArray.Create(symbol), args.Add(receiver), wasCompilerGenerated: true);
Binder\Binder_Lookup.cs (1)
69
if (result.Kind != LookupResultKind.Viable && result.Kind != LookupResultKind.
Empty
)
Binder\Binder_Operators.cs (9)
52
leftPlaceholder: null, leftConversion: null, finalPlaceholder: null, finalConversion: null, LookupResultKind.
Empty
, CreateErrorType(), hasErrors: true);
95
leftPlaceholder: null, leftConversion: null, finalPlaceholder: null, finalConversion: null, LookupResultKind.
Empty
, CreateErrorType(), hasErrors: true);
518
return new BoundBinaryOperator(node, kind, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.
Empty
, left, right, GetBinaryOperatorErrorType(kind, diagnostics, node), true);
559
return new BoundBinaryOperator(node, BinaryOperatorKind.StringConcatenation, BoundBinaryOperator.UncommonData.UnconvertedInterpolatedStringAddition(stringConstant), LookupResultKind.
Empty
, left, right, right.Type);
953
resultKind: LookupResultKind.
Empty
, left, right, type: GetBinaryOperatorErrorType(kind, diagnostics, node), hasErrors: true);
1364
resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.
Empty
;
1473
resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.
Empty
;
2286
LookupResultKind.
Empty
,
2747
resultKind: LookupResultKind.
Empty
,
Binder\Binder_Patterns.cs (2)
370
lengthAccess = new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType(), hasErrors: true) { WasCompilerGenerated = true };
1583
case LookupResultKind.
Empty
:
Binder\Binder_Query.cs (3)
736
yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType());
742
yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type);
803
field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true);
Binder\Binder_Statements.cs (2)
2710
Debug.Assert(resultKind == LookupResultKind.
Empty
, "How could overload resolution fail if a user-defined true operator was found?");
4148
if (call.ResultKind == LookupResultKind.
Empty
)
Binder\Binder_Symbols.cs (2)
222
case LookupResultKind.
Empty
:
2301
if (result.Kind == LookupResultKind.
Empty
)
Binder\Binder_XmlNameAttribute.cs (1)
33
if (lookupResult.Kind == LookupResultKind.
Empty
)
Binder\ForEachLoopBinder.cs (1)
724
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)
90
this.ResultKind = LookupResultKind.
Empty
;
129
Debug.Assert(this.ResultKind == 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)
1919
else if (highestResultKind != LookupResultKind.
Empty
&& highestResultKind < resultKind)
1945
if (resultKind == LookupResultKind.
Empty
)
1949
return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.
Empty
, isDynamic);
2327
if (resultKind != LookupResultKind.
Empty
)
3378
resultKind = LookupResultKind.
Empty
;
3503
resultKind = LookupResultKind.
Empty
;
3954
resultKind = LookupResultKind.
Empty
;
4245
if (resultKind == LookupResultKind.
Empty
)
4397
if (resultKind == LookupResultKind.
Empty
)
4565
var resultKind = LookupResultKind.
Empty
;
4726
resultKind = LookupResultKind.
Empty
;
4739
Debug.Assert((methods.Count == 0) == (resultKind == LookupResultKind.
Empty
));
Lowering\ClosureConversion\ClosureConversion.cs (1)
1731
return new BoundBadExpression(F.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2020
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)
233
return new BoundBadExpression(Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true);
Symbols\ErrorTypeSymbol.cs (1)
34
internal virtual LookupResultKind ResultKind { get { return LookupResultKind.
Empty
; } }
Symbols\ExtendedErrorTypeSymbol.cs (1)
49
_resultKind = LookupResultKind.
Empty
;