14 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Invocation.cs (1)
2245
TypeSymbol returnType = members[i].
GetTypeOrReturnType
().Type;
Binder\RefSafetyAnalysis.cs (1)
625
: symbol.
GetTypeOrReturnType
().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod;
FlowAnalysis\DefiniteAssignment.cs (4)
1237
else if (!_alreadyReported[slot] && !symbol.
GetTypeOrReturnType
().Type.IsErrorType())
1707
TypeSymbol structType = variable.Symbol.
GetTypeOrReturnType
().Type;
1743
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
1779
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
105
var type = id.Symbol.
GetTypeOrReturnType
().Type;
FlowAnalysis\LocalDataFlowPass.cs (1)
126
var variableType = symbol.
GetTypeOrReturnType
().Type;
FlowAnalysis\NullableWalker.cs (2)
2840
private static TypeSymbol GetTypeOrReturnType(Symbol symbol) => symbol.
GetTypeOrReturnType
().Type;
2845
var typeWithAnnotations = symbol.
GetTypeOrReturnType
();
FlowAnalysis\NullableWalker_Patterns.cs (2)
850
BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).
GetTypeOrReturnType
(),
851
BoundCall call => AsMemberOfType(inputType, call.Method).
GetTypeOrReturnType
(),
Symbols\MemberSignatureComparer.cs (1)
548
hash = Hash.Combine(member.
GetTypeOrReturnType
().GetHashCode(), hash);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
124
printableMembers.Any(static m => m.
GetTypeOrReturnType
().Type.IsErrorType()))