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

Side by Side Diff: sdk/lib/_internal/compiler/samples/darttags/darttags.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Usage: Add the following to your .gclient file (found in the parent 5 // Usage: Add the following to your .gclient file (found in the parent
6 // of the "dart" in a gclient checkout of the Dart repositor). 6 // of the "dart" in a gclient checkout of the Dart repositor).
7 // 7 //
8 // hooks = [ 8 // hooks = [
9 // { 9 // {
10 // "pattern": ".", 10 // "pattern": ".",
11 // "action": [ 11 // "action": [
12 // "dart/sdk/bin/dart", 12 // "dart/sdk/bin/dart",
13 // "dart/sdk/lib/_internal/compiler/samples/darttags/darttags.dart", 13 // "dart/sdk/lib/_internal/compiler/samples/darttags/darttags.dart",
14 // "dart/TAGS" 14 // "dart/TAGS"
15 // ], 15 // ],
16 // }, 16 // },
17 // ] 17 // ]
18 // 18 //
19 // Modify .emacs to contain: 19 // Modify .emacs to contain:
20 // 20 //
21 // (setq tags-table-list 21 // (setq tags-table-list
22 // '("DART_LOCATION/dart")) 22 // '("DART_LOCATION/dart"))
23 // 23 //
24 // Where DART_LOCATION is the gclient directory where you found .gclient. 24 // Where DART_LOCATION is the gclient directory where you found .gclient.
25 25
26 import 'dart:io'; 26 import 'dart:io';
27 import 'dart:uri';
28 27
29 // TODO(ahe): Should be dart:mirrors. 28 // TODO(ahe): Should be dart:mirrors.
30 import '../../implementation/mirrors/mirrors.dart'; 29 import '../../implementation/mirrors/mirrors.dart';
31 30
32 import '../../../libraries.dart' 31 import '../../../libraries.dart'
33 show LIBRARIES, LibraryInfo; 32 show LIBRARIES, LibraryInfo;
34 33
35 import '../../implementation/mirrors/dart2js_mirror.dart' 34 import '../../implementation/mirrors/dart2js_mirror.dart'
36 show analyze, BackDoor; 35 show analyze, BackDoor;
37 36
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 127
129 var tag_definition_data = '$buffer'; 128 var tag_definition_data = '$buffer';
130 var src_file = relativize(outputUri, uri, false); 129 var src_file = relativize(outputUri, uri, false);
131 var size_of_tag_definition_data_in_bytes = tag_definition_data.length; 130 var size_of_tag_definition_data_in_bytes = tag_definition_data.length;
132 131
133 // The header. 132 // The header.
134 output.writeStringSync( 133 output.writeStringSync(
135 '\x0c\n${src_file},${size_of_tag_definition_data_in_bytes}\n'); 134 '\x0c\n${src_file},${size_of_tag_definition_data_in_bytes}\n');
136 output.writeStringSync(tag_definition_data); 135 output.writeStringSync(tag_definition_data);
137 } 136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698