19 references to IsConst
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Expressions.cs (1)
1906
var constantValueOpt = localSymbol.
IsConst
&& !IsInsideNameof && !type.IsErrorType()
CodeGen\EmitStatement.cs (2)
778
if (!local.
IsConst
&& !IsStackLocal(local))
1742
if (local.
IsConst
)
FlowAnalysis\DefiniteAssignment.cs (2)
1161
if (symbol is LocalSymbol local && local.
IsConst
)
2142
symbol.
IsConst
||
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
600
if (symbol is LocalSymbol local && local.
IsConst
)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (2)
34
if (localSymbol.
IsConst
)
76
if (this.Instrument && originalOpt?.WasCompilerGenerated == false && !localSymbol.
IsConst
&&
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
126
LocalSymbol {
IsConst
: false, IsPinned: false, IsRef: false } local =>
145
if (!((LocalSymbol)symbol).
IsConst
)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
164
if (local.
IsConst
)
Symbols\LocalSymbol.cs (3)
55
internal virtual bool CanScheduleToStack => !
IsConst
&& !IsPinned;
318
if (!this.
IsConst
)
336
if (!this.
IsConst
)
Symbols\PublicModel\LocalSymbol.cs (1)
48
bool ILocalSymbol.IsConst => _underlying.
IsConst
;
Symbols\Source\SourceLocalSymbol.cs (2)
559
if (this.
IsConst
&& _constantTuple == null)
579
if (this.
IsConst
&& inProgress == this)
Symbols\Symbol.cs (1)
1570
if (((LocalSymbol)variable).
IsConst
)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CompilationContext.cs (1)
1235
return local.
IsConst