24 references to InstanceConstructors
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_AnonymousTypes.cs (1)
144anonymousType.InstanceConstructors[0],
Binder\Binder_Crefs.cs (2)
442ImmutableArray<MethodSymbol> instanceConstructors = constructorType.InstanceConstructors; 745candidates.AddRange(constructedCandidateType.InstanceConstructors);
Binder\Binder_Expressions.cs (3)
5409return new BoundBadExpression(node, LookupResultKind.NotInvocable, StaticCast<Symbol>.From(type.InstanceConstructors), ImmutableArray.Create(argument), type); 5456return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, StaticCast<Symbol>.From(type.InstanceConstructors), childNodes, type); 7241allInstanceConstructors = type.InstanceConstructors;
Binder\Binder_Statements.cs (1)
3919foreach (MethodSymbol ctor in baseType.InstanceConstructors)
Compilation\CSharpSemanticModel.cs (2)
4038typeSymbolOpt.ComImportCoClass.InstanceConstructors : 4039typeSymbolOpt.InstanceConstructors;
Compiler\ClsComplianceChecker.cs (1)
275foreach (MethodSymbol constructor in attributeType.InstanceConstructors)
Compiler\MethodBodySynthesizer.cs (1)
47method: objectType.InstanceConstructors[0],
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
210F.New(frameType.InstanceConstructors[0])));
Lowering\SyntheticBoundNodeFactory.cs (3)
733var ctor = type.InstanceConstructors.Single(c => c.ParameterCount == args.Length); 742var ctor = type.InstanceConstructors.Single(c => c.ParameterCount == args.Length); 1188var ctor = baseType.InstanceConstructors.Single(c => c.ParameterCount == 0);
Symbols\ConstraintsHelper.cs (1)
1492foreach (var constructor in type.InstanceConstructors)
Symbols\MemberSymbolExtensions.cs (1)
415foreach (var constructor in type.InstanceConstructors)
Symbols\NamedTypeSymbol.cs (1)
444return (SynthesizedInstanceConstructor)InstanceConstructors.Single();
Symbols\PublicModel\NamedTypeSymbol.cs (1)
36return UnderlyingNamedTypeSymbol.InstanceConstructors.GetPublicSymbols();
Symbols\SymbolExtensions.cs (1)
195return type.IsScriptClass ? type.InstanceConstructors.Single().ThisParameter : null;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
29var baseConstructor = ContainingType.BaseTypeNoUseSiteDiagnostics.InstanceConstructors.Single();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
29var baseConstructor = ContainingType.BaseTypeNoUseSiteDiagnostics.InstanceConstructors.Single();
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
120var members = ContainingType.InstanceConstructors;
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
93foreach (var member in containingType.InstanceConstructors)