generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rust): add relevant classes to TestFileContext
This commit adds the ability to include relevant classes in the TestFileContext of the RustTestService. The relevant classes are looked up based on the element passed to the lookupRelevantClass function. If the element is a RsFunction, the return type and input parameters are extracted and resolved to obtain the corresponding RustClassContext. These relevant classes are then included in the TestFileContext. Additionally, a new private function resolveReferenceTypes is added to resolve the reference types of RsTypeReference.
- Loading branch information
Showing
4 changed files
with
39 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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