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

Unified Diff: dart/compiler/java/com/google/dart/compiler/ast/DartInitializer.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/DartInitializer.java
diff --git a/dart/compiler/java/com/google/dart/compiler/ast/DartInitializer.java b/dart/compiler/java/com/google/dart/compiler/ast/DartInitializer.java
deleted file mode 100644
index c9d324b0033ef8da687a5c2fa5e0517ae5a10271..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/ast/DartInitializer.java
+++ /dev/null
@@ -1,57 +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;
-
-/**
- * Represents a constructor initializer expression.
- */
-public class DartInitializer extends DartNode {
-
- private DartIdentifier name;
- private DartExpression value;
-
- public DartInitializer(DartIdentifier name, DartExpression value) {
- this.name = becomeParentOf(name);
- this.value = becomeParentOf(value);
- }
-
- public String getInitializerName() {
- if (name == null) {
- return null;
- }
- return name.getName();
- }
-
- public DartIdentifier getName() {
- return name;
- }
-
- public DartExpression getValue() {
- return value;
- }
-
- /**
- * Determines if initializer is an invocation.
- * @return true if initializer is either super or redirected constructor invocation.
- */
- public boolean isInvocation() {
- return name == null;
- }
-
- public void setName(DartIdentifier newName) {
- name = becomeParentOf(newName);
- }
-
- @Override
- public void visitChildren(ASTVisitor<?> visitor) {
- safelyVisitChild(name, visitor);
- safelyVisitChild(value, visitor);
- }
-
- @Override
- public <R> R accept(ASTVisitor<R> visitor) {
- return visitor.visitInitializer(this);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698