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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/metadata_collector.dart

Issue 2641813006: Change js_emitter parts into libraries (Closed)
Patch Set: Created 3 years, 11 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 part of dart2js.js_emitter; 5 library dart2js.js_emitter.metadata_collector;
6
7 import 'package:js_ast/src/precedence.dart' as js_precedence;
8
9 import '../common.dart';
10 import '../compiler.dart' show Compiler;
11 import '../constants/values.dart';
12 import '../elements/resolution_types.dart'
13 show
14 ResolutionDartType,
15 ResolutionTypedefType;
16 import '../deferred_load.dart' show OutputUnit;
17 import '../elements/elements.dart'
18 show
19 ConstructorElement,
20 Element,
21 FunctionElement,
22 FunctionSignature,
23 MetadataAnnotation,
24 ParameterElement;
25 import '../js/js.dart' as jsAst;
26 import '../js/js.dart' show js;
27 import '../js_backend/js_backend.dart'
28 show
29 JavaScriptBackend,
30 TypeVariableHandler;
31
32 import 'code_emitter_task.dart' show Emitter;
6 33
7 /// Represents an entry's position in one of the global metadata arrays. 34 /// Represents an entry's position in one of the global metadata arrays.
8 /// 35 ///
9 /// [_rc] is used to count the number of references of the token in the 36 /// [_rc] is used to count the number of references of the token in the
10 /// ast for a program. 37 /// ast for a program.
11 /// [value] is the actual position, once they have been finalized. 38 /// [value] is the actual position, once they have been finalized.
12 abstract class _MetadataEntry extends jsAst.DeferredNumber 39 abstract class _MetadataEntry extends jsAst.DeferredNumber
13 implements Comparable, jsAst.ReferenceCountedAstNode { 40 implements Comparable, jsAst.ReferenceCountedAstNode {
14 jsAst.Expression get entry; 41 jsAst.Expression get entry;
15 int get value; 42 int get value;
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 if (token is _ForwardingMetadataEntry && !token.isBound) { 451 if (token is _ForwardingMetadataEntry && !token.isBound) {
425 _foundUnboundToken = true; 452 _foundUnboundToken = true;
426 } 453 }
427 } 454 }
428 455
429 bool findUnboundPlaceholders(jsAst.Node node) { 456 bool findUnboundPlaceholders(jsAst.Node node) {
430 node.accept(this); 457 node.accept(this);
431 return _foundUnboundToken; 458 return _foundUnboundToken;
432 } 459 }
433 } 460 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698