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

Side by Side Diff: pkg/analyzer2dart/lib/src/cps_generator.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 library analyzer2dart.cps_generator; 5 library analyzer2dart.cps_generator;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 8
9 import 'package:compiler/implementation/dart_types.dart' as dart2js; 9 import 'package:compiler/src/dart_types.dart' as dart2js;
10 import 'package:compiler/implementation/elements/elements.dart' as dart2js; 10 import 'package:compiler/src/elements/elements.dart' as dart2js;
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analyzer/src/generated/element.dart' as analyzer; 12 import 'package:analyzer/src/generated/element.dart' as analyzer;
13 13
14 import 'package:compiler/implementation/dart2jslib.dart' 14 import 'package:compiler/src/dart2jslib.dart'
15 show DART_CONSTANT_SYSTEM; 15 show DART_CONSTANT_SYSTEM;
16 import 'package:compiler/implementation/cps_ir/cps_ir_nodes.dart' as ir; 16 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart' as ir;
17 import 'package:compiler/implementation/cps_ir/cps_ir_builder.dart'; 17 import 'package:compiler/src/cps_ir/cps_ir_builder.dart';
18 import 'package:compiler/implementation/universe/universe.dart'; 18 import 'package:compiler/src/universe/universe.dart';
19 19
20 import 'semantic_visitor.dart'; 20 import 'semantic_visitor.dart';
21 import 'element_converter.dart'; 21 import 'element_converter.dart';
22 import 'util.dart'; 22 import 'util.dart';
23 import 'identifier_semantics.dart'; 23 import 'identifier_semantics.dart';
24 24
25 class CpsGeneratingVisitor extends SemanticVisitor<ir.Node> 25 class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
26 with IrBuilderMixin<AstNode> { 26 with IrBuilderMixin<AstNode> {
27 final analyzer.Element element; 27 final analyzer.Element element;
28 final ElementConverter converter; 28 final ElementConverter converter;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 @override 398 @override
399 ir.Primitive visitAsExpression(AsExpression node) { 399 ir.Primitive visitAsExpression(AsExpression node) {
400 return irBuilder.buildTypeOperator( 400 return irBuilder.buildTypeOperator(
401 visit(node.expression), 401 visit(node.expression),
402 converter.convertType(node.type.type), 402 converter.convertType(node.type.type),
403 isTypeTest: false); 403 isTypeTest: false);
404 } 404 }
405 } 405 }
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/converted_world.dart ('k') | pkg/analyzer2dart/lib/src/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698