OLD | NEW |
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": ".", |
(...skipping 14 matching lines...) Expand all Loading... |
25 // | 25 // |
26 // (setq tags-table-list | 26 // (setq tags-table-list |
27 // '("DART_LOCATION/dart")) | 27 // '("DART_LOCATION/dart")) |
28 // | 28 // |
29 // Where DART_LOCATION is the gclient directory where you found .gclient. | 29 // Where DART_LOCATION is the gclient directory where you found .gclient. |
30 | 30 |
31 import 'dart:io'; | 31 import 'dart:io'; |
32 | 32 |
33 import 'dart:mirrors'; | 33 import 'dart:mirrors'; |
34 | 34 |
35 import 'package:_internal/libraries.dart' | 35 import 'package:sdk_library_metadata/libraries.dart' |
36 show LIBRARIES, LibraryInfo; | 36 show LIBRARIES, LibraryInfo; |
37 | 37 |
38 import 'package:compiler/src/mirrors/analyze.dart' | 38 import 'package:compiler/src/mirrors/analyze.dart' |
39 show analyze; | 39 show analyze; |
40 import 'package:compiler/src/mirrors/dart2js_mirrors.dart' | 40 import 'package:compiler/src/mirrors/dart2js_mirrors.dart' |
41 show BackDoor; | 41 show BackDoor; |
42 import 'package:compiler/src/mirrors/mirrors_util.dart' show nameOf; | 42 import 'package:compiler/src/mirrors/mirrors_util.dart' show nameOf; |
43 | 43 |
44 import 'package:compiler/src/filenames.dart'; | 44 import 'package:compiler/src/filenames.dart'; |
45 import 'package:compiler/src/io/source_file.dart'; | 45 import 'package:compiler/src/io/source_file.dart'; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 return new Definition(byte_offset, line_number, tag_definition_text); | 187 return new Definition(byte_offset, line_number, tag_definition_text); |
188 } | 188 } |
189 | 189 |
190 void writeOn(StringBuffer buffer, String tagname) { | 190 void writeOn(StringBuffer buffer, String tagname) { |
191 buffer.write( | 191 buffer.write( |
192 '${tag_definition_text}\x7f${tagname}' | 192 '${tag_definition_text}\x7f${tagname}' |
193 '\x01${line_number},${byte_offset}\n'); | 193 '\x01${line_number},${byte_offset}\n'); |
194 } | 194 } |
195 } | 195 } |
OLD | NEW |