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

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

Issue 2567133002: Add support for the new function-type syntax. (Closed)
Patch Set: Handle function types with `void` return type. Created 3 years, 10 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 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 @override 2140 @override
2141 accept(ElementVisitor visitor, arg) { 2141 accept(ElementVisitor visitor, arg) {
2142 return visitor.visitParameterElement(this, arg); 2142 return visitor.visitParameterElement(this, arg);
2143 } 2143 }
2144 2144
2145 @override 2145 @override
2146 bool get isLocal => true; 2146 bool get isLocal => true;
2147 2147
2148 @override 2148 @override
2149 ElementKind get kind => ElementKind.PARAMETER; 2149 ElementKind get kind => ElementKind.PARAMETER;
2150
2151 @override
2152 bool get isUnnamed => false;
2150 } 2153 }
2151 2154
2152 class InitializingFormalElementZ extends LocalParameterElementZ 2155 class InitializingFormalElementZ extends LocalParameterElementZ
2153 implements InitializingFormalElement { 2156 implements InitializingFormalElement {
2154 FieldElement _fieldElement; 2157 FieldElement _fieldElement;
2155 2158
2156 InitializingFormalElementZ(ObjectDecoder decoder) : super(decoder); 2159 InitializingFormalElementZ(ObjectDecoder decoder) : super(decoder);
2157 2160
2158 @override 2161 @override
2159 FieldElement get fieldElement { 2162 FieldElement get fieldElement {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 } 2404 }
2402 2405
2403 @override 2406 @override
2404 Node get node => throw new UnsupportedError('${this}.node'); 2407 Node get node => throw new UnsupportedError('${this}.node');
2405 2408
2406 @override 2409 @override
2407 bool get hasNode => false; 2410 bool get hasNode => false;
2408 2411
2409 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; 2412 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})';
2410 } 2413 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698