-
Notifications
You must be signed in to change notification settings - Fork 3
Generate Test Files of the Fix FQN Issues for Modules, Functions, and Properties #79
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
Open
mohbl
wants to merge
7
commits into
fuhrmanator:master
Choose a base branch
from
mohbl:fix-FQN
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
…N errors for ImportEqualsDeclaration nodes by including\ndeclaration names in getFQN
… instead of throw error
…ss with debug logs
Owner
|
Christopher Fuhrman, P.Eng., PhD
*Professeur au Département de génie logiciel et des technologies de l' je
informationÉTS (École de technologie supérieure)*
http://profs.etsmtl.ca/cfuhrman
Disponibilités: http://tiny.cc/cfuhrmanGoogleCal
+1 514 396 8638
*L'ÉTS est une constituante de l'Université du Québec*
*Note : Ce message peut avoir été assisté par IA, sans transmission de
données personnelles ni confidentielles.*
…---------- Forwarded message ---------
From: belhadj mohamed ***@***.***>
Date: Mon, Jun 30, 2025, 07:53
Subject: [fuhrmanator/FamixTypeScriptImporter] Generate Test Files of the
Fix FQN Issues for Modules, Functions, and Properties (PR #79)
To: fuhrmanator/FamixTypeScriptImporter <
***@***.***>
Cc: Christopher (Cris) Fuhrman ***@***.***>,
Mention ***@***.***>
This PR focuses on generating test files to validate fixes for three issues
in ts2famix :
1/Duplicate Module FQNs for Top-level and nested ModuleDeclaration nodes
(e.g., Namespace1, ParentNamespace.Inner) received duplicate FQNs, causing
missing or conflicting Module entities.
2/Missing Arrow/Function Expressions: ArrowFunction and FunctionExpression
nodes in CallExpression (e.g., arr.forEach) and ModuleDeclaration (e.g.,
module Foo) were not assigned unique FQNs, leading to undefined entities
(e.g., famixArrow1).
3/Unindexed Properties: PropertyDeclaration nodes in classes were not
indexed in buildMethodPositionMap, omitting them from the Famix model.
New test files were created to validate these fixes
*ModuleDuplicateFQN.test.ts* , *FunctionAndArrowExpressionFQN.test.ts* and
one case of the properties were added to the *existed file
MethodOverloadFQN.test.ts*
Thank you, @fuhrmanator <https://github.com/fuhrmanator> , for your review.
I apologize for the delay in providing well-structured test files, and I
appreciate your patience.
------------------------------
You can view, comment on, or merge this pull request online at:
#79
Commit Summary
- 3900640
<3900640>
Fix duplicate FQN errors for nested and top-level modules
- f450eb8
<f450eb8>
Fix duplicate FQN for ImportEqualsDeclaration\n\nPrevent duplicate FQN
errors for ImportEqualsDeclaration nodes by including\ndeclaration names in
getFQN
- b0e61a9
<b0e61a9>
Default constructor parameters without visibility modifiers to public
instead of throw error
- c5d946b
<c5d946b>
Skip class accessor errors in createFamixAccess by skipping Famix.Class
with debug logs
- 9e0507e
<9e0507e>
Resolve Duplicate FQNs by Indexing Arrow Functions and Function Expressions
- 44d5e41
<44d5e41>
enhance buildMethodPositionMap to handle well properties
- 52510be
<52510be>
add jest test files for the previous pr
File Changes
(7 files
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files>)
- *M* src/analyze_functions/process_functions.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-d4cf349d204c74e25ac6692d4121070f3a2240a657d4d3e60b89214727acf353>
(8)
- *M* src/famix_functions/EntityDictionary.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-d20baf9c24e71f7998b197b70f9d124ee5f89767c6cba3351b18480fe7e74c6c>
(103)
- *M* src/famix_functions/helpers_creation.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-d178e4d52e599cbe13027f6b5d52117ffe2ebb7736b0ae806815f83ef82dd0f7>
(2)
- *M* src/fqn.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-0c692908261da680d541233e3582ef36278b33a17f38d61b6a9445d1e93c6920>
(131)
- *A* test/FunctionAndArrowExpressionFQN.test.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-04c4604d713ab57bdd05132953a4509446faad6efc0b2b4652bdedfcb052657b>
(159)
- *M* test/MethodOverloadFQN.test.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-aa45620261a3c49e21ae67894772a2435dfe2355a04361b192ce7e4eec81a89c>
(125)
- *A* test/ModuleDuplicateFQN.test.ts
<https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79/files#diff-0a78aa511ba91beb2cf8b0d67c1aa8ffb4c1f5272dbd3b043dcacad39cfd98f7>
(195)
Patch Links:
- https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79.patch
- https://github.com/fuhrmanator/FamixTypeScriptImporter/pull/79.diff
—
Reply to this email directly, view it on GitHub
<#79>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2BCDBMXB46BKBYUBJIAAT3GEQLZAVCNFSM6AAAAACAOACJ7CVHI2DSMVQWIX3LMV43ASLTON2WKOZTGE4DQMRQGQYTQNY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
This PR focuses on generating test files to validate fixes for three issues in ts2famix :
1/Duplicate Module FQNs for Top-level and nested ModuleDeclaration nodes (e.g., Namespace1, ParentNamespace.Inner) received duplicate FQNs, causing missing or conflicting Module entities.
2/Missing Arrow/Function Expressions: ArrowFunction and FunctionExpression nodes in CallExpression (e.g., arr.forEach) and ModuleDeclaration (e.g., module Foo) were not assigned unique FQNs, leading to undefined entities (e.g., famixArrow1).
3/Unindexed Properties: PropertyDeclaration nodes in classes were not indexed in buildMethodPositionMap, omitting them from the Famix model.
New test files were created to validate these fixes ModuleDuplicateFQN.test.ts , FunctionAndArrowExpressionFQN.test.ts and one case of the properties were added to the existed file MethodOverloadFQN.test.ts
Thank you, @fuhrmanator , for your review. I apologize for the delay in providing well-structured test files, and I appreciate your patience.