27 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Invocation.cs (1)
2190TypeSymbol returnType = members[i].GetTypeOrReturnType().Type;
Binder\RefSafetyAnalysis.cs (1)
600: 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)
838var type = memberToInitialize.GetTypeOrReturnType(); 2630TypeWithAnnotations fieldOrPropertyType = member.GetTypeOrReturnType(); 2678return _variables[slot].Symbol.GetTypeOrReturnType().Type; 2713var actualType = _variables[targetSlot].Symbol.GetTypeOrReturnType().Type; 2733InheritDefaultState(symbol.GetTypeOrReturnType().Type, slot); 2739=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 4196Debug.Assert(TypeSymbol.Equals(objectInitializer.Type, symbol.GetTypeOrReturnType().Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes)); 4213Action<int, TypeSymbol>? nestedCompletion = VisitObjectCreationInitializer(slot, symbol.GetTypeOrReturnType().Type, initializer, delayCompletionForType); 4246nestedCompletion?.Invoke(slot, symbol.GetTypeOrReturnType().Type); 4259Debug.Assert(symbol.GetTypeOrReturnType().HasType); 4261var type = ApplyLValueAnnotations(symbol.GetTypeOrReturnType(), GetObjectInitializerMemberLValueAnnotations(symbol)); 5487MarkDependentSlotsNotNull(childSlot, member.GetTypeOrReturnType().Type, ref state, depth - 1); 6598if (parameter.ContainingSymbol.GetTypeOrReturnType().Type.SpecialType != SpecialType.System_Boolean) 8516TrackNullableStateForAssignment(value, symbol!.GetTypeOrReturnType(), targetSlot, valueType, valueSlot); 10772var 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()))