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