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

Side by Side Diff: utils/css/tool.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library csstool; 5 library csstool;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'css.dart'; 8 import 'css.dart';
9 import '../lib/file_system.dart'; 9 import '../lib/file_system.dart';
10 import '../lib/file_system_vm.dart'; 10 import '../lib/file_system_vm.dart';
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 new SourceFile(sourceFullFn, source), 0, files, sourcePath); 65 new SourceFile(sourceFullFn, source), 0, files, sourcePath);
66 stylesheet = parser.parse(); 66 stylesheet = parser.parse();
67 }); 67 });
68 68
69 printStats(elapsed, sourceFullFn); 69 printStats(elapsed, sourceFullFn);
70 70
71 StringBuffer buff = new StringBuffer( 71 StringBuffer buff = new StringBuffer(
72 '/* File generated by SCSS from source ${sourceFilename}\n' + 72 '/* File generated by SCSS from source ${sourceFilename}\n' +
73 ' * Do not edit.\n' + 73 ' * Do not edit.\n' +
74 ' */\n\n'); 74 ' */\n\n');
75 buff.add(stylesheet.toString()); 75 buff.write(stylesheet.toString());
76 76
77 files.writeString(outputFullFn, buff.toString()); 77 files.writeString(outputFullFn, buff.toString());
78 print("Generated file ${outputFullFn}"); 78 print("Generated file ${outputFullFn}");
79 79
80 // Generate CSS.dart file. 80 // Generate CSS.dart file.
81 String genDartClassFile = Generate.dartClass(files, outPath, stylesheet, 81 String genDartClassFile = Generate.dartClass(files, outPath, stylesheet,
82 sourceFilename); 82 sourceFilename);
83 print("Generated file ${genDartClassFile}"); 83 print("Generated file ${genDartClassFile}");
84 } 84 }
85 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698