From e1738e98868d8d6608f82e27ea17978e8c02847e Mon Sep 17 00:00:00 2001 From: axelcl Date: Mon, 19 Dec 2005 23:15:50 +0000 Subject: [PATCH] Fix #1368081: First suggestion in #1368081 seems to be working better --- .../phpdt/internal/compiler/parser/Parser.java | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java index 7314c8d..c1e2cf7 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java @@ -3124,15 +3124,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI } getNextToken(); } else if (token == TokenNameLBRACKET) { - if (ref != null && ref instanceof FieldReference) { - FieldReference fref = (FieldReference) ref; - if (!containsVariableSet(fref.token)) { - problemReporter.uninitializedLocalVariable(new String(fref.token), fref.sourceStart(), fref.sourceEnd(), - referenceContext, compilationUnit.compilationResult); - addVariableSet(fref.token); - } - } - ref = null; + // To remove "ref = null;" here, is probably better than the patch commented in #1368081 - axelcl getNextToken(); if (token != TokenNameRBRACKET) { expr(); -- 1.7.1