Skip to content
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

🤖 User test baselines have changed for neverLikeIntersections #36698

Conversation

typescript-bot
Copy link
Collaborator

This test run was triggerd by a request on #36696
Please review the diff and merge if no changes are unexpected.
You can view the build log here.

cc @ahejlsberg

sandersn and others added 5 commits February 6, 2020 14:38
…#36658)

* Support property declarations in jsdoc template generation

* fix lint and add test
* Fix jsdoc comment parsing initial state

Jsdoc comment parsing can be invoked in two modes:

1. top-level parsing, for comments not inside a tag.
2. tag parsing, for comment that occur after the semantic parts of a
tag.

Top-level parsing skips an initial * because it assumes that it is starting
at the very beginning of a JSDoc comment. Tag parsing does not.

The two modes are distinguished by an optional second parameter named
`margin`. When `margin` is provided, it provides an initial indent used
for comment alignment.

Previously, the check for `margin` was a truthy check `if (margin)`.
This check incorrectly treats `margin=""` the same as
`margin=undefined`.

This PR changes the check to `if (margin !== undefined)`, which
correctly treats `margin=""` the same as `margin="    "`.

* Fixes for broken tests

1. Use SawAsterisk start state.
2. @template needs to skip asterisk in addition to whitespace while
parsing type parameter names.

* undo code move
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
@typescript-bot typescript-bot force-pushed the user-update-microsoft-20200106-neverLikeIntersections branch from 2bdbfdf to 54db5d2 Compare February 8, 2020 22:06
@weswigham weswigham closed this Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants