-
Notifications
You must be signed in to change notification settings - Fork 66
Added support for switch and break statements #56
Conversation
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'; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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();
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Thanks for the contribution. Dev-channel failure looks related to a pkg/test regression. |
Of course, any time! :)
…On Jan 10, 2017 12:34 AM, "Matan Lurey" ***@***.***> wrote:
Merged dart-archive/code_builder#56 <#56>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#56 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJiKPEt5xzSaTwT0OiDWFSik51_97rWWks5rQxhMgaJpZM4LdzkI>
.
|
…der#56) * Added switch statements, and break statements * Edited test * dartfmt on break.dart * BSD header and more
Resolves dart-lang/tools#969. 😄