20 references to AsMemberOfType
Microsoft.CodeAnalysis.CSharp (20)
FlowAnalysis\NullableWalker.cs (16)
3945constructor = (MethodSymbol)AsMemberOfType(type, constructor); 4197symbol = AsMemberOfType(containingType, symbol); 4401method = (MethodSymbol)AsMemberOfType(containingType, method); 5099var reinferredMethod = (MethodSymbol)AsMemberOfType(asMemberOfType, method); 6282method = (MethodSymbol)AsMemberOfType(receiverType.Type, method); 7919method = (MethodSymbol)AsMemberOfType(receiverType.Type, method); 9813method = (MethodSymbol)AsMemberOfType(receiverType.Type, method); 10172deconstructMethod = (MethodSymbol)AsMemberOfType(rightResult.Type, deconstructMethod); 10697indexer = (PropertySymbol)AsMemberOfType(receiverType, indexer); 10764member = AsMemberOfType(receiverType.Type, member); 11008reinferredGetEnumeratorMethod = (MethodSymbol)AsMemberOfType(getEnumeratorType, enumeratorInfoOpt.GetEnumeratorInfo.Method); 11021var currentPropertyGetter = (MethodSymbol)AsMemberOfType(enumeratorReturnType.Type, enumeratorInfoOpt.CurrentPropertyGetter); 11030var moveNextAsyncMethod = (MethodSymbol)AsMemberOfType(reinferredGetEnumeratorMethod.ReturnType, enumeratorInfoOpt.MoveNextInfo.Method); 11046var disposeAsyncMethod = (MethodSymbol)AsMemberOfType(reinferredGetEnumeratorMethod.ReturnType, originalDisposeMethod); 11261method = (MethodSymbol)AsMemberOfType(operandType.Type!.StrippedType(), method); 11687@event = (EventSymbol)AsMemberOfType(ResultType.Type, @event);
FlowAnalysis\NullableWalker_Patterns.cs (4)
488var field = (FieldSymbol)AsMemberOfType(inputType, e.Field); 534var property = (PropertySymbol)AsMemberOfType(inputType, e.Property); 850BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).GetTypeOrReturnType(), 851BoundCall call => AsMemberOfType(inputType, call.Method).GetTypeOrReturnType(),