Skip to content
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

Rename pubtools #6

Merged
merged 3 commits into from Nov 30, 2013
Merged

Rename pubtools #6

merged 3 commits into from Nov 30, 2013

Conversation

sunglim
Copy link
Contributor

@sunglim sunglim commented Nov 30, 2013

pub install to pub get
and pub update to pub upgrade

TEST=./grind init

@@ -151,9 +163,8 @@ class Dart2jsTools {
}

String _execName(String name) {
if (Platform.isWindows) {
if (Platform.isWindows)
Copy link
Contributor

Choose a reason for hiding this comment

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

Generally, you do want to use braces with if statements, even if the if clause only has a single statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, as you probably saw, the exception is when it all fits on one line. I personally tend to avoid even that use. I have used it once or twice for things like early return at the start of methods.

@devoncarew
Copy link
Contributor

Cool, thanks!

devoncarew added a commit that referenced this pull request Nov 30, 2013
@devoncarew devoncarew merged commit 2b5853f into google:master Nov 30, 2013
@sunglim sunglim deleted the rename_pubtools branch December 1, 2013 13:58
jcollins-g pushed a commit to jcollins-g/grinder.dart that referenced this pull request Feb 12, 2021
This moves away from tuned split costs to unit-cost spans.
Those compose better, which yields better results in nested expressions.
Some of the existing tests get changed because the old output is better now.

Fixes google#6. Fixes google#19. Fixes google#25. Fixes google#28. Fixes google#55. Fixes google#81. Fixes google#91. Fixes google#95. Fixes google#98. (!)

R=pquitslund@google.com, sigmund@google.com

Review URL: https://chromiumcodereview.appspot.com//824693005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants