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

fix: processing example is failing when example contains jsdoc annotated export #1170

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Apr 17, 2024

Fixes #1161

The code to process statements was making some incorrect assumptions about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
@mrgrain mrgrain changed the title fix: processing rosetta fixture is failing with error fix: processing example is failing when example contains jsdoc annotated export Apr 23, 2024
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit b41e905 Apr 23, 2024
10 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/fix/cannot-read-fixture branch April 23, 2024 09:11
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
@aws-cdk-automation
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
maintenance/v5.2
maintenance/v5.1
maintenance/v5.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@aws-cdk-automation
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
maintenance/v5.1
maintenance/v5.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

aws-cdk-automation pushed a commit that referenced this pull request Apr 23, 2024
…ted export (#1170)

Fixes #1161

The code to process statements was making some incorrect assumptions
about how the AST looks like.
This fix is making it more resilient to unexpected AST structures.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Momo Kornher <kornherm@amazon.co.uk>
(cherry picked from commit b41e905)
@aws-cdk-automation
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
maintenance/v5.2
maintenance/v5.1
maintenance/v5.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

github-merge-queue bot pushed a commit that referenced this pull request Apr 23, 2024
…ted export (backport #1170) (#1216)

# Backport

This will backport the following commits from `main` to
`maintenance/v5.2`:
- [fix: processing example is failing when example contains jsdoc
annotated export (#1170)](#1170)

<!--- Backport version: 9.3.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
github-merge-queue bot pushed a commit that referenced this pull request Apr 23, 2024
…ted export (backport #1170) (#1217)

# Backport

This will backport the following commits from `main` to
`maintenance/v5.1`:
- [fix: processing example is failing when example contains jsdoc
annotated export (#1170)](#1170)

<!--- Backport version: 9.3.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
github-merge-queue bot pushed a commit that referenced this pull request Apr 23, 2024
…ted export (backport #1170) (#1218)

# Backport

This will backport the following commits from `main` to
`maintenance/v5.3`:
- [fix: processing example is failing when example contains jsdoc
annotated export (#1170)](#1170)

<!--- Backport version: 9.3.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processing jsii assembly results in "Cannot read properties of undefined (reading 'kind')"
3 participants