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

Side by Side Diff: web/main.dart

Issue 1182953003: Eat some dogfood! (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« lib/src/source_visitor.dart ('K') | « test/source_code_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import 'dart:html'; 1 import 'dart:html';
2 2
3 import 'package:dart_style/dart_style.dart'; 3 import 'package:dart_style/dart_style.dart';
4 4
5 TextAreaElement before; 5 TextAreaElement before;
6 TextAreaElement after; 6 TextAreaElement after;
7 7
8 int width = 80; 8 int width = 80;
9 9
10 PreElement columnMarker = querySelector(".column-marker"); 10 PreElement columnMarker = querySelector(".column-marker");
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void setWidth(String widthString) { 57 void setWidth(String widthString) {
58 width = int.parse(widthString); 58 width = int.parse(widthString);
59 59
60 widthInput.value = widthString; 60 widthInput.value = widthString;
61 widthOutput.value = widthString; 61 widthOutput.value = widthString;
62 62
63 var pad = " " * width + "|"; 63 var pad = " " * width + "|";
64 columnMarker.innerHtml = "$pad $width columns" + "\n$pad" * 29; 64 columnMarker.innerHtml = "$pad $width columns" + "\n$pad" * 29;
65 reformat(); 65 reformat();
66 } 66 }
OLDNEW
« lib/src/source_visitor.dart ('K') | « test/source_code_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698