Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 27183 Details for
Bug 109646
[DOM] Parsing using K_STATEMENTS doesn't return the right tree for multiple local declarations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_109646.txt (text/plain), 1.02 KB, created by
Olivier Thomann
on 2005-09-15 14:35:45 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-09-15 14:35:45 EDT
Size:
1.02 KB
patch
obsolete
>Index: dom/org/eclipse/jdt/core/dom/ASTParser.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java,v >retrieving revision 1.45 >diff -u -r1.45 ASTParser.java >--- dom/org/eclipse/jdt/core/dom/ASTParser.java 2 Sep 2005 10:14:28 -0000 1.45 >+++ dom/org/eclipse/jdt/core/dom/ASTParser.java 15 Sep 2005 18:34:15 -0000 >@@ -927,7 +927,11 @@ > if (statements != null) { > int statementsLength = statements.length; > for (int i = 0; i < statementsLength; i++) { >- block.statements().add(converter.convert(statements[i])); >+ if (statements[i] instanceof org.eclipse.jdt.internal.compiler.ast.LocalDeclaration) { >+ converter.checkAndAddMultipleLocalDeclaration(statements, i, block.statements()); >+ } else { >+ block.statements().add(converter.convert(statements[i])); >+ } > } > } > rootNodeToCompilationUnit(ast, compilationUnit, block, recordedParsingInformation);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 109646
: 27183