10 references to IsAttributeType
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Symbols.cs (2)
2202Compilation.IsAttributeType((NamedTypeSymbol)first) && 2203Compilation.IsAttributeType((NamedTypeSymbol)second))
Compiler\ClsComplianceChecker.cs (1)
258else if (_compilation.IsAttributeType(symbol) && !HasAcceptableAttributeConstructor(symbol))
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
625bool alwaysIncludeConstructors = context.IncludePrivateMembers || AdaptedNamedTypeSymbol.DeclaringCompilation.IsAttributeType(AdaptedNamedTypeSymbol);
FlowAnalysis\DefiniteAssignment.cs (1)
245(type.IsErrorType() || compilation.IsAttributeType(type)));
Symbols\Compilation_WellKnownMembers.cs (1)
203return IsAttributeType(type.EnsureCSharpSymbolOrNull(nameof(type)));
Symbols\Source\SourceNamedTypeSymbol.cs (3)
1051Debug.Assert(this.SpecialType == SpecialType.System_Object || this.DeclaringCompilation.IsAttributeType(this)); 1299if (!this.DeclaringCompilation.IsAttributeType(this)) 1386if (!this.DeclaringCompilation.IsAttributeType(this))
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
107if (this.IsGenericType && !baseContainsErrorTypes && this.DeclaringCompilation.IsAttributeType(localBase))