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