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

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

Issue 1091443003: Move constant systems into their own libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix try/poi/forget_element_test Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer2dart/lib/src/dart_backend.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) 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/src/dart_types.dart' as dart2js; 9 import 'package:compiler/src/dart_types.dart' as dart2js;
10 import 'package:compiler/src/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/src/dart2jslib.dart' 14 import 'package:compiler/src/constant_system_dart.dart'
15 show DART_CONSTANT_SYSTEM; 15 show DART_CONSTANT_SYSTEM;
16 import 'package:compiler/src/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/src/cps_ir/cps_ir_builder.dart'; 17 import 'package:compiler/src/cps_ir/cps_ir_builder.dart';
18 import 'package:compiler/src/cps_ir/cps_ir_builder_task.dart';
19 import 'package:compiler/src/universe/universe.dart'; 18 import 'package:compiler/src/universe/universe.dart';
20 19
21 import 'semantic_visitor.dart'; 20 import 'semantic_visitor.dart';
22 import 'element_converter.dart'; 21 import 'element_converter.dart';
23 import 'util.dart'; 22 import 'util.dart';
24 import 'identifier_semantics.dart'; 23 import 'identifier_semantics.dart';
25 24
26 /// Visitor that converts the AST node of an analyzer element into a CPS ir 25 /// Visitor that converts the AST node of an analyzer element into a CPS ir
27 /// node. 26 /// node.
28 class CpsElementVisitor extends analyzer.SimpleElementVisitor<ir.Node> { 27 class CpsElementVisitor extends analyzer.SimpleElementVisitor<ir.Node> {
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 catchClause.exceptionParameter.staticElement), 580 catchClause.exceptionParameter.staticElement),
582 buildCatchBlock: subbuild(catchClause.body))); 581 buildCatchBlock: subbuild(catchClause.body)));
583 582
584 } 583 }
585 irBuilder.buildTry( 584 irBuilder.buildTry(
586 tryStatementInfo: new TryStatementInfo(), 585 tryStatementInfo: new TryStatementInfo(),
587 buildTryBlock: subbuild(node.body), 586 buildTryBlock: subbuild(node.body),
588 catchClauseInfos: catchClauseInfos); 587 catchClauseInfos: catchClauseInfos);
589 } 588 }
590 } 589 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer2dart/lib/src/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698