diff options
author | Doug Schaefer | 2003-04-03 02:59:58 +0000 |
---|---|---|
committer | Doug Schaefer | 2003-04-03 02:59:58 +0000 |
commit | 46d2f50c480e3dfb4d8f55d2c3863072f6a718b0 (patch) | |
tree | 4a5f27ec623cfe70d5d395ac93ddefa73c870627 /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java | |
parent | 696b775d094035f0e6e71df00d00bb7b4163c4af (diff) | |
download | org.eclipse.cdt-46d2f50c480e3dfb4d8f55d2c3863072f6a718b0.tar.gz org.eclipse.cdt-46d2f50c480e3dfb4d8f55d2c3863072f6a718b0.tar.xz org.eclipse.cdt-46d2f50c480e3dfb4d8f55d2c3863072f6a718b0.zip |
Patch for John Camelon:
CORE
Updated Scanner to convert ungodly control-characters to ' '.
Fixed logic error in model\SimpleDeclarationWrapper.
Added operator support to grammar (conversion and overloading).
Fixed parser/util/Name.toString() to support non-qualified yet multi-part names.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java index e8ecefcc464..ad4bb7dcfc8 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java @@ -14,10 +14,6 @@ import org.eclipse.cdt.internal.core.parser.util.Name; /** * @author jcamelon * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. */ public class SimpleDeclarationWrapper extends DeclSpecifier implements DeclSpecifier.Container, ICElementWrapper { @@ -29,7 +25,7 @@ public class SimpleDeclarationWrapper extends DeclSpecifier implements DeclSpeci public SimpleDeclarationWrapper( IParent item ) { - this.element = item; + this.parent = item; } public SimpleDeclarationWrapper() @@ -139,8 +135,8 @@ public class SimpleDeclarationWrapper extends DeclSpecifier implements DeclSpeci if( currentDeclarator.getName() != null ) { // hook up the offsets - declaration.setIdPos( currentDeclarator.getName().getStartOffset(), declaratorName.length()); - declaration.setPos( currentDeclarator.getName().getStartOffset(), declaratorName.length() ); + declaration.setIdPos( currentDeclarator.getName().getStartOffset(), currentDeclarator.getName().length() ); + declaration.setPos( currentDeclarator.getName().getStartOffset(), currentDeclarator.getName().length()); } else { |