1 write to IsConstant
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
257
IsConstant
= syntaxFacts.IsInConstantContext(SimpleNameOrMemberAccessExpressionOpt);
3 references to IsConstant
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (2)
92
if (state.
IsConstant
)
141
if (state.
IsConstant
)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
182
&& !IsInMemberContext && !
IsConstant
&& !IsInSourceGeneratedDocument;