3 instantiations of SourceNamedTypeSymbol
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1331var t = new SourceNamedTypeSymbol(this, childDeclaration, diagnostics);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
104return new SourceNamedTypeSymbol(ContainingType, declaration, BindingDiagnosticBag.Discarded, newData);
Symbols\Source\SourceNamespaceSymbol.cs (1)
414return new SourceNamedTypeSymbol(this, (MergedTypeDeclaration)declaration, diagnostics);
43 references to SourceNamedTypeSymbol
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder_Conversions.cs (1)
1842if (!SourceNamedTypeSymbol.IsValidCollectionBuilderType(builderType))
Binder\Binder_Expressions.cs (1)
5105return constructor.ContainingType is SourceNamedTypeSymbol sourceType &&
Binder\BinderFactory.BinderFactoryVisitor.cs (7)
675var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent); 710var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent.Identifier.ValueText, 0, SyntaxKind.EnumDeclaration, parent); 775var typeSymbol = ((NamespaceOrTypeSymbol)resultBinder.ContainingMemberOrLambda).GetSourceTypeMember(parent); 1251SourceNamedTypeSymbol type = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((TypeDeclarationSyntax)memberSyntax); 1288SourceNamedTypeSymbol delegateType = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((DelegateDeclarationSyntax)memberSyntax); 1325SourceNamedTypeSymbol typeSymbol = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember(typeDeclSyntax); 1344SourceNamedTypeSymbol delegateType = ((NamespaceOrTypeSymbol)outerBinder.ContainingMemberOrLambda).GetSourceTypeMember((DelegateDeclarationSyntax)memberSyntax);
Symbols\NamespaceOrTypeSymbol.cs (5)
187internal SourceNamedTypeSymbol? GetSourceTypeMember(TypeDeclarationSyntax syntax) 196internal SourceNamedTypeSymbol? GetSourceTypeMember(DelegateDeclarationSyntax syntax) 206internal SourceNamedTypeSymbol? GetSourceTypeMember( 216var memberT = member as SourceNamedTypeSymbol;
Symbols\Source\SourceAssemblySymbol.cs (4)
2705var containingType = field.ContainingType as SourceNamedTypeSymbol; 2766var containingType = field.ContainingType as SourceNamedTypeSymbol;
Symbols\Source\SourceConstructorSymbolBase.cs (2)
212var containingType = (SourceNamedTypeSymbol)this.ContainingType;
Symbols\Source\SourceDelegateMethodSymbol.cs (4)
183return (SourceNamedTypeSymbol)ContainingSymbol; 196return OneOrMany.Create(((SourceNamedTypeSymbol)ContainingSymbol).GetAttributeDeclarations()); 355: base((SourceNamedTypeSymbol)invoke.ContainingType, iAsyncResultType, syntax, MethodKind.Ordinary, RefKind.None, DeclarationModifiers.Virtual | DeclarationModifiers.Public) 393: base((SourceNamedTypeSymbol)invoke.ContainingType, invoke.ReturnTypeWithAnnotations, syntax, MethodKind.Ordinary, invoke.RefKind, DeclarationModifiers.Virtual | DeclarationModifiers.Public)
Symbols\Source\SourceMemberContainerSymbol.cs (4)
1321var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>(); 1331var t = new SourceNamedTypeSymbol(this, childDeclaration, diagnostics); 1335SourceNamedTypeSymbol? other; 1513var valueField = ((SourceNamedTypeSymbol)this).EnumValueField;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1557if (curr is SourceNamedTypeSymbol { HasSecurityCriticalAttributes: true })
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1742var originalType = this;
Symbols\Source\SourceNamespaceSymbol.cs (1)
387if (otherSymbol is SourceNamedTypeSymbol { MergedDeclaration.NameLocations: var typeNameLocations })
Symbols\Source\SourceTypeParameterSymbol.cs (2)
461private readonly SourceNamedTypeSymbol _owner; 464public SourceTypeParameterSymbol(SourceNamedTypeSymbol owner, string name, int ordinal, VarianceKind varianceKind, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs)
Symbols\Source\TypeParameterBuilder.cs (2)
23private readonly SourceNamedTypeSymbol _owner; 26internal TypeParameterBuilder(SyntaxReference syntaxRef, SourceNamedTypeSymbol owner, Location location)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
27Debug.Assert(containingType is SourceNamedTypeSymbol); 75return new OneOrMany<SyntaxList<AttributeListSyntax>>(((SourceNamedTypeSymbol)ContainingType).GetAttributeDeclarations());
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (2)
19public SynthesizedEnumValueFieldSymbol(SourceNamedTypeSymbol containingEnum) 35return TypeWithAnnotations.Create(((SourceNamedTypeSymbol)ContainingType).EnumUnderlyingType);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (3)
89var type = GetSimpleProgramNamedTypeSymbol(compilation); 113private static SourceNamedTypeSymbol? GetSimpleProgramNamedTypeSymbol(CSharpCompilation compilation) 115return compilation.SourceModule.GlobalNamespace.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName).OfType<SourceNamedTypeSymbol>().SingleOrDefault(s => s.IsSimpleProgram);
Symbols\TypeSymbolExtensions.cs (1)
1476return type is SourceNamedTypeSymbol { IsPartial: true };