| OLD | NEW |
| 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 library dart2js.serialization.elements; | 5 library dart2js.serialization.elements; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../constants/constructors.dart'; | 8 import '../constants/constructors.dart'; |
| 9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 WrappedMessage info = deserializeWrappedMessage(decoder, Key.INFO); | 938 WrappedMessage info = deserializeWrappedMessage(decoder, Key.INFO); |
| 939 return new WarnOnUseElementX(warning, info, enclosing, element); | 939 return new WarnOnUseElementX(warning, info, enclosing, element); |
| 940 case SerializedElementKind.AMBIGUOUS: | 940 case SerializedElementKind.AMBIGUOUS: |
| 941 Element enclosingElement = decoder.getElement(Key.ENCLOSING); | 941 Element enclosingElement = decoder.getElement(Key.ENCLOSING); |
| 942 Element existingElement = decoder.getElement(Key.EXISTING); | 942 Element existingElement = decoder.getElement(Key.EXISTING); |
| 943 Element newElement = decoder.getElement(Key.NEW); | 943 Element newElement = decoder.getElement(Key.NEW); |
| 944 MessageKind messageKind = | 944 MessageKind messageKind = |
| 945 decoder.getEnum(Key.MESSAGE_KIND, MessageKind.values); | 945 decoder.getEnum(Key.MESSAGE_KIND, MessageKind.values); |
| 946 Map messageArguments = | 946 Map messageArguments = |
| 947 deserializeMessageArguments(decoder, Key.ARGUMENTS); | 947 deserializeMessageArguments(decoder, Key.ARGUMENTS); |
| 948 return new AmbiguousImportX( | 948 return new AmbiguousImportX(messageKind, messageArguments, |
| 949 messageKind, messageArguments, | |
| 950 enclosingElement, existingElement, newElement); | 949 enclosingElement, existingElement, newElement); |
| 951 case SerializedElementKind.EXTERNAL_LIBRARY: | 950 case SerializedElementKind.EXTERNAL_LIBRARY: |
| 952 case SerializedElementKind.EXTERNAL_LIBRARY_MEMBER: | 951 case SerializedElementKind.EXTERNAL_LIBRARY_MEMBER: |
| 953 case SerializedElementKind.EXTERNAL_CLASS_MEMBER: | 952 case SerializedElementKind.EXTERNAL_CLASS_MEMBER: |
| 954 case SerializedElementKind.EXTERNAL_CONSTRUCTOR: | 953 case SerializedElementKind.EXTERNAL_CONSTRUCTOR: |
| 955 break; | 954 break; |
| 956 } | 955 } |
| 957 throw new UnsupportedError("Unexpected element kind '${elementKind}."); | 956 throw new UnsupportedError("Unexpected element kind '${elementKind}."); |
| 958 } | 957 } |
| 959 } | 958 } |
| OLD | NEW |