rokucommunity / rokucommunity/brighterscript
Import enhancements
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
We should add support for importing only a single function from a file. Like this:
Import printDebug from "./printHelpers".bs
Import printInfo, printWarning from "./printHelpers.bs"
'also allow renaming
Import printDebug as debug, printWarning as warn from "./printHelpers.bs"
In it's basic form, this would result in the compiler rewriting the function calls to match the original function names and still importing the entire file, but it adds a lot of naming fexibility into the importer's code.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the compiler entry points that parse and process Import statements; no specific files or tests are named in the issue. Compare the single-function, multi-function, and aliased examples, then verify that the accepted syntax preserves the described rewriting behavior while importing the file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100