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

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

Issue 1939703002: Don't crash on deserialized type inference. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + minor fix. Created 4 years, 7 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 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 FunctionElement get functionDeclaration { 1854 FunctionElement get functionDeclaration {
1855 if (_functionDeclaration == null) { 1855 if (_functionDeclaration == null) {
1856 _functionDeclaration = _decoder.getElement(Key.FUNCTION); 1856 _functionDeclaration = _decoder.getElement(Key.FUNCTION);
1857 } 1857 }
1858 return _functionDeclaration; 1858 return _functionDeclaration;
1859 } 1859 }
1860 1860
1861 @override 1861 @override
1862 FunctionSignature get functionSignature => _unsupported('functionSignature'); 1862 FunctionSignature get functionSignature => _unsupported('functionSignature');
1863 1863
1864 // TODO(johnniwinther): HACK. Remove [initializer] and [node] on
1865 // [ParameterElementZ] when the inference does need these.
1864 @override 1866 @override
1865 Expression get initializer => _unsupported('initializer'); 1867 Expression get initializer => null;
1868
1869 @override
1870 Node get node => null;
1866 1871
1867 @override 1872 @override
1868 bool get isNamed => _decoder.getBool(Key.IS_NAMED); 1873 bool get isNamed => _decoder.getBool(Key.IS_NAMED);
1869 1874
1870 @override 1875 @override
1871 bool get isOptional => _decoder.getBool(Key.IS_OPTIONAL); 1876 bool get isOptional => _decoder.getBool(Key.IS_OPTIONAL);
1872 1877
1873 @override 1878 @override
1874 LibraryElement get library => executableContext.library; 1879 LibraryElement get library => executableContext.library;
1875 1880
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 } 2092 }
2088 2093
2089 @override 2094 @override
2090 ElementKind get kind => ElementKind.PREFIX; 2095 ElementKind get kind => ElementKind.PREFIX;
2091 2096
2092 @override 2097 @override
2093 Element lookupLocalMember(String memberName) { 2098 Element lookupLocalMember(String memberName) {
2094 return _unsupported('lookupLocalMember'); 2099 return _unsupported('lookupLocalMember');
2095 } 2100 }
2096 } 2101 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/tree_elements.dart ('k') | pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698