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

Side by Side Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Address comments and fix duplicated library names. Created 3 years, 8 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Implementation of the element model used for deserialiation. 5 /// Implementation of the element model used for deserialiation.
6 /// 6 ///
7 /// These classes are created by [ElementDeserializer] triggered by the 7 /// These classes are created by [ElementDeserializer] triggered by the
8 /// [Deserializer]. 8 /// [Deserializer].
9 9
10 library dart2js.serialization.modelz; 10 library dart2js.serialization.modelz;
(...skipping 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 final Element annotatedElement; 2391 final Element annotatedElement;
2392 final SourceSpan sourcePosition; 2392 final SourceSpan sourcePosition;
2393 final ConstantExpression constant; 2393 final ConstantExpression constant;
2394 2394
2395 MetadataAnnotationZ( 2395 MetadataAnnotationZ(
2396 this.annotatedElement, this.sourcePosition, this.constant); 2396 this.annotatedElement, this.sourcePosition, this.constant);
2397 2397
2398 @override 2398 @override
2399 MetadataAnnotation ensureResolved(Resolution resolution) { 2399 MetadataAnnotation ensureResolved(Resolution resolution) {
2400 // Do nothing. 2400 // Do nothing.
2401 return this;
2401 } 2402 }
2402 2403
2403 @override 2404 @override
2404 Node get node => throw new UnsupportedError('${this}.node'); 2405 Node get node => throw new UnsupportedError('${this}.node');
2405 2406
2406 @override 2407 @override
2407 bool get hasNode => false; 2408 bool get hasNode => false;
2408 2409
2409 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; 2410 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})';
2410 } 2411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698