35 references to SharedConstructor
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
400
CodeAnalysis.MethodKind.
SharedConstructor
=> nameof(CodeAnalysis.MethodKind.StaticConstructor),
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
72
if ((curMethod.MethodKind != MethodKind.
SharedConstructor
||
Microsoft.CodeAnalysis.VisualBasic (24)
Binding\Binder_Expressions.vb (2)
1878
ElseIf containingMethodKind = MethodKind.
SharedConstructor
Then
1914
Return MethodKind.
SharedConstructor
Binding\Binder_Lambda.vb (1)
730
Case MethodKind.
SharedConstructor
, MethodKind.Constructor
Binding\Binder_Utils.vb (1)
1646
MethodKindSharedConstructor = CUInt(MethodKind.
SharedConstructor
) << MethodKindShift
CodeGen\EmitAddress.vb (1)
279
Return Me._method.MethodKind = MethodKind.
SharedConstructor
Compilation\MethodCompiler.vb (2)
691
If method.MethodKind = MethodKind.
SharedConstructor
Then
1475
If method.MethodKind = MethodKind.Constructor OrElse method.MethodKind = MethodKind.
SharedConstructor
Then
Emit\MethodSymbolAdapter.vb (1)
548
Me.MethodKind = MethodKind.
SharedConstructor
Emit\NamedTypeSymbolAdapter.vb (1)
481
If handledEvent.hookupMethod.MethodKind = MethodKind.
SharedConstructor
Then
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
58
Return 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)
46
If currentMethod.MethodKind <> MethodKind.
SharedConstructor
OrElse
146
(currentMethod.MethodKind <> MethodKind.
SharedConstructor
OrElse
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (3)
241
MethodKind.
SharedConstructor
288
Case MethodKind.
SharedConstructor
,
373
kind = MethodKind.
SharedConstructor
OrElse
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
383
Return MethodKind.
SharedConstructor
Symbols\Source\OverrideHidingHelper.vb (1)
497
Case MethodKind.LambdaMethod, MethodKind.Constructor, MethodKind.
SharedConstructor
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2758
DirectCast(sym, MethodSymbol).MethodKind = MethodKind.
SharedConstructor
)
Symbols\Source\SourceMethodSymbol.vb (2)
1959
MethodKind.
SharedConstructor
,
2254
MethodKind.
SharedConstructor
,
Symbols\Symbol_Attributes.vb (1)
75
MethodKind.
SharedConstructor
Symbols\SymbolExtensions.vb (1)
263
Return kind = MethodKind.Constructor OrElse kind = MethodKind.
SharedConstructor
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
192
Return If(m_isShared, MethodKind.
SharedConstructor
, MethodKind.Constructor)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
806
Assert.Equal(MethodKind.
SharedConstructor
, cctor.MethodKind)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
643
If 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)
772
Assert.Equal(If(m.Name = ".cctor", MethodKind.
SharedConstructor
, MethodKind.Constructor), DirectCast(m, MethodSymbol).MethodKind)
SymbolsTests\Source\MethodTests.vb (2)
316
Assert.Equal(MethodKind.
SharedConstructor
, m1.MethodKind)
336
Assert.Equal(MethodKind.
SharedConstructor
, m2.MethodKind)
Microsoft.CodeAnalysis.Workspaces (3)
Editing\SyntaxGenerator.cs (2)
738
case MethodKind.
SharedConstructor
:
835
case MethodKind.
SharedConstructor
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
400
CodeAnalysis.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))]