Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(1) when rewriting jsdoc type declarations first make sure the JSDoc actually contains a type before attempting anything (2) when attempting to rewrite JSDoc bailout when if the JSDoc object doesn't have an original text. The first prevents failures for cases like: /** @const */ var x = ... Where currently the code assumed if the type matched and there was a jsdoc object, it had to have a type declaration. The second handles cases like where the compiler generates a synthetic jsdoc object (where there isn't any jsdoc in the original source). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149667957
- Loading branch information
1 parent
8ac08c0
commit fab4a78
Showing
3 changed files
with
56 additions
and
13 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