equal
deleted
inserted
replaced
178 args.head = translate(args.head, parameters.head); |
178 args.head = translate(args.head, parameters.head); |
179 args = args.tail; |
179 args = args.tail; |
180 parameters = parameters.tail; |
180 parameters = parameters.tail; |
181 } |
181 } |
182 Type parameter = parameters.head; |
182 Type parameter = parameters.head; |
183 assert varargsElement != null || args.length() == 1; |
183 Assert.check(varargsElement != null || args.length() == 1); |
184 if (varargsElement != null) { |
184 if (varargsElement != null) { |
185 while (args.nonEmpty()) { |
185 while (args.nonEmpty()) { |
186 args.head = translate(args.head, varargsElement); |
186 args.head = translate(args.head, varargsElement); |
187 args = args.tail; |
187 args = args.tail; |
188 } |
188 } |
592 meth.owner == syms.enumSym) |
592 meth.owner == syms.enumSym) |
593 argtypes = argtypes.tail.tail; |
593 argtypes = argtypes.tail.tail; |
594 if (tree.varargsElement != null) |
594 if (tree.varargsElement != null) |
595 tree.varargsElement = types.erasure(tree.varargsElement); |
595 tree.varargsElement = types.erasure(tree.varargsElement); |
596 else |
596 else |
597 assert tree.args.length() == argtypes.length(); |
597 Assert.check(tree.args.length() == argtypes.length()); |
598 tree.args = translateArgs(tree.args, argtypes, tree.varargsElement); |
598 tree.args = translateArgs(tree.args, argtypes, tree.varargsElement); |
599 |
599 |
600 // Insert casts of method invocation results as needed. |
600 // Insert casts of method invocation results as needed. |
601 result = retype(tree, mt.getReturnType(), pt); |
601 result = retype(tree, mt.getReturnType(), pt); |
602 } |
602 } |