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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 99303004: Remove unused API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index ac32e1628528fe393bc24f58141fb5b0c11ff516..e64cbf6fee77e55f1d8871bd38abe1c20b792c94 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -149,6 +149,7 @@ abstract class Node extends TreeElementMixin implements Spannable {
ContinueStatement asContinueStatement() => null;
DoWhile asDoWhile() => null;
EmptyStatement asEmptyStatement() => null;
+ ErrorExpression asErrorExpression() => null;
Export asExport() => null;
Expression asExpression() => null;
ExpressionStatement asExpressionStatement() => null;
@@ -171,6 +172,7 @@ abstract class Node extends TreeElementMixin implements Spannable {
LiteralMapEntry asLiteralMapEntry() => null;
LiteralNull asLiteralNull() => null;
LiteralString asLiteralString() => null;
+ LiteralSymbol asLiteralSymbol() => null;
MixinApplication asMixinApplication() => null;
Modifiers asModifiers() => null;
NamedArgument asNamedArgument() => null;
@@ -597,10 +599,6 @@ class If extends Statement {
bool get hasElsePart => elsePart != null;
- void validate() {
- // TODO(ahe): Check that condition has size one.
- }
-
accept(Visitor visitor) => visitor.visitIf(this);
visitChildren(Visitor visitor) {
@@ -918,7 +916,6 @@ class LiteralString extends StringNode {
void visitChildren(Visitor visitor) {}
bool get isInterpolation => false;
- bool isValidated() => dartString != null;
Token getBeginToken() => token;
Token getEndToken() => token;
@@ -1725,8 +1722,6 @@ class LabeledStatement extends Statement {
Token getEndToken() => statement.getEndToken();
bool isValidContinueTarget() => statement.isValidContinueTarget();
-
- Node getBody() => statement;
}
abstract class LibraryTag extends Node {

Powered by Google App Engine
This is Rietveld 408576698