27 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Invocation.cs (1)
2190
TypeSymbol returnType = members[i].
GetTypeOrReturnType
().Type;
Binder\RefSafetyAnalysis.cs (1)
625
: symbol.
GetTypeOrReturnType
().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod;
FlowAnalysis\DefiniteAssignment.cs (4)
1222
else if (!_alreadyReported[slot] && !symbol.
GetTypeOrReturnType
().Type.IsErrorType())
1692
TypeSymbol structType = variable.Symbol.
GetTypeOrReturnType
().Type;
1728
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
1764
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 (15)
839
var type = memberToInitialize.
GetTypeOrReturnType
();
2691
TypeWithAnnotations fieldOrPropertyType = member.
GetTypeOrReturnType
();
2739
return _variables[slot].Symbol.
GetTypeOrReturnType
().Type;
2774
var actualType = _variables[targetSlot].Symbol.
GetTypeOrReturnType
().Type;
2794
InheritDefaultState(symbol.
GetTypeOrReturnType
().Type, slot);
2800
=> ApplyUnconditionalAnnotations(symbol.
GetTypeOrReturnType
().ToTypeWithState(), GetRValueAnnotations(symbol)).State;
4257
Debug.Assert(TypeSymbol.Equals(objectInitializer.Type, symbol.
GetTypeOrReturnType
().Type, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes));
4274
Action<int, TypeSymbol>? nestedCompletion = VisitObjectCreationInitializer(slot, symbol.
GetTypeOrReturnType
().Type, initializer, delayCompletionForType);
4307
nestedCompletion?.Invoke(slot, symbol.
GetTypeOrReturnType
().Type);
4320
Debug.Assert(symbol.
GetTypeOrReturnType
().HasType);
4322
var type = ApplyLValueAnnotations(symbol.
GetTypeOrReturnType
(), GetObjectInitializerMemberLValueAnnotations(symbol));
5548
MarkDependentSlotsNotNull(childSlot, member.
GetTypeOrReturnType
().Type, ref state, depth - 1);
6659
if (parameter.ContainingSymbol.
GetTypeOrReturnType
().Type.SpecialType != SpecialType.System_Boolean)
8577
TrackNullableStateForAssignment(value, symbol!.
GetTypeOrReturnType
(), targetSlot, valueType, valueSlot);
10833
var type = member.
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()))