9 references to IsConst
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Statements.cs (1)
708bool isConst = node.IsConst;
Binder\LocalBinderFactory.cs (1)
953if (node.Parent is VariableDeclarationSyntax { Parent: LocalDeclarationStatementSyntax { IsConst: true } })
Binder\LocalScopeBinder.cs (1)
201if (decl.IsConst)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
99if ((variableDeclaration.Parent as LocalDeclarationStatementSyntax)?.IsConst == true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
119if (variableDeclaration.Parent is LocalDeclarationStatementSyntax { IsConst: true })
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
169declarationStatement.IsConst ||
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
240LocalDeclarationStatementSyntax localDeclarationStatement => localDeclarationStatement.IsConst ? ClassificationTypeNames.ConstantName : ClassificationTypeNames.LocalName,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
99if ((variableDeclaration.Parent as LocalDeclarationStatementSyntax)?.IsConst == true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
119if (variableDeclaration.Parent is LocalDeclarationStatementSyntax { IsConst: true })