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