29 references to IsConst
Microsoft.CodeAnalysis.VisualBasic (29)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
199
If local.
IsConst
Then
284
If value IsNot Nothing AndAlso (local IsNot Nothing AndAlso Not local.
IsConst
AndAlso local.Type.IsReferenceType OrElse value.HasErrors) Then
Analysis\FlowAnalysis\ReadWriteWalker.vb (1)
161
If Not local.
IsConst
AndAlso Me._currentMethodOrLambda <> local.ContainingSymbol Then
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
103
If local.
IsConst
Then
200
If Not DirectCast(symbol, LocalSymbol).
IsConst
Then
Binding\Binder_Expressions.vb (2)
3044
If localSymbol.
IsConst
AndAlso localSymbol.ConstHasType Then
3053
If localSymbol.
IsConst
Then
Binding\Binder_Statements.vb (8)
1184
If symbol.
IsConst
Then
1194
If declarationInitializer IsNot Nothing AndAlso Not symbol.
IsConst
Then
1202
If symbol.
IsConst
Then
1263
If symbol.
IsConst
Then
1365
If hasExplicitType AndAlso Not (symbol.
IsConst
AndAlso type.SpecialType = SpecialType.System_Object) Then
1374
If OptionInfer AndAlso Not symbol.IsStatic AndAlso Not symbol.
IsConst
Then
1431
ElseIf symbol.
IsConst
Then
1444
Debug.Assert(Not symbol.
IsConst
AndAlso Not symbol.IsStatic AndAlso Not OptionInfer)
Binding\Binder_Utils.vb (1)
1304
If Not local.
IsConst
Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
410
If local.
IsConst
Then
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (1)
53
If Not localSymbol.
IsConst
Then
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
90
Debug.Assert(Not localSymbol.
IsConst
)
182
If local.
IsConst
Then
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
181
If local.
IsConst
Then
Symbols\Source\LocalSymbol.vb (8)
135
Debug.Assert(Me.
IsConst
)
146
Return IsUsing OrElse
IsConst
270
Return Not
IsConst
AndAlso Not IsCatch
346
If Not Me.
IsConst
Then
356
If Not Me.
IsConst
Then
409
Return Me.
IsConst
868
If
IsConst
Then
905
If
IsConst
AndAlso _evaluatedConstant Is Nothing Then