2 types derived from SourceOrdinaryMethodSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
910private sealed class SourceOrdinaryMethodSymbolSimple : SourceOrdinaryMethodSymbol 961private sealed class SourceOrdinaryMethodSymbolComplex : SourceOrdinaryMethodSymbol
66 references to SourceOrdinaryMethodSymbol
Microsoft.CodeAnalysis.CSharp (66)
Binder\Binder_Conversions.cs (2)
3017var sourceMethod = selectedMethod.OriginalDefinition as SourceOrdinaryMethodSymbol;
Symbols\MemberSymbolExtensions.cs (3)
552is SourceOrdinaryMethodSymbol { IsPartial: true } 561is SourceOrdinaryMethodSymbol { IsPartialImplementation: true } 570is SourceOrdinaryMethodSymbol { IsPartialDefinition: true }
Symbols\Source\SourceComplexParameterSymbol.cs (3)
423var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 429var definition = sourceMethod.SourcePartialDefinition;
Symbols\Source\SourceMemberContainerSymbol.cs (18)
2132case (SourceOrdinaryMethodSymbol { IsPartialDefinition: true }, SourceOrdinaryMethodSymbol { IsPartialImplementation: true }): 2133case (SourceOrdinaryMethodSymbol { IsPartialImplementation: true }, SourceOrdinaryMethodSymbol { IsPartialDefinition: true }): 3639case (SourceOrdinaryMethodSymbol currentMethod, SourceOrdinaryMethodSymbol prevMethod): 3653Debug.Assert(symbol is SourceOrdinaryMethodSymbol or SourcePropertySymbol or SourcePropertyAccessorSymbol); 3654Debug.Assert(prev is SourceOrdinaryMethodSymbol or SourcePropertySymbol or SourcePropertyAccessorSymbol); 3663case SourceOrdinaryMethodSymbol method: 3696void mergePartialMethods(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourceOrdinaryMethodSymbol currentMethod, SourceOrdinaryMethodSymbol prevMethod, BindingDiagnosticBag diagnostics) 3779private static ImmutableArray<Symbol> FixPartialMethod(ImmutableArray<Symbol> symbols, SourceOrdinaryMethodSymbol part1, SourceOrdinaryMethodSymbol part2) 3781SourceOrdinaryMethodSymbol definition; 3782SourceOrdinaryMethodSymbol implementation; 3794SourceOrdinaryMethodSymbol.InitializePartialMethodParts(definition, implementation); 4985var method = SourceOrdinaryMethodSymbol.CreateMethodSymbol(this, bodyBinder, methodSyntax, compilation.IsNullableAnalysisEnabledIn(methodSyntax), diagnostics);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
773/// Overridden by <see cref="SourceOrdinaryMethodSymbol"/>,
Symbols\Source\SourceOrdinaryMethodSymbol.cs (18)
22public static SourceOrdinaryMethodSymbol CreateMethodSymbol( 187static void forceMethodTypeParameters(TypeWithAnnotations type, SourceOrdinaryMethodSymbol method, ImmutableArray<TypeParameterConstraintClause> declaredConstraints) 289internal static void InitializePartialMethodParts(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) 303internal abstract SourceOrdinaryMethodSymbol OtherPartOfPartial { get; } 338internal SourceOrdinaryMethodSymbol SourcePartialDefinition 346internal SourceOrdinaryMethodSymbol SourcePartialImplementation 432var implementingPart = this.SourcePartialImplementation; 458var implementingPart = this.SourcePartialImplementation; 474private static void PartialMethodChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) 578static bool hasDifferencesInParameterOrTypeParameterName(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) 585private static void PartialMethodConstraintsChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) 929internal sealed override SourceOrdinaryMethodSymbol OtherPartOfPartial 972private SourceOrdinaryMethodSymbol _otherPartOfPartial; 996internal sealed override SourceOrdinaryMethodSymbol OtherPartOfPartial => _otherPartOfPartial;
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
20/// Unlike <see cref="SourceOrdinaryMethodSymbol"/>, this type doesn't depend
Symbols\Source\SourcePropertySymbol.cs (3)
679/// This method is analogous to <see cref="SourceOrdinaryMethodSymbol.PartialMethodChecks(SourceOrdinaryMethodSymbol, SourceOrdinaryMethodSymbol, BindingDiagnosticBag)" />.
Symbols\Source\SourceTypeParameterSymbol.cs (15)
128var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 131var implementingPart = sourceMethod.SourcePartialImplementation; 183var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 289case SourceOrdinaryMethodSymbol _: 758private readonly SourceOrdinaryMethodSymbol _overridingMethod; 766protected OverriddenMethodTypeParameterMapBase(SourceOrdinaryMethodSymbol overridingMethod) 771public SourceOrdinaryMethodSymbol OverridingMethod 817protected abstract MethodSymbol GetOverriddenMethod(SourceOrdinaryMethodSymbol overridingMethod); 822public OverriddenMethodTypeParameterMap(SourceOrdinaryMethodSymbol overridingMethod) 828protected override MethodSymbol GetOverriddenMethod(SourceOrdinaryMethodSymbol overridingMethod) 843public ExplicitInterfaceMethodTypeParameterMap(SourceOrdinaryMethodSymbol implementationMethod) 849protected override MethodSymbol GetOverriddenMethod(SourceOrdinaryMethodSymbol overridingMethod) 876public SourceOrdinaryMethodSymbol Owner
Symbols\TypeWithAnnotations.cs (2)
326var declaringMethod = (DefaultType as TypeParameterSymbol)?.DeclaringMethod as SourceOrdinaryMethodSymbol;