-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[refactor] Re-export some functions called directly by ASTTransfomer.* as member of ASTBuilder #4034
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/taichi-api-docs-preview/taichi/wfgk9bUkFqUwDwjMXuCk8LHRLMEg [Deployment for 24b45fa canceled] |
✔️ Deploy Preview for docsite-preview ready! 🔨 Explore the source changes: 24b45fa 🔍 Inspect the deploy log: https://app.netlify.com/sites/docsite-preview/deploys/61e8d998ece6140007a65b91 😎 Browse the preview: https://deploy-preview-4034--docsite-preview.netlify.app |
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.
Looks great! The title needs to be modified because this PR only reflects the first step of the issue.
@lin-hitonami Is there any reason we make build_xxx
static methods? I'm wondering whether we can put ast_builder
as a member variable of ASTTransformer
. Another option might be to put it under ctx
, but I'm not sure if that's proper.
Co-authored-by: Yi Xu <xy_xuyi@foxmail.com>
Maybe putting it under |
Yea makes sense, how about putting it in |
Co-authored-by: Yi Xu <xy_xuyi@foxmail.com>
…dev-export-ASTBuilder
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!
Co-authored-by: Yi Xu <xy_xuyi@foxmail.com>
Related issue = #4032