36 references to StaticConstructorName
Microsoft.CodeAnalysis (2)
Emit\CommonPEModuleBuilder.cs (1)
780if (details.GetMethod(WellKnownMemberNames.StaticConstructorName) == null)
PEWriter\RootModuleStaticConstructor.cs (1)
31public string Name => WellKnownMemberNames.StaticConstructorName;
Microsoft.CodeAnalysis.CSharp (9)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
464return (baseMethodDeclarationSyntax.Modifiers.Any(SyntaxKind.StaticKeyword) ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName);
Compilation\SyntaxTreeSemanticModel.cs (1)
1673return WellKnownMemberNames.StaticConstructorName;
Declarations\DeclarationTreeBuilder.cs (1)
1185? WellKnownMemberNames.StaticConstructorName
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
526foreach (var member in AdaptedNamedTypeSymbol.GetMembers(WellKnownMemberNames.StaticConstructorName))
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
19: base(privateImplementationType, voidType, WellKnownMemberNames.StaticConstructorName)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1185_name.Equals(this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName) &&
Symbols\NamedTypeSymbol.cs (1)
265? GetMembers(WellKnownMemberNames.StaticConstructorName)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
154get { return this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName; }
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
42return WellKnownMemberNames.StaticConstructorName;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Emit\EmitMetadataTests.cs (3)
622Assert.Equal(WellKnownMemberNames.StaticConstructorName, cctor.Name); 636Assert.Equal("N.C." + WellKnownMemberNames.StaticConstructorName + "()", cctor.ToTestDisplayString()); 2132Assert.Equal(0, classC.GetMembers(WellKnownMemberNames.StaticConstructorName).Length); //since we don't import private members
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SynthesizedStaticConstructorTests.cs (1)
297foreach (var member in typeSymbol.GetMembers(WellKnownMemberNames.StaticConstructorName))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
DocumentationComments\ConstructorDocumentationCommentTests.cs (1)
48var staticConstructorSymbol = _widgetClass.GetMembers(WellKnownMemberNames.StaticConstructorName).Single();
DocumentationComments\IncludeTests.cs (2)
19[InlineData(WellKnownMemberNames.StaticConstructorName, "M:Acme.Widget.#cctor")] 82[InlineData(WellKnownMemberNames.StaticConstructorName, "M:Acme.Widget.#cctor")]
Symbols\Metadata\MetadataMemberTests.cs (1)
399Assert.Equal(1, classC.GetMembers(WellKnownMemberNames.StaticConstructorName).Length);
Symbols\Source\MethodTests.cs (3)
76ct.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName, 1902var staticConstructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.StaticConstructorName); 1926var staticConstructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.StaticConstructorName);
Microsoft.CodeAnalysis.VisualBasic (9)
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
25MyBase.New(containingModule, WellKnownMemberNames.StaticConstructorName, privateImplementationType)
Lowering\LocalRewriter\LocalRewriter.vb (1)
645If memberName.Equals(WellKnownMemberNames.InstanceConstructorName) OrElse memberName.Equals(WellKnownMemberNames.StaticConstructorName) Then
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
391String.Equals(name, If(IsShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.InstanceConstructorName), StringComparison.Ordinal) AndAlso
Symbols\NamedTypeSymbol.vb (1)
410Dim sharedCandidates As ImmutableArray(Of Symbol) = If(includeShared, GetMembers(WellKnownMemberNames.StaticConstructorName), ImmutableArray(Of Symbol).Empty)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
2771Dim constructorName = If(isShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.InstanceConstructorName) 3199If Not MemberAndInitializerLookup.Members.TryGetValue(WellKnownMemberNames.StaticConstructorName, symbols) Then
Symbols\Source\SourceMethodSymbol.vb (2)
391name = WellKnownMemberNames.StaticConstructorName 1037Return If(isShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.InstanceConstructorName)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
61Return If(m_isShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.InstanceConstructorName)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EmitMetadata.vb (2)
805Assert.Equal(WellKnownMemberNames.StaticConstructorName, cctor.Name) 820Assert.Equal("Sub N.C." + WellKnownMemberNames.StaticConstructorName + "()", cctor.ToTestDisplayString())
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\EENamedTypeSymbol.vb (1)
173Debug.Assert(name = WellKnownMemberNames.InstanceConstructorName OrElse name = WellKnownMemberNames.StaticConstructorName)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\FieldInitializerBindingTests.vb (1)
1502For Each member In typeSymbol.GetMembers(WellKnownMemberNames.StaticConstructorName)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
DocumentationComments\IncludeTests.vb (1)
12<InlineData(WellKnownMemberNames.StaticConstructorName, "M:Acme.Widget.#cctor")>