71 references to Empty
Microsoft.CodeAnalysis.CSharp (70)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
87
LookupResultKind.
Empty
,
Binder\Binder_Expressions.cs (16)
107
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty);
115
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childNode);
123
return BadExpression(syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childNodes);
191
private BoundExpression ToBadExpression(BoundExpression expr, LookupResultKind resultKind = LookupResultKind.
Empty
)
818
node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray<BoundExpression>.Empty,
1005
argumentSyntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty,
1511
if (lookupResult.Kind != LookupResultKind.
Empty
)
3527
LookupResultKind.
Empty
,
3835
LookupResultKind.
Empty
,
4168
resultKind: LookupResultKind.
Empty
,
4179
resultKind: LookupResultKind.
Empty
,
4222
resultKind: LookupResultKind.
Empty
,
5163
case LookupResultKind.
Empty
:
6741
else if (lookupResult.Kind == LookupResultKind.
Empty
)
7755
Debug.Assert(result.Kind != LookupResultKind.
Empty
);
7929
return new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true);
Binder\Binder_Invocation.cs (1)
120
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);
922
resultKind: LookupResultKind.
Empty
, left, right, type: GetBinaryOperatorErrorType(kind, diagnostics, node), hasErrors: true);
1328
resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.
Empty
;
1437
resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.
Empty
;
2250
LookupResultKind.
Empty
,
2699
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 };
1574
case LookupResultKind.
Empty
:
Binder\Binder_Query.cs (3)
735
yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType());
741
yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type);
802
field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true);
Binder\Binder_Statements.cs (2)
2609
Debug.Assert(resultKind == LookupResultKind.
Empty
, "How could overload resolution fail if a user-defined true operator was found?");
4052
if (call.ResultKind == LookupResultKind.
Empty
)
Binder\Binder_Symbols.cs (2)
222
case LookupResultKind.
Empty
:
2256
if (result.Kind == LookupResultKind.
Empty
)
Binder\Binder_XmlNameAttribute.cs (1)
33
if (lookupResult.Kind == LookupResultKind.
Empty
)
Binder\ForEachLoopBinder.cs (1)
670
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)
953
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)
442
return new BoundBadExpression(node, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(switchGoverningExpression), switchGoverningType ?? CreateErrorType());
Compilation\CSharpSemanticModel.cs (13)
1940
else if (highestResultKind != LookupResultKind.
Empty
&& highestResultKind < resultKind)
1966
if (resultKind == LookupResultKind.
Empty
)
1970
return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.
Empty
, isDynamic);
2325
if (resultKind != LookupResultKind.
Empty
)
3371
resultKind = LookupResultKind.
Empty
;
3496
resultKind = LookupResultKind.
Empty
;
3942
resultKind = LookupResultKind.
Empty
;
4230
if (resultKind == LookupResultKind.
Empty
)
4375
if (resultKind == LookupResultKind.
Empty
)
4543
var resultKind = LookupResultKind.
Empty
;
4688
Debug.Assert(singleResult.Kind != LookupResultKind.
Empty
);
4701
resultKind = LookupResultKind.
Empty
;
4714
Debug.Assert((methods.Count == 0) == (resultKind == LookupResultKind.
Empty
));
Lowering\ClosureConversion\ClosureConversion.cs (1)
1703
return new BoundBadExpression(F.Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1940
return new BoundBinaryOperator(syntax, operatorKind, constantValueOpt: null, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.
Empty
, loweredLeft, loweredRight, type);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
377
: 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)
280
return new BoundBadExpression(Syntax, LookupResultKind.
Empty
, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true);
Symbols\ErrorTypeSymbol.cs (1)
32
internal virtual LookupResultKind ResultKind { get { return LookupResultKind.
Empty
; } }
Symbols\ExtendedErrorTypeSymbol.cs (1)
49
_resultKind = LookupResultKind.
Empty
;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\PlaceholderLocalSymbol.cs (1)
176
LookupResultKind.
Empty
,