Base:
property
Modifiers
Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax.Modifiers
14 references to Modifiers
Microsoft.CodeAnalysis.CSharp (10)
Syntax.xml.Main.Generated.cs (1)
1969
=> node.Update(VisitList(node.AttributeLists), VisitList(node.
Modifiers
), VisitToken(node.NamespaceKeyword), (NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.SemicolonToken), VisitList(node.Externs), VisitList(node.Usings), VisitList(node.Members));
Syntax.xml.Syntax.Generated.cs (9)
9720
if (attributeLists != this.AttributeLists || modifiers != this.
Modifiers
|| namespaceKeyword != this.NamespaceKeyword || name != this.Name || semicolonToken != this.SemicolonToken || externs != this.Externs || usings != this.Usings || members != this.Members)
9731
public new FileScopedNamespaceDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
Modifiers
, this.NamespaceKeyword, this.Name, this.SemicolonToken, this.Externs, this.Usings, this.Members);
9735
public new FileScopedNamespaceDeclarationSyntax WithNamespaceKeyword(SyntaxToken namespaceKeyword) => Update(this.AttributeLists, this.
Modifiers
, namespaceKeyword, this.Name, this.SemicolonToken, this.Externs, this.Usings, this.Members);
9737
public new FileScopedNamespaceDeclarationSyntax WithName(NameSyntax name) => Update(this.AttributeLists, this.
Modifiers
, this.NamespaceKeyword, name, this.SemicolonToken, this.Externs, this.Usings, this.Members);
9738
public FileScopedNamespaceDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.
Modifiers
, this.NamespaceKeyword, this.Name, semicolonToken, this.Externs, this.Usings, this.Members);
9740
public new FileScopedNamespaceDeclarationSyntax WithExterns(SyntaxList<ExternAliasDirectiveSyntax> externs) => Update(this.AttributeLists, this.
Modifiers
, this.NamespaceKeyword, this.Name, this.SemicolonToken, externs, this.Usings, this.Members);
9742
public new FileScopedNamespaceDeclarationSyntax WithUsings(SyntaxList<UsingDirectiveSyntax> usings) => Update(this.AttributeLists, this.
Modifiers
, this.NamespaceKeyword, this.Name, this.SemicolonToken, this.Externs, usings, this.Members);
9744
public new FileScopedNamespaceDeclarationSyntax WithMembers(SyntaxList<MemberDeclarationSyntax> members) => Update(this.AttributeLists, this.
Modifiers
, this.NamespaceKeyword, this.Name, this.SemicolonToken, this.Externs, this.Usings, members);
9749
public new FileScopedNamespaceDeclarationSyntax AddModifiers(params SyntaxToken[] items) => WithModifiers(this.
Modifiers
.AddRange(items));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
426
adjustedFileScopedNamespace.
Modifiers
,
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
426
adjustedFileScopedNamespace.
Modifiers
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
13014
Assert.Equal(default, node.
Modifiers
);
13021
var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.
Modifiers
).WithNamespaceKeyword(node.NamespaceKeyword).WithName(node.Name).WithSemicolonToken(node.SemicolonToken).WithExterns(node.Externs).WithUsings(node.Usings).WithMembers(node.Members);