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

Side by Side Diff: prepend.dart

Issue 25708003: Update the protocol buffer compiler plugin to use Int64 from the fixnum package (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 7 years, 2 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
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 import 'dart:io'; 2 import 'dart:io';
3 3
4 main() { 4 main() {
5 final fileName = new Options().arguments.first; 5 final fileName = new Options().arguments.first;
6 final file = new File(fileName); 6 final file = new File(fileName);
7 final content = file.readAsStringSync(); 7 final content = file.readAsStringSync();
8 file.writeAsStringSync('#!/usr/bin/env dart\n$content'); 8 file.writeAsStringSync('#!/usr/bin/env dart\n$content');
9 // For development use the line below instead of the one above to
10 // avoid using the dart2dart code.
11 // file.writeAsStringSync('#!/bin/bash\ndart bin/protoc_plugin.dart');
9 } 12 }
OLDNEW
« no previous file with comments | « lib/protobuf_field.dart ('k') | pubspec.yaml » ('j') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698