2 implementations of HasConstantValue
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\LocalSymbol.cs (1)
56bool ILocalSymbol.HasConstantValue => _underlying.HasConstantValue;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\LocalSymbol.vb (1)
344Public ReadOnly Property HasConstantValue As Boolean Implements ILocalSymbol.HasConstantValue
5 references to HasConstantValue
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
284symbol.HasConstantValue &&
Microsoft.CodeAnalysis.CSharp.Features (1)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
111case ILocalSymbol { HasConstantValue: true }: return default;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
4584Assert.True(symbol.HasConstantValue);
Microsoft.CodeAnalysis.VisualBasic (2)
SymbolDisplay\SymbolDisplayVisitor.vb (1)
295If symbol.IsConst AndAlso symbol.HasConstantValue AndAlso Format.LocalOptions.IncludesOption(SymbolDisplayLocalOptions.IncludeConstantValue) Then
Symbols\Source\LocalSymbol.vb (1)
344Public ReadOnly Property HasConstantValue As Boolean Implements ILocalSymbol.HasConstantValue