19 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Conversions.cs (1)
3452
bool isAccessible = this.IsSymbolAccessibleConditional(memberSymbol.
GetTypeOrReturnType
().Type, containingType, ref useSiteInfo);
Binder\Binder_Invocation.cs (1)
2382
TypeSymbol returnType = members[i].
GetTypeOrReturnType
().Type;
Binder\RefSafetyAnalysis.cs (1)
777
: symbol.
GetTypeOrReturnType
().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod;
FlowAnalysis\DefiniteAssignment.cs (6)
1015
variableBySlot[slot].Symbol.
GetTypeOrReturnType
().TypeKind == TypeKind.Struct;
1184
else if (!_alreadyReported[slot] && !symbol.
GetTypeOrReturnType
().Type.IsErrorType())
1654
TypeSymbol structType = variable.Symbol.
GetTypeOrReturnType
().Type;
1690
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
1726
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
2583
if (!_alreadyReportedUnsafeAddressOf[unassignedSlot] && !symbol.
GetTypeOrReturnType
().Type.IsErrorType())
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
105
var type = id.Symbol.
GetTypeOrReturnType
().Type;
FlowAnalysis\LocalDataFlowPass.cs (1)
127
var variableType = symbol.
GetTypeOrReturnType
().Type;
FlowAnalysis\NullableWalker_Patterns.cs (2)
990
return property.
GetTypeOrReturnType
();
1015
return method.
GetTypeOrReturnType
();
FlowAnalysis\NullableWalker.cs (3)
2961
private static TypeSymbol GetTypeOrReturnType(Symbol symbol) => symbol.
GetTypeOrReturnType
().Type;
2966
var typeWithAnnotations = symbol.
GetTypeOrReturnType
();
7470
((containingSlotOpt > 0 ? _variables[containingSlotOpt].Symbol.
GetTypeOrReturnType
().Type : receiverTypeForMemberAccessOpt) ?? property.ContainingType)
Symbols\MemberSignatureComparer.cs (1)
531
hash = Hash.Combine(member.
GetTypeOrReturnType
().GetHashCode(), hash);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
330
var returnType = matchingMemberWithoutReturnTypeComparer.
GetTypeOrReturnType
();
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
124
printableMembers.Any(static m => m.
GetTypeOrReturnType
().Type.IsErrorType()))