Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Camelon2003-06-20 17:16:05 +0000
committerJohn Camelon2003-06-20 17:16:05 +0000
commit4347f9b681bfd5e9a647aed26168934aa2b587fc (patch)
tree98e4c97b265d9a4fea61d1c6e88884e3c6814fa0 /core/org.eclipse.cdt.ui.tests
parent35a76e8822f8ec8e3582ff281e74dcfe6b109010 (diff)
downloadorg.eclipse.cdt-4347f9b681bfd5e9a647aed26168934aa2b587fc.tar.gz
org.eclipse.cdt-4347f9b681bfd5e9a647aed26168934aa2b587fc.tar.xz
org.eclipse.cdt-4347f9b681bfd5e9a647aed26168934aa2b587fc.zip
Patch for Victor Mozgin.
Fixes problem with offsets of elements that were created as macro expansions (PR 36463).
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/parser/org/eclipse/cdt/core/parser/tests/ScannerTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/parser/org/eclipse/cdt/core/parser/tests/ScannerTestCase.java b/core/org.eclipse.cdt.ui.tests/parser/org/eclipse/cdt/core/parser/tests/ScannerTestCase.java
index 1cbbd46774..397fcfc179 100644
--- a/core/org.eclipse.cdt.ui.tests/parser/org/eclipse/cdt/core/parser/tests/ScannerTestCase.java
+++ b/core/org.eclipse.cdt.ui.tests/parser/org/eclipse/cdt/core/parser/tests/ScannerTestCase.java
@@ -723,10 +723,10 @@ public class ScannerTestCase extends BaseScannerTest
assertNotNull(parms);
assertTrue(expansion.size() == 3);
assertTrue(((Token) expansion.get(0)).type == IToken.tIDENTIFIER);
- assertTrue(((Token) expansion.get(0)).image.equals("x"));
+ assertTrue(((Token) expansion.get(0)).getImage().equals("x"));
assertTrue(((Token) expansion.get(1)).type == IToken.tPLUS);
assertTrue(((Token) expansion.get(2)).type == IToken.tINTEGER);
- assertTrue(((Token) expansion.get(2)).image.equals("1"));
+ assertTrue(((Token) expansion.get(2)).getImage().equals("1"));
validateIdentifier("y");
validateToken(IToken.tASSIGN);

Back to the top