-
-
Notifications
You must be signed in to change notification settings - Fork 669
Parser identifies ~lib/rt/index-full as SourceKind.USER_ENTRY #889
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
Comments
This is intended behavior. One can think of this as linking two programs together on source level, based on two entries. What the compiler does there is to parse the runtime entry before the user entry where both can have their own module-level exports (which |
ah...that does make sense, I assumed (in the context of trying to develop a transform) that was how i could find the users entry file. I had been folloiwng along with and assumed this was the correct way to replace that call in the current api The renames make sense to me, but I can close if its a non-issue since this is intended behavior |
@sampaioletti You should try out my PR: #866, it's in typescript, but it makes transforming much easier. Here's an example of using the transformer class for the binding code to Near Protocol's bindings. It informed informed the PR when trying to create a proper tooling setup for working externally on creating transformers. @dcodeIO I vote for adding another case. I too had this issue when filter for user entry files how about |
@willemneal That looks real cool I'll pull it down and give it a try, I think its great that its in TS...i'm not a a js guy so I only do it when i have to (: I did manage to make a transform that did what i wanted to for my example at but i can see the advantages of using your class thanks for the info! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
While playing with the transform option I noticed the ~lib/rt/index-full source is recognized as SourceKind.USER_ENTRY as is my user generated entry file, I would have thought it would be SourceKind.LIBRARY
If that is the intended classification how would one determine the difference between a user file in this scenario
It is classified as such due to the following
assemblyscript/src/parser.ts
Lines 134 to 144 in 024d9de
The text was updated successfully, but these errors were encountered: