swift-syntax icon indicating copy to clipboard operation
swift-syntax copied to clipboard

Allow try before yield

Open airspeedswift opened this issue 3 years ago • 5 comments

This adds the ability to parse a try before a yield statement, as part of a path to dropping the underscore on _modify.

This approach seems to work OK for statements, and keeps the current tests for rogue trys in front of various statement passing (though it needs more work to better handle try in front of additional kinds of statement). But allowing try to start a statement like this causes all sorts of recovery breakage for other things so this isn't ready to go yet.

airspeedswift avatar Jan 16 '23 23:01 airspeedswift

@swift-ci please test

airspeedswift avatar Jan 17 '23 01:01 airspeedswift

@swift-ci please test

airspeedswift avatar Jan 17 '23 02:01 airspeedswift

@swift-ci please test

airspeedswift avatar Jan 24 '23 02:01 airspeedswift

@swift-ci please test

airspeedswift avatar Jan 24 '23 19:01 airspeedswift

@swift-ci please test

airspeedswift avatar Jan 24 '23 21:01 airspeedswift