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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js/template.dart

Issue 256003002: JavaScript Binary expressions not subclass of Call (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 7 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
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 part of js; 5 part of js;
6 6
7 class TemplateManager { 7 class TemplateManager {
8 Map<String, Template> expressionTemplates = new Map<String, Template>(); 8 Map<String, Template> expressionTemplates = new Map<String, Template>();
9 Map<String, Template> statementTemplates = new Map<String, Template>(); 9 Map<String, Template> statementTemplates = new Map<String, Template>();
10 10
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 declarations.add(result); 451 declarations.add(result);
452 } 452 }
453 return new VariableDeclarationList(declarations); 453 return new VariableDeclarationList(declarations);
454 }; 454 };
455 } 455 }
456 456
457 Instantiator visitSequence(Sequence node) => TODO('visitSequence'); 457 Instantiator visitSequence(Sequence node) => TODO('visitSequence');
458 458
459 Instantiator visitAssignment(Assignment node) { 459 Instantiator visitAssignment(Assignment node) {
460 Instantiator makeLeftHandSide = visit(node.leftHandSide); 460 Instantiator makeLeftHandSide = visit(node.leftHandSide);
461 Instantiator makeCompoundTarget = visitNullable(node.compoundTarget); 461 String op = node.op;
462 Instantiator makeValue = visitNullable(node.value); 462 Instantiator makeValue = visitNullable(node.value);
463 return (arguments) { 463 return (arguments) {
464 return new Assignment._internal( 464 return new Assignment.compound(
465 makeLeftHandSide(arguments), 465 makeLeftHandSide(arguments),
466 makeCompoundTarget(arguments), 466 op,
467 makeValue(arguments)); 467 makeValue(arguments));
468 }; 468 };
469 } 469 }
470 470
471 Instantiator visitVariableInitialization(VariableInitialization node) { 471 Instantiator visitVariableInitialization(VariableInitialization node) {
472 Instantiator makeDeclaration = visit(node.declaration); 472 Instantiator makeDeclaration = visit(node.declaration);
473 Instantiator makeValue = visitNullable(node.value); 473 Instantiator makeValue = visitNullable(node.value);
474 return (arguments) { 474 return (arguments) {
475 return new VariableInitialization( 475 return new VariableInitialization(
476 makeDeclaration(arguments), makeValue(arguments)); 476 makeDeclaration(arguments), makeValue(arguments));
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 if (count != before) containsInterpolatedNode.add(node); 667 if (count != before) containsInterpolatedNode.add(node);
668 return null; 668 return null;
669 } 669 }
670 670
671 visitInterpolatedNode(InterpolatedNode node) { 671 visitInterpolatedNode(InterpolatedNode node) {
672 interpolatedNodes.add(node); 672 interpolatedNodes.add(node);
673 containsInterpolatedNode.add(node); 673 containsInterpolatedNode.add(node);
674 ++count; 674 ++count;
675 } 675 }
676 } 676 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js/nodes.dart ('k') | sdk/lib/_internal/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698