equal
deleted
inserted
replaced
423 |
423 |
424 private final Annotate.AnnotateRepeatedContext<T> ctx; |
424 private final Annotate.AnnotateRepeatedContext<T> ctx; |
425 private final List<T> placeholderFor; |
425 private final List<T> placeholderFor; |
426 private final Symbol on; |
426 private final Symbol on; |
427 |
427 |
428 public Placeholder(Annotate.AnnotateRepeatedContext<T> ctx, List<T> placeholderFor, Symbol on) { |
428 public Placeholder(Annotate.AnnotateRepeatedContext<T> ctx, |
|
429 List<T> placeholderFor, Symbol on) { |
429 super(on.type, List.<Pair<Symbol.MethodSymbol, Attribute>>nil(), |
430 super(on.type, List.<Pair<Symbol.MethodSymbol, Attribute>>nil(), |
430 ctx.isTypeCompound ? |
431 ctx.isTypeCompound ? |
431 ((Attribute.TypeCompound)placeholderFor.head).position : |
432 ((Attribute.TypeCompound)placeholderFor.head).position : |
432 new TypeAnnotationPosition()); |
433 // TODO: Eventually, we will need to get rid of this |
|
434 // use of unknown, either by using null, or by |
|
435 // throwing an assertion failure here. |
|
436 TypeAnnotationPosition.unknown); |
433 this.ctx = ctx; |
437 this.ctx = ctx; |
434 this.placeholderFor = placeholderFor; |
438 this.placeholderFor = placeholderFor; |
435 this.on = on; |
439 this.on = on; |
436 } |
440 } |
437 |
441 |