Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(typescript-estree): correct issues in AST definition#3083

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
armano2 merged 6 commits intomasterfromfix/ast-structure
Feb 22, 2021

Conversation

@armano2
Copy link
Collaborator

@armano2armano2 commentedFeb 21, 2021
edited
Loading

Those changes has been extracted from#3078

fixes#2912

ProgramStatement andStatement nodes can contain same set of nodes

if(x)export{x}if(x)importtestfrom'x'// -----for(xinfoo){export{x}}// -----functiontest(x:string){export{x}}

LeftHandSideExpression can be aAwaitExpression

consta=++(awaitx)

TryStatement finalizer can benull

try{}catch{}

RegExpLiteral value can benull if regexp is invalid or unsupported by env

good example in this case can be any proposal that has not been accepted yet
eg.https://github.com/tc39/proposal-regexp-match-indices

constx=/a+(?<Z>z)?/d

JSXOpeningElement attributes can be aJSXSpreadAttribute

constfoo=<x{...spread}></x>

TSModuleDeclaration body can beTSModuleDeclaration

// TSModuleDeclaration without bodymodule"x";// TSModuleDeclaration -> TSModuleBlockmodulex{}// TSModuleDeclaration -> TSModuleDeclaration **modulex.x{}

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@armano2!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day.

@armano2armano2 added ASTPRs and Issues about the AST structure bugSomething isn't working labelsFeb 21, 2021
@codecov
Copy link

codecovbot commentedFeb 21, 2021
edited
Loading

Codecov Report

Merging#3083 (ac64fe0) intomaster (409bf0b) willincrease coverage by0.00%.
The diff coverage is90.90%.

@@           Coverage Diff           @@##           master    #3083   +/-   ##=======================================  Coverage   92.83%   92.83%           =======================================  Files         314      314             Lines       10671    10672    +1       Branches     3027     3027           =======================================+ Hits         9906     9907    +1  Misses        348      348             Partials      417      417
FlagCoverage Δ
unittest92.83% <90.90%> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
packages/eslint-plugin/src/rules/no-unused-vars.ts96.68% <80.00%> (+0.02%)⬆️
packages/typescript-estree/src/convert.ts98.36% <100.00%> (ø)

type:AST_NODE_TYPES.TSModuleDeclaration;
id:Identifier|Literal;
body?:TSModuleBlock;
body?:TSModuleBlock|TSModuleDeclaration;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

we really need to fix this -#2573

armano2 reacted with thumbs up emoji
@armano2armano2 changed the titlefix: correct issues in AST definitionfix(typescript-estree): correct issues in AST definitionFeb 21, 2021
@armano2armano2 merged commit509a117 intomasterFeb 22, 2021
@armano2armano2 deleted the fix/ast-structure branchFebruary 22, 2021 01:18
This was referencedMar 6, 2021
This was referencedMar 15, 2021
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMar 25, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@bradzacherbradzacherbradzacher approved these changes

Assignees

No one assigned

Labels

ASTPRs and Issues about the AST structurebugSomething isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

incorrect type - TryStatement's finalizer property can't be null

3 participants

@armano2@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp