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

Side by Side Diff: dart/lib/compiler/implementation/tree/unparser.dart

Issue 11088003: Fix warnings in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix long line Created 8 years, 2 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 String unparse(Node node) { 5 String unparse(Node node) {
6 Unparser unparser = new Unparser(); 6 Unparser unparser = new Unparser();
7 unparser.unparse(node); 7 unparser.unparse(node);
8 return unparser.result; 8 return unparser.result;
9 } 9 }
10 10
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 addToken(node.partKeyword); 544 addToken(node.partKeyword);
545 addToken(node.ofKeyword); 545 addToken(node.ofKeyword);
546 visit(node.name); 546 visit(node.name);
547 add(node.getEndToken().value); 547 add(node.getEndToken().value);
548 } 548 }
549 549
550 visitCombinator(Combinator node) { 550 visitCombinator(Combinator node) {
551 addToken(node.keywordToken); 551 addToken(node.keywordToken);
552 visit(node.identifiers); 552 visit(node.identifiers);
553 } 553 }
554
555 visitNode(Node node) {
556 throw 'internal error'; // Should not be called.
557 }
558
559 visitExpression(Expression node) {
560 throw 'internal error'; // Should not be called.
561 }
562
563 visitLibraryTag(LibraryTag node) {
564 throw 'internal error'; // Should not be called.
565 }
566
567 visitLiteral(Literal node) {
568 throw 'internal error'; // Should not be called.
569 }
570
571 visitLoop(Loop node) {
572 throw 'internal error'; // Should not be called.
573 }
574
575 visitPostfix(Postfix node) {
576 throw 'internal error'; // Should not be called.
577 }
578
579 visitPrefix(Prefix node) {
580 throw 'internal error'; // Should not be called.
581 }
582
583 visitStatement(Statement node) {
584 throw 'internal error'; // Should not be called.
585 }
586
587 visitStringNode(StringNode node) {
588 throw 'internal error'; // Should not be called.
589 }
554 } 590 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/tree/prettyprint.dart ('k') | dart/lib/compiler/implementation/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698