langtools/src/share/classes/com/sun/tools/javac/code/SymbolMetadata.java
changeset 22702 1297fbaf34fa
parent 22163 3651128c74eb
child 23814 06ab27895804
equal deleted inserted replaced
22701:67811024e8b4 22702:1297fbaf34fa
   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