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

Unified Diff: dart/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: dart/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java
diff --git a/dart/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java b/dart/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java
deleted file mode 100644
index 6c9b2b812b5f287986661d1aff0285e7ae6aca48..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/ast/DartCascadeExpression.java
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.ast;
-
-import java.util.List;
-
-/**
- * Instances of the class {@code DartCascadeExpression} represent a sequence of cascaded expressions:
- * expressions that share a common target. There are three kinds of expressions that can be used in
- * a cascade expression: {@link DartArrayAccess}, {@link DartMethodInvocation} and {@link DartPropertyAccess}.
- *
- * <pre>
- * cascadeExpression ::=
- * {@link DartExpression conditionalExpression} cascadeSection*
- *
- * cascadeSection ::=
- * '..' (cascadeSelector arguments*) (assignableSelector arguments*)* (assignmentOperator expressionWithoutCascade)?
- *
- * cascadeSelector ::=
- * '[ ' expression '] '
- * | identifier
- * </pre>
- */
-public class DartCascadeExpression extends DartExpression {
- /**
- * The target of the cascade sections.
- */
- private DartExpression target;
-
- /**
- * The cascade sections sharing the common target.
- */
- private NodeList<DartExpression> cascadeSections = new NodeList<DartExpression>(this);
-
- /**
- * Initialize a newly created cascade expression.
- *
- * @param target the target of the cascade sections
- * @param cascadeSections the cascade sections sharing the common target
- */
- public DartCascadeExpression(DartExpression target, List<DartExpression> cascadeSections) {
- this.target = becomeParentOf(target);
- this.cascadeSections.addAll(cascadeSections);
- }
-
- @Override
- public <R> R accept(ASTVisitor<R> visitor) {
- return visitor.visitCascadeExpression(this);
- }
-
- /**
- * Return the cascade sections sharing the common target.
- *
- * @return the cascade sections sharing the common target
- */
- public NodeList<DartExpression> getCascadeSections() {
- return cascadeSections;
- }
-
- /**
- * Return the target of the cascade sections.
- *
- * @return the target of the cascade sections
- */
- public DartExpression getTarget() {
- return target;
- }
-
- /**
- * Set the target of the cascade sections to the given expression.
- *
- * @param target the target of the cascade sections
- */
- public void setTarget(DartExpression target) {
- this.target = becomeParentOf(target);
- }
-
- @Override
- public void visitChildren(ASTVisitor<?> visitor) {
- safelyVisitChild(target, visitor);
- cascadeSections.accept(visitor);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698