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

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

Issue 1212513002: sdk files reorganization to make dart2js a proper package (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: renamed Created 5 years, 5 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 // 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698