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