Skip to content

Handle parentless nodes in isParameterPropertyDeclaration - #33321

Merged
Daniel Rosenwasser (DanielRosenwasser) merged 1 commit into
microsoft:release-3.6from
mprobst:transformParameterProperty
Sep 17, 2019
Merged

Daniel Rosenwasser (DanielRosenwasser) merged 1 commit into
microsoft:release-3.6from
mprobst:transformParameterProperty

Conversation

@mprobst

Copy link
Copy Markdown
Contributor

Fixes #33295.

This follows a similar pattern as in #20314 by requiring an explicit
parent parameter. Where possible, it uses the appopriate variable at
the call sites.

In several locations there is no context available though (e.g.
inspecting valueDeclarations) and we access .parent as the code
previously did. From a cursory inspection this seems correct, these
callpaths originate in phases where there must be a parent (i.e. in
checker, binder, etc).

Change-Id: I28e4726777b57237bec776e4001e9e69ac591b11

@mprobst

Copy link
Copy Markdown
Contributor Author

CC Ron Buckton (@rbuckton) and Wesley Wigham (@weswigham), whose PR I'm shamelessly copying here :-)

Also fixes angular/tsickle#1065.

@weswigham

Copy link
Copy Markdown
Member

Daniel Rosenwasser (@DanielRosenwasser) you proooobably want to accept this and merge into a 3.6 patch release, assuming there will be one.

@mprobst

Copy link
Copy Markdown
Contributor Author

Wesley Wigham (@weswigham) / Daniel Rosenwasser (@DanielRosenwasser) what's the next step here, do I need to do something?

@DanielRosenwasser

Daniel Rosenwasser (DanielRosenwasser) commented Sep 13, 2019 •

Copy link
Copy Markdown
Member

Sorry, thought this was merged because I was on mobile. Can you fix conflicts and create a separate PR to release-3.6?

Fixes microsoft#33295.

This follows a similar pattern as in microsoft#20314 by requiring an explicit
`parent` parameter. Where possible, it uses the appopriate variable at
the call sites.

In several locations there is no context available though (e.g.
inspecting `valueDeclarations`) and we access `.parent` as the code
previously did. From a cursory inspection this seems correct, these
callpaths originate in phases where there must be a `parent` (i.e. in
checker, binder, etc).

Change-Id: I28e4726777b57237bec776e4001e9e69ac591b11
@typescript-bot

Copy link
Copy Markdown
Contributor

It looks like you've sent a pull request to update our 'lib' files. These files aren't meant to be edited by hand, as they consist of last-known good states of the compiler and are generated from 'src'. Unless this is necessary, consider closing the pull request and sending a separate PR to update 'src'.

@mprobst
Martin Probst (mprobst) changed the base branch from master to release-3.6 September 17, 2019 15:12
@mprobst

Copy link
Copy Markdown
Contributor Author

Daniel Rosenwasser (@DanielRosenwasser) done, this is now a single commit on top of release-3.6.

@DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser) merged commit 46ccaa2 into microsoft:release-3.6 Sep 17, 2019
@mprobst
Martin Probst (mprobst) deleted the transformParameterProperty branch March 9, 2020 08:34
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants