Base:
property
Modifiers
Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax.Modifiers
27 references to Modifiers
Microsoft.CodeAnalysis.CSharp (14)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2023
=> node.Update(VisitList(node.AttributeLists), VisitList(node.
Modifiers
), VisitToken(node.DelegateKeyword), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (10)
11251
if (attributeLists != this.AttributeLists || modifiers != this.
Modifiers
|| delegateKeyword != this.DelegateKeyword || returnType != this.ReturnType || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || semicolonToken != this.SemicolonToken)
11262
public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
Modifiers
, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11265
public DelegateDeclarationSyntax WithDelegateKeyword(SyntaxToken delegateKeyword) => Update(this.AttributeLists, this.
Modifiers
, delegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11266
public DelegateDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.AttributeLists, this.
Modifiers
, this.DelegateKeyword, returnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11267
public DelegateDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.
Modifiers
, this.DelegateKeyword, this.ReturnType, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11268
public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.
Modifiers
, this.DelegateKeyword, this.ReturnType, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11269
public DelegateDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.
Modifiers
, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.SemicolonToken);
11270
public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.
Modifiers
, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken);
11271
public DelegateDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.
Modifiers
, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, semicolonToken);
11276
public new DelegateDeclarationSyntax AddModifiers(params SyntaxToken[] items) => WithModifiers(this.
Modifiers
.AddRange(items));
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
677
resultBinder = resultBinder.SetOrClearUnsafeRegionIfNecessary(parent.
Modifiers
);
Declarations\DeclarationTreeBuilder.cs (1)
842
var modifiers = node.
Modifiers
.ToDeclarationModifiers(isForTypeDeclaration: true, diagnostics: diagnostics);
Parser\LanguageParser.cs (1)
5420
return ((CSharp.Syntax.DelegateDeclarationSyntax)decl).
Modifiers
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
158
if (EqualAccessibility(x, x.
Modifiers
, y, y.
Modifiers
, out var result))
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1660
return GetDiagnosticSpan(delegateDeclaration.
Modifiers
, delegateDeclaration.DelegateKeyword, delegateDeclaration.ParameterList);
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
139
DeclaredSymbolInfoKind.Delegate, GetAccessibility(delegateDeclaration.GetRequiredParent(), delegateDeclaration.
Modifiers
));
Structure\CSharpStructureHelpers.cs (1)
271
DelegateDeclarationSyntax delegateDeclaration => delegateDeclaration.
Modifiers
.FirstOrNull() ?? delegateDeclaration.DelegateKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
295
delegateDecl.
Modifiers
.Any(SyntaxKind.PartialKeyword),
298
GetAccessibility(container, delegateDecl.
Modifiers
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
158
if (EqualAccessibility(x, x.
Modifiers
, y, y.
Modifiers
, out var result))
Microsoft.DotNet.GenFacades (2)
TypeParser.cs (2)
164
return HasPublicModifier(token.
Modifiers
);
166
return HasPublicModifier(token.
Modifiers
) && HasPublicModifier((BaseTypeDeclarationSyntax)(token.Parent));
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
158
if (EqualAccessibility(x, x.
Modifiers
, y, y.
Modifiers
, out var result))