Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start handling destructuring parameters in FunctionTypeBuilder
Our current system for annotating destructuring parameters (transpiling before typechecking) is sort of hacky. When transpiling the nth parameter,assuming it's destructuring, we associate the nth parameter in the AST with the nth parameter in the JSDoc, and rename the parameter to match the JSDoc. This CL doesn't handle declaring named destructuring parameters inside a function scope or inline JSDoc on destructuring parameters. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=204940576
- Loading branch information
1 parent
1a1e274
commit e5a6a10
Showing
4 changed files
with
185 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters