25 references to ClassOrStructType
Microsoft.CodeAnalysis.Features (25)
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (3)
140
if (IsLessAccessibleThan(member, state.
ClassOrStructType
))
157
if (state.
ClassOrStructType
.IsAbstract)
205
state.
ClassOrStructType
,
src\Analyzers\Core\CodeFixes\ImplementInterface\IImplementInterfaceInfo.cs (1)
17
/// The specific declaration node for <see cref="
ClassOrStructType
"/> that the interface implementations should be
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (2)
227
if (state.
ClassOrStructType
.TypeKind != TypeKind.Class)
243
return state.
ClassOrStructType
.FindImplementationForInterfaceMember(disposeMethod) == null;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (8)
101
State.
ClassOrStructType
,
156
IdentifiersMatch(State.
ClassOrStructType
.Name, name) ||
157
State.
ClassOrStructType
.TypeParameters.Any(static (t, arg) => arg.self.IdentifiersMatch(t.Name, arg.name), (self: this, name));
164
var memberNames = State.
ClassOrStructType
.GetAccessibleMembersInThisAndBaseTypes<ISymbol>(State.
ClassOrStructType
).Select(m => m.Name);
211
var addNew = !generateInvisibleMember && HasNameConflict(member, memberName, State.
ClassOrStructType
.GetBaseTypes());
242
if (IsLessAccessibleThan(member, State.
ClassOrStructType
))
358
.Where(m => m.IsAccessibleWithin(State.
ClassOrStructType
))
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Conflicts.cs (2)
30
var allMembers = State.
ClassOrStructType
.GetAccessibleMembersInThisAndBaseTypes<ISymbol>(State.
ClassOrStructType
).Concat(implementedVisibleMembers);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (5)
53
document, this.Service.SyntaxFormatting, State.
ClassOrStructType
, cancellationToken).ConfigureAwait(false);
130
var finalizer = Service.CreateFinalizer(g, State.
ClassOrStructType
, disposeMethodDisplayString);
140
var accessibility = State.
ClassOrStructType
.IsSealed
144
var modifiers = State.
ClassOrStructType
.IsSealed
176
containingType: State.
ClassOrStructType
,
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
33
var updatedMethod = method.EnsureNonConflictingNames(State.
ClassOrStructType
, syntaxFacts);
36
State.
ClassOrStructType
,
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (2)
111
State.
ClassOrStructType
,
138
State.
ClassOrStructType
,