hufeng commented on issue #302: URL: https://github.com/apache/dubbo-js/issues/302#issuecomment-1321535450
只要拿到了ast,其实就解决大部分问题了,剩下的只是根据我们的诉求生成dubbo-client/dubbo-server的stub service 方法上可以借鉴,但是我们还是要梳理我们需要什么,如果我们不需要那么重的实现逻辑,也可以自己实现。 现在的重点也要思考生成代码的样子。 杨晓东 在 2022年11月21日 星期一 14:32:50 (+08:00) 写道: @hsiaosiyuan0 目前的生成流程也借鉴了ts-proto等库,如:pb文件解析(也是基于官方protoc)及fileDescript类型定义(google提供),其他一些基础方法在coding时可以参考; 两种形态确实要讨论下: 在ts-proto库写 generate扩展,以生成dubbojs stub; 单独封装生成命令; — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org