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

Side by Side Diff: pkg/compiler/lib/src/constants/constant_constructors.dart

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 // TODO(johnniwinther): Remove this library when all constant constructors are 5 // TODO(johnniwinther): Remove this library when all constant constructors are
6 // computed during resolution. 6 // computed during resolution.
7 library dart2js.constants.constant_constructors; 7 library dart2js.constants.constant_constructors;
8 8
9 import '../dart2jslib.dart';
10 import '../dart_types.dart'; 9 import '../dart_types.dart';
10 import '../diagnostics/invariant.dart' show
11 invariant;
11 import '../elements/elements.dart'; 12 import '../elements/elements.dart';
12 import '../resolution/resolution.dart'; 13 import '../resolution/resolution.dart';
13 import '../resolution/operators.dart'; 14 import '../resolution/operators.dart';
14 import '../resolution/semantic_visitor.dart'; 15 import '../resolution/semantic_visitor.dart';
15 import '../resolution/send_structure.dart'; 16 import '../resolution/send_structure.dart';
16 import '../tree/tree.dart'; 17 import '../tree/tree.dart';
17 import '../universe/universe.dart' show CallStructure; 18 import '../universe/universe.dart' show CallStructure;
18 import 'constructors.dart'; 19 import 'constructors.dart';
19 import 'expressions.dart'; 20 import 'expressions.dart';
20 21
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 372 }
372 return new IdenticalConstantExpression( 373 return new IdenticalConstantExpression(
373 apply(arguments.nodes.head), apply(arguments.nodes.tail.head)); 374 apply(arguments.nodes.head), apply(arguments.nodes.tail.head));
374 } 375 }
375 376
376 @override 377 @override
377 ConstantExpression visitNamedArgument(NamedArgument node) { 378 ConstantExpression visitNamedArgument(NamedArgument node) {
378 return apply(node.expression); 379 return apply(node.expression);
379 } 380 }
380 } 381 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/constants/constant_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698