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

(-)parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPSpecialization.java (-5 / +12 lines)
Lines 55-65 Link Here
55
		ObjectMap argMap = ((ICPPSpecialization)spec).getArgumentMap();
55
		ObjectMap argMap = ((ICPPSpecialization)spec).getArgumentMap();
56
		if (argMap != null) {
56
		if (argMap != null) {
57
			for (int i = 0; i < argMap.size(); i++) {
57
			for (int i = 0; i < argMap.size(); i++) {
58
				PDOMNode paramNode = getLinkageImpl().addType(this, (IType) argMap.keyAt(i));
58
				Object param = argMap.keyAt(i);
59
				PDOMNode argNode = getLinkageImpl().addType(this, (IType) argMap.getAt(i));
59
				Object arg = argMap.getAt(i);
60
				if (paramNode != null && argNode != null) {
60
				/* TODO: allow template non-type parameters once they have been
61
					paramList.addMember(paramNode);
61
				 * implemented in the PDOM
62
					argList.addMember(argNode);
62
				 */
63
				if (param instanceof IType && arg instanceof IType) {
64
					PDOMNode paramNode = getLinkageImpl().addType(this, (IType) param);
65
					PDOMNode argNode = getLinkageImpl().addType(this, (IType) arg);
66
					if (paramNode != null && argNode != null) {
67
						paramList.addMember(paramNode);
68
						argList.addMember(argNode);
69
					}
63
				}
70
				}
64
			}
71
			}
65
		}
72
		}

Return to bug 178307