equal
deleted
inserted
replaced
116 theUnfinishedDefaultValue = new Attribute.Error(syms.errType); |
116 theUnfinishedDefaultValue = new Attribute.Error(syms.errType); |
117 |
117 |
118 Source source = Source.instance(context); |
118 Source source = Source.instance(context); |
119 allowRepeatedAnnos = source.allowRepeatedAnnotations(); |
119 allowRepeatedAnnos = source.allowRepeatedAnnotations(); |
120 sourceName = source.name; |
120 sourceName = source.name; |
|
121 |
|
122 blockCount = 1; |
121 } |
123 } |
122 |
124 |
123 /** Semaphore to delay annotation processing */ |
125 /** Semaphore to delay annotation processing */ |
124 private int blockCount = 0; |
126 private int blockCount = 0; |
125 |
127 |
141 blockCount--; |
143 blockCount--; |
142 } |
144 } |
143 |
145 |
144 /** are we blocking annotation processing? */ |
146 /** are we blocking annotation processing? */ |
145 public boolean annotationsBlocked() {return blockCount > 0; } |
147 public boolean annotationsBlocked() {return blockCount > 0; } |
|
148 |
|
149 public void enterDone() { |
|
150 unblockAnnotations(); |
|
151 } |
146 |
152 |
147 public List<TypeCompound> fromAnnotations(List<JCAnnotation> annotations) { |
153 public List<TypeCompound> fromAnnotations(List<JCAnnotation> annotations) { |
148 if (annotations.isEmpty()) { |
154 if (annotations.isEmpty()) { |
149 return List.nil(); |
155 return List.nil(); |
150 } |
156 } |
1314 public Compound getRepeatable() { |
1320 public Compound getRepeatable() { |
1315 return null; |
1321 return null; |
1316 } |
1322 } |
1317 }; |
1323 }; |
1318 } |
1324 } |
|
1325 |
|
1326 public void newRound() { |
|
1327 blockCount = 1; |
|
1328 } |
1319 } |
1329 } |