20 references to AsMemberOfType
Microsoft.CodeAnalysis.CSharp (20)
FlowAnalysis\NullableWalker.cs (16)
3945
constructor = (MethodSymbol)
AsMemberOfType
(type, constructor);
4197
symbol =
AsMemberOfType
(containingType, symbol);
4401
method = (MethodSymbol)
AsMemberOfType
(containingType, method);
5099
var reinferredMethod = (MethodSymbol)
AsMemberOfType
(asMemberOfType, method);
6282
method = (MethodSymbol)
AsMemberOfType
(receiverType.Type, method);
7919
method = (MethodSymbol)
AsMemberOfType
(receiverType.Type, method);
9813
method = (MethodSymbol)
AsMemberOfType
(receiverType.Type, method);
10172
deconstructMethod = (MethodSymbol)
AsMemberOfType
(rightResult.Type, deconstructMethod);
10697
indexer = (PropertySymbol)
AsMemberOfType
(receiverType, indexer);
10764
member =
AsMemberOfType
(receiverType.Type, member);
11008
reinferredGetEnumeratorMethod = (MethodSymbol)
AsMemberOfType
(getEnumeratorType, enumeratorInfoOpt.GetEnumeratorInfo.Method);
11021
var currentPropertyGetter = (MethodSymbol)
AsMemberOfType
(enumeratorReturnType.Type, enumeratorInfoOpt.CurrentPropertyGetter);
11030
var moveNextAsyncMethod = (MethodSymbol)
AsMemberOfType
(reinferredGetEnumeratorMethod.ReturnType, enumeratorInfoOpt.MoveNextInfo.Method);
11046
var disposeAsyncMethod = (MethodSymbol)
AsMemberOfType
(reinferredGetEnumeratorMethod.ReturnType, originalDisposeMethod);
11261
method = (MethodSymbol)
AsMemberOfType
(operandType.Type!.StrippedType(), method);
11687
@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(),