Skip to content

Parser creates same nodes for catch (e) {} and catch (var e) {} #1602

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

Closed
DartBot opened this issue Feb 9, 2012 · 9 comments
Closed

Parser creates same nodes for catch (e) {} and catch (var e) {} #1602

DartBot opened this issue Feb 9, 2012 · 9 comments

Comments

@DartBot
Copy link

DartBot commented Feb 9, 2012

This issue was originally filed by [email protected]


We need to differentiate between the two because the first is not valid.

@kasperl
Copy link

kasperl commented Mar 24, 2012

Removed Area-Frog label.
Added Area-Dart2JS label.

@kasperl
Copy link

kasperl commented May 15, 2012

Changed the title to: "Parser creates same nodes for catch (e) {} and catch (var e) {}".

@kasperl
Copy link

kasperl commented Sep 3, 2012

It is now the last version -- catch (var e) -- that is illegal.


Added this to the Later milestone.

@kasperl
Copy link

kasperl commented Oct 17, 2012

Removed this from the Later milestone.

@kasperl
Copy link

kasperl commented Oct 17, 2012

Added this to the M2 milestone.

@peter-ahe-google
Copy link
Contributor

Removed Priority-Medium label.
Added Priority-Low label.

@peter-ahe-google
Copy link
Contributor

Removed this from the M2 milestone.
Added this to the Later milestone.
Removed Priority-Low label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented May 23, 2013

Added TriageForM5 label.

@kasperl
Copy link

kasperl commented May 28, 2013

We've fixed this by implementing the new try-on-catch syntax.


Removed TriageForM5 label.
Added Fixed label.

@DartBot DartBot added this to the Later milestone May 28, 2013
copybara-service bot pushed a commit that referenced this issue Dec 18, 2024
This is a minor change with just bug fixes:

* Handle trailing commas in for-loop updaters (#1354).
* Format `||` patterns like fallthrough cases in switch expressions (#1602).
* Handle comments and metadata before variables more gracefully (#1604).
* Ensure comment formatting is idempotent (#1606).
* Better indentation of leading comments on property accesses in binary operator
  operands (#1611).
* Don't crash on doc comments in local variable declarations (#1621).

This won't affect much code, but it does change the formatting in some cases.

Change-Id: I2d52fee92aecbc24315e4f1a89360af85ec85942
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401482
Auto-Submit: Bob Nystrom <[email protected]>
Commit-Queue: Alexander Thomas <[email protected]>
Reviewed-by: Alexander Thomas <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants