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/NormalAnnotation.js')
-rw-r--r--tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/NormalAnnotation.js84
1 files changed, 0 insertions, 84 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/NormalAnnotation.js b/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/NormalAnnotation.js
deleted file mode 100644
index f669527..0000000
--- a/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/Compiler/src/org/eclipse/jsdt/internal/compiler/ast/NormalAnnotation.js
+++ /dev/null
@@ -1,84 +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;
-
-/**
- * Normal annotation node
- */
-public class NormalAnnotation extends Annotation {
-
- public MemberValuePair[] memberValuePairs;
-
- public NormalAnnotation(char[][] tokens, long[] sourcePositions, int sourceStart) {
- this.tokens = tokens;
- this.sourcePositions = sourcePositions;
- this.sourceStart = sourceStart;
- this.sourceEnd = (int) sourcePositions[sourcePositions.length - 1];
- }
-
- public NormalAnnotation(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('(');
- if (this.memberValuePairs != null) {
- for (int i = 0, max = this.memberValuePairs.length; i < max; i++) {
- if (i > 0) {
- output.append(',');
- }
- this.memberValuePairs[i].print(indent, output);
- }
- }
- output.append(')');
- return output;
- }
-
- public void traverse(ASTVisitor visitor, BlockScope scope) {
- if (visitor.visit(this, scope)) {
- if (this.memberValuePairs != null) {
- int memberValuePairsLength = this.memberValuePairs.length;
- for (int i = 0; i < memberValuePairsLength; i++)
- this.memberValuePairs[i].traverse(visitor, scope);
- }
- }
- visitor.endVisit(this, scope);
- }
- public void traverse(ASTVisitor visitor, ClassScope scope) {
- if (visitor.visit(this, scope)) {
- if (this.memberValuePairs != null) {
- int memberValuePairsLength = this.memberValuePairs.length;
- for (int i = 0; i < memberValuePairsLength; i++)
- this.memberValuePairs[i].traverse(visitor, scope);
- }
- }
- visitor.endVisit(this, scope);
- }
- public void traverse(ASTVisitor visitor, CompilationUnitScope scope) {
- if (visitor.visit(this, scope)) {
- if (this.memberValuePairs != null) {
- int memberValuePairsLength = this.memberValuePairs.length;
- for (int i = 0; i < memberValuePairsLength; i++)
- this.memberValuePairs[i].traverse(visitor, scope);
- }
- }
- visitor.endVisit(this, scope);
- }
-}

Back to the top