41 references to Kind
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Attributes.cs (1)
602resultKind = result.Kind;
Binder\Binder_Expressions.cs (17)
1481bool result = lookupResult.Kind != LookupResultKind.Empty; 1597if (lookupResult.Kind != LookupResultKind.Empty) 1632expression = BindNonMethod(node, symbol, diagnostics, lookupResult.Kind, indexed, isError); 1767if (lookupResult.Kind != LookupResultKind.Empty) 2405return BadExpression(node, result.Kind); 7740return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.Kind); 7797else if (lookupResult.Kind == LookupResultKind.WrongArity) 7805new ExtendedErrorTypeSymbol(GetContainingNamespaceOrType(symbols[0]), symbols.ToImmutable(), lookupResult.Kind, lookupResult.Error, rightArity)); 7807else if (lookupResult.Kind == LookupResultKind.Empty) 7813return new BoundBadExpression(node, lookupResult.Kind, symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true); 7993return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.Kind); 8308result = BindPropertyAccess(node, left, (PropertySymbol)symbol, diagnostics, lookupResult.Kind, hasErrors: wasError); 8314result = BindEventAccess(node, left, (EventSymbol)symbol, diagnostics, lookupResult.Kind, hasErrors: wasError); 8324result = BindFieldAccess(node, left, (FieldSymbol)symbol, diagnostics, lookupResult.Kind, indexed, hasErrors: wasError); 8488methodGroup.PopulateWithExtensionMethods(left, members, typeArgumentsWithAnnotations, lookupResult.Kind); 8854Debug.Assert(result.Kind != LookupResultKind.Empty); 10150lengthOrCountAccess = BindPropertyAccess(syntax, receiverPlaceholder, lengthOrCountProperty, diagnostics, lookupResult.Kind, hasErrors: false).MakeCompilerGenerated();
Binder\Binder_Lookup.cs (3)
69if (result.Kind != LookupResultKind.Viable && result.Kind != LookupResultKind.Empty) 675if (result == null || result.Kind != LookupResultKind.Viable || (object)symbol == null)
Binder\Binder_Symbols.cs (7)
220switch (lookupResult.Kind) 1310lookupResult.Kind, 1480lookupResult.Kind, 2283if (result.Kind == LookupResultKind.Empty) 2321result.Kind == LookupResultKind.NotATypeOrNamespace || result.Kind == LookupResultKind.NotAnAttributeType) 2326return new ExtendedErrorTypeSymbol(GetContainingNamespaceOrType(symbols[0]), symbols.ToImmutable(), result.Kind, result.Error, arity);
Binder\Binder_XmlNameAttribute.cs (1)
33if (lookupResult.Kind == LookupResultKind.Empty)
Binder\LookupResult.cs (11)
140return Kind == LookupResultKind.Viable; 151return Kind == LookupResultKind.Viable && _symbolList.Count == 1; 245if (other.Kind > Kind) 258if (Kind > other.Kind) 262else if (other.Kind > Kind) 266else if (Kind != LookupResultKind.Viable) 281if (Kind > result.Kind) 285else if (result.Kind > Kind)
BoundTree\BoundMethodGroup.cs (1)
23: this(syntax, typeArgumentsOpt, name, methods, lookupResult.SingleSymbolOrDefault, lookupResult.Error, flags, functionType: GetFunctionType(binder, syntax), receiverOpt, lookupResult.Kind, hasErrors)