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

Side by Side Diff: dart/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart

Issue 11184046: Clean up leg.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on CL 11187067 Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #library('mirrors.dart2js'); 5 library mirrors_dart2js;
6 6
7 #import('dart:io'); 7 import 'dart:io';
8 #import('dart:uri'); 8 import 'dart:uri';
9 9
10 #import('../../../../../lib/compiler/compiler.dart', prefix: 'diagnostics'); 10 import '../../../../../lib/compiler/compiler.dart' as diagnostics;
11 #import('../../../../../lib/compiler/implementation/elements/elements.dart'); 11 import '../../../../../lib/compiler/implementation/elements/elements.dart';
12 #import('../../../../../lib/compiler/implementation/apiimpl.dart', prefix: 'api' ); 12 import '../../../../../lib/compiler/implementation/resolution/resolution.dart'
13 #import('../../../../../lib/compiler/implementation/scanner/scannerlib.dart'); 13 show ResolverTask, ResolverVisitor;
14 #import('../../../../../lib/compiler/implementation/ssa/ssa.dart'); 14 import '../../../../../lib/compiler/implementation/apiimpl.dart' as api;
15 #import('../../../../../lib/compiler/implementation/leg.dart'); 15 import '../../../../../lib/compiler/implementation/scanner/scannerlib.dart';
16 #import('../../../../../lib/compiler/implementation/filenames.dart'); 16 import '../../../../../lib/compiler/implementation/ssa/ssa.dart';
17 #import('../../../../../lib/compiler/implementation/source_file.dart'); 17 import '../../../../../lib/compiler/implementation/dart2jslib.dart';
18 #import('../../../../../lib/compiler/implementation/tree/tree.dart'); 18 import '../../../../../lib/compiler/implementation/filenames.dart';
19 #import('../../../../../lib/compiler/implementation/util/util.dart'); 19 import '../../../../../lib/compiler/implementation/source_file.dart';
20 #import('../../../../../lib/compiler/implementation/util/uri_extras.dart'); 20 import '../../../../../lib/compiler/implementation/tree/tree.dart';
21 #import('../../../../../lib/compiler/implementation/dart2js.dart'); 21 import '../../../../../lib/compiler/implementation/util/util.dart';
22 import '../../../../../lib/compiler/implementation/util/uri_extras.dart';
23 import '../../../../../lib/compiler/implementation/dart2js.dart';
22 24
23 // TODO(rnystrom): Use "package:" URL (#4968). 25 // TODO(rnystrom): Use "package:" URL (#4968).
24 #import('../../mirrors.dart'); 26 import '../../mirrors.dart';
25 #import('util.dart'); 27 import 'util.dart';
26 28
27 //------------------------------------------------------------------------------ 29 //------------------------------------------------------------------------------
28 // Utility types and functions for the dart2js mirror system 30 // Utility types and functions for the dart2js mirror system
29 //------------------------------------------------------------------------------ 31 //------------------------------------------------------------------------------
30 32
31 bool _isPrivate(String name) { 33 bool _isPrivate(String name) {
32 return name.startsWith('_'); 34 return name.startsWith('_');
33 } 35 }
34 36
35 List<ParameterMirror> _parametersFromFunctionSignature( 37 List<ParameterMirror> _parametersFromFunctionSignature(
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 if (node !== null) { 1389 if (node !== null) {
1388 var span = system.compiler.spanFromNode(node, script.uri); 1390 var span = system.compiler.spanFromNode(node, script.uri);
1389 return new Dart2JsLocation(script, span); 1391 return new Dart2JsLocation(script, span);
1390 } else { 1392 } else {
1391 var span = system.compiler.spanFromElement(_variable); 1393 var span = system.compiler.spanFromElement(_variable);
1392 return new Dart2JsLocation(script, span); 1394 return new Dart2JsLocation(script, span);
1393 } 1395 }
1394 } 1396 }
1395 } 1397 }
1396 1398
OLDNEW
« no previous file with comments | « dart/lib/compiler/samples/leap/leap.dart ('k') | dart/tests/compiler/dart2js/backend_htype_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698