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

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

Issue 1918903004: Make support for async/await syntax optional in the frontend. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 if (_file == null) { 490 if (_file == null) {
491 throw new UnsupportedError('ScriptZ.file'); 491 throw new UnsupportedError('ScriptZ.file');
492 } 492 }
493 return _file; 493 return _file;
494 } 494 }
495 495
496 void set file(SourceFile value) { 496 void set file(SourceFile value) {
497 _file = value; 497 _file = value;
498 } 498 }
499 499
500 // TODO(johnniwinther): Decide if it is meaningful to serialize erroneous
501 // elements.
500 @override 502 @override
501 bool get isSynthesized => throw new UnsupportedError('ScriptZ.isSynthesized'); 503 bool get isSynthesized => false;
502 504
503 @override 505 @override
504 String get name { 506 String get name {
505 if (_file != null) { 507 if (_file != null) {
506 return _file.filename; 508 return _file.filename;
507 } 509 }
508 return resourceUri.toString(); 510 return resourceUri.toString();
509 } 511 }
510 512
511 // TODO(johnniwinther): Support the distinction between [readableUri] and 513 // TODO(johnniwinther): Support the distinction between [readableUri] and
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 } 2011 }
2010 2012
2011 @override 2013 @override
2012 ElementKind get kind => ElementKind.PREFIX; 2014 ElementKind get kind => ElementKind.PREFIX;
2013 2015
2014 @override 2016 @override
2015 Element lookupLocalMember(String memberName) { 2017 Element lookupLocalMember(String memberName) {
2016 return _unsupported('lookupLocalMember'); 2018 return _unsupported('lookupLocalMember');
2017 } 2019 }
2018 } 2020 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698