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

(-)Parser.java (-25 / +2 lines)
Lines 2703-2721 Link Here
2703
		declaration.type = type;
2703
		declaration.type = type;
2704
	} else {
2704
	} else {
2705
		int dimension = typeDim + extendedDimension;
2705
		int dimension = typeDim + extendedDimension;
2706
		//on the this.identifierLengthStack there is the information about the type....
2706
		declaration.type = this.copyDims(type, dimension);
2707
		int baseType;
2708
		if ((baseType = this.identifierLengthStack[this.identifierLengthPtr + 1]) < 0) {
2709
			//it was a baseType
2710
			int typeSourceStart = type.sourceStart;
2711
			int typeSourceEnd = type.sourceEnd;
2712
			type = TypeReference.baseTypeReference(-baseType, dimension);
2713
			type.sourceStart = typeSourceStart;
2714
			type.sourceEnd = typeSourceEnd;
2715
			declaration.type = type;
2716
		} else {
2717
			declaration.type = this.copyDims(type, dimension);
2718
		}
2719
	}
2707
	}
2720
	this.variablesCounter[this.nestedType]++;
2708
	this.variablesCounter[this.nestedType]++;
2721
	pushOnAstStack(declaration);
2709
	pushOnAstStack(declaration);
Lines 3792-3809 Link Here
3792
		TypeReference returnType = md.returnType;
3780
		TypeReference returnType = md.returnType;
3793
		md.sourceEnd = this.endPosition;
3781
		md.sourceEnd = this.endPosition;
3794
		int dims = returnType.dimensions() + extendedDims;
3782
		int dims = returnType.dimensions() + extendedDims;
3795
		int baseType;
3783
		md.returnType = this.copyDims(md.returnType, dims);
3796
		if ((baseType = this.identifierLengthStack[this.identifierLengthPtr + 1]) < 0) {
3797
			//it was a baseType
3798
			int sourceStart = returnType.sourceStart;
3799
			int sourceEnd =  returnType.sourceEnd;
3800
			returnType = TypeReference.baseTypeReference(-baseType, dims);
3801
			returnType.sourceStart = sourceStart;
3802
			returnType.sourceEnd = sourceEnd;
3803
			md.returnType = returnType;
3804
		} else {
3805
			md.returnType = this.copyDims(md.returnType, dims);
3806
		}
3807
		if (this.currentToken == TokenNameLBRACE){ 
3784
		if (this.currentToken == TokenNameLBRACE){ 
3808
			md.bodyStart = this.endPosition + 1;
3785
			md.bodyStart = this.endPosition + 1;
3809
		}
3786
		}

Return to bug 85125