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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart

Issue 1238783003: Handle deferred access as pre-step in SemanticSendVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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 | « no previous file | pkg/compiler/lib/src/elements/modelx.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.ir_builder_task; 5 library dart2js.ir_builder_task;
6 6
7 import '../closure.dart' as closurelib; 7 import '../closure.dart' as closurelib;
8 import '../closure.dart' hide ClosureScope; 8 import '../closure.dart' hide ClosureScope;
9 import '../constants/expressions.dart'; 9 import '../constants/expressions.dart';
10 import '../dart_types.dart'; 10 import '../dart_types.dart';
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 return giveup(node, 'assert in checked mode not implemented'); 605 return giveup(node, 'assert in checked mode not implemented');
606 } else { 606 } else {
607 // The call to assert and its argument expression must be ignored 607 // The call to assert and its argument expression must be ignored
608 // in production mode. 608 // in production mode.
609 // Assertions can onl)y occur in expression statements, so no value needs 609 // Assertions can onl)y occur in expression statements, so no value needs
610 // to be returned. 610 // to be returned.
611 return null; 611 return null;
612 } 612 }
613 } 613 }
614 614
615 @override
616 void previsitDeferredAccess(ast.Send node, PrefixElement prefix, _) {
617 giveup(node, 'deferred access is not implemented');
618 }
619
615 ir.Primitive visitNamedArgument(ast.NamedArgument node) { 620 ir.Primitive visitNamedArgument(ast.NamedArgument node) {
616 assert(irBuilder.isOpen); 621 assert(irBuilder.isOpen);
617 return visit(node.expression); 622 return visit(node.expression);
618 } 623 }
619 624
620 @override 625 @override
621 ir.Primitive visitExpressionInvoke(ast.Send node, 626 ir.Primitive visitExpressionInvoke(ast.Send node,
622 ast.Node expression, 627 ast.Node expression,
623 ast.NodeList argumentsNode, 628 ast.NodeList argumentsNode,
624 Selector selector, _) { 629 Selector selector, _) {
(...skipping 2778 matching lines...) Expand 10 before | Expand all | Expand 10 after
3403 } 3408 }
3404 3409
3405 processSetStatic(ir.SetStatic node) { 3410 processSetStatic(ir.SetStatic node) {
3406 node.body = replacementFor(node.body); 3411 node.body = replacementFor(node.body);
3407 } 3412 }
3408 3413
3409 processContinuation(ir.Continuation node) { 3414 processContinuation(ir.Continuation node) {
3410 node.body = replacementFor(node.body); 3415 node.body = replacementFor(node.body);
3411 } 3416 }
3412 } 3417 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698