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

Side by Side Diff: tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // SExpressionUnstringifier implements the inverse operation to 5 // SExpressionUnstringifier implements the inverse operation to
6 // [SExpressionStringifier]. 6 // [SExpressionStringifier].
7 7
8 library sexpr_unstringifier; 8 library sexpr_unstringifier;
9 9
10 import 'package:compiler/src/constants/expressions.dart'; 10 import 'package:compiler/src/constants/expressions.dart';
11 import 'package:compiler/src/constants/values.dart'; 11 import 'package:compiler/src/constants/values.dart';
12 import 'package:compiler/src/dart_types.dart' as dart_types 12 import 'package:compiler/src/dart_types.dart' as dart_types
13 show DartType; 13 show DartType;
14 import 'package:compiler/src/diagnostics/messages.dart' 14 import 'package:compiler/src/diagnostics/messages.dart'
15 show MessageKind; 15 show MessageKind;
16 import 'package:compiler/src/elements/elements.dart'; 16 import 'package:compiler/src/elements/elements.dart';
17 import 'package:compiler/src/elements/modelx.dart' 17 import 'package:compiler/src/elements/modelx.dart'
18 show ErroneousElementX, TypeVariableElementX; 18 show ErroneousElementX, TypeVariableElementX;
19 import 'package:compiler/src/tree/tree.dart' show LiteralDartString; 19 import 'package:compiler/src/tree/tree.dart' show LiteralDartString;
20 import 'package:compiler/src/universe/universe.dart' 20 import 'package:compiler/src/universe/call_structure.dart'
21 show Selector, SelectorKind, CallStructure; 21 show CallStructure;
22 import 'package:compiler/src/universe/selector.dart'
23 show Selector, SelectorKind;
22 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart'; 24 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart';
23 25
24 /// Used whenever a node constructed by [SExpressionUnstringifier] needs a 26 /// Used whenever a node constructed by [SExpressionUnstringifier] needs a
25 /// named entity. 27 /// named entity.
26 class DummyEntity extends Entity { 28 class DummyEntity extends Entity {
27 final String name; 29 final String name;
28 DummyEntity(this.name); 30 DummyEntity(this.name);
29 } 31 }
30 32
31 /// Used whenever a node constructed by [SExpressionUnstringifier] needs a 33 /// Used whenever a node constructed by [SExpressionUnstringifier] needs a
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 tokens.consumeStart(SET_FIELD); 876 tokens.consumeStart(SET_FIELD);
875 877
876 Primitive object = name2variable[tokens.read()]; 878 Primitive object = name2variable[tokens.read()];
877 Element field = new DummyElement(tokens.read()); 879 Element field = new DummyElement(tokens.read());
878 Primitive value = name2variable[tokens.read()]; 880 Primitive value = name2variable[tokens.read()];
879 881
880 tokens.consumeEnd(); 882 tokens.consumeEnd();
881 return new SetField(object, field, value); 883 return new SetField(object, field, value);
882 } 884 }
883 } 885 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_dart2js_helpers_test.dart ('k') | tests/compiler/dart2js/cpa_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698