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