20 references to AsMemberOfType
Microsoft.CodeAnalysis.CSharp (20)
FlowAnalysis\NullableWalker.cs (16)
4006constructor = (MethodSymbol)AsMemberOfType(type, constructor); 4258symbol = AsMemberOfType(containingType, symbol); 4462method = (MethodSymbol)AsMemberOfType(containingType, method); 5160var reinferredMethod = (MethodSymbol)AsMemberOfType(asMemberOfType, method); 6343method = (MethodSymbol)AsMemberOfType(receiverType.Type, method); 7980method = (MethodSymbol)AsMemberOfType(receiverType.Type, method); 9874method = (MethodSymbol)AsMemberOfType(receiverType.Type, method); 10233deconstructMethod = (MethodSymbol)AsMemberOfType(rightResult.Type, deconstructMethod); 10758indexer = (PropertySymbol)AsMemberOfType(receiverType, indexer); 10825member = AsMemberOfType(receiverType.Type, member); 11069reinferredGetEnumeratorMethod = (MethodSymbol)AsMemberOfType(getEnumeratorType, enumeratorInfoOpt.GetEnumeratorInfo.Method); 11082var currentPropertyGetter = (MethodSymbol)AsMemberOfType(enumeratorReturnType.Type, enumeratorInfoOpt.CurrentPropertyGetter); 11091var moveNextAsyncMethod = (MethodSymbol)AsMemberOfType(reinferredGetEnumeratorMethod.ReturnType, enumeratorInfoOpt.MoveNextInfo.Method); 11107var disposeAsyncMethod = (MethodSymbol)AsMemberOfType(reinferredGetEnumeratorMethod.ReturnType, originalDisposeMethod); 11322method = (MethodSymbol)AsMemberOfType(operandType.Type!.StrippedType(), method); 11748@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(),