-
Notifications
You must be signed in to change notification settings - Fork 6
動作の修正とリファクタリング #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
新たに findDeclarationsReferencingFile 関数の動作を検証するためのユニットテストを実装しました。これにより、ターゲットファイルを参照する全ての Import/Export 宣言を正しく検出できることを確認し、エイリアスパスやバレルファイル経由の参照に関するテストも含めました。また、関連するコメントを日本語に翻訳し、コードの可読性を向上させました。
…の説明を改善し、より具体的な情報を提供するようにしました。
新たにファイルシステムのエントリを移動するための `moveFileSystemEntries` 関数、リネーム準備を行う `prepareRenames` 関数、モジュール指定子を更新する `updateModuleSpecifiers` 関数を実装しました。これにより、リネーム操作の効率が向上し、関連するエラーハンドリングやロギング機能も強化されました。
新たにシンボルを既存のファイルに移動し、既存の内容とマージされることを確認するテストケースを追加しました。また、移動先のファイルにシンボルを追加するための `updateTargetFile` 関数を実装し、依存関係の整理とインポートの更新を行う処理を強化しました。
`newFilePath`を`targetFilePath`に変更し、移動先ファイルの説明を具体化しました。また、ツールの使用方法や内部依存関係の処理に関する説明を改善し、シンボル移動機能の理解を深めるための情報を追加しました。
デフォルトインポートに依存するシンボルから新しいファイル内容を生成するテストケースを追加しました。また、インポート情報の集約処理を改善し、インポート文の生成ロジックを整理しました。これにより、シンボル移動機能の信頼性が向上しました。
インポート処理において自己参照を検出し、無視するロジックを追加しました。また、`updateTargetFile` 関数に対するテストケースを新たに作成し、自己参照パスが含まれている場合の動作を確認しました。これにより、シンボル移動機能の信頼性が向上しました。
内部依存関係を再帰的に特定するための新しい関数を実装しました。また、テストケースを追加し、複数の間接的な依存関係を正しく検出できることを確認しました。これにより、シンボル移動機能の信頼性が向上しました。
移動先ファイルが元々移動元シンボルをインポートしていた場合に、そのインポート指定子や宣言を削除するロジックを追加しました。また、関連するテストケースを新たに作成し、自己参照を防ぐ処理の信頼性を向上させました。
Split import generation logic into build-new-file-import-section.ts. Move related files (including test) into generate-content/ subdirectory. Remove unnecessary exports. Fix self-reference import bug in updateImportsInReferencingFiles.
…ました。これにより、テストの可読性と信頼性が向上しました。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.