Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: pkg/polymer/lib/src/build/utils.dart

Issue 180373003: [polymer] switch comment style (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/polymer/lib/src/build/utils.dart
diff --git a/pkg/polymer/lib/src/build/utils.dart b/pkg/polymer/lib/src/build/utils.dart
index 59fdc737c31bf698bf1e3eb26de654cf52c9ef2e..b0313734f832b1692bbc9c055a39e1f0ab748974 100644
--- a/pkg/polymer/lib/src/build/utils.dart
+++ b/pkg/polymer/lib/src/build/utils.dart
@@ -4,11 +4,9 @@
library polymer.src.utils;
-/**
- * Converts a string name with hyphens into an identifier, by removing hyphens
- * and capitalizing the following letter. Optionally [startUppercase] to
- * captialize the first letter.
- */
+/// Converts a string name with hyphens into an identifier, by removing hyphens
+/// and capitalizing the following letter. Optionally [startUppercase] to
+/// captialize the first letter.
String toCamelCase(String hyphenedName, {bool startUppercase: false}) {
var segments = hyphenedName.split('-');
int start = startUppercase ? 0 : 1;
@@ -22,7 +20,7 @@ String toCamelCase(String hyphenedName, {bool startUppercase: false}) {
return segments.join('');
}
-/** Reverse of [toCamelCase]. */
+/// Reverse of [toCamelCase].
String toHyphenedName(String word) {
var sb = new StringBuffer();
for (int i = 0; i < word.length; i++) {

Powered by Google App Engine
This is Rietveld 408576698