1 instantiation of SourceOrdinaryMethodSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
67return new SourceOrdinaryMethodSymbol(containingType, explicitInterfaceType, name, location, syntax, methodKind, isNullableAnalysisEnabled, diagnostics);
98 references to SourceOrdinaryMethodSymbol
Microsoft.CodeAnalysis.CSharp (66)
Binder\Binder_Conversions.cs (2)
1464var sourceMethod = selectedMethod as SourceOrdinaryMethodSymbol;
Symbols\MemberSymbolExtensions.cs (4)
556var sms = member as SourceOrdinaryMethodSymbol; 562var sms = member as SourceOrdinaryMethodSymbol;
Symbols\Source\SourceComplexParameterSymbol.cs (9)
416var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 422var definition = sourceMethod.SourcePartialDefinition; 462var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 468var impl = sourceMethod.SourcePartialImplementation; 500var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 509SourceOrdinaryMethodSymbol otherPart = sourceMethod.OtherPartOfPartial;
Symbols\Source\SourceMemberContainerSymbol.cs (16)
2033case (SourceOrdinaryMethodSymbol { IsPartialDefinition: true }, SourceOrdinaryMethodSymbol { IsPartialImplementation: true }): 2034case (SourceOrdinaryMethodSymbol { IsPartialImplementation: true }, SourceOrdinaryMethodSymbol { IsPartialDefinition: true }): 3474var prevPart = (SourceOrdinaryMethodSymbol)prev; 3475var methodPart = (SourceOrdinaryMethodSymbol)method; 3506foreach (SourceOrdinaryMethodSymbol method in methodsBySignature.Values) 3531private static ImmutableArray<Symbol> FixPartialMember(ImmutableArray<Symbol> symbols, SourceOrdinaryMethodSymbol part1, SourceOrdinaryMethodSymbol part2) 3533SourceOrdinaryMethodSymbol definition; 3534SourceOrdinaryMethodSymbol implementation; 3546SourceOrdinaryMethodSymbol.InitializePartialMethodParts(definition, implementation); 4702var method = SourceOrdinaryMethodSymbol.CreateMethodSymbol(this, bodyBinder, methodSyntax, compilation.IsNullableAnalysisEnabledIn(methodSyntax), diagnostics);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
666/// Overridden by <see cref="SourceOrdinaryMethodSymbol"/>,
Symbols\Source\SourceOrdinaryMethodSymbol.cs (16)
47private SourceOrdinaryMethodSymbol _otherPartOfPartial; 49public static SourceOrdinaryMethodSymbol CreateMethodSymbol( 199static void forceMethodTypeParameters(TypeWithAnnotations type, SourceOrdinaryMethodSymbol method, ImmutableArray<TypeParameterConstraintClause> declaredConstraints) 377internal static void InitializePartialMethodParts(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) 391internal SourceOrdinaryMethodSymbol OtherPartOfPartial 433internal SourceOrdinaryMethodSymbol SourcePartialDefinition 445internal SourceOrdinaryMethodSymbol SourcePartialImplementation 606var implementingPart = this.SourcePartialImplementation; 639var implementingPart = this.SourcePartialImplementation; 651private static void PartialMethodChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) 755static bool hasDifferencesInParameterOrTypeParameterName(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) 762private static void PartialMethodConstraintsChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
20/// Unlike <see cref="SourceOrdinaryMethodSymbol"/>, this type doesn't depend
Symbols\Source\SourceTypeParameterSymbol.cs (15)
127var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 130var implementingPart = sourceMethod.SourcePartialImplementation; 182var sourceMethod = this.ContainingSymbol as SourceOrdinaryMethodSymbol; 285case SourceOrdinaryMethodSymbol _: 735private readonly SourceOrdinaryMethodSymbol _overridingMethod; 743protected OverriddenMethodTypeParameterMapBase(SourceOrdinaryMethodSymbol overridingMethod) 748public SourceOrdinaryMethodSymbol OverridingMethod 794protected abstract MethodSymbol GetOverriddenMethod(SourceOrdinaryMethodSymbol overridingMethod); 799public OverriddenMethodTypeParameterMap(SourceOrdinaryMethodSymbol overridingMethod) 805protected override MethodSymbol GetOverriddenMethod(SourceOrdinaryMethodSymbol overridingMethod) 820public ExplicitInterfaceMethodTypeParameterMap(SourceOrdinaryMethodSymbol implementationMethod) 826protected override MethodSymbol GetOverriddenMethod(SourceOrdinaryMethodSymbol overridingMethod) 853public SourceOrdinaryMethodSymbol Owner
Symbols\TypeWithAnnotations.cs (2)
315var declaringMethod = (DefaultType as TypeParameterSymbol)?.DeclaringMethod as SourceOrdinaryMethodSymbol;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenDeconstructTests.cs (2)
259var firstDeconstructMethod = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C").GetMembers(WellKnownMemberNames.DeconstructMethodName) 260.OfType<SourceOrdinaryMethodSymbol>().Where(m => m.ParameterCount == 2).Single();
Emit\EditAndContinue\SymbolMatcherTests.cs (6)
1588var member = compilation1.GetMember<SourceOrdinaryMethodSymbol>("R.ToString"); 1620var member1 = compilation1.GetMember<SourceOrdinaryMethodSymbol>("R.PrintMembers"); 1651var member0 = compilation0.GetMember<SourceOrdinaryMethodSymbol>("R.PrintMembers");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Attributes\AttributeTests_WellKnownAttributes.cs (7)
1364Action<SourceOrdinaryMethodSymbol> partialValidator = (SourceOrdinaryMethodSymbol sourceMethod) => 1381var sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo"); 1384sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo2"); 1387sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo3"); 1390sourceMethod = typeC.GetMember<SourceOrdinaryMethodSymbol>("Goo4");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\ExpressionBodiedMemberTests.cs (8)
46var gooDef = model.GetDeclaredSymbol(node).GetSymbol<SourceOrdinaryMethodSymbol>(); 53var gooImpl = gooDef.PartialImplementationPart 54as SourceOrdinaryMethodSymbol; 233var method = program.GetMember<SourceOrdinaryMethodSymbol>("M"); 262var m = semanticInfo.Symbol.ContainingSymbol.GetSymbol<SourceOrdinaryMethodSymbol>();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
4131Assert.IsType<SourceOrdinaryMethodSymbol>(info.Symbol.GetSymbol());
DocumentationComments\CrefTests.cs (3)
1811.GetMember<SourceOrdinaryMethodSymbol>("M"), 1841var expectedSymbol = compilation.GlobalNamespace 1844.GetMember<SourceOrdinaryMethodSymbol>("M");
Symbols\GenericConstraintTests.cs (1)
3414var constraintType = ((SourceOrdinaryMethodSymbol)m).TypeParameters[0].ConstraintTypesNoUseSiteDiagnostics[0].Type;
Symbols\Source\ExpressionBodiedMethodTests.cs (4)
36var gooDef = m.GlobalNamespace 38.GetMember<SourceOrdinaryMethodSymbol>("goo"); 44var gooImpl = gooDef.PartialImplementationPart 45as SourceOrdinaryMethodSymbol;