This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

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

(-)a/javascript2.model/src/org/netbeans/modules/javascript2/model/api/ModelUtils.java (-1 / +5 lines)
Lines 1229-1235 Link Here
1229
                                if ((prop.getName().equals(tokens[i])) && (prop.isDeclared())) {
1229
                                if ((prop.getName().equals(tokens[i])) && (prop.isDeclared())) {
1230
                                    if (prop.getAssignmentCount() > 0) {
1230
                                    if (prop.getAssignmentCount() > 0) {
1231
                                        for (TypeUsage type1 : prop.getAssignments()) {
1231
                                        for (TypeUsage type1 : prop.getAssignments()) {
1232
                                            return resolveTypes(object, String.join(".", Arrays.copyOfRange(tokens, i, tokens.length)), offset);
1232
                                            String curr = String.join(".", Arrays.copyOfRange(tokens, i, tokens.length));
1233
                                            if (curr.equals(fqn) && object.equals(parent)) {
1234
                                                break;
1235
                                            } 
1236
                                            return resolveTypes(object, curr, offset);
1233
                                        }
1237
                                        }
1234
                                    } else {
1238
                                    } else {
1235
                                        object = prop;
1239
                                        object = prop;

Return to bug 271676