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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ArgumentDefinitionTest.java

Issue 268673006: Fix for 10469- removal of the ArgumentDefinitionTest Ast node from the analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase before commit Created 6 years, 8 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ArgumentDefinitionTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ArgumentDefinitionTest.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ArgumentDefinitionTest.java
deleted file mode 100644
index 204db3ac14d39188da9444e1eb0d8452462b3fa9..0000000000000000000000000000000000000000
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ArgumentDefinitionTest.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright 2012, the Dart project authors.
- *
- * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.dart.engine.ast;
-
-import com.google.dart.engine.scanner.Token;
-
-/**
- * Instances of the class {@code ArgumentDefinitionTest} represent an argument definition test.
- *
- * <pre>
- * argumentDefinitionTest ::=
- * '?' {@link SimpleIdentifier identifier}
- * </pre>
- *
- * @coverage dart.engine.ast
- */
-public class ArgumentDefinitionTest extends Expression {
- /**
- * The token representing the question mark.
- */
- private Token question;
-
- /**
- * The identifier representing the argument being tested.
- */
- private SimpleIdentifier identifier;
-
- /**
- * Initialize a newly created argument definition test.
- *
- * @param question the token representing the question mark
- * @param identifier the identifier representing the argument being tested
- */
- public ArgumentDefinitionTest(Token question, SimpleIdentifier identifier) {
- this.question = question;
- this.identifier = becomeParentOf(identifier);
- }
-
- @Override
- public <R> R accept(AstVisitor<R> visitor) {
- return visitor.visitArgumentDefinitionTest(this);
- }
-
- @Override
- public Token getBeginToken() {
- return question;
- }
-
- @Override
- public Token getEndToken() {
- return identifier.getEndToken();
- }
-
- /**
- * Return the identifier representing the argument being tested.
- *
- * @return the identifier representing the argument being tested
- */
- public SimpleIdentifier getIdentifier() {
- return identifier;
- }
-
- @Override
- public int getPrecedence() {
- return 15;
- }
-
- /**
- * Return the token representing the question mark.
- *
- * @return the token representing the question mark
- */
- public Token getQuestion() {
- return question;
- }
-
- /**
- * Set the identifier representing the argument being tested to the given identifier.
- *
- * @param identifier the identifier representing the argument being tested
- */
- public void setIdentifier(SimpleIdentifier identifier) {
- this.identifier = becomeParentOf(identifier);
- }
-
- /**
- * Set the token representing the question mark to the given token.
- *
- * @param question the token representing the question mark
- */
- public void setQuestion(Token question) {
- this.question = question;
- }
-
- @Override
- public void visitChildren(AstVisitor<?> visitor) {
- safelyVisitChild(identifier, visitor);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698