Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Added support for switch and break statements #56

Merged
merged 4 commits into from
Jan 10, 2017
Merged

Added support for switch and break statements #56

merged 4 commits into from
Jan 10, 2017

Conversation

thosakwe
Copy link
Contributor

@thosakwe thosakwe commented Jan 8, 2017

Resolves dart-lang/tools#969. 😄

@thosakwe
Copy link
Contributor Author

thosakwe commented Jan 8, 2017

Passing on stable, failing on dev. The reasons it's failing on dev don't seem to be related to my commits

@@ -0,0 +1,27 @@
import 'package:analyzer/analyzer.dart';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add the BSD header.

import 'package:code_builder/src/tokens.dart';

/// Represents a break statement AST.
abstract class BreakStatementBuilder implements StatementBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just replace this with a singleton instance, i.e.

const breakStatement = const _BreakStatementBuilder();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll apply the edits when I get home today.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, @matanlurey , I have made the edits.

@matanlurey
Copy link
Contributor

Thanks for the contribution. Dev-channel failure looks related to a pkg/test regression.

@matanlurey matanlurey merged commit ea2953f into dart-archive:master Jan 10, 2017
@thosakwe
Copy link
Contributor Author

thosakwe commented Jan 10, 2017 via email

mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
…der#56)

* Added switch statements, and break statements

* Edited test

* dartfmt on break.dart

* BSD header and more
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support switch statements
3 participants