2 implementations of IsConst
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\LocalSymbol.cs (1)
48bool ILocalSymbol.IsConst => _underlying.IsConst;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\LocalSymbol.vb (1)
407Private ReadOnly Property ILocalSymbol_IsConst As Boolean Implements ILocalSymbol.IsConst
16 references to IsConst
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
202 if (local.IsConst)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
519(kind == SymbolKind.Local && ((ILocalSymbol)symbol).IsConst))
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor.cs (2)
273if (symbol.IsConst) 283symbol.IsConst &&
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
246return localSymbol.IsConst
Microsoft.CodeAnalysis.Features (2)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
583symbol.IsConst 591if (symbol.IsConst)
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
86if (!local.IsConst && !assignedToLocals.Contains(local))
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
282If symbol.IsConst Then 295If symbol.IsConst AndAlso symbol.HasConstantValue AndAlso Format.LocalOptions.IncludesOption(SymbolDisplayLocalOptions.IncludeConstantValue) Then
Symbols\Source\LocalSymbol.vb (1)
407Private ReadOnly Property ILocalSymbol_IsConst As Boolean Implements ILocalSymbol.IsConst
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Source\LocalTests.vb (2)
35Assert.False(local.IsConst) 62Assert.False(local.IsConst)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
205Return If(localSymbol.IsConst,
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
91Return Not local.IsConst
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
519(kind == SymbolKind.Local && ((ILocalSymbol)symbol).IsConst))