28 references to Modifiers
Microsoft.CodeAnalysis.CSharp (2)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
100var modifiers = ((BaseFieldDeclarationSyntax)declarationSyntax.Parent).Modifiers;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
389return GetFieldDeclaration(VariableDeclaratorNode).Modifiers;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
720BaseFieldDeclarationSyntax fieldDeclaration => Cast<TDeclarationNode>(fieldDeclaration.WithModifiers(computeNewModifiersList(fieldDeclaration.Modifiers))),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (8)
171if (EqualConstness(x.Modifiers, y.Modifiers, out var result) && 172EqualStaticness(x.Modifiers, y.Modifiers, out result) && 173EqualReadOnlyness(x.Modifiers, y.Modifiers, out result) && 174EqualAccessibility(x, x.Modifiers, y, y.Modifiers, out result))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
547&& !baseFieldDeclarationNode.Modifiers.Any(SyntaxKind.ReadOnlyKeyword);
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\BreakpointSpans.cs (1)
551=> TryCreateSpanForVariableDeclaration(fieldDeclaration.Declaration, fieldDeclaration.Modifiers, fieldDeclaration.SemicolonToken, position);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1669return GetDiagnosticSpan(fieldDeclaration.Modifiers, fieldDeclaration.Declaration, fieldDeclaration.Declaration);
EditAndContinue\SyntaxUtilities.cs (1)
56when !fieldDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword)
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
388: fieldDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword) 397fieldDeclaration.Modifiers.Any(SyntaxKind.PartialKeyword), 400GetAccessibility(container, fieldDeclaration.Modifiers),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
720BaseFieldDeclarationSyntax fieldDeclaration => Cast<TDeclarationNode>(fieldDeclaration.WithModifiers(computeNewModifiersList(fieldDeclaration.Modifiers))),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (8)
171if (EqualConstness(x.Modifiers, y.Modifiers, out var result) && 172EqualStaticness(x.Modifiers, y.Modifiers, out result) && 173EqualReadOnlyness(x.Modifiers, y.Modifiers, out result) && 174EqualAccessibility(x, x.Modifiers, y, y.Modifiers, out result))
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
149foreach (var mod in node.Modifiers)