98 references to InstanceConstructorName
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
602
if (member != WellKnownMemberNames.
InstanceConstructorName
&& member != WellKnownMemberNames.EnumBackingFieldName)
Microsoft.CodeAnalysis (2)
MetadataReader\PEModule.cs (2)
3062
if (!metadataReader.StringComparer.Equals(ctorName, WellKnownMemberNames.
InstanceConstructorName
))
3074
if (!metadataReader.StringComparer.Equals(methodDef.Name, WellKnownMemberNames.
InstanceConstructorName
))
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Crefs.cs (2)
166
memberName = memberNameText = WellKnownMemberNames.
InstanceConstructorName
;
829
Debug.Assert(candidate.GetMemberArity() != 0 || candidate.Name == WellKnownMemberNames.
InstanceConstructorName
|| arity == 0,
Binder\Binder_Expressions.cs (2)
4889
WellKnownMemberNames.
InstanceConstructorName
,
5043
name: WellKnownMemberNames.
InstanceConstructorName
,
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
464
return (baseMethodDeclarationSyntax.Modifiers.Any(SyntaxKind.StaticKeyword) ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.
InstanceConstructorName
);
BoundTree\BoundExpressionExtensions.cs (1)
196
var ctor = expr.Type.GetMembers(WellKnownMemberNames.
InstanceConstructorName
).FirstOrDefault();
CodeGen\EmitConversion.cs (1)
379
foreach (var possibleCtor in delegateType.GetMembers(WellKnownMemberNames.
InstanceConstructorName
))
Compilation\SyntaxTreeSemanticModel.cs (1)
1677
return WellKnownMemberNames.
InstanceConstructorName
;
Declarations\DeclarationTreeBuilder.cs (2)
981
memberNamesBuilder.Add(WellKnownMemberNames.
InstanceConstructorName
);
1186
: WellKnownMemberNames.
InstanceConstructorName
);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
23
: base(container, WellKnownMemberNames.
InstanceConstructorName
)
Symbols\Attributes\PEAttributeData.cs (1)
196
return new CSDiagnosticInfo(ErrorCode.ERR_MissingPredefinedMember, attributeClass, WellKnownMemberNames.
InstanceConstructorName
);
Symbols\Attributes\RetargetingAttributeData.cs (1)
69
return new CSDiagnosticInfo(ErrorCode.ERR_MissingPredefinedMember, AttributeClass, WellKnownMemberNames.
InstanceConstructorName
);
Symbols\ErrorMethodSymbol.cs (1)
205
case WellKnownMemberNames.
InstanceConstructorName
:
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1185
_name.Equals(this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.
InstanceConstructorName
) &&
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
845
names.Add(WellKnownMemberNames.
InstanceConstructorName
);
Symbols\NamedTypeSymbol.cs (1)
262
? GetMembers(WellKnownMemberNames.
InstanceConstructorName
)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
154
get { return this.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.
InstanceConstructorName
; }
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
226
get { return WellKnownMemberNames.
InstanceConstructorName
; }
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4346
WellKnownMemberNames.
InstanceConstructorName
,
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
143
public override ImmutableArray<Symbol> GetMembers(string name) => name == WellKnownMemberNames.
InstanceConstructorName
? Constructors.CastArray<Symbol>() : ImmutableArray<Symbol>.Empty;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
59
WellKnownMemberNames.
InstanceConstructorName
=> [Constructor],
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
70
get { return WellKnownMemberNames.
InstanceConstructorName
; }
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenExplicitImplementationTests.cs (2)
1003
AssertEx.All(classCMembers.Select(m => m.Name), name => name == WellKnownMemberNames.
InstanceConstructorName
|| name.StartsWith("Q::I.", StringComparison.Ordinal));
1004
AssertEx.All(classCMembers.Select(m => m.MetadataName), metadataName => metadataName == WellKnownMemberNames.
InstanceConstructorName
|| metadataName.StartsWith("Q::I.", StringComparison.Ordinal));
CodeGen\WinMdDelegateTests.cs (2)
63
WellKnownMemberNames.
InstanceConstructorName
,
68
WellKnownMemberNames.
InstanceConstructorName
,
Emit\EmitMetadataTests.cs (3)
601
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, ctor.Name);
615
Assert.Equal("N.C." + WellKnownMemberNames.
InstanceConstructorName
+ "()", ctor.ToTestDisplayString());
2131
Assert.Equal(0, classC.GetMembers(WellKnownMemberNames.
InstanceConstructorName
).Length); //since C is static
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_Synthesized.cs (5)
698
var ctor = record.GetMembers(WellKnownMemberNames.
InstanceConstructorName
);
762
var ctor = record.GetMember(WellKnownMemberNames.
InstanceConstructorName
);
840
var ctor = record.GetMembers(WellKnownMemberNames.
InstanceConstructorName
);
881
var ctor = record.GetMembers(WellKnownMemberNames.
InstanceConstructorName
);
945
var ctor = record.GetMember(WellKnownMemberNames.
InstanceConstructorName
);
FlowAnalysis\StructTests.cs (1)
74
var constructors = structType.GetMembers(WellKnownMemberNames.
InstanceConstructorName
);
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
322
ConstructorDeclarationSyntax constructor => namedType.GetMembers(WellKnownMemberNames.
InstanceConstructorName
).OfType<IMethodSymbol>().ToImmutableArray(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ArglistTests.cs (4)
1182
var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.
InstanceConstructorName
);
1200
var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.
InstanceConstructorName
);
1218
var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.
InstanceConstructorName
);
1236
var constructor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetMember<MethodSymbol>(WellKnownMemberNames.
InstanceConstructorName
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Symbols\Metadata\MetadataMemberTests.cs (2)
162
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, ctor.Name);
174
Assert.Equal("System.StringComparer." + WellKnownMemberNames.
InstanceConstructorName
+ "()", ctor.ToTestDisplayString());
Symbols\Source\MethodTests.cs (15)
76
ct.IsStatic ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.
InstanceConstructorName
,
118
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m.Name);
599
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
667
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
792
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
859
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
981
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
983
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
985
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
1090
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
1092
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
1094
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
1181
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
1218
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m0.Name);
1275
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, m1.Name);
Symbols\Source\PropertyTests.cs (2)
2790
WellKnownMemberNames.
InstanceConstructorName
);
2798
WellKnownMemberNames.
InstanceConstructorName
);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2311
var method = type.GetMembers(WellKnownMemberNames.
InstanceConstructorName
).Single();
Microsoft.CodeAnalysis.VisualBasic (21)
Binding\Binder_Lookup.vb (1)
1966
nameSet.AddSymbol(Nothing, WellKnownMemberNames.
InstanceConstructorName
, 0)
CodeGen\EmitExpression.vb (1)
489
Dim ctor = DirectCast(delegateType.GetMembers(WellKnownMemberNames.
InstanceConstructorName
).Single(), MethodSymbol)
Compilation\SemanticModel.vb (1)
1954
If name = WellKnownMemberNames.
InstanceConstructorName
Then ' intentionally case sensitive; constructors always exactly ".ctor".
Lowering\LambdaRewriter\LambdaFrameConstructor.vb (1)
20
MyBase.New(syntaxNode, containingType, WellKnownMemberNames.
InstanceConstructorName
, False)
Lowering\LocalRewriter\LocalRewriter.vb (1)
645
If memberName.Equals(WellKnownMemberNames.
InstanceConstructorName
) OrElse memberName.Equals(WellKnownMemberNames.StaticConstructorName) Then
Lowering\StateMachineRewriter\SynthesizedContainer.vb (2)
224
Return If(CaseInsensitiveComparison.Equals(name, WellKnownMemberNames.
InstanceConstructorName
),
230
Return SpecializedCollections.SingletonEnumerable(Of String)(WellKnownMemberNames.
InstanceConstructorName
)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (1)
52
WellKnownMemberNames.
InstanceConstructorName
, Me,
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (1)
63
Dim delegateCtor = New SynthesizedDelegateMethodSymbol(WellKnownMemberNames.
InstanceConstructorName
,
Symbols\Attributes\PEAttributeData.vb (1)
207
ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, AttributeClass.MetadataName & "." & WellKnownMemberNames.
InstanceConstructorName
))
Symbols\Attributes\RetargetingAttributeData.vb (1)
92
ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, AttributeClass.MetadataName & "." & WellKnownMemberNames.
InstanceConstructorName
))
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
391
String.Equals(name, If(IsShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.
InstanceConstructorName
), StringComparison.Ordinal) AndAlso
441
String.Equals(Me.Name, WellKnownMemberNames.
InstanceConstructorName
, StringComparison.Ordinal) AndAlso
Symbols\NamedTypeSymbol.vb (1)
409
Dim instanceCandidates As ImmutableArray(Of Symbol) = If(includeInstance, GetMembers(WellKnownMemberNames.
InstanceConstructorName
), ImmutableArray(Of Symbol).Empty)
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
234
Return WellKnownMemberNames.
InstanceConstructorName
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2771
Dim constructorName = If(isShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.
InstanceConstructorName
)
Symbols\Source\SourceMethodSymbol.vb (2)
399
name = WellKnownMemberNames.
InstanceConstructorName
1037
Return If(isShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.
InstanceConstructorName
)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2648
If membersBuilder.Members.TryGetValue(WellKnownMemberNames.
InstanceConstructorName
, symbols) Then
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
61
Return If(m_isShared, WellKnownMemberNames.StaticConstructorName, WellKnownMemberNames.
InstanceConstructorName
)
Symbols\WellKnownMembers.vb (1)
107
AttributeDescription.CaseInsensitiveExtensionAttribute.FullName & "." & WellKnownMemberNames.
InstanceConstructorName
)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenWinMdDelegates.vb (3)
57
WellKnownMemberNames.
InstanceConstructorName
,
62
WellKnownMemberNames.
InstanceConstructorName
,
94
{WellKnownMemberNames.
InstanceConstructorName
,
Emit\EmitMetadata.vb (2)
784
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, ctor.Name)
798
Assert.Equal("Sub N.C." + WellKnownMemberNames.
InstanceConstructorName
+ "()", ctor.ToTestDisplayString())
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\EENamedTypeSymbol.vb (1)
173
Debug.Assert(name = WellKnownMemberNames.
InstanceConstructorName
OrElse name = WellKnownMemberNames.StaticConstructorName)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (7)
SymbolsTests\Metadata\MetadataMemberTests.vb (2)
166
Assert.Equal(WellKnownMemberNames.
InstanceConstructorName
, ctor.Name)
179
Assert.Equal("Sub System.StringComparer." + WellKnownMemberNames.
InstanceConstructorName
+ "()", ctor.ToTestDisplayString())
SymbolsTests\Source\PropertyTests.vb (4)
8007
WellKnownMemberNames.
InstanceConstructorName
})
8015
WellKnownMemberNames.
InstanceConstructorName
})
8037
{WellKnownMemberNames.
InstanceConstructorName
,
8051
WellKnownMemberNames.
InstanceConstructorName
,
SymbolsTests\Source\TypeTests.vb (1)
2627
Dim constructors = structType.GetMembers(WellKnownMemberNames.
InstanceConstructorName
)