19 references to IsConst
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Expressions.cs (1)
2067
var constantValueOpt = localSymbol.
IsConst
&& !IsInsideNameof && !type.IsErrorType()
CodeGen\EmitStatement.cs (2)
803
if (!local.
IsConst
&& !IsStackLocal(local))
1765
if (local.
IsConst
)
FlowAnalysis\DefiniteAssignment.cs (2)
1205
if (symbol is LocalSymbol local && local.
IsConst
)
2306
symbol.
IsConst
||
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
619
if (symbol is LocalSymbol local && local.
IsConst
)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (2)
34
if (localSymbol.
IsConst
)
75
if (this.Instrument && originalOpt?.WasCompilerGenerated == false && !localSymbol.
IsConst
&&
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
143
LocalSymbol {
IsConst
: false, IsPinned: false, IsRef: false } local =>
162
if (!((LocalSymbol)symbol).
IsConst
)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
164
if (local.
IsConst
)
Symbols\LocalSymbol.cs (3)
55
internal virtual bool CanScheduleToStack => !
IsConst
&& !IsPinned;
325
if (!this.
IsConst
)
343
if (!this.
IsConst
)
Symbols\PublicModel\LocalSymbol.cs (1)
48
bool ILocalSymbol.IsConst => _underlying.
IsConst
;
Symbols\Source\SourceLocalSymbol.cs (3)
540
if (this.
IsConst
)
577
if (this.
IsConst
&& _constantTuple == null)
595
if (this.
IsConst
&& inProgress == this)
Symbols\Symbol.cs (1)
1716
if (((LocalSymbol)variable).
IsConst
)