Skip to content

🤖 User test baselines have changed for mappedTypeMemberResolution - #36755

Closed
TypeScript Bot (typescript-bot) wants to merge 15 commits into
microsoft:mappedTypeMemberResolutionfrom
typescript-bot:user-update-microsoft-20200103-mappedTypeMemberResolution
Closed

TypeScript Bot (typescript-bot) wants to merge 15 commits into
microsoft:mappedTypeMemberResolutionfrom
typescript-bot:user-update-microsoft-20200103-mappedTypeMemberResolution

Conversation

@typescript-bot

Copy link
Copy Markdown
Contributor

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

cc Anders Hejlsberg (@ahejlsberg)

…#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>
…ft#36722)

Handle walkThroughSnippet:/ and untitled:/ as dynamic files
Fixes microsoft#36681
…o, and use auto-imports in “implement interface” fix (microsoft#36615)

* Refactor fix-all-missing-imports to be reusable by other codefixes

* Migrate infer-from-usage to use ImportAdder

* Add infer from usage test importing more than one thing in a single fix

* Migrate implement interface / abstract members fixes to use ImportAdder

* Update old tests

* Use type-only imports when it would be an error not to

* Add another test

* Rename stuff
* Throw syntax error for `}` and `>` in JSX text

Fixes microsoft#36341

* Add codefix for error
…ft#36727)

* add tests but not baselines or fixes

* Update original change

Still probably wrong; probably doesn't even compile beacuse I'm just
typing on my laptop.

* fix error code ok

* notes to self

* Error: property is specified more than once via spread

* make jsx tests stricter

* update semicolon error message

* use ?. because it is great

* use maybeTypeOfKind in new code

* restore jsx error

* add tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

8 participants