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