Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/SingleMemberAnnotation.js')
-rw-r--r--tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/SingleMemberAnnotation.js69
1 files changed, 0 insertions, 69 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/SingleMemberAnnotation.js b/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/SingleMemberAnnotation.js
deleted file mode 100644
index abc054b..0000000
--- a/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/SingleMemberAnnotation.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.jsdt.internal.compiler.ast;
-
-import org.eclipse.wst.jsdt.internal.compiler.ASTVisitor;
-import org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope;
-import org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope;
-import org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope;
-
-/**
- * SingleMemberAnnotation node
- */
-public class SingleMemberAnnotation extends Annotation {
- public Expression memberValue;
-
- public SingleMemberAnnotation(char[][] tokens, long[] sourcePositions, int sourceStart) {
- this.tokens = tokens;
- this.sourcePositions = sourcePositions;
- this.sourceStart = sourceStart;
- this.sourceEnd = (int) sourcePositions[sourcePositions.length - 1];
- }
-
- public SingleMemberAnnotation(char[] token, long sourcePosition, int sourceStart) {
- this.tokens = new char[][] { token };
- this.sourcePositions = new long[] { sourcePosition };
- this.sourceStart = sourceStart;
- this.sourceEnd = (int) sourcePosition;
- }
-
- public StringBuffer printExpression(int indent, StringBuffer output) {
- super.printExpression(indent, output);
- output.append('(');
- this.memberValue.printExpression(indent, output);
- return output.append(')');
- }
-
- public void traverse(ASTVisitor visitor, BlockScope scope) {
- if (visitor.visit(this, scope)) {
- if (this.memberValue != null) {
- this.memberValue.traverse(visitor, scope);
- }
- }
- visitor.endVisit(this, scope);
- }
- public void traverse(ASTVisitor visitor, ClassScope scope) {
- if (visitor.visit(this, scope)) {
- if (this.memberValue != null) {
- this.memberValue.traverse(visitor, scope);
- }
- }
- visitor.endVisit(this, scope);
- }
- public void traverse(ASTVisitor visitor, CompilationUnitScope scope) {
- if (visitor.visit(this, scope)) {
- if (this.memberValue != null) {
- this.memberValue.traverse(visitor, scope);
- }
- }
- visitor.endVisit(this, scope);
- }
-}

Back to the top