Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethodParser.java @ 8314:2be3865d9ea0
Fixed minor bug for implicit parameters in sourcegen.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 16 Mar 2013 15:53:04 +0100 |
parents | 89006c76f737 |
children | 8a1115c92271 |
comparison
equal
deleted
inserted
replaced
8313:88e3893dc0a8 | 8314:2be3865d9ea0 |
---|---|
208 TypeMirror implicitParameter = implicitParametersIterator.hasNext() ? implicitParametersIterator.next() : null; | 208 TypeMirror implicitParameter = implicitParametersIterator.hasNext() ? implicitParametersIterator.next() : null; |
209 ParameterSpec specification = specificationIterator.hasNext() ? specificationIterator.next() : null; | 209 ParameterSpec specification = specificationIterator.hasNext() ? specificationIterator.next() : null; |
210 | 210 |
211 int specificationParameterIndex = 0; | 211 int specificationParameterIndex = 0; |
212 List<ActualParameter> resolvedParameters = new ArrayList<>(); | 212 List<ActualParameter> resolvedParameters = new ArrayList<>(); |
213 while (parameter != null || specification != null) { | 213 while (parameter != null || specification != null || implicitParameter != null) { |
214 if (parameter == null || specification == null) { | 214 if (parameter == null || specification == null) { |
215 if (specification != null && (specification.isOptional() || specification.getCardinality() == Cardinality.MULTIPLE)) { | 215 if (specification != null && (specification.isOptional() || specification.getCardinality() == Cardinality.MULTIPLE)) { |
216 specification = specificationIterator.hasNext() ? specificationIterator.next() : null; | 216 specification = specificationIterator.hasNext() ? specificationIterator.next() : null; |
217 specificationParameterIndex = 0; | 217 specificationParameterIndex = 0; |
218 continue; | 218 continue; |