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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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 library dart2js.js_emitter.metadata_collector; 5 library dart2js.js_emitter.metadata_collector;
6 6
7 import 'package:js_ast/src/precedence.dart' as js_precedence; 7 import 'package:js_ast/src/precedence.dart' as js_precedence;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return _value; 71 return _value;
72 } 72 }
73 73
74 bool get isUsed => _rc > 0; 74 bool get isUsed => _rc > 0;
75 75
76 markSeen(jsAst.BaseVisitor visitor) { 76 markSeen(jsAst.BaseVisitor visitor) {
77 _rc++; 77 _rc++;
78 if (_rc == 1) entry.accept(visitor); 78 if (_rc == 1) entry.accept(visitor);
79 } 79 }
80 80
81 int compareTo(_MetadataEntry other) => other._rc - this._rc; 81 int compareTo(covariant _MetadataEntry other) => other._rc - this._rc;
82 } 82 }
83 83
84 abstract class Placeholder implements jsAst.DeferredNumber { 84 abstract class Placeholder implements jsAst.DeferredNumber {
85 bind(_MetadataEntry entry); 85 bind(_MetadataEntry entry);
86 } 86 }
87 87
88 class _ForwardingMetadataEntry extends _MetadataEntry implements Placeholder { 88 class _ForwardingMetadataEntry extends _MetadataEntry implements Placeholder {
89 _MetadataEntry _forwardTo; 89 _MetadataEntry _forwardTo;
90 var debug; 90 var debug;
91 91
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 if (token is _ForwardingMetadataEntry && !token.isBound) { 471 if (token is _ForwardingMetadataEntry && !token.isBound) {
472 _foundUnboundToken = true; 472 _foundUnboundToken = true;
473 } 473 }
474 } 474 }
475 475
476 bool findUnboundPlaceholders(jsAst.Node node) { 476 bool findUnboundPlaceholders(jsAst.Node node) {
477 node.accept(this); 477 node.accept(this);
478 return _foundUnboundToken; 478 return _foundUnboundToken;
479 } 479 }
480 } 480 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698