57 references to IsConst
Microsoft.CodeAnalysis.VisualBasic (31)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
199If local.IsConst Then 284If value IsNot Nothing AndAlso (local IsNot Nothing AndAlso Not local.IsConst AndAlso local.Type.IsReferenceType OrElse value.HasErrors) Then
Analysis\FlowAnalysis\ReadWriteWalker.vb (1)
161If Not local.IsConst AndAlso Me._currentMethodOrLambda <> local.ContainingSymbol Then
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
103If local.IsConst Then 200If Not DirectCast(symbol, LocalSymbol).IsConst Then
Binding\Binder_Expressions.vb (2)
3013If localSymbol.IsConst AndAlso localSymbol.ConstHasType Then 3022If localSymbol.IsConst Then
Binding\Binder_Statements.vb (8)
1153If symbol.IsConst Then 1163If declarationInitializer IsNot Nothing AndAlso Not symbol.IsConst Then 1171If symbol.IsConst Then 1232If symbol.IsConst Then 1336If hasExplicitType AndAlso Not (symbol.IsConst AndAlso type.SpecialType = SpecialType.System_Object) Then 1345If OptionInfer AndAlso Not symbol.IsStatic AndAlso Not symbol.IsConst Then 1402ElseIf symbol.IsConst Then 1415Debug.Assert(Not symbol.IsConst AndAlso Not symbol.IsStatic AndAlso Not OptionInfer)
Binding\Binder_Utils.vb (1)
1304If Not local.IsConst Then
BoundTree\BoundLocalDeclaration.vb (2)
40Debug.Assert(LocalSymbol.IsConst AndAlso InitializerOpt.IsStrictNothingLiteral()) 43(LocalSymbol.IsConst AndAlso LocalSymbol.Type.SpecialType = SpecialType.System_Object AndAlso
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
411If local.IsConst Then
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (1)
54If Not localSymbol.IsConst Then
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
91Debug.Assert(Not localSymbol.IsConst) 183If local.IsConst Then
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
179If local.IsConst Then
Symbols\Source\LocalSymbol.vb (8)
135Debug.Assert(Me.IsConst) 146Return IsUsing OrElse IsConst 270Return Not IsConst AndAlso Not IsCatch 346If Not Me.IsConst Then 356If Not Me.IsConst Then 409Return Me.IsConst 865If IsConst Then 902If IsConst AndAlso _evaluatedConstant Is Nothing Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
CompilationContext.vb (2)
1171Debug.Assert(local.IsConst OrElse Not local.IsReadOnly, "Didn't expect user-referenceable read-only local.") 1173local.IsConst,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (24)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (24)
2274Assert.True(local.IsConst) 2281Assert.True(local.IsConst) 2287Assert.True(local.IsConst) 2293Assert.True(local.IsConst) 2299Assert.True(local.IsConst) 2305Assert.True(local.IsConst) 2311Assert.True(local.IsConst) 2317Assert.True(local.IsConst) 2323Assert.True(local.IsConst) 2329Assert.True(local.IsConst) 2335Assert.True(local.IsConst) 2341Assert.True(local.IsConst) 2759Assert.True(local.IsConst) 2765Assert.True(local.IsConst) 2771Assert.True(local.IsConst) 2777Assert.True(local.IsConst) 2783Assert.True(local.IsConst) 2789Assert.True(local.IsConst) 2795Assert.True(local.IsConst) 2801Assert.True(local.IsConst) 2807Assert.True(local.IsConst) 2813Assert.True(local.IsConst) 2819Assert.True(local.IsConst) 2825Assert.True(local.IsConst)