Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/upc
diff options
context:
space:
mode:
authorMike Kucera2008-04-23 21:16:30 +0000
committerMike Kucera2008-04-23 21:16:30 +0000
commitf891a885bd50c19c68cc7050e52aeaafbf672824 (patch)
tree146383c94d3604b1807dbeb5b216349b6c783b64 /upc
parent99228dea42a19206d2913c279e6eb783b80f5e1f (diff)
downloadorg.eclipse.cdt-f891a885bd50c19c68cc7050e52aeaafbf672824.tar.gz
org.eclipse.cdt-f891a885bd50c19c68cc7050e52aeaafbf672824.tar.xz
org.eclipse.cdt-f891a885bd50c19c68cc7050e52aeaafbf672824.zip
fixed macro content assist
Diffstat (limited to 'upc')
-rw-r--r--upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java2
-rw-r--r--upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/DOMToUPCTokenMap.java17
2 files changed, 9 insertions, 10 deletions
diff --git a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java
index 560d604adb3..32c07c56fc0 100644
--- a/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java
+++ b/upc/org.eclipse.cdt.core.parser.upc.tests/src/org/eclipse/cdt/core/parser/upc/tests/UPCC99CompletionParseTest.java
@@ -20,7 +20,7 @@ public class UPCC99CompletionParseTest extends C99CompletionParseTest {
public UPCC99CompletionParseTest(String name) { super(name); }
@Override
- protected BaseExtensibleLanguage getLanguage() {
+ protected BaseExtensibleLanguage getC99Language() {
return UPCLanguage.getDefault();
}
}
diff --git a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/DOMToUPCTokenMap.java b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/DOMToUPCTokenMap.java
index 87dc09f6f84..d626097072b 100644
--- a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/DOMToUPCTokenMap.java
+++ b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/DOMToUPCTokenMap.java
@@ -16,7 +16,6 @@ import static org.eclipse.cdt.internal.core.dom.parser.upc.UPCParsersym.*;
import org.eclipse.cdt.core.dom.lrparser.IDOMTokenMap;
import org.eclipse.cdt.core.parser.IToken;
-import org.eclipse.cdt.internal.core.dom.parser.upc.UPCParsersym;
/**
@@ -31,6 +30,14 @@ import org.eclipse.cdt.internal.core.dom.parser.upc.UPCParsersym;
public class DOMToUPCTokenMap implements IDOMTokenMap {
+ public int getEOFTokenKind() {
+ return TK_EOF_TOKEN;
+ }
+
+ public int getEOCTokenKind() {
+ return TK_EndOfCompletion;
+ }
+
public int mapKind(IToken token) {
switch(token.getType()) {
@@ -140,13 +147,5 @@ public class DOMToUPCTokenMap implements IDOMTokenMap {
}
- protected String[] getOrderedTerminalSymbols() {
- return UPCParsersym.orderedTerminalSymbols;
- }
-
- public int getEOFTokenKind() {
- return TK_EOF_TOKEN;
- }
-
}

Back to the top