24 references to GetTypeOrReturnType
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Conversions.cs (1)
2743
bool isAccessible = this.IsSymbolAccessibleConditional(memberSymbol.
GetTypeOrReturnType
().Type, containingType, ref useSiteInfo);
Binder\Binder_Invocation.cs (1)
2348
TypeSymbol returnType = members[i].
GetTypeOrReturnType
().Type;
Binder\RefSafetyAnalysis.cs (1)
688
: symbol.
GetTypeOrReturnType
().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod;
FlowAnalysis\DefiniteAssignment.cs (5)
1005
variableBySlot[slot].Symbol.
GetTypeOrReturnType
().TypeKind == TypeKind.Struct;
1174
else if (!_alreadyReported[slot] && !symbol.
GetTypeOrReturnType
().Type.IsErrorType())
1644
TypeSymbol structType = variable.Symbol.
GetTypeOrReturnType
().Type;
1680
TypeSymbol type = id.Symbol.
GetTypeOrReturnType
().Type;
1716
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)
2879
private static TypeSymbol GetTypeOrReturnType(Symbol symbol) => symbol.
GetTypeOrReturnType
().Type;
2884
var typeWithAnnotations = symbol.
GetTypeOrReturnType
();
FlowAnalysis\NullableWalker_Patterns.cs (2)
852
BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).
GetTypeOrReturnType
(),
853
BoundCall call => AsMemberOfType(inputType, call.Method).
GetTypeOrReturnType
(),
Symbols\MemberSignatureComparer.cs (1)
531
hash = Hash.Combine(member.
GetTypeOrReturnType
().GetHashCode(), hash);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
326
var returnType = matchingMemberWithoutReturnTypeComparer.
GetTypeOrReturnType
();
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
124
printableMembers.Any(static m => m.
GetTypeOrReturnType
().Type.IsErrorType()))
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\EditAndContinueTests.cs (4)
19748
Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.
GetTypeOrReturnType
().SpecialType == SpecialType.System_String)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")),
19749
Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.
GetTypeOrReturnType
().SpecialType == SpecialType.System_Int32)?.ISymbol),
19843
Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.
GetTypeOrReturnType
().SpecialType == SpecialType.System_Int32)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")),
19844
Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.
GetTypeOrReturnType
().SpecialType == SpecialType.System_String)?.ISymbol),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
4980
var valueTupleS = comp.GetTypeByMetadataName("ValueTupleS").GetMember("M").
GetTypeOrReturnType
().Type;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (1)
572
var propertyOrEventType = propertyOrEvent.
GetTypeOrReturnType
().Type;
TestAttributesVisitor.cs (1)
140
var type = (symbol as TypeSymbol) ?? symbol.
GetTypeOrReturnType
().Type;