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

Side by Side Diff: pkg/compiler/lib/src/js_backend/mirrors_analysis.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.mirrors_handler; 5 library dart2js.mirrors_handler;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart'; 8 import '../common/resolution.dart';
9 import '../compiler.dart'; 9 import '../compiler.dart';
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Use [enclosingElement] instead of [enclosingClass] to ensure that 186 // Use [enclosingElement] instead of [enclosingClass] to ensure that
187 // we process patch class metadata for patch and injected members. 187 // we process patch class metadata for patch and injected members.
188 processElementMetadata(element.enclosingElement); 188 processElementMetadata(element.enclosingElement);
189 } 189 }
190 } else { 190 } else {
191 processLibraryMetadata(element.library); 191 processLibraryMetadata(element.library);
192 } 192 }
193 } 193 }
194 } 194 }
195 195
196 entities.forEach((MemberElement member) => processElementMetadata(member)); 196 entities.forEach((member) => processElementMetadata(member));
197 } 197 }
198 198
199 void onResolutionComplete() { 199 void onResolutionComplete() {
200 _registeredMetadata.clear(); 200 _registeredMetadata.clear();
201 } 201 }
202 202
203 MirrorsCodegenAnalysis close() => new MirrorsCodegenAnalysisImpl( 203 MirrorsCodegenAnalysis close() => new MirrorsCodegenAnalysisImpl(
204 _backend, handler._resolution, _metadataConstants); 204 _backend, handler._resolution, _metadataConstants);
205 } 205 }
206 206
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 /// Records that [constant] is used by the element behind [registry]. 488 /// Records that [constant] is used by the element behind [registry].
489 class Dependency { 489 class Dependency {
490 final ConstantValue constant; 490 final ConstantValue constant;
491 final Element annotatedElement; 491 final Element annotatedElement;
492 492
493 const Dependency(this.constant, this.annotatedElement); 493 const Dependency(this.constant, this.annotatedElement);
494 494
495 String toString() => '$annotatedElement:${constant.toStructuredText()}'; 495 String toString() => '$annotatedElement:${constant.toStructuredText()}';
496 } 496 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/minify_namer.dart ('k') | pkg/compiler/lib/src/js_backend/mirrors_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698