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

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

Issue 1311783012: Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller l… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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 15 matching lines...) Expand all
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 '../parser/listener.dart' show 35 import '../parser/listener.dart' show
36 ElementListener, 36 Listener;
37 Listener, 37 import '../parser/element_listener.dart' show
38 ElementListener;
39 import '../parser/partial_elements.dart' show
38 PartialMetadataAnnotation; 40 PartialMetadataAnnotation;
39 import '../resolution/members.dart' show 41 import '../resolution/members.dart' show
40 ResolverVisitor; 42 ResolverVisitor;
41 import '../ssa/ssa.dart'; 43 import '../ssa/ssa.dart';
42 import '../tokens/token.dart' show 44 import '../tokens/token.dart' show
43 BeginGroupToken, 45 BeginGroupToken,
46 Token;
47 import '../tokens/token_constants.dart' as Tokens show
44 EOF_TOKEN, 48 EOF_TOKEN,
45 STRING_TOKEN, 49 STRING_TOKEN;
46 Token;
47 import '../tree/tree.dart'; 50 import '../tree/tree.dart';
48 import '../universe/universe.dart' show SideEffects; 51 import '../universe/universe.dart' show SideEffects;
49 import '../util/util.dart'; 52 import '../util/util.dart';
50 53
51 part 'behavior.dart'; 54 part 'behavior.dart';
52 part 'enqueue.dart'; 55 part 'enqueue.dart';
53 part 'js.dart'; 56 part 'js.dart';
54 part 'scanner.dart'; 57 part 'scanner.dart';
55 part 'ssa.dart'; 58 part 'ssa.dart';
56 59
(...skipping 24 matching lines...) Expand all
81 String quotedName = cls.nativeTagInfo; 84 String quotedName = cls.nativeTagInfo;
82 return quotedName.substring(1, quotedName.length - 1).split(','); 85 return quotedName.substring(1, quotedName.length - 1).split(',');
83 } 86 }
84 87
85 List<String> nativeTagsOfClass(ClassElement cls) { 88 List<String> nativeTagsOfClass(ClassElement cls) {
86 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); 89 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList();
87 } 90 }
88 91
89 bool nativeTagsForcedNonLeaf(ClassElement cls) => 92 bool nativeTagsForcedNonLeaf(ClassElement cls) =>
90 nativeTagsOfClassRaw(cls).contains('!nonleaf'); 93 nativeTagsOfClassRaw(cls).contains('!nonleaf');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698