18 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Conversions.cs (1)
3460
bool isAccessible = this.IsSymbolAccessibleConditional(memberSymbol.
GetTypeOrReturnType
().Type, containingType, ref useSiteInfo);
Binder\Binder_Invocation.cs (1)
2345
TypeSymbol returnType = members[i].
GetTypeOrReturnType
().Type;
Binder\RefSafetyAnalysis.cs (1)
708
: symbol.
GetTypeOrReturnType
().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod;
FlowAnalysis\DefiniteAssignment.cs (5)
1006
variableBySlot[slot].Symbol.
GetTypeOrReturnType
().TypeKind == TypeKind.Struct;
1175
else if (!_alreadyReported[slot] && !symbol.
GetTypeOrReturnType
().Type.IsErrorType())
1645
TypeSymbol structType = variable.Symbol.
GetTypeOrReturnType
().Type;
1681
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
1717
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 (3)
2069
_variables[containingSlot].Symbol.
GetTypeOrReturnType
().Type is NamedTypeSymbol { IsUnionType: true, UnionCaseTypes: not [] } unionType &&
2917
private static TypeSymbol GetTypeOrReturnType(Symbol symbol) => symbol.
GetTypeOrReturnType
().Type;
2922
var typeWithAnnotations = symbol.
GetTypeOrReturnType
();
FlowAnalysis\NullableWalker_Patterns.cs (2)
952
BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).
GetTypeOrReturnType
(),
953
BoundCall call => AsMemberOfType(inputType, call.Method).
GetTypeOrReturnType
(),
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()))