1 write to IsConstant
Microsoft.CodeAnalysis.Features (1)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
103
IsConstant
= IsExpressionConstant(Document, Expression, _service, cancellationToken);
16 references to IsConstant
Microsoft.CodeAnalysis.Features (16)
IntroduceVariable\AbstractIntroduceVariableService.cs (16)
119
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
120
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
122
return GetConstantOrFieldResource(state.
IsConstant
);
126
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
127
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
129
return GetConstantOrFieldResource(state.
IsConstant
);
133
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
134
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
136
return GetConstantOrFieldResource(state.
IsConstant
);
154
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
158
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
162
return GetConstantOrLocalResource(state.
IsConstant
);
167
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
168
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
170
return GetConstantOrLocalResource(state.
IsConstant
);
186
if (state.
IsConstant
&&