27 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Invocation.cs (1)
2190TypeSymbol returnType = members[i].GetTypeOrReturnType().Type;
Binder\RefSafetyAnalysis.cs (1)
625: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod;
FlowAnalysis\DefiniteAssignment.cs (4)
1222else if (!_alreadyReported[slot] && !symbol.GetTypeOrReturnType().Type.IsErrorType()) 1692TypeSymbol structType = variable.Symbol.GetTypeOrReturnType().Type; 1728TypeSymbol type = id.Symbol.GetTypeOrReturnType().Type; 1764TypeSymbol type = id.Symbol.GetTypeOrReturnType().Type;
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
105var type = id.Symbol.GetTypeOrReturnType().Type;
FlowAnalysis\LocalDataFlowPass.cs (1)
126var variableType = symbol.GetTypeOrReturnType().Type;
FlowAnalysis\NullableWalker.cs (15)
839var type = memberToInitialize.GetTypeOrReturnType(); 2691TypeWithAnnotations fieldOrPropertyType = member.GetTypeOrReturnType(); 2739return _variables[slot].Symbol.GetTypeOrReturnType().Type; 2774var actualType = _variables[targetSlot].Symbol.GetTypeOrReturnType().Type; 2794InheritDefaultState(symbol.GetTypeOrReturnType().Type, slot); 2800=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 4257Debug.Assert(TypeSymbol.Equals(objectInitializer.Type, symbol.GetTypeOrReturnType().Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes)); 4274Action<int, TypeSymbol>? nestedCompletion = VisitObjectCreationInitializer(slot, symbol.GetTypeOrReturnType().Type, initializer, delayCompletionForType); 4307nestedCompletion?.Invoke(slot, symbol.GetTypeOrReturnType().Type); 4320Debug.Assert(symbol.GetTypeOrReturnType().HasType); 4322var type = ApplyLValueAnnotations(symbol.GetTypeOrReturnType(), GetObjectInitializerMemberLValueAnnotations(symbol)); 5548MarkDependentSlotsNotNull(childSlot, member.GetTypeOrReturnType().Type, ref state, depth - 1); 6659if (parameter.ContainingSymbol.GetTypeOrReturnType().Type.SpecialType != SpecialType.System_Boolean) 8577TrackNullableStateForAssignment(value, symbol!.GetTypeOrReturnType(), targetSlot, valueType, valueSlot); 10833var type = member.GetTypeOrReturnType();
FlowAnalysis\NullableWalker_Patterns.cs (2)
850BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).GetTypeOrReturnType(), 851BoundCall call => AsMemberOfType(inputType, call.Method).GetTypeOrReturnType(),
Symbols\MemberSignatureComparer.cs (1)
548hash = Hash.Combine(member.GetTypeOrReturnType().GetHashCode(), hash);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
124printableMembers.Any(static m => m.GetTypeOrReturnType().Type.IsErrorType()))