-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Build code introspection service #7760
Conversation
.../engine/metadata-modules/serverless-function/code-introspection/code-introspection.module.ts
Outdated
Show resolved
Hide resolved
...engine/metadata-modules/serverless-function/code-introspection/code-introspection.service.ts
Outdated
Show resolved
Hide resolved
6b109af
to
6f76765
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request introduces a new CodeIntrospectionService for analyzing TypeScript function parameters using the ts-morph library.
- Added
CodeIntrospectionService
incode-introspection.service.ts
to analyze function declarations and arrow functions - Implemented unit tests in
code-introspection.service.spec.ts
covering various scenarios - Created
CodeIntrospectionException
andCodeIntrospectionExceptionCode
for error handling - Added
CodeIntrospectionModule
for NestJS module organization - Modified
ServerlessFunctionService
to prepare for integration with the new code introspection capabilities
6 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
...twenty-server/src/engine/metadata-modules/serverless-function/serverless-function.service.ts
Show resolved
Hide resolved
packages/twenty-server/src/modules/code-introspection/code-introspection.exception.ts
Show resolved
Hide resolved
packages/twenty-server/src/modules/code-introspection/code-introspection.exception.ts
Show resolved
Hide resolved
packages/twenty-server/src/modules/code-introspection/code-introspection.service.ts
Outdated
Show resolved
Hide resolved
packages/twenty-server/src/modules/code-introspection/code-introspection.service.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Starting to use ts-morph to retrieve function parameters