74 references to Empty
Microsoft.CodeAnalysis.CSharp (74)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
87LookupResultKind.Empty,
Binder\Binder_Attributes.cs (1)
521var badLHS = BadExpression(nameSyntax, lookupResultKind: LookupResultKind.Empty);
Binder\Binder_Expressions.cs (20)
108return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty); 116return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNode); 124return BadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childNodes); 194private BoundExpression ToBadExpression(BoundExpression expr, LookupResultKind resultKind = LookupResultKind.Empty) 854node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(BindToTypeForErrorRecovery(BindValue(node.Expression, BindingDiagnosticBag.Discarded, BindValueKind.RefersToLocation))), 1041argumentSyntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, 1481bool result = lookupResult.Kind != LookupResultKind.Empty; 1597if (lookupResult.Kind != LookupResultKind.Empty) 1767if (lookupResult.Kind != LookupResultKind.Empty) 4181LookupResultKind.Empty, 4489LookupResultKind.Empty, 4821resultKind: LookupResultKind.Empty, 4832resultKind: LookupResultKind.Empty, 4875resultKind: LookupResultKind.Empty, 5197return new BoundBadExpression(syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType()); 5718LookupResultKind.Empty, 6032case LookupResultKind.Empty: 7807else if (lookupResult.Kind == LookupResultKind.Empty) 8854Debug.Assert(result.Kind != LookupResultKind.Empty); 9267return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, childBoundNodes, CreateErrorType(), hasErrors: true);
Binder\Binder_Invocation.cs (1)
121return BadExpression(node, LookupResultKind.Empty, ImmutableArray.Create(symbol), args.Add(receiver), wasCompilerGenerated: true);
Binder\Binder_Lookup.cs (1)
69if (result.Kind != LookupResultKind.Viable && result.Kind != LookupResultKind.Empty)
Binder\Binder_Operators.cs (9)
52leftPlaceholder: null, leftConversion: null, finalPlaceholder: null, finalConversion: null, LookupResultKind.Empty, CreateErrorType(), hasErrors: true); 95leftPlaceholder: null, leftConversion: null, finalPlaceholder: null, finalConversion: null, LookupResultKind.Empty, CreateErrorType(), hasErrors: true); 518return new BoundBinaryOperator(node, kind, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.Empty, left, right, GetBinaryOperatorErrorType(kind, diagnostics, node), true); 559return new BoundBinaryOperator(node, BinaryOperatorKind.StringConcatenation, BoundBinaryOperator.UncommonData.UnconvertedInterpolatedStringAddition(stringConstant), LookupResultKind.Empty, left, right, right.Type); 953resultKind: LookupResultKind.Empty, left, right, type: GetBinaryOperatorErrorType(kind, diagnostics, node), hasErrors: true); 1359resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.Empty; 1468resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.Empty; 2281LookupResultKind.Empty, 2742resultKind: LookupResultKind.Empty,
Binder\Binder_Patterns.cs (2)
370lengthAccess = new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, CreateErrorType(), hasErrors: true) { WasCompilerGenerated = true }; 1583case LookupResultKind.Empty:
Binder\Binder_Query.cs (3)
736yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), CreateErrorType()); 742yExpression = new BoundBadExpression(yExpression.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(yExpression), yExpression.Type); 803field2Value = new BoundBadExpression(field2Value.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(field2Value), field2Value.Type, true);
Binder\Binder_Statements.cs (2)
2707Debug.Assert(resultKind == LookupResultKind.Empty, "How could overload resolution fail if a user-defined true operator was found?"); 4148if (call.ResultKind == LookupResultKind.Empty)
Binder\Binder_Symbols.cs (2)
222case LookupResultKind.Empty: 2283if (result.Kind == LookupResultKind.Empty)
Binder\Binder_XmlNameAttribute.cs (1)
33if (lookupResult.Kind == LookupResultKind.Empty)
Binder\ForEachLoopBinder.cs (1)
724LookupResultKind.Empty,
Binder\LookupResult.cs (4)
78_kind = LookupResultKind.Empty; 87return _kind == LookupResultKind.Empty && _error == null && _symbolList.Count == 0; 93_kind = LookupResultKind.Empty; 167return new SingleLookupResult(LookupResultKind.Empty, null, null);
Binder\LookupResultKind.cs (3)
78case LookupResultKind.Empty: return CandidateReason.None; 105if (resultKind1 == LookupResultKind.Empty) 107if (resultKind2 == LookupResultKind.Empty)
Binder\Semantics\Conversions\Conversion.cs (1)
1061return this.Kind == ConversionKind.NoConversion ? LookupResultKind.Empty : LookupResultKind.Viable;
Binder\Semantics\OverloadResolution\MethodGroup.cs (2)
90this.ResultKind = LookupResultKind.Empty; 129Debug.Assert(this.ResultKind == LookupResultKind.Empty);
Binder\SwitchBinder.cs (1)
446return new BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create(switchGoverningExpression), switchGoverningType ?? CreateErrorType());
Compilation\CSharpSemanticModel.cs (12)
1919else if (highestResultKind != LookupResultKind.Empty && highestResultKind < resultKind) 1945if (resultKind == LookupResultKind.Empty) 1949return SymbolInfoFactory.Create(ImmutableArray<Symbol>.Empty, LookupResultKind.Empty, isDynamic); 2327if (resultKind != LookupResultKind.Empty) 3378resultKind = LookupResultKind.Empty; 3503resultKind = LookupResultKind.Empty; 3954resultKind = LookupResultKind.Empty; 4245if (resultKind == LookupResultKind.Empty) 4390if (resultKind == LookupResultKind.Empty) 4558var resultKind = LookupResultKind.Empty; 4719resultKind = LookupResultKind.Empty; 4732Debug.Assert((methods.Count == 0) == (resultKind == LookupResultKind.Empty));
Lowering\ClosureConversion\ClosureConversion.cs (1)
1731return new BoundBadExpression(F.Syntax, LookupResultKind.Empty, ImmutableArray<Symbol>.Empty, ImmutableArray.Create<BoundExpression>(node), node.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2020return 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)
55var bad = new BoundBadExpression(children[0].Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, children, resultType);
Lowering\SyntheticBoundNodeFactory.cs (1)
233return new BoundBadExpression(Syntax, LookupResultKind.Empty, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, type, hasErrors: true);
Symbols\ErrorTypeSymbol.cs (1)
34internal virtual LookupResultKind ResultKind { get { return LookupResultKind.Empty; } }
Symbols\ExtendedErrorTypeSymbol.cs (1)
49_resultKind = LookupResultKind.Empty;