├── .DS_Store ├── .eslintrc.json ├── .github └── workflows │ ├── new-tag.yml │ ├── test-and-release.yml │ └── tests.yml ├── .gitignore ├── .vscode ├── extensions.json └── launch.json ├── .vscodeignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── actions.js ├── demo ├── demo.html ├── demo.tsx └── demo.vue ├── extension.js ├── gittey-config.json ├── groups.js ├── icon ├── jscf-icon-vscode.png └── jscf-icon.svg ├── images ├── convert-functions-to-class.gif ├── extract-method-html.gif ├── extract-method-jsx.gif ├── extract-to-parameter-html.gif ├── extract-variable-vue.gif ├── inline-variable-html.gif ├── rename-vue.gif └── suggested-actions.gif ├── js-snippets.code-snippets ├── jsconfig.json ├── modules ├── action-setup.js ├── astTraverse.js ├── builders │ ├── ClassBuilder.js │ ├── IfBuilder.js │ ├── MethodBuilder.js │ ├── RequireBuilder.js │ ├── VariableBuilder.js │ └── ternaryBuilder.js ├── commands │ ├── action-suggestions │ │ └── action-suggestions-action.js │ ├── change-variable-type │ │ ├── change-variable-type-action.js │ │ └── change-variable-type.js │ ├── convert-functions-to-class │ │ ├── convert-functions-to-class-action.js │ │ └── convert-functions-to-class.js │ ├── convert-import-to-commonjs │ │ ├── convert-import-to-commonjs-action.js │ │ └── convert-import-to-commonjs.js │ ├── convert-ternary-to-if-else │ │ ├── convert-ternary-to-if-else-action.js │ │ └── convert-ternary-to-if-else.js │ ├── convert-to-arrow-function │ │ ├── convert-to-arrow-function-action.js │ │ └── convert-to-arrow-function.js │ ├── convert-to-function-declaration │ │ ├── convert-to-function-declaration-action.js │ │ └── convert-to-function-declaration.js │ ├── convert-to-function-expression │ │ ├── convert-to-function-expression-action.js │ │ └── convert-to-function-expression.js │ ├── convert-to-method │ │ ├── convert-to-method-action.js │ │ └── convert-to-method.js │ ├── convert-to-multiple-declarations │ │ └── convert-to-multiple-declarations-action.js │ ├── convert-to-template-literal │ │ ├── convert-to-template-literal-action.js │ │ └── convert-to-template-literal.js │ ├── extract-method │ │ ├── extract-method-action.js │ │ ├── extract-method.js │ │ └── parameter-search.js │ ├── extract-to-parameter │ │ ├── extract-to-parameter-action.js │ │ └── extract-to-parameter.js │ ├── extract-variable │ │ ├── extract-variable-action.js │ │ ├── extract-variable.js │ │ └── variableExtractionScopeService.js │ ├── inline-variable │ │ ├── inline-variable-action.js │ │ └── inline-variable.js │ ├── introduce-function │ │ ├── introduce-function-action.js │ │ └── introduce-function.js │ ├── introduce-variable │ │ └── introduce-variable-action.js │ ├── invert-if │ │ ├── invert-if-action.js │ │ └── invert-if.js │ ├── invert-ternary │ │ └── invert-ternary-action.js │ ├── lift-and-name-function-expression │ │ ├── lift-and-name-function-expression-action.js │ │ └── lift-and-name-function-expression.js │ ├── move-function-into-class │ │ ├── move-function-into-class-action.js │ │ └── move-function-into-class.js │ ├── move-method-out-of-class │ │ ├── move-method-out-of-class-action.js │ │ └── move-method-out-of-class.js │ ├── rename │ │ ├── rename-action.js │ │ ├── rename-method-replacement-locations.js │ │ └── rename.js │ ├── surround-with │ │ ├── snippets.json │ │ ├── surround-with-action.js │ │ └── surround-with.js │ ├── toggle-arguments-type │ │ ├── toggle-arguments-type-action.js │ │ └── toggle-arguments-type.js │ ├── toggle-arrow-function-braces │ │ └── toggle-arrow-function-braces-action.js │ ├── toggle-async │ │ └── toggle-async-action.js │ ├── toggle-parameters-type │ │ ├── toggle-parameters-type-action.js │ │ └── toggle-parameters-type.js │ └── toggle-property-declaration │ │ ├── toggle-property-declaration-action.js │ │ └── toggle-property-declaration.js ├── conditionals-service.js ├── config-service.js ├── constants │ ├── ast-node-types.js │ └── language-values.js ├── core-utils.js ├── edit-utils │ ├── SourceEdit.js │ ├── code-range-transforms.js │ ├── location-service.js │ ├── node-path-utils.js │ ├── snippet-service.js │ └── textEditTransforms.js ├── extraction-utils │ ├── ExtractionPathBuilder.js │ ├── extraction-location-service.js │ ├── extractionScopeService.js │ └── variable-deletion-utils.js ├── function-expression-string-service.js ├── function-utils │ ├── function-location.js │ ├── function-node.js │ └── function-source.js ├── node-path.js ├── parser │ ├── ParseMode.js │ ├── ScriptState.js │ ├── html-stripper.js │ ├── parse-modes.js │ └── parser.js ├── react-service.js ├── source-utilities.js ├── ui-services │ ├── inputService.js │ └── messageService.js ├── validatorService.js ├── variable-utils │ └── variable-use-utils.js └── vscodeService.js ├── package.json ├── test ├── approvals │ ├── .empty │ ├── Code_Range_Transforms.transforms_ast_location_to_editor_selection.approved.txt │ ├── Code_Range_Transforms.transforms_editor_selection_to_ast_location.approved.txt │ ├── Code_action_setup_behavior.prepares_code_action_object_from_vs_code_module_values.approved.txt │ ├── Method_Builder.Adds_return_for_explicit_mulitiline_build.approved.txt │ ├── Method_Builder.Arrow_function_adds_paretheses_when_body_is_a_returned_object_literal.approved.txt │ ├── Method_Builder.Arrow_function_builds_single_line_arrow_function_as_multiline_when_specified.approved.txt │ ├── Method_Builder.builds_a_class_method_when_type_is_method.approved.txt │ ├── Method_Builder.builds_a_complete_function_declaration.approved.txt │ ├── Method_Builder.builds_a_function_declaration_by_default.approved.txt │ ├── Method_Builder.builds_a_function_expression_when_type_is_function_expression.approved.txt │ ├── Method_Builder.builds_a_generator_function_when_generator_is_set_to_true.approved.txt │ ├── Method_Builder.builds_a_multiline_arrow_function_when_type_is_arrow_function_expression_and_body_is_multi_expression.approved.txt │ ├── Method_Builder.builds_a_single_line_arrow_function_when_type_is_arrow_function_expression__and_body_is_a_single_expression.approved.txt │ ├── Method_Builder.builds_an_arrow_function_with_block_body_when_type_is_arrow_function_expression__and_body_is_a_single_non_return_expression.approved.txt │ ├── Method_Builder.builds_an_object_method_when_type_is_ObjectMethod.approved.txt │ ├── Move_function_into_class.get_function_declaration.locates_a_function_declaration_node.approved.txt │ ├── Move_function_into_class.get_function_declaration.locates_a_function_expression_assigned_among_multiple_declarators.approved.txt │ ├── Move_function_into_class.get_function_declaration.locates_a_function_expression_assigned_in_a_declaration.approved.txt │ ├── Move_function_into_class.get_method_write_location_in_class.returns_the_end_of_the_last_body_node_when_class_has_nodes_in_the_body.approved.txt │ ├── Move_function_into_class.get_method_write_location_in_class.returns_the_location_inside_the_closing_braket_when_class_body_is_empty.approved.txt │ ├── build_new_if_from_ternary_expression.builds_an_if_which_executes_an_expression_when_ternary_is_executed_alone.approved.txt │ ├── build_new_if_from_ternary_expression.builds_an_if_which_returns_from_both_blocks_when_ternary_is_returned.approved.txt │ ├── build_new_if_from_ternary_expression.builds_an_if_which_which_assigns_to_the_same_variable_from_both_blocks.approved.txt │ ├── change_variable_type.rewrites_the_variable_declaration_with_a_new_type.approved.txt │ ├── convert_to_arrow_function.Converts_fn_declaration_to_arrow_function_assigned_to_const.approved.txt │ ├── convert_to_arrow_function.Converts_fn_expression_to_arrow_function.approved.txt │ ├── convert_to_arrow_function.Converts_method_to_arrow_function_assigned_to_property.approved.txt │ ├── convert_to_arrow_function.Does_not_add_extra_const_on_named_function_expression.approved.txt │ ├── convert_to_arrow_function.converts_method_to_property_when_cursor_is_elsewhere_on_function_def.approved.txt │ ├── convert_to_function_declaration.converts_a_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt │ ├── convert_to_function_declaration.converts_a_multiline_arrow_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt │ ├── convert_to_function_declaration.converts_a_named_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt │ ├── convert_to_function_declaration.converts_an_arrow_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt │ ├── convert_to_function_expression.converts_a_function_declaration_to_a_function_expression_assigned_to_a_const.approved.txt │ ├── convert_to_function_expression.converts_a_method_to_a_function_expression_assigned_to_a_property.approved.txt │ ├── convert_to_function_expression.converts_a_multi_line_arrow_function_to_a_function_expression.approved.txt │ ├── convert_to_function_expression.converts_a_single_line_arrow_function_to_a_function_expression.approved.txt │ ├── convert_to_function_expression.converts_method_to_property_when_cursor_is_elsewhere_on_function_def.approved.txt │ ├── convert_to_method.converts_arrow_function_property_to_method.approved.txt │ ├── convert_to_method.converts_function_expression_property_to_method.approved.txt │ ├── convert_to_method.converts_named_function_expression_property_to_method.approved.txt │ ├── convert_to_template_literal.build_template_literal.properly_builds_a_template_literal_from_a_concatenation_expression.approved.txt │ ├── extract_method_behaviors.build_method_call_text.assigns_returned_value_to_a_variable_when_the_body_has_a_variable_declaration_at_the_end.approved.txt │ ├── extract_method_behaviors.build_method_call_text.returns_a_JSX_expression_when_replacement_node_is_a_JSX_element.approved.txt │ ├── extract_method_behaviors.build_method_call_text.returns_a_method_stype_function_call_when_extracted_to_an_object_scope.approved.txt │ ├── extract_method_behaviors.build_method_call_text.returns_a_simple_function_call_when_extraction_is_to_a_block_scope.approved.txt │ ├── extract_method_behaviors.create_method_text.creates_a_class_method_when_destination_is_a_class_body.approved.txt │ ├── extract_method_behaviors.create_method_text.creates_a_function_declaration_by_default.approved.txt │ ├── extract_method_behaviors.create_method_text.creates_a_object_literal_method_when_destination_is_an_object_expression.approved.txt │ ├── extract_method_behaviors.create_method_text.does_not_add_return_to_for_loop_expression.approved.txt │ ├── extract_method_behaviors.create_method_text.returns_final_value_even_when_declaration_is_the_only_statement.approved.txt │ ├── extract_method_behaviors.create_method_text.returns_final_value_if_final_statement_is_an_initialized_variable_declaration.approved.txt │ ├── extract_method_behaviors.get_parsed_selection.captures_selected_text_and_parses_it.approved.txt │ ├── extract_to_parameter.extracts_a_variable_into_the_parameter_list_from_a_multi_declarator_declaration.approved.txt │ ├── extract_to_parameter.extracts_a_variable_into_the_parameter_list_of_a_function.approved.txt │ ├── extract_to_parameter.extracts_a_variable_into_the_parameter_list_of_a_function_with_existing_parameters.approved.txt │ ├── extract_variable.capture_selected_text.returns_multiple_lines_of_selected_text.approved.txt │ ├── extract_variable.extraction_path_construction.builds_an_extraction_path.approved.txt │ ├── extract_variable.extraction_scope_selection.selects_extraction_scope_using_user_selected_value.approved.txt │ ├── extract_variable.extraction_scope_selection.sets_subordinate_scope_to_null_when_extraction_scope_is_the_local_scope.approved.txt │ ├── extract_variable.extraction_scope_selection_list.creates_a_scope_selection_list_from_extraction_path.approved.txt │ ├── extract_variable.select_extraction_location.selects_next_surrounding_node_down_from_current_selected_block_location.approved.txt │ ├── function_location_utilities.get_function_body_location.gets_the_location_for_a_function_with_body_source_lines.approved.txt │ ├── function_location_utilities.gets_the_location_for_a_function_with_body_source_lines.approved.txt │ ├── inline_variable.get_declarator_body.returns_variable_declaration_body_text.approved.txt │ ├── inline_variable.get_surrounding_scope.selects_program_scope_when_not_inside_of_any_block.approved.txt │ ├── inline_variable.get_surrounding_scope.selects_surrounding_block_scope_when_inside_of_a_block.approved.txt │ ├── inline_variable.select_replacement_location.selects_all_lines_when_declaration_is_the_only_statement.approved.txt │ ├── inline_variable.select_replacement_location.selects_proper_replacement_location_when_multiple_declarators_are_on_a_single_line.approved.txt │ ├── inline_variable.select_replacement_location.selects_proper_replacement_location_when_multiple_statements_are_on_a_single_line.approved.txt │ ├── inline_variable.select_replacement_location.selects_single_line_when_declaration_is_the_only_expression.approved.txt │ ├── inline_variable.select_replacement_locations.captures_only_appropriate_identifiers_for_replacement.approved.txt │ ├── inline_variable.select_replacement_locations.captures_variable_use_in_a_returned_binary_expression.approved.txt │ ├── inline_variable.select_variable_declarator.finds_the_variable_declarator_from_the_selection_path.approved.txt │ ├── introduce_function.get_identifier_or_call_node_from_selection_path.gets_call_expression_node_from_selection_path.approved.txt │ ├── introduce_function.get_identifier_or_call_node_from_selection_path.gets_identifier_from_selection_path.approved.txt │ ├── invert_if.build_if_statement.properly_creates_if_statement_text.approved.txt │ ├── invert_if.invert_test_expression.inverts_a_negated_expression.approved.txt │ ├── invert_if.invert_test_expression.inverts_a_positive_expression.approved.txt │ ├── lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_assigned_to_a_variable_for_an_arrow_function_expression.approved.txt │ ├── lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_for_a_named_function_expression.approved.txt │ ├── lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_for_an_unnamed_function_expression.approved.txt │ ├── node_path_builder.builds_an_array_of_parent_nodes_to_selection.approved.txt │ ├── rename_replacement_location_finder.find_all_references_to_a_class_method_for_renaming.approved.txt │ ├── rename_replacement_location_finder.find_all_references_to_a_object_literal_method_for_renaming.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_destructured_array_parameter_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_destructured_object_parameter_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_function_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_method_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_method_parameter_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_simple_parameter_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_a_simple_variable_name.approved.txt │ ├── select_literal_or_associated_node_for_rename.selects_an_assignment_parameter_name.approved.txt │ ├── source_parser.parses_javascript_embedded_in_HTML.approved.txt │ ├── source_parser.parses_javascript_with_a_node_shebang.approved.txt │ ├── source_parser.parses_plain_old_javascript_source.approved.txt │ ├── source_parser.parses_plain_old_typescript_source.approved.txt │ ├── surround_with_behavior_support_functions.get_language_snippet_name.returns_javascript_for_language_ids__javascript__javascriptreact__jsx.approved.txt │ ├── surround_with_behavior_support_functions.get_language_snippet_name.returns_typescript_for_language_ids__typescript__typescriptreact__tsx.approved.txt │ ├── surround_with_behavior_support_functions.get_snippet_body_text.returns_a_single_string_snippet_body.approved.txt │ ├── surround_with_behavior_support_functions.get_template_list.returns_the_template_list_correctly.approved.txt │ ├── toggle_function_call_argument_style____positional_or_object.build_argument_object_snippet.returns_a_tab_stopped_snippet_for_an_object_style_argument.approved.txt │ ├── toggle_function_call_argument_style____positional_or_object.build_positional_argument_string.returns_a_positional_argument_string_when_arguments_are_an_object.approved.txt │ ├── toggle_function_call_argument_style____positional_or_object.get_arguments_location.returns_position_for_entire_arguments_list.approved.txt │ ├── toggle_parameters_type.build_parameter_object_template.creates_a_new_template_string_to_insert_for_existing_parameters.approved.txt │ └── toggle_parameters_type.build_positional_parameter_string.creates_positional_parameters_from_destructured_object_parameters.approved.txt ├── tests │ ├── action-setup │ │ ├── action-setup.test.js │ │ └── fixtures │ │ │ ├── source-fake.js │ │ │ └── vscode-fake.js │ ├── astTraverse │ │ ├── astTraverse.test.js │ │ └── fixtures │ │ │ └── simplets.ts │ ├── code-range-transforms │ │ └── code-range-transforms.test.js │ ├── commands │ │ ├── change-variable-type │ │ │ ├── change-variable-type.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── convert-import-to-commonjs │ │ │ ├── convert-import-to-commonjs.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── convert-ternary-to-if-else │ │ │ ├── convert-ternary-to-if-else.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── convert-to-arrow-function │ │ │ ├── convert-to-arrow-function.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── convert-to-function-declaration │ │ │ ├── convert-to-function-declaration.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── convert-to-function-expression │ │ │ ├── convert-to-function-expression.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── convert-to-method │ │ │ ├── convert-to-method.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.ts │ │ ├── convert-to-template-literal │ │ │ ├── convert-to-template-literal.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── extract-method │ │ │ ├── extract-method-helpers.js │ │ │ ├── extract-method.test.js │ │ │ └── fixtures │ │ │ │ ├── extract-with-variable-declaration.js │ │ │ │ ├── for-loop-source.js │ │ │ │ ├── mixed-scope-var-declarations.js │ │ │ │ └── test-source.js │ │ ├── extract-to-parameter │ │ │ ├── extract-to-parameter.test.js │ │ │ └── fixtures │ │ │ │ └── test-fixture.js │ │ ├── extract-variable │ │ │ ├── extract-variable-test-helpers.js │ │ │ ├── extract-variable.test.js │ │ │ ├── fixtures │ │ │ │ └── test-source.js │ │ │ ├── temp.js │ │ │ └── test.json │ │ ├── inline-variable │ │ │ ├── fixtures │ │ │ │ ├── location-selection-source.js │ │ │ │ ├── nested-source.js │ │ │ │ └── test-source.js │ │ │ └── inline-variable.test.js │ │ ├── introduce-function │ │ │ ├── fixtures │ │ │ │ └── test-fixture.js │ │ │ └── introduce-function.test.js │ │ ├── invert-if │ │ │ ├── fixtures │ │ │ │ └── test-fixture.js │ │ │ └── invert-if.test.js │ │ ├── lift-and-name-function-expression │ │ │ ├── fixtures │ │ │ │ └── test-fixture.js │ │ │ └── lift-and-name-function-expression.test.js │ │ ├── move-function-into-class │ │ │ ├── fixtures │ │ │ │ └── test-fixture.js │ │ │ └── move-function-into-class.test.js │ │ ├── rename │ │ │ ├── fixtures │ │ │ │ ├── identifier-selection-fixture.js │ │ │ │ ├── select-class-methods-identifiers.js │ │ │ │ └── select-object-literal-method-locations.js │ │ │ ├── rename-method-replacement-locations.test.js │ │ │ └── rename-select-identifier.test.js │ │ ├── surround-with │ │ │ ├── fixtures │ │ │ │ └── test-fixture.json │ │ │ └── surround-with.test.js │ │ ├── toggle-arguments-style │ │ │ ├── fixtures │ │ │ │ └── test-fixture.js │ │ │ └── toggle-arguments-style.test.js │ │ ├── toggle-parameters-style │ │ │ ├── fixtures │ │ │ │ └── test-fixture.js │ │ │ └── toggle-parameters-type.test.js │ │ └── toggle-property-declaration │ │ │ ├── fixtures │ │ │ └── test-fixture.js │ │ │ └── toggle-property-declaration.test.js │ ├── function-utils │ │ ├── fixtures │ │ │ ├── function-source.js │ │ │ └── test-source.js │ │ ├── function-location.test.js │ │ └── function-source.test.js │ ├── method-builder │ │ └── MethodBuilder.test.js │ ├── node-path │ │ ├── fixtures │ │ │ └── nested-nodes.js │ │ └── node_path.test.js │ ├── parser │ │ ├── fixtures │ │ │ ├── js-in-html.html │ │ │ ├── shebang-js.js │ │ │ ├── simplejs.js │ │ │ └── simplets.ts │ │ └── parser.test.js │ └── test-doubles │ │ ├── VsCodeFake.js │ │ ├── VsCodePosition.js │ │ └── VsCodeSelection.js └── utilities │ ├── approvals.js │ ├── editor-to-location-selection-builder.js │ ├── file-reader.js │ └── module-loader.js ├── ts-snippets.code-snippets └── version-bump.js /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.DS_Store -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/new-tag.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.github/workflows/new-tag.yml -------------------------------------------------------------------------------- /.github/workflows/test-and-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.github/workflows/test-and-release.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/.vscodeignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/README.md -------------------------------------------------------------------------------- /actions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/actions.js -------------------------------------------------------------------------------- /demo/demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/demo/demo.html -------------------------------------------------------------------------------- /demo/demo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/demo/demo.tsx -------------------------------------------------------------------------------- /demo/demo.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/demo/demo.vue -------------------------------------------------------------------------------- /extension.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/extension.js -------------------------------------------------------------------------------- /gittey-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/gittey-config.json -------------------------------------------------------------------------------- /groups.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/groups.js -------------------------------------------------------------------------------- /icon/jscf-icon-vscode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/icon/jscf-icon-vscode.png -------------------------------------------------------------------------------- /icon/jscf-icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/icon/jscf-icon.svg -------------------------------------------------------------------------------- /images/convert-functions-to-class.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/convert-functions-to-class.gif -------------------------------------------------------------------------------- /images/extract-method-html.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/extract-method-html.gif -------------------------------------------------------------------------------- /images/extract-method-jsx.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/extract-method-jsx.gif -------------------------------------------------------------------------------- /images/extract-to-parameter-html.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/extract-to-parameter-html.gif -------------------------------------------------------------------------------- /images/extract-variable-vue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/extract-variable-vue.gif -------------------------------------------------------------------------------- /images/inline-variable-html.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/inline-variable-html.gif -------------------------------------------------------------------------------- /images/rename-vue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/rename-vue.gif -------------------------------------------------------------------------------- /images/suggested-actions.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/images/suggested-actions.gif -------------------------------------------------------------------------------- /js-snippets.code-snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/js-snippets.code-snippets -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/jsconfig.json -------------------------------------------------------------------------------- /modules/action-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/action-setup.js -------------------------------------------------------------------------------- /modules/astTraverse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/astTraverse.js -------------------------------------------------------------------------------- /modules/builders/ClassBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/builders/ClassBuilder.js -------------------------------------------------------------------------------- /modules/builders/IfBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/builders/IfBuilder.js -------------------------------------------------------------------------------- /modules/builders/MethodBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/builders/MethodBuilder.js -------------------------------------------------------------------------------- /modules/builders/RequireBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/builders/RequireBuilder.js -------------------------------------------------------------------------------- /modules/builders/VariableBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/builders/VariableBuilder.js -------------------------------------------------------------------------------- /modules/builders/ternaryBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/builders/ternaryBuilder.js -------------------------------------------------------------------------------- /modules/commands/action-suggestions/action-suggestions-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/action-suggestions/action-suggestions-action.js -------------------------------------------------------------------------------- /modules/commands/change-variable-type/change-variable-type-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/change-variable-type/change-variable-type-action.js -------------------------------------------------------------------------------- /modules/commands/change-variable-type/change-variable-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/change-variable-type/change-variable-type.js -------------------------------------------------------------------------------- /modules/commands/convert-functions-to-class/convert-functions-to-class-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-functions-to-class/convert-functions-to-class-action.js -------------------------------------------------------------------------------- /modules/commands/convert-functions-to-class/convert-functions-to-class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-functions-to-class/convert-functions-to-class.js -------------------------------------------------------------------------------- /modules/commands/convert-import-to-commonjs/convert-import-to-commonjs-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-import-to-commonjs/convert-import-to-commonjs-action.js -------------------------------------------------------------------------------- /modules/commands/convert-import-to-commonjs/convert-import-to-commonjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-import-to-commonjs/convert-import-to-commonjs.js -------------------------------------------------------------------------------- /modules/commands/convert-ternary-to-if-else/convert-ternary-to-if-else-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-ternary-to-if-else/convert-ternary-to-if-else-action.js -------------------------------------------------------------------------------- /modules/commands/convert-ternary-to-if-else/convert-ternary-to-if-else.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-ternary-to-if-else/convert-ternary-to-if-else.js -------------------------------------------------------------------------------- /modules/commands/convert-to-arrow-function/convert-to-arrow-function-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-arrow-function/convert-to-arrow-function-action.js -------------------------------------------------------------------------------- /modules/commands/convert-to-arrow-function/convert-to-arrow-function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-arrow-function/convert-to-arrow-function.js -------------------------------------------------------------------------------- /modules/commands/convert-to-function-declaration/convert-to-function-declaration-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-function-declaration/convert-to-function-declaration-action.js -------------------------------------------------------------------------------- /modules/commands/convert-to-function-declaration/convert-to-function-declaration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-function-declaration/convert-to-function-declaration.js -------------------------------------------------------------------------------- /modules/commands/convert-to-function-expression/convert-to-function-expression-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-function-expression/convert-to-function-expression-action.js -------------------------------------------------------------------------------- /modules/commands/convert-to-function-expression/convert-to-function-expression.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-function-expression/convert-to-function-expression.js -------------------------------------------------------------------------------- /modules/commands/convert-to-method/convert-to-method-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-method/convert-to-method-action.js -------------------------------------------------------------------------------- /modules/commands/convert-to-method/convert-to-method.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-method/convert-to-method.js -------------------------------------------------------------------------------- /modules/commands/convert-to-multiple-declarations/convert-to-multiple-declarations-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-multiple-declarations/convert-to-multiple-declarations-action.js -------------------------------------------------------------------------------- /modules/commands/convert-to-template-literal/convert-to-template-literal-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-template-literal/convert-to-template-literal-action.js -------------------------------------------------------------------------------- /modules/commands/convert-to-template-literal/convert-to-template-literal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/convert-to-template-literal/convert-to-template-literal.js -------------------------------------------------------------------------------- /modules/commands/extract-method/extract-method-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-method/extract-method-action.js -------------------------------------------------------------------------------- /modules/commands/extract-method/extract-method.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-method/extract-method.js -------------------------------------------------------------------------------- /modules/commands/extract-method/parameter-search.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-method/parameter-search.js -------------------------------------------------------------------------------- /modules/commands/extract-to-parameter/extract-to-parameter-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-to-parameter/extract-to-parameter-action.js -------------------------------------------------------------------------------- /modules/commands/extract-to-parameter/extract-to-parameter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-to-parameter/extract-to-parameter.js -------------------------------------------------------------------------------- /modules/commands/extract-variable/extract-variable-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-variable/extract-variable-action.js -------------------------------------------------------------------------------- /modules/commands/extract-variable/extract-variable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-variable/extract-variable.js -------------------------------------------------------------------------------- /modules/commands/extract-variable/variableExtractionScopeService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/extract-variable/variableExtractionScopeService.js -------------------------------------------------------------------------------- /modules/commands/inline-variable/inline-variable-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/inline-variable/inline-variable-action.js -------------------------------------------------------------------------------- /modules/commands/inline-variable/inline-variable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/inline-variable/inline-variable.js -------------------------------------------------------------------------------- /modules/commands/introduce-function/introduce-function-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/introduce-function/introduce-function-action.js -------------------------------------------------------------------------------- /modules/commands/introduce-function/introduce-function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/introduce-function/introduce-function.js -------------------------------------------------------------------------------- /modules/commands/introduce-variable/introduce-variable-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/introduce-variable/introduce-variable-action.js -------------------------------------------------------------------------------- /modules/commands/invert-if/invert-if-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/invert-if/invert-if-action.js -------------------------------------------------------------------------------- /modules/commands/invert-if/invert-if.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/invert-if/invert-if.js -------------------------------------------------------------------------------- /modules/commands/invert-ternary/invert-ternary-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/invert-ternary/invert-ternary-action.js -------------------------------------------------------------------------------- /modules/commands/lift-and-name-function-expression/lift-and-name-function-expression-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/lift-and-name-function-expression/lift-and-name-function-expression-action.js -------------------------------------------------------------------------------- /modules/commands/lift-and-name-function-expression/lift-and-name-function-expression.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/lift-and-name-function-expression/lift-and-name-function-expression.js -------------------------------------------------------------------------------- /modules/commands/move-function-into-class/move-function-into-class-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/move-function-into-class/move-function-into-class-action.js -------------------------------------------------------------------------------- /modules/commands/move-function-into-class/move-function-into-class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/move-function-into-class/move-function-into-class.js -------------------------------------------------------------------------------- /modules/commands/move-method-out-of-class/move-method-out-of-class-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/move-method-out-of-class/move-method-out-of-class-action.js -------------------------------------------------------------------------------- /modules/commands/move-method-out-of-class/move-method-out-of-class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/move-method-out-of-class/move-method-out-of-class.js -------------------------------------------------------------------------------- /modules/commands/rename/rename-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/rename/rename-action.js -------------------------------------------------------------------------------- /modules/commands/rename/rename-method-replacement-locations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/rename/rename-method-replacement-locations.js -------------------------------------------------------------------------------- /modules/commands/rename/rename.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/rename/rename.js -------------------------------------------------------------------------------- /modules/commands/surround-with/snippets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/surround-with/snippets.json -------------------------------------------------------------------------------- /modules/commands/surround-with/surround-with-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/surround-with/surround-with-action.js -------------------------------------------------------------------------------- /modules/commands/surround-with/surround-with.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/surround-with/surround-with.js -------------------------------------------------------------------------------- /modules/commands/toggle-arguments-type/toggle-arguments-type-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-arguments-type/toggle-arguments-type-action.js -------------------------------------------------------------------------------- /modules/commands/toggle-arguments-type/toggle-arguments-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-arguments-type/toggle-arguments-type.js -------------------------------------------------------------------------------- /modules/commands/toggle-arrow-function-braces/toggle-arrow-function-braces-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-arrow-function-braces/toggle-arrow-function-braces-action.js -------------------------------------------------------------------------------- /modules/commands/toggle-async/toggle-async-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-async/toggle-async-action.js -------------------------------------------------------------------------------- /modules/commands/toggle-parameters-type/toggle-parameters-type-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-parameters-type/toggle-parameters-type-action.js -------------------------------------------------------------------------------- /modules/commands/toggle-parameters-type/toggle-parameters-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-parameters-type/toggle-parameters-type.js -------------------------------------------------------------------------------- /modules/commands/toggle-property-declaration/toggle-property-declaration-action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-property-declaration/toggle-property-declaration-action.js -------------------------------------------------------------------------------- /modules/commands/toggle-property-declaration/toggle-property-declaration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/commands/toggle-property-declaration/toggle-property-declaration.js -------------------------------------------------------------------------------- /modules/conditionals-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/conditionals-service.js -------------------------------------------------------------------------------- /modules/config-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/config-service.js -------------------------------------------------------------------------------- /modules/constants/ast-node-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/constants/ast-node-types.js -------------------------------------------------------------------------------- /modules/constants/language-values.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/constants/language-values.js -------------------------------------------------------------------------------- /modules/core-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/core-utils.js -------------------------------------------------------------------------------- /modules/edit-utils/SourceEdit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/edit-utils/SourceEdit.js -------------------------------------------------------------------------------- /modules/edit-utils/code-range-transforms.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/edit-utils/code-range-transforms.js -------------------------------------------------------------------------------- /modules/edit-utils/location-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/edit-utils/location-service.js -------------------------------------------------------------------------------- /modules/edit-utils/node-path-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/edit-utils/node-path-utils.js -------------------------------------------------------------------------------- /modules/edit-utils/snippet-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/edit-utils/snippet-service.js -------------------------------------------------------------------------------- /modules/edit-utils/textEditTransforms.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/edit-utils/textEditTransforms.js -------------------------------------------------------------------------------- /modules/extraction-utils/ExtractionPathBuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/extraction-utils/ExtractionPathBuilder.js -------------------------------------------------------------------------------- /modules/extraction-utils/extraction-location-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/extraction-utils/extraction-location-service.js -------------------------------------------------------------------------------- /modules/extraction-utils/extractionScopeService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/extraction-utils/extractionScopeService.js -------------------------------------------------------------------------------- /modules/extraction-utils/variable-deletion-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/extraction-utils/variable-deletion-utils.js -------------------------------------------------------------------------------- /modules/function-expression-string-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/function-expression-string-service.js -------------------------------------------------------------------------------- /modules/function-utils/function-location.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/function-utils/function-location.js -------------------------------------------------------------------------------- /modules/function-utils/function-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/function-utils/function-node.js -------------------------------------------------------------------------------- /modules/function-utils/function-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/function-utils/function-source.js -------------------------------------------------------------------------------- /modules/node-path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/node-path.js -------------------------------------------------------------------------------- /modules/parser/ParseMode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/parser/ParseMode.js -------------------------------------------------------------------------------- /modules/parser/ScriptState.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/parser/ScriptState.js -------------------------------------------------------------------------------- /modules/parser/html-stripper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/parser/html-stripper.js -------------------------------------------------------------------------------- /modules/parser/parse-modes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/parser/parse-modes.js -------------------------------------------------------------------------------- /modules/parser/parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/parser/parser.js -------------------------------------------------------------------------------- /modules/react-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/react-service.js -------------------------------------------------------------------------------- /modules/source-utilities.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/source-utilities.js -------------------------------------------------------------------------------- /modules/ui-services/inputService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/ui-services/inputService.js -------------------------------------------------------------------------------- /modules/ui-services/messageService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/ui-services/messageService.js -------------------------------------------------------------------------------- /modules/validatorService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/validatorService.js -------------------------------------------------------------------------------- /modules/variable-utils/variable-use-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/variable-utils/variable-use-utils.js -------------------------------------------------------------------------------- /modules/vscodeService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/modules/vscodeService.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/package.json -------------------------------------------------------------------------------- /test/approvals/.empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/approvals/Code_Range_Transforms.transforms_ast_location_to_editor_selection.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Code_Range_Transforms.transforms_ast_location_to_editor_selection.approved.txt -------------------------------------------------------------------------------- /test/approvals/Code_Range_Transforms.transforms_editor_selection_to_ast_location.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Code_Range_Transforms.transforms_editor_selection_to_ast_location.approved.txt -------------------------------------------------------------------------------- /test/approvals/Code_action_setup_behavior.prepares_code_action_object_from_vs_code_module_values.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Code_action_setup_behavior.prepares_code_action_object_from_vs_code_module_values.approved.txt -------------------------------------------------------------------------------- /test/approvals/Method_Builder.Adds_return_for_explicit_mulitiline_build.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Method_Builder.Adds_return_for_explicit_mulitiline_build.approved.txt -------------------------------------------------------------------------------- /test/approvals/Method_Builder.Arrow_function_adds_paretheses_when_body_is_a_returned_object_literal.approved.txt: -------------------------------------------------------------------------------- 1 | (a) => ({ foo: a }) 2 | -------------------------------------------------------------------------------- /test/approvals/Method_Builder.Arrow_function_builds_single_line_arrow_function_as_multiline_when_specified.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Method_Builder.Arrow_function_builds_single_line_arrow_function_as_multiline_when_specified.approved.txt -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_class_method_when_type_is_method.approved.txt: -------------------------------------------------------------------------------- 1 | newMethod (a) { 2 | return a; 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_complete_function_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Method_Builder.builds_a_complete_function_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_function_declaration_by_default.approved.txt: -------------------------------------------------------------------------------- 1 | function newMethod () { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_function_expression_when_type_is_function_expression.approved.txt: -------------------------------------------------------------------------------- 1 | function (a, b, c) { 2 | return a * b * c; 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_generator_function_when_generator_is_set_to_true.approved.txt: -------------------------------------------------------------------------------- 1 | function* newMethod (a) { 2 | const b = a * 3; return b; 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_multiline_arrow_function_when_type_is_arrow_function_expression_and_body_is_multi_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Method_Builder.builds_a_multiline_arrow_function_when_type_is_arrow_function_expression_and_body_is_multi_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_a_single_line_arrow_function_when_type_is_arrow_function_expression__and_body_is_a_single_expression.approved.txt: -------------------------------------------------------------------------------- 1 | (a) => a 2 | -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_an_arrow_function_with_block_body_when_type_is_arrow_function_expression__and_body_is_a_single_non_return_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Method_Builder.builds_an_arrow_function_with_block_body_when_type_is_arrow_function_expression__and_body_is_a_single_non_return_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/Method_Builder.builds_an_object_method_when_type_is_ObjectMethod.approved.txt: -------------------------------------------------------------------------------- 1 | newMethod: function (a) { 2 | return a; 3 | }, 4 | -------------------------------------------------------------------------------- /test/approvals/Move_function_into_class.get_function_declaration.locates_a_function_declaration_node.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Move_function_into_class.get_function_declaration.locates_a_function_declaration_node.approved.txt -------------------------------------------------------------------------------- /test/approvals/Move_function_into_class.get_function_declaration.locates_a_function_expression_assigned_among_multiple_declarators.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Move_function_into_class.get_function_declaration.locates_a_function_expression_assigned_among_multiple_declarators.approved.txt -------------------------------------------------------------------------------- /test/approvals/Move_function_into_class.get_function_declaration.locates_a_function_expression_assigned_in_a_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Move_function_into_class.get_function_declaration.locates_a_function_expression_assigned_in_a_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/Move_function_into_class.get_method_write_location_in_class.returns_the_end_of_the_last_body_node_when_class_has_nodes_in_the_body.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Move_function_into_class.get_method_write_location_in_class.returns_the_end_of_the_last_body_node_when_class_has_nodes_in_the_body.approved.txt -------------------------------------------------------------------------------- /test/approvals/Move_function_into_class.get_method_write_location_in_class.returns_the_location_inside_the_closing_braket_when_class_body_is_empty.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/Move_function_into_class.get_method_write_location_in_class.returns_the_location_inside_the_closing_braket_when_class_body_is_empty.approved.txt -------------------------------------------------------------------------------- /test/approvals/build_new_if_from_ternary_expression.builds_an_if_which_executes_an_expression_when_ternary_is_executed_alone.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/build_new_if_from_ternary_expression.builds_an_if_which_executes_an_expression_when_ternary_is_executed_alone.approved.txt -------------------------------------------------------------------------------- /test/approvals/build_new_if_from_ternary_expression.builds_an_if_which_returns_from_both_blocks_when_ternary_is_returned.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/build_new_if_from_ternary_expression.builds_an_if_which_returns_from_both_blocks_when_ternary_is_returned.approved.txt -------------------------------------------------------------------------------- /test/approvals/build_new_if_from_ternary_expression.builds_an_if_which_which_assigns_to_the_same_variable_from_both_blocks.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/build_new_if_from_ternary_expression.builds_an_if_which_which_assigns_to_the_same_variable_from_both_blocks.approved.txt -------------------------------------------------------------------------------- /test/approvals/change_variable_type.rewrites_the_variable_declaration_with_a_new_type.approved.txt: -------------------------------------------------------------------------------- 1 | ${99|const,let,var|} something = 'foo'; 2 | -------------------------------------------------------------------------------- /test/approvals/convert_to_arrow_function.Converts_fn_declaration_to_arrow_function_assigned_to_const.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_arrow_function.Converts_fn_declaration_to_arrow_function_assigned_to_const.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_arrow_function.Converts_fn_expression_to_arrow_function.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_arrow_function.Converts_fn_expression_to_arrow_function.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_arrow_function.Converts_method_to_arrow_function_assigned_to_property.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_arrow_function.Converts_method_to_arrow_function_assigned_to_property.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_arrow_function.Does_not_add_extra_const_on_named_function_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_arrow_function.Does_not_add_extra_const_on_named_function_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_arrow_function.converts_method_to_property_when_cursor_is_elsewhere_on_function_def.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_arrow_function.converts_method_to_property_when_cursor_is_elsewhere_on_function_def.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_function_declaration.converts_a_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_function_declaration.converts_a_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_function_declaration.converts_a_multiline_arrow_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_function_declaration.converts_a_multiline_arrow_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_function_declaration.converts_a_named_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_function_declaration.converts_a_named_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_function_declaration.converts_an_arrow_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_function_declaration.converts_an_arrow_function_expression_assigned_to_a_variable_to_a_named_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_function_expression.converts_a_function_declaration_to_a_function_expression_assigned_to_a_const.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_function_expression.converts_a_function_declaration_to_a_function_expression_assigned_to_a_const.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_function_expression.converts_a_method_to_a_function_expression_assigned_to_a_property.approved.txt: -------------------------------------------------------------------------------- 1 | methodSomething = function () { 2 | return 1234; 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/convert_to_function_expression.converts_a_multi_line_arrow_function_to_a_function_expression.approved.txt: -------------------------------------------------------------------------------- 1 | function () { 2 | console.log('foo'); 3 | return 5 + 6; 4 | } 5 | -------------------------------------------------------------------------------- /test/approvals/convert_to_function_expression.converts_a_single_line_arrow_function_to_a_function_expression.approved.txt: -------------------------------------------------------------------------------- 1 | function () { 2 | return 5 + 6 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/convert_to_function_expression.converts_method_to_property_when_cursor_is_elsewhere_on_function_def.approved.txt: -------------------------------------------------------------------------------- 1 | methodSomething = function () { 2 | return 1234; 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/convert_to_method.converts_arrow_function_property_to_method.approved.txt: -------------------------------------------------------------------------------- 1 | arrowFunctionProperty () { 2 | return 'testing' 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/convert_to_method.converts_function_expression_property_to_method.approved.txt: -------------------------------------------------------------------------------- 1 | functionExpressionProperty () { 2 | console.log('something in the body'); 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/convert_to_method.converts_named_function_expression_property_to_method.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/convert_to_method.converts_named_function_expression_property_to_method.approved.txt -------------------------------------------------------------------------------- /test/approvals/convert_to_template_literal.build_template_literal.properly_builds_a_template_literal_from_a_concatenation_expression.approved.txt: -------------------------------------------------------------------------------- 1 | ${1}yay${2} 2 | -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.build_method_call_text.assigns_returned_value_to_a_variable_when_the_body_has_a_variable_declaration_at_the_end.approved.txt: -------------------------------------------------------------------------------- 1 | const testVar = $4${1/async/await/}this.$2(a, b, c) 2 | -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.build_method_call_text.returns_a_JSX_expression_when_replacement_node_is_a_JSX_element.approved.txt: -------------------------------------------------------------------------------- 1 | {$4${1/async/await/}this.$2(a, b, c)} 2 | -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.build_method_call_text.returns_a_method_stype_function_call_when_extracted_to_an_object_scope.approved.txt: -------------------------------------------------------------------------------- 1 | $4${1/async/await/}this.$2(a, b, c) 2 | -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.build_method_call_text.returns_a_simple_function_call_when_extraction_is_to_a_block_scope.approved.txt: -------------------------------------------------------------------------------- 1 | $4${1/async/await/}$2(a, b, c) 2 | -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.create_method_text.creates_a_class_method_when_destination_is_a_class_body.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_method_behaviors.create_method_text.creates_a_class_method_when_destination_is_a_class_body.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.create_method_text.creates_a_function_declaration_by_default.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_method_behaviors.create_method_text.creates_a_function_declaration_by_default.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.create_method_text.creates_a_object_literal_method_when_destination_is_an_object_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_method_behaviors.create_method_text.creates_a_object_literal_method_when_destination_is_an_object_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.create_method_text.does_not_add_return_to_for_loop_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_method_behaviors.create_method_text.does_not_add_return_to_for_loop_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.create_method_text.returns_final_value_even_when_declaration_is_the_only_statement.approved.txt: -------------------------------------------------------------------------------- 1 | testMethod: function (a, b, c) { 2 | return 'foo'; 3 | }, 4 | -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.create_method_text.returns_final_value_if_final_statement_is_an_initialized_variable_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_method_behaviors.create_method_text.returns_final_value_if_final_statement_is_an_initialized_variable_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_method_behaviors.get_parsed_selection.captures_selected_text_and_parses_it.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_method_behaviors.get_parsed_selection.captures_selected_text_and_parses_it.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_to_parameter.extracts_a_variable_into_the_parameter_list_from_a_multi_declarator_declaration.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_to_parameter.extracts_a_variable_into_the_parameter_list_from_a_multi_declarator_declaration.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_to_parameter.extracts_a_variable_into_the_parameter_list_of_a_function.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_to_parameter.extracts_a_variable_into_the_parameter_list_of_a_function.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_to_parameter.extracts_a_variable_into_the_parameter_list_of_a_function_with_existing_parameters.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_to_parameter.extracts_a_variable_into_the_parameter_list_of_a_function_with_existing_parameters.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_variable.capture_selected_text.returns_multiple_lines_of_selected_text.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_variable.capture_selected_text.returns_multiple_lines_of_selected_text.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_variable.extraction_path_construction.builds_an_extraction_path.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_variable.extraction_path_construction.builds_an_extraction_path.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_variable.extraction_scope_selection.selects_extraction_scope_using_user_selected_value.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_variable.extraction_scope_selection.selects_extraction_scope_using_user_selected_value.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_variable.extraction_scope_selection.sets_subordinate_scope_to_null_when_extraction_scope_is_the_local_scope.approved.txt: -------------------------------------------------------------------------------- 1 | { 2 | "extractionScope": "IfStatement" 3 | } 4 | -------------------------------------------------------------------------------- /test/approvals/extract_variable.extraction_scope_selection_list.creates_a_scope_selection_list_from_extraction_path.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_variable.extraction_scope_selection_list.creates_a_scope_selection_list_from_extraction_path.approved.txt -------------------------------------------------------------------------------- /test/approvals/extract_variable.select_extraction_location.selects_next_surrounding_node_down_from_current_selected_block_location.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/extract_variable.select_extraction_location.selects_next_surrounding_node_down_from_current_selected_block_location.approved.txt -------------------------------------------------------------------------------- /test/approvals/function_location_utilities.get_function_body_location.gets_the_location_for_a_function_with_body_source_lines.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/function_location_utilities.get_function_body_location.gets_the_location_for_a_function_with_body_source_lines.approved.txt -------------------------------------------------------------------------------- /test/approvals/function_location_utilities.gets_the_location_for_a_function_with_body_source_lines.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/function_location_utilities.gets_the_location_for_a_function_with_body_source_lines.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.get_declarator_body.returns_variable_declaration_body_text.approved.txt: -------------------------------------------------------------------------------- 1 | 1234 2 | -------------------------------------------------------------------------------- /test/approvals/inline_variable.get_surrounding_scope.selects_program_scope_when_not_inside_of_any_block.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.get_surrounding_scope.selects_program_scope_when_not_inside_of_any_block.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.get_surrounding_scope.selects_surrounding_block_scope_when_inside_of_a_block.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.get_surrounding_scope.selects_surrounding_block_scope_when_inside_of_a_block.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_replacement_location.selects_all_lines_when_declaration_is_the_only_statement.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_replacement_location.selects_all_lines_when_declaration_is_the_only_statement.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_replacement_location.selects_proper_replacement_location_when_multiple_declarators_are_on_a_single_line.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_replacement_location.selects_proper_replacement_location_when_multiple_declarators_are_on_a_single_line.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_replacement_location.selects_proper_replacement_location_when_multiple_statements_are_on_a_single_line.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_replacement_location.selects_proper_replacement_location_when_multiple_statements_are_on_a_single_line.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_replacement_location.selects_single_line_when_declaration_is_the_only_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_replacement_location.selects_single_line_when_declaration_is_the_only_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_replacement_locations.captures_only_appropriate_identifiers_for_replacement.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_replacement_locations.captures_only_appropriate_identifiers_for_replacement.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_replacement_locations.captures_variable_use_in_a_returned_binary_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_replacement_locations.captures_variable_use_in_a_returned_binary_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/inline_variable.select_variable_declarator.finds_the_variable_declarator_from_the_selection_path.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/inline_variable.select_variable_declarator.finds_the_variable_declarator_from_the_selection_path.approved.txt -------------------------------------------------------------------------------- /test/approvals/introduce_function.get_identifier_or_call_node_from_selection_path.gets_call_expression_node_from_selection_path.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/introduce_function.get_identifier_or_call_node_from_selection_path.gets_call_expression_node_from_selection_path.approved.txt -------------------------------------------------------------------------------- /test/approvals/introduce_function.get_identifier_or_call_node_from_selection_path.gets_identifier_from_selection_path.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/introduce_function.get_identifier_or_call_node_from_selection_path.gets_identifier_from_selection_path.approved.txt -------------------------------------------------------------------------------- /test/approvals/invert_if.build_if_statement.properly_creates_if_statement_text.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/invert_if.build_if_statement.properly_creates_if_statement_text.approved.txt -------------------------------------------------------------------------------- /test/approvals/invert_if.invert_test_expression.inverts_a_negated_expression.approved.txt: -------------------------------------------------------------------------------- 1 | true === false 2 | -------------------------------------------------------------------------------- /test/approvals/invert_if.invert_test_expression.inverts_a_positive_expression.approved.txt: -------------------------------------------------------------------------------- 1 | !(true === false) 2 | -------------------------------------------------------------------------------- /test/approvals/lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_assigned_to_a_variable_for_an_arrow_function_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_assigned_to_a_variable_for_an_arrow_function_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_for_a_named_function_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_for_a_named_function_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_for_an_unnamed_function_expression.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/lift_and_name_function_expression.get_new_function_string.builds_a_function_declaration_for_an_unnamed_function_expression.approved.txt -------------------------------------------------------------------------------- /test/approvals/node_path_builder.builds_an_array_of_parent_nodes_to_selection.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/node_path_builder.builds_an_array_of_parent_nodes_to_selection.approved.txt -------------------------------------------------------------------------------- /test/approvals/rename_replacement_location_finder.find_all_references_to_a_class_method_for_renaming.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/rename_replacement_location_finder.find_all_references_to_a_class_method_for_renaming.approved.txt -------------------------------------------------------------------------------- /test/approvals/rename_replacement_location_finder.find_all_references_to_a_object_literal_method_for_renaming.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/rename_replacement_location_finder.find_all_references_to_a_object_literal_method_for_renaming.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_destructured_array_parameter_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_destructured_array_parameter_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_destructured_object_parameter_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_destructured_object_parameter_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_function_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_function_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_method_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_method_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_method_parameter_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_method_parameter_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_simple_parameter_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_simple_parameter_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_a_simple_variable_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_a_simple_variable_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/select_literal_or_associated_node_for_rename.selects_an_assignment_parameter_name.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/select_literal_or_associated_node_for_rename.selects_an_assignment_parameter_name.approved.txt -------------------------------------------------------------------------------- /test/approvals/source_parser.parses_javascript_embedded_in_HTML.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/source_parser.parses_javascript_embedded_in_HTML.approved.txt -------------------------------------------------------------------------------- /test/approvals/source_parser.parses_javascript_with_a_node_shebang.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/source_parser.parses_javascript_with_a_node_shebang.approved.txt -------------------------------------------------------------------------------- /test/approvals/source_parser.parses_plain_old_javascript_source.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/source_parser.parses_plain_old_javascript_source.approved.txt -------------------------------------------------------------------------------- /test/approvals/source_parser.parses_plain_old_typescript_source.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/source_parser.parses_plain_old_typescript_source.approved.txt -------------------------------------------------------------------------------- /test/approvals/surround_with_behavior_support_functions.get_language_snippet_name.returns_javascript_for_language_ids__javascript__javascriptreact__jsx.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/surround_with_behavior_support_functions.get_language_snippet_name.returns_javascript_for_language_ids__javascript__javascriptreact__jsx.approved.txt -------------------------------------------------------------------------------- /test/approvals/surround_with_behavior_support_functions.get_language_snippet_name.returns_typescript_for_language_ids__typescript__typescriptreact__tsx.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/surround_with_behavior_support_functions.get_language_snippet_name.returns_typescript_for_language_ids__typescript__typescriptreact__tsx.approved.txt -------------------------------------------------------------------------------- /test/approvals/surround_with_behavior_support_functions.get_snippet_body_text.returns_a_single_string_snippet_body.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/surround_with_behavior_support_functions.get_snippet_body_text.returns_a_single_string_snippet_body.approved.txt -------------------------------------------------------------------------------- /test/approvals/surround_with_behavior_support_functions.get_template_list.returns_the_template_list_correctly.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/surround_with_behavior_support_functions.get_template_list.returns_the_template_list_correctly.approved.txt -------------------------------------------------------------------------------- /test/approvals/toggle_function_call_argument_style____positional_or_object.build_argument_object_snippet.returns_a_tab_stopped_snippet_for_an_object_style_argument.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/toggle_function_call_argument_style____positional_or_object.build_argument_object_snippet.returns_a_tab_stopped_snippet_for_an_object_style_argument.approved.txt -------------------------------------------------------------------------------- /test/approvals/toggle_function_call_argument_style____positional_or_object.build_positional_argument_string.returns_a_positional_argument_string_when_arguments_are_an_object.approved.txt: -------------------------------------------------------------------------------- 1 | 1, 2, { c: 3, d: 4 }, [5] 2 | -------------------------------------------------------------------------------- /test/approvals/toggle_function_call_argument_style____positional_or_object.get_arguments_location.returns_position_for_entire_arguments_list.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/toggle_function_call_argument_style____positional_or_object.get_arguments_location.returns_position_for_entire_arguments_list.approved.txt -------------------------------------------------------------------------------- /test/approvals/toggle_parameters_type.build_parameter_object_template.creates_a_new_template_string_to_insert_for_existing_parameters.approved.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/approvals/toggle_parameters_type.build_parameter_object_template.creates_a_new_template_string_to_insert_for_existing_parameters.approved.txt -------------------------------------------------------------------------------- /test/approvals/toggle_parameters_type.build_positional_parameter_string.creates_positional_parameters_from_destructured_object_parameters.approved.txt: -------------------------------------------------------------------------------- 1 | a, b = 7, { d, e }, [g] 2 | -------------------------------------------------------------------------------- /test/tests/action-setup/action-setup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/action-setup/action-setup.test.js -------------------------------------------------------------------------------- /test/tests/action-setup/fixtures/source-fake.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/action-setup/fixtures/source-fake.js -------------------------------------------------------------------------------- /test/tests/action-setup/fixtures/vscode-fake.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/action-setup/fixtures/vscode-fake.js -------------------------------------------------------------------------------- /test/tests/astTraverse/astTraverse.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/astTraverse/astTraverse.test.js -------------------------------------------------------------------------------- /test/tests/astTraverse/fixtures/simplets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/astTraverse/fixtures/simplets.ts -------------------------------------------------------------------------------- /test/tests/code-range-transforms/code-range-transforms.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/code-range-transforms/code-range-transforms.test.js -------------------------------------------------------------------------------- /test/tests/commands/change-variable-type/change-variable-type.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/change-variable-type/change-variable-type.test.js -------------------------------------------------------------------------------- /test/tests/commands/change-variable-type/fixtures/test-fixture.js: -------------------------------------------------------------------------------- 1 | let something = 'foo'; -------------------------------------------------------------------------------- /test/tests/commands/convert-import-to-commonjs/convert-import-to-commonjs.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-import-to-commonjs/convert-import-to-commonjs.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-import-to-commonjs/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-import-to-commonjs/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/convert-ternary-to-if-else/convert-ternary-to-if-else.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-ternary-to-if-else/convert-ternary-to-if-else.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-ternary-to-if-else/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-ternary-to-if-else/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-arrow-function/convert-to-arrow-function.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-arrow-function/convert-to-arrow-function.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-arrow-function/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-arrow-function/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-function-declaration/convert-to-function-declaration.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-function-declaration/convert-to-function-declaration.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-function-declaration/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-function-declaration/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-function-expression/convert-to-function-expression.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-function-expression/convert-to-function-expression.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-function-expression/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-function-expression/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-method/convert-to-method.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-method/convert-to-method.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-method/fixtures/test-fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-method/fixtures/test-fixture.ts -------------------------------------------------------------------------------- /test/tests/commands/convert-to-template-literal/convert-to-template-literal.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-template-literal/convert-to-template-literal.test.js -------------------------------------------------------------------------------- /test/tests/commands/convert-to-template-literal/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/convert-to-template-literal/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/extract-method/extract-method-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-method/extract-method-helpers.js -------------------------------------------------------------------------------- /test/tests/commands/extract-method/extract-method.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-method/extract-method.test.js -------------------------------------------------------------------------------- /test/tests/commands/extract-method/fixtures/extract-with-variable-declaration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-method/fixtures/extract-with-variable-declaration.js -------------------------------------------------------------------------------- /test/tests/commands/extract-method/fixtures/for-loop-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-method/fixtures/for-loop-source.js -------------------------------------------------------------------------------- /test/tests/commands/extract-method/fixtures/mixed-scope-var-declarations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-method/fixtures/mixed-scope-var-declarations.js -------------------------------------------------------------------------------- /test/tests/commands/extract-method/fixtures/test-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-method/fixtures/test-source.js -------------------------------------------------------------------------------- /test/tests/commands/extract-to-parameter/extract-to-parameter.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-to-parameter/extract-to-parameter.test.js -------------------------------------------------------------------------------- /test/tests/commands/extract-to-parameter/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-to-parameter/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/extract-variable/extract-variable-test-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-variable/extract-variable-test-helpers.js -------------------------------------------------------------------------------- /test/tests/commands/extract-variable/extract-variable.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-variable/extract-variable.test.js -------------------------------------------------------------------------------- /test/tests/commands/extract-variable/fixtures/test-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-variable/fixtures/test-source.js -------------------------------------------------------------------------------- /test/tests/commands/extract-variable/temp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-variable/temp.js -------------------------------------------------------------------------------- /test/tests/commands/extract-variable/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/extract-variable/test.json -------------------------------------------------------------------------------- /test/tests/commands/inline-variable/fixtures/location-selection-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/inline-variable/fixtures/location-selection-source.js -------------------------------------------------------------------------------- /test/tests/commands/inline-variable/fixtures/nested-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/inline-variable/fixtures/nested-source.js -------------------------------------------------------------------------------- /test/tests/commands/inline-variable/fixtures/test-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/inline-variable/fixtures/test-source.js -------------------------------------------------------------------------------- /test/tests/commands/inline-variable/inline-variable.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/inline-variable/inline-variable.test.js -------------------------------------------------------------------------------- /test/tests/commands/introduce-function/fixtures/test-fixture.js: -------------------------------------------------------------------------------- 1 | someCallExpression(); 2 | 3 | someIdentifier; -------------------------------------------------------------------------------- /test/tests/commands/introduce-function/introduce-function.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/introduce-function/introduce-function.test.js -------------------------------------------------------------------------------- /test/tests/commands/invert-if/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/invert-if/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/invert-if/invert-if.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/invert-if/invert-if.test.js -------------------------------------------------------------------------------- /test/tests/commands/lift-and-name-function-expression/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/lift-and-name-function-expression/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/lift-and-name-function-expression/lift-and-name-function-expression.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/lift-and-name-function-expression/lift-and-name-function-expression.test.js -------------------------------------------------------------------------------- /test/tests/commands/move-function-into-class/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/move-function-into-class/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/move-function-into-class/move-function-into-class.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/move-function-into-class/move-function-into-class.test.js -------------------------------------------------------------------------------- /test/tests/commands/rename/fixtures/identifier-selection-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/rename/fixtures/identifier-selection-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/rename/fixtures/select-class-methods-identifiers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/rename/fixtures/select-class-methods-identifiers.js -------------------------------------------------------------------------------- /test/tests/commands/rename/fixtures/select-object-literal-method-locations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/rename/fixtures/select-object-literal-method-locations.js -------------------------------------------------------------------------------- /test/tests/commands/rename/rename-method-replacement-locations.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/rename/rename-method-replacement-locations.test.js -------------------------------------------------------------------------------- /test/tests/commands/rename/rename-select-identifier.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/rename/rename-select-identifier.test.js -------------------------------------------------------------------------------- /test/tests/commands/surround-with/fixtures/test-fixture.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/surround-with/fixtures/test-fixture.json -------------------------------------------------------------------------------- /test/tests/commands/surround-with/surround-with.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/surround-with/surround-with.test.js -------------------------------------------------------------------------------- /test/tests/commands/toggle-arguments-style/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/toggle-arguments-style/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/toggle-arguments-style/toggle-arguments-style.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/toggle-arguments-style/toggle-arguments-style.test.js -------------------------------------------------------------------------------- /test/tests/commands/toggle-parameters-style/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/toggle-parameters-style/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/toggle-parameters-style/toggle-parameters-type.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/toggle-parameters-style/toggle-parameters-type.test.js -------------------------------------------------------------------------------- /test/tests/commands/toggle-property-declaration/fixtures/test-fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/toggle-property-declaration/fixtures/test-fixture.js -------------------------------------------------------------------------------- /test/tests/commands/toggle-property-declaration/toggle-property-declaration.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/commands/toggle-property-declaration/toggle-property-declaration.test.js -------------------------------------------------------------------------------- /test/tests/function-utils/fixtures/function-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/function-utils/fixtures/function-source.js -------------------------------------------------------------------------------- /test/tests/function-utils/fixtures/test-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/function-utils/fixtures/test-source.js -------------------------------------------------------------------------------- /test/tests/function-utils/function-location.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/function-utils/function-location.test.js -------------------------------------------------------------------------------- /test/tests/function-utils/function-source.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/function-utils/function-source.test.js -------------------------------------------------------------------------------- /test/tests/method-builder/MethodBuilder.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/method-builder/MethodBuilder.test.js -------------------------------------------------------------------------------- /test/tests/node-path/fixtures/nested-nodes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/node-path/fixtures/nested-nodes.js -------------------------------------------------------------------------------- /test/tests/node-path/node_path.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/node-path/node_path.test.js -------------------------------------------------------------------------------- /test/tests/parser/fixtures/js-in-html.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/parser/fixtures/js-in-html.html -------------------------------------------------------------------------------- /test/tests/parser/fixtures/shebang-js.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | function add(b, c) { 4 | return c + b; 5 | } -------------------------------------------------------------------------------- /test/tests/parser/fixtures/simplejs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/parser/fixtures/simplejs.js -------------------------------------------------------------------------------- /test/tests/parser/fixtures/simplets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/parser/fixtures/simplets.ts -------------------------------------------------------------------------------- /test/tests/parser/parser.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/parser/parser.test.js -------------------------------------------------------------------------------- /test/tests/test-doubles/VsCodeFake.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/test-doubles/VsCodeFake.js -------------------------------------------------------------------------------- /test/tests/test-doubles/VsCodePosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/test-doubles/VsCodePosition.js -------------------------------------------------------------------------------- /test/tests/test-doubles/VsCodeSelection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/tests/test-doubles/VsCodeSelection.js -------------------------------------------------------------------------------- /test/utilities/approvals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/utilities/approvals.js -------------------------------------------------------------------------------- /test/utilities/editor-to-location-selection-builder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/utilities/editor-to-location-selection-builder.js -------------------------------------------------------------------------------- /test/utilities/file-reader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/utilities/file-reader.js -------------------------------------------------------------------------------- /test/utilities/module-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/test/utilities/module-loader.js -------------------------------------------------------------------------------- /ts-snippets.code-snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/ts-snippets.code-snippets -------------------------------------------------------------------------------- /version-bump.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cmstead/js-codeformer/HEAD/version-bump.js --------------------------------------------------------------------------------