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

Side by Side Diff: dart/lib/compiler/implementation/js/nodes.dart

Issue 10880040: Support abstract getters without parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update language.status Created 8 years, 4 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 interface NodeVisitor<T> { 5 interface NodeVisitor<T> {
6 T visitProgram(Program node); 6 T visitProgram(Program node);
7 7
8 T visitBlock(Block node); 8 T visitBlock(Block node);
9 T visitExpressionStatement(ExpressionStatement node); 9 T visitExpressionStatement(ExpressionStatement node);
10 T visitEmptyStatement(EmptyStatement node); 10 T visitEmptyStatement(EmptyStatement node);
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 class LiteralStatement extends Statement { 419 class LiteralStatement extends Statement {
420 final String code; 420 final String code;
421 421
422 LiteralStatement(this.code); 422 LiteralStatement(this.code);
423 423
424 accept(NodeVisitor visitor) => visitor.visitLiteralStatement(this); 424 accept(NodeVisitor visitor) => visitor.visitLiteralStatement(this);
425 void visitChildren(NodeVisitor visitor) { } 425 void visitChildren(NodeVisitor visitor) { }
426 } 426 }
427 427
428 abstract class Expression extends Node { 428 abstract class Expression extends Node {
429 abstract int get precedenceLevel(); 429 abstract int get precedenceLevel;
430 } 430 }
431 431
432 class LiteralExpression extends Expression { 432 class LiteralExpression extends Expression {
433 final String template; 433 final String template;
434 final List<Expression> inputs; 434 final List<Expression> inputs;
435 435
436 LiteralExpression(this.template) : inputs = const []; 436 LiteralExpression(this.template) : inputs = const [];
437 LiteralExpression.withData(this.template, this.inputs); 437 LiteralExpression.withData(this.template, this.inputs);
438 438
439 accept(NodeVisitor visitor) => visitor.visitLiteralExpression(this); 439 accept(NodeVisitor visitor) => visitor.visitLiteralExpression(this);
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 /** Contains the pattern and the flags.*/ 830 /** Contains the pattern and the flags.*/
831 String pattern; 831 String pattern;
832 832
833 RegExpLiteral(this.pattern); 833 RegExpLiteral(this.pattern);
834 834
835 accept(NodeVisitor visitor) => visitor.visitRegExpLiteral(this); 835 accept(NodeVisitor visitor) => visitor.visitRegExpLiteral(this);
836 void visitChildren(NodeVisitor visitor) {} 836 void visitChildren(NodeVisitor visitor) {}
837 837
838 int get precedenceLevel => PRIMARY; 838 int get precedenceLevel => PRIMARY;
839 } 839 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/elements/elements.dart ('k') | dart/lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698