20 references to AsMemberOfType
Microsoft.CodeAnalysis.CSharp (20)
FlowAnalysis\NullableWalker.cs (16)
4006
constructor = (MethodSymbol)
AsMemberOfType
(type, constructor);
4258
symbol =
AsMemberOfType
(containingType, symbol);
4462
method = (MethodSymbol)
AsMemberOfType
(containingType, method);
5160
var reinferredMethod = (MethodSymbol)
AsMemberOfType
(asMemberOfType, method);
6343
method = (MethodSymbol)
AsMemberOfType
(receiverType.Type, method);
7980
method = (MethodSymbol)
AsMemberOfType
(receiverType.Type, method);
9874
method = (MethodSymbol)
AsMemberOfType
(receiverType.Type, method);
10233
deconstructMethod = (MethodSymbol)
AsMemberOfType
(rightResult.Type, deconstructMethod);
10758
indexer = (PropertySymbol)
AsMemberOfType
(receiverType, indexer);
10825
member =
AsMemberOfType
(receiverType.Type, member);
11069
reinferredGetEnumeratorMethod = (MethodSymbol)
AsMemberOfType
(getEnumeratorType, enumeratorInfoOpt.GetEnumeratorInfo.Method);
11082
var currentPropertyGetter = (MethodSymbol)
AsMemberOfType
(enumeratorReturnType.Type, enumeratorInfoOpt.CurrentPropertyGetter);
11091
var moveNextAsyncMethod = (MethodSymbol)
AsMemberOfType
(reinferredGetEnumeratorMethod.ReturnType, enumeratorInfoOpt.MoveNextInfo.Method);
11107
var disposeAsyncMethod = (MethodSymbol)
AsMemberOfType
(reinferredGetEnumeratorMethod.ReturnType, originalDisposeMethod);
11322
method = (MethodSymbol)
AsMemberOfType
(operandType.Type!.StrippedType(), method);
11748
@event = (EventSymbol)
AsMemberOfType
(ResultType.Type, @event);
FlowAnalysis\NullableWalker_Patterns.cs (4)
488
var field = (FieldSymbol)
AsMemberOfType
(inputType, e.Field);
534
var property = (PropertySymbol)
AsMemberOfType
(inputType, e.Property);
850
BoundIndexerAccess indexerAccess =>
AsMemberOfType
(inputType, indexerAccess.Indexer).GetTypeOrReturnType(),
851
BoundCall call =>
AsMemberOfType
(inputType, call.Method).GetTypeOrReturnType(),