From 89395c5d389fbf48c20592bb2256494c1b7e9b99 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Wed, 23 Jul 2003 13:59:56 +0000 Subject: [PATCH] Fix Offsets on Variables. --- .../cdt/internal/core/parser/ast/quick/ASTVariable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java index 5f2157fa1ec..f549ad6d993 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java @@ -53,7 +53,8 @@ public class ASTVariable extends ASTDeclaration implements IASTVariable this.isStatic = isStatic; this.name = name; qualifiedName = new ASTQualifiedNamedElement( scope, name ); - + setStartingOffset(startingOffset); + setNameOffset(nameOffset); } /* (non-Javadoc) * @see org.eclipse.cdt.core.parser.ast.IASTVariable#isAuto()