View | Details | Raw Unified | Return to bug 109646
Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/ASTParser.java (-1 / +5 lines)
Lines 927-933 Link Here
927
					if (statements != null) {
927
					if (statements != null) {
928
						int statementsLength = statements.length;
928
						int statementsLength = statements.length;
929
						for (int i = 0; i < statementsLength; i++) {
929
						for (int i = 0; i < statementsLength; i++) {
930
							block.statements().add(converter.convert(statements[i]));
930
							if (statements[i] instanceof org.eclipse.jdt.internal.compiler.ast.LocalDeclaration) {
931
								converter.checkAndAddMultipleLocalDeclaration(statements, i, block.statements());
932
							} else {
933
								block.statements().add(converter.convert(statements[i]));
934
							}
931
						}
935
						}
932
					}
936
					}
933
					rootNodeToCompilationUnit(ast, compilationUnit, block, recordedParsingInformation);
937
					rootNodeToCompilationUnit(ast, compilationUnit, block, recordedParsingInformation);

Return to bug 109646