Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-12 20:27:29 -0400
committerSergey Prigogin2012-04-12 20:27:29 -0400
commitb9097cd175b8a61b156f24821ef9c811b42228f6 (patch)
tree75d406b0141ab0f60f45bf2715a2e9dff098b05f
parentf02e178d5229b6d4d32c34d1e97dac52a6eeeadd (diff)
downloadorg.eclipse.cdt-b9097cd175b8a61b156f24821ef9c811b42228f6.tar.gz
org.eclipse.cdt-b9097cd175b8a61b156f24821ef9c811b42228f6.tar.xz
org.eclipse.cdt-b9097cd175b8a61b156f24821ef9c811b42228f6.zip
Removed prematurely submitted classes.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTToken.java43
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTTokenList.java59
2 files changed, 0 insertions, 102 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTToken.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTToken.java
deleted file mode 100644
index 9aecc8e072..0000000000
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTToken.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Google, Inc and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Sergey Prigogin (Google) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.cdt.internal.core.dom.parser;
-
-import org.eclipse.cdt.core.dom.ast.IASTToken;
-import org.eclipse.cdt.core.parser.IToken;
-import org.eclipse.cdt.internal.core.parser.scanner.Token;
-
-/**
- * Base class for C and C++ attributes.
- */
-public class ASTToken extends ASTNode implements IASTToken {
- private final IToken token;
-
- public ASTToken(IToken token) {
- this.token = token;
- }
-
- @Override
- public ASTToken copy() {
- return copy(CopyStyle.withoutLocations);
- }
-
- @Override
- public ASTToken copy(CopyStyle style) {
- Token tokenCopy = ((Token) token).clone();
- tokenCopy.setNext(null);
- return super.copy(new ASTToken(tokenCopy), style);
- }
-
- @Override
- public IToken getToken() {
- return token;
- }
-}
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTTokenList.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTTokenList.java
deleted file mode 100644
index 44d929f45e..0000000000
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/ASTTokenList.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Google, Inc and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Sergey Prigogin (Google) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.cdt.internal.core.dom.parser;
-
-import org.eclipse.cdt.core.dom.ast.IASTToken;
-import org.eclipse.cdt.core.dom.ast.IASTTokenList;
-import org.eclipse.cdt.core.parser.IToken;
-import org.eclipse.cdt.core.parser.util.ArrayUtil;
-
-/**
- * Represents a sequence of code tokens.
- */
-public class ASTTokenList extends ASTNode implements IASTTokenList {
- private IASTToken[] tokens = IASTToken.EMPTY_TOKEN_ARRAY;
-
- public ASTTokenList() {
- }
-
- @Override
- public ASTTokenList copy() {
- return copy(CopyStyle.withoutLocations);
- }
-
- @Override
- public ASTTokenList copy(CopyStyle style) {
- ASTTokenList copy = super.copy(new ASTTokenList(), style);
- for (IASTToken token : tokens) {
- if (token == null)
- break;
- copy.addToken(token.copy(style));
- }
- return copy;
- }
-
- @Override
- public IASTToken[] getTokens() {
- tokens = ArrayUtil.trim(tokens);
- return tokens;
- }
-
- @Override
- public void addToken(IASTToken token) {
- tokens = ArrayUtil.append(tokens, token);
- }
-
- @Override
- public IToken getToken() {
- IASTToken[] tok = getTokens();
- return tok != null && tok.length == 1 ? tok[0].getToken() : null;
- }
-}

Back to the top