35 references to SharedConstructor
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
400CodeAnalysis.MethodKind.SharedConstructor => nameof(CodeAnalysis.MethodKind.StaticConstructor),
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
72if ((curMethod.MethodKind != MethodKind.SharedConstructor ||
Microsoft.CodeAnalysis.VisualBasic (24)
Binding\Binder_Expressions.vb (2)
1878ElseIf containingMethodKind = MethodKind.SharedConstructor Then 1914Return MethodKind.SharedConstructor
Binding\Binder_Lambda.vb (1)
730Case MethodKind.SharedConstructor, MethodKind.Constructor
Binding\Binder_Utils.vb (1)
1646MethodKindSharedConstructor = CUInt(MethodKind.SharedConstructor) << MethodKindShift
CodeGen\EmitAddress.vb (1)
279Return Me._method.MethodKind = MethodKind.SharedConstructor
Compilation\MethodCompiler.vb (2)
691If method.MethodKind = MethodKind.SharedConstructor Then 1475If method.MethodKind = MethodKind.Constructor OrElse method.MethodKind = MethodKind.SharedConstructor Then
Emit\MethodSymbolAdapter.vb (1)
548Me.MethodKind = MethodKind.SharedConstructor
Emit\NamedTypeSymbolAdapter.vb (1)
481If handledEvent.hookupMethod.MethodKind = MethodKind.SharedConstructor Then
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
58Return MethodKind.SharedConstructor
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1209(closureKind = ClosureKind.Static AndAlso CurrentMethod.MethodKind <> MethodKind.SharedConstructor AndAlso Not referencedMethod.IsGenericMethod)
Lowering\LocalRewriter\LocalRewriter_Constant.vb (2)
46If currentMethod.MethodKind <> MethodKind.SharedConstructor OrElse 146(currentMethod.MethodKind <> MethodKind.SharedConstructor OrElse
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (3)
241MethodKind.SharedConstructor 288Case MethodKind.SharedConstructor, 373kind = MethodKind.SharedConstructor OrElse
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
396Return MethodKind.SharedConstructor
Symbols\Source\OverrideHidingHelper.vb (1)
497Case MethodKind.LambdaMethod, MethodKind.Constructor, MethodKind.SharedConstructor
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2778DirectCast(sym, MethodSymbol).MethodKind = MethodKind.SharedConstructor)
Symbols\Source\SourceMethodSymbol.vb (2)
1992MethodKind.SharedConstructor, 2287MethodKind.SharedConstructor,
Symbols\Symbol_Attributes.vb (1)
75MethodKind.SharedConstructor
Symbols\SymbolExtensions.vb (1)
263Return kind = MethodKind.Constructor OrElse kind = MethodKind.SharedConstructor
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
192Return If(m_isShared, MethodKind.SharedConstructor, MethodKind.Constructor)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
806Assert.Equal(MethodKind.SharedConstructor, cctor.MethodKind)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
643If method Is Nothing OrElse (method.MethodKind <> MethodKind.Constructor AndAlso method.MethodKind <> MethodKind.SharedConstructor) Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\Metadata\PE\LoadingMethods.vb (1)
772Assert.Equal(If(m.Name = ".cctor", MethodKind.SharedConstructor, MethodKind.Constructor), DirectCast(m, MethodSymbol).MethodKind)
SymbolsTests\Source\MethodTests.vb (2)
316Assert.Equal(MethodKind.SharedConstructor, m1.MethodKind) 336Assert.Equal(MethodKind.SharedConstructor, m2.MethodKind)
Microsoft.CodeAnalysis.Workspaces (3)
Editing\SyntaxGenerator.cs (2)
737case MethodKind.SharedConstructor: 834case MethodKind.SharedConstructor:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
400CodeAnalysis.MethodKind.SharedConstructor => nameof(CodeAnalysis.MethodKind.StaticConstructor),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (1)
191[InlineData(typeof(MethodKind), nameof(MethodKind.AnonymousFunction), nameof(MethodKind.LambdaMethod), nameof(MethodKind.SharedConstructor), nameof(MethodKind.StaticConstructor))]