41 references to Kind
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Attributes.cs (1)
602
resultKind = result.
Kind
;
Binder\Binder_Expressions.cs (17)
1484
bool result = lookupResult.
Kind
!= LookupResultKind.Empty;
1600
if (lookupResult.
Kind
!= LookupResultKind.Empty)
1635
expression = BindNonMethod(node, symbol, diagnostics, lookupResult.
Kind
, indexed, isError);
1770
if (lookupResult.
Kind
!= LookupResultKind.Empty)
2408
return BadExpression(node, result.
Kind
);
7741
return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.
Kind
);
7798
else if (lookupResult.
Kind
== LookupResultKind.WrongArity)
7806
new ExtendedErrorTypeSymbol(GetContainingNamespaceOrType(symbols[0]), symbols.ToImmutable(), lookupResult.
Kind
, lookupResult.Error, rightArity));
7808
else if (lookupResult.
Kind
== LookupResultKind.Empty)
7814
return new BoundBadExpression(node, lookupResult.
Kind
, symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true);
7994
return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.
Kind
);
8309
result = BindPropertyAccess(node, left, (PropertySymbol)symbol, diagnostics, lookupResult.
Kind
, hasErrors: wasError);
8315
result = BindEventAccess(node, left, (EventSymbol)symbol, diagnostics, lookupResult.
Kind
, hasErrors: wasError);
8325
result = BindFieldAccess(node, left, (FieldSymbol)symbol, diagnostics, lookupResult.
Kind
, indexed, hasErrors: wasError);
8489
methodGroup.PopulateWithExtensionMethods(left, members, typeArgumentsWithAnnotations, lookupResult.
Kind
);
8855
Debug.Assert(result.
Kind
!= LookupResultKind.Empty);
10151
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
,
1498
lookupResult.
Kind
,
2301
if (result.
Kind
== LookupResultKind.Empty)
2339
result.
Kind
== LookupResultKind.NotATypeOrNamespace || result.
Kind
== LookupResultKind.NotAnAttributeType)
2344
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)