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

Side by Side Diff: pkg/compiler/samples/darttags/darttags.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/pkg/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 27
28 import 'dart:mirrors'; 28 import 'dart:mirrors';
29 29
30 import '../../../libraries.dart' 30 import 'package:_internal/libraries.dart'
31 show LIBRARIES, LibraryInfo; 31 show LIBRARIES, LibraryInfo;
32 32
33 import '../../implementation/mirrors/analyze.dart' 33 import '../../lib/src/mirrors/analyze.dart'
34 show analyze; 34 show analyze;
35 import '../../implementation/mirrors/dart2js_mirrors.dart' 35 import '../../lib/src/mirrors/dart2js_mirrors.dart'
36 show BackDoor; 36 show BackDoor;
37 import '../../implementation/mirrors/mirrors_util.dart' show nameOf; 37 import '../../lib/src/mirrors/mirrors_util.dart' show nameOf;
38 38
39 import '../../implementation/filenames.dart'; 39 import '../../lib/src/filenames.dart';
40 import '../../implementation/source_file.dart'; 40 import '../../lib/src/source_file.dart';
41 import '../../implementation/source_file_provider.dart'; 41 import '../../lib/src/source_file_provider.dart';
42 import '../../implementation/util/uri_extras.dart'; 42 import '../../lib/src/util/uri_extras.dart';
43 43
44 const DART2JS = '../../implementation/dart2js.dart'; 44 const DART2JS = '../../lib/src/dart2js.dart';
45 const DART2JS_MIRROR = '../../implementation/mirrors/dart2js_mirrors.dart'; 45 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirrors.dart';
46 const SDK_ROOT = '../../../../../'; 46 const SDK_ROOT = '../../sdk/';
47 47
48 bool isPublicDart2jsLibrary(String name) { 48 bool isPublicDart2jsLibrary(String name) {
49 return !name.startsWith('_') && LIBRARIES[name].isDart2jsLibrary; 49 return !name.startsWith('_') && LIBRARIES[name].isDart2jsLibrary;
50 } 50 }
51 51
52 var handler; 52 var handler;
53 RandomAccessFile output; 53 RandomAccessFile output;
54 Uri outputUri; 54 Uri outputUri;
55 55
56 main(List<String> arguments) { 56 main(List<String> arguments) {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 return new Definition(byte_offset, line_number, tag_definition_text); 171 return new Definition(byte_offset, line_number, tag_definition_text);
172 } 172 }
173 173
174 void writeOn(StringBuffer buffer, String tagname) { 174 void writeOn(StringBuffer buffer, String tagname) {
175 buffer.write( 175 buffer.write(
176 '${tag_definition_text}\x7f${tagname}' 176 '${tag_definition_text}\x7f${tagname}'
177 '\x01${line_number},${byte_offset}\n'); 177 '\x01${line_number},${byte_offset}\n');
178 } 178 }
179 } 179 }
OLDNEW
« no previous file with comments | « pkg/compiler/samples/compile_loop/compile_loop.dart ('k') | pkg/compiler/samples/jsonify/jsonify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698