/// <summary> /// Create a RenameVariableRequestView with values taken from a template. /// </summary> public RenameVariableRequestView( string originalName, PythonLanguageVersion languageVersion, RenameVariableRequest template ) : this(originalName, languageVersion) { // Access properties rather than underlying variables to ensure dependent properties // are also updated. Name = template.Name; }
/// <summary> /// Create a RenameVariableRequestView with values taken from a template. /// </summary> public RenameVariableRequestView( string originalName, PythonLanguageVersion languageVersion, RenameVariableRequest template ) : this(originalName, languageVersion) { // Access properties rather than underlying variables to ensure dependent properties // are also updated. Name = template.Name; }
public PreviewChangesEngine(IServiceProvider serviceProvider, IRenameVariableInput input, string expr, RenameVariableRequest request, string originalName, string privatePrefix, VsProjectAnalyzer analyzer, IEnumerable<AnalysisVariable> variables) { _serviceProvider = serviceProvider; _expr = expr; _analyzer = analyzer; _renameReq = request; _originalName = originalName; _privatePrefix = privatePrefix; _variables = variables; _input = input; _list = new PreviewList(CreatePreviewItems().ToArray()); }
public PreviewChangesEngine(IServiceProvider serviceProvider, IRenameVariableInput input, string expr, RenameVariableRequest request, string originalName, string privatePrefix, VsProjectAnalyzer analyzer, IEnumerable <AnalysisVariable> variables) { _serviceProvider = serviceProvider; _expr = expr; _analyzer = analyzer; Request = request; OriginalName = originalName; PrivatePrefix = privatePrefix; _variables = variables; _input = input; _list = new PreviewList(CreatePreviewItems().ToArray()); }