Skip to content
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

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Oct 16, 2024

Starting to use ts-morph to retrieve function parameters

@thomtrp thomtrp force-pushed the tt-build-code-introspection-service branch from 6b109af to 6f76765 Compare October 17, 2024 08:11
@thomtrp thomtrp marked this pull request as ready for review October 17, 2024 08:12
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 in code-introspection.service.ts to analyze function declarations and arrow functions
  • Implemented unit tests in code-introspection.service.spec.ts covering various scenarios
  • Created CodeIntrospectionException and CodeIntrospectionExceptionCode 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

Copy link
Contributor

@martmull martmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomtrp thomtrp merged commit f338d01 into main Oct 17, 2024
8 checks passed
@thomtrp thomtrp deleted the tt-build-code-introspection-service branch October 17, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants