1 write to IsConstant
Microsoft.CodeAnalysis.Features (1)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
116
IsConstant
= IsExpressionConstant(Document, Expression, _service, cancellationToken);
19 references to IsConstant
Microsoft.CodeAnalysis.Features (19)
IntroduceVariable\AbstractIntroduceVariableService.cs (19)
118
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
119
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
121
return GetConstantOrFieldResource(state.
IsConstant
);
125
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
126
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
128
return GetConstantOrFieldResource(state.
IsConstant
);
132
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
133
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: false, isQueryLocal: false));
135
return GetConstantOrFieldResource(state.
IsConstant
);
153
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
157
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
161
return GetConstantOrLocalResource(state.
IsConstant
);
166
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
167
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
169
return GetConstantOrLocalResource(state.
IsConstant
);
173
actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
174
actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.
IsConstant
, isLocal: true, isQueryLocal: false));
176
return GetConstantOrLocalResource(state.
IsConstant
);
192
if (state.
IsConstant
&&