14 references to IsConst
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
509if (modifiers.IsConst || modifiers.IsReadOnly) 537modifiers.IsConst
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
178modifiers = modifiers.IsConst ? modifiers.WithIsReadOnly(false) : modifiers; 1697AddIf(modifiers.IsConst, ConstKeyword);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeGeneration\CodeGenerationTests.cs (2)
739if (modifiers.IsConst) 796if (modifiers.IsConst)
Microsoft.CodeAnalysis.Features (3)
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
52if (declarator != null && generator.GetModifiers(declarator).IsConst)
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
64if (generator.GetModifiers(declarator).IsConst)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
212return generator.GetModifiers(declaration).IsConst;
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
432If modifiers.IsConst Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
678modifiers = If(modifiers.IsConst(), modifiers.WithIsReadOnly(False), modifiers)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
432If modifiers.IsConst Then
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
472else if (modifier.IsConst) 516if (Modifier.IsConst)