23 references to SymbolAsMember
Microsoft.CodeAnalysis.CSharp (23)
FlowAnalysis\NullableWalker.cs (2)
8192
return symbol.
SymbolAsMember
(containingType);
8254
result = symbolDef.
SymbolAsMember
(singleType);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
445
sym = sym.
SymbolAsMember
(builderType);
454
symbol = (TSymbol)symbol.
SymbolAsMember
(builderType);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (3)
379
.
SymbolAsMember
((NamedTypeSymbol)_promiseOfValueOrEndField.Type);
686
setResultMethod = (MethodSymbol)setResultMethod.
SymbolAsMember
((NamedTypeSymbol)_promiseOfValueOrEndField.Type);
692
setExceptionMethod = (MethodSymbol)setExceptionMethod.
SymbolAsMember
((NamedTypeSymbol)_promiseOfValueOrEndField.Type);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
83
lengthGet = (MethodSymbol?)_factory.WellKnownMember(WellKnownMember.System_Span_T__get_Length, isOptional: true)?.
SymbolAsMember
(spanType);
84
indexerGet = (MethodSymbol?)_factory.WellKnownMember(WellKnownMember.System_Span_T__get_Item, isOptional: true)?.
SymbolAsMember
(spanType);
89
lengthGet = (MethodSymbol?)_factory.WellKnownMember(WellKnownMember.System_ReadOnlySpan_T__get_Length, isOptional: true)?.
SymbolAsMember
(spanType);
90
indexerGet = (MethodSymbol?)_factory.WellKnownMember(WellKnownMember.System_ReadOnlySpan_T__get_Item, isOptional: true)?.
SymbolAsMember
(spanType);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
63
constructorCall = _factory.New((MethodSymbol)spanConstructor.
SymbolAsMember
(spanType), stackAllocNode, countTemp);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
570
return definition.
SymbolAsMember
((NamedTypeSymbol)targetTypeSymbol);
Symbols\OverriddenOrHiddenMembersResult.cs (1)
73
return overriddenByDefinitionMember.OriginalDefinition.
SymbolAsMember
(baseType);
Symbols\SubstitutedFieldSymbol.cs (1)
93
return underlying.
SymbolAsMember
(ContainingType);
Symbols\SubstitutedMethodSymbol.cs (1)
223
return ((object)underlying == null) ? null : underlying.
SymbolAsMember
(ContainingType);
Symbols\SubstitutedNamedTypeSymbol.cs (5)
26
private static readonly Func<Symbol, NamedTypeSymbol, Symbol> s_symbolAsMemberFunc = SymbolExtensions.
SymbolAsMember
;
255
builder.Add(t.
SymbolAsMember
(this));
305
builder.Add(t.
SymbolAsMember
(this));
346
builder.Add(t.
SymbolAsMember
(this));
401
builder.Add(t.
SymbolAsMember
(this));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
775
return symbol.
SymbolAsMember
((NamedTypeSymbol)_field.Type);
Symbols\TypeSymbol.cs (1)
1384
interfaceMember = interfaceMember.OriginalDefinition.
SymbolAsMember
(interfaceType);