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

Side by Side Diff: pkg/compiler/lib/src/native/native.dart

Issue 1313073007: Move parser and token related libraries into their own subfolder. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix unittests and try Created 5 years, 3 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) 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 native; 5 library native;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common/registry.dart' show 9 import '../common/registry.dart' show
10 Registry; 10 Registry;
(...skipping 14 matching lines...) Expand all
25 import '../elements/modelx.dart' show 25 import '../elements/modelx.dart' show
26 BaseClassElementX, 26 BaseClassElementX,
27 ElementX, 27 ElementX,
28 FunctionElementX, 28 FunctionElementX,
29 LibraryElementX; 29 LibraryElementX;
30 import '../js/js.dart' as js; 30 import '../js/js.dart' as js;
31 import '../js_backend/js_backend.dart'; 31 import '../js_backend/js_backend.dart';
32 import '../js_emitter/js_emitter.dart' show 32 import '../js_emitter/js_emitter.dart' show
33 CodeEmitterTask, 33 CodeEmitterTask,
34 NativeEmitter; 34 NativeEmitter;
35 import '../resolution/members.dart' show 35 import '../parser/listener.dart' show
36 ResolverVisitor;
37 import '../scanner/listener.dart' show
38 ElementListener, 36 ElementListener,
39 Listener, 37 Listener,
40 PartialMetadataAnnotation; 38 PartialMetadataAnnotation;
41 import '../scanner/token.dart' show 39 import '../resolution/members.dart' show
40 ResolverVisitor;
41 import '../ssa/ssa.dart';
42 import '../tokens/token.dart' show
42 BeginGroupToken, 43 BeginGroupToken,
43 EOF_TOKEN, 44 EOF_TOKEN,
44 STRING_TOKEN, 45 STRING_TOKEN,
45 Token; 46 Token;
46 import '../ssa/ssa.dart';
47 import '../tree/tree.dart'; 47 import '../tree/tree.dart';
48 import '../universe/universe.dart' show SideEffects; 48 import '../universe/universe.dart' show SideEffects;
49 import '../util/util.dart'; 49 import '../util/util.dart';
50 50
51 part 'behavior.dart'; 51 part 'behavior.dart';
52 part 'enqueue.dart'; 52 part 'enqueue.dart';
53 part 'js.dart'; 53 part 'js.dart';
54 part 'scanner.dart'; 54 part 'scanner.dart';
55 part 'ssa.dart'; 55 part 'ssa.dart';
56 56
(...skipping 24 matching lines...) Expand all
81 String quotedName = cls.nativeTagInfo; 81 String quotedName = cls.nativeTagInfo;
82 return quotedName.substring(1, quotedName.length - 1).split(','); 82 return quotedName.substring(1, quotedName.length - 1).split(',');
83 } 83 }
84 84
85 List<String> nativeTagsOfClass(ClassElement cls) { 85 List<String> nativeTagsOfClass(ClassElement cls) {
86 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); 86 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList();
87 } 87 }
88 88
89 bool nativeTagsForcedNonLeaf(ClassElement cls) => 89 bool nativeTagsForcedNonLeaf(ClassElement cls) =>
90 nativeTagsOfClassRaw(cls).contains('!nonleaf'); 90 nativeTagsOfClassRaw(cls).contains('!nonleaf');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart ('k') | pkg/compiler/lib/src/parser/class_element_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698