We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now, we have two ways of generating a name in the compiler:
createTempVariable
generateUniqueName
The second one can further be split into two callers:
getGeneratedNamesForSourceFile
generateUniqueNameForLocation
We also have 3 ways to track whether a name is unique, and both methods of generating a name do all of these:
tempCount
All of these things need to be consolidated. There are some desirable qualities we want the solution to have:
The text was updated successfully, but these errors were encountered:
I haven't looked at the code. Hope no one is using Random 🌹
Sorry, something went wrong.
Should be addressed by #2471
Merge pull request #2471 from Microsoft/revisedNameGen2
e5e5ad8
Revised name generation #2, fixes #2449, #2447
No branches or pull requests
Right now, we have two ways of generating a name in the compiler:
createTempVariable
in the emittergenerateUniqueName
in utilities.The second one can further be split into two callers:
getGeneratedNamesForSourceFile
in the checkergenerateUniqueNameForLocation
in the emitterWe also have 3 ways to track whether a name is unique, and both methods of generating a name do all of these:
tempCount
increateTempVariable
keeps track of a different set of names per file by using a counterAll of these things need to be consolidated. There are some desirable qualities we want the solution to have:
The text was updated successfully, but these errors were encountered: