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

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

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.util; 5 library dart2js.serialization.util;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../elements/resolution_types.dart'; 9 import '../elements/resolution_types.dart';
10 import '../diagnostics/messages.dart'; 10 import '../diagnostics/messages.dart';
11 import '../elements/elements.dart'; 11 import '../elements/elements.dart';
12 import '../elements/modelx.dart' show WrappedMessage; 12 import '../elements/modelx.dart' show WrappedMessage;
13 import '../elements/names.dart';
13 import '../elements/operators.dart'; 14 import '../elements/operators.dart';
14 import '../resolution/access_semantics.dart'; 15 import '../resolution/access_semantics.dart';
15 import '../resolution/send_structure.dart'; 16 import '../resolution/send_structure.dart';
16 import '../universe/call_structure.dart'; 17 import '../universe/call_structure.dart';
17 import '../universe/selector.dart'; 18 import '../universe/selector.dart';
18 import 'keys.dart'; 19 import 'keys.dart';
19 import 'serialization.dart'; 20 import 'serialization.dart';
20 21
21 /// Serialize [name] into [encoder]. 22 /// Serialize [name] into [encoder].
22 void serializeName(Name name, ObjectEncoder encoder) { 23 void serializeName(Name name, ObjectEncoder encoder) {
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 ObjectDecoder sourceSpanDecoder = 583 ObjectDecoder sourceSpanDecoder =
583 object.getObject(Key.SOURCE_SPAN, isOptional: true); 584 object.getObject(Key.SOURCE_SPAN, isOptional: true);
584 if (sourceSpanDecoder != null) { 585 if (sourceSpanDecoder != null) {
585 sourceSpan = deserializeSourceSpan(sourceSpanDecoder); 586 sourceSpan = deserializeSourceSpan(sourceSpanDecoder);
586 } 587 }
587 MessageKind messageKind = object.getEnum(Key.KIND, MessageKind.values); 588 MessageKind messageKind = object.getEnum(Key.KIND, MessageKind.values);
588 Map<String, dynamic> messageArguments = 589 Map<String, dynamic> messageArguments =
589 deserializeMessageArguments(object, Key.ARGUMENTS); 590 deserializeMessageArguments(object, Key.ARGUMENTS);
590 return new WrappedMessage(sourceSpan, messageKind, messageArguments); 591 return new WrappedMessage(sourceSpan, messageKind, messageArguments);
591 } 592 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698