160 // method parameter |
161 // method parameter |
161 case METHOD_FORMAL_PARAMETER: |
162 case METHOD_FORMAL_PARAMETER: |
162 print(", param_index="); |
163 print(", param_index="); |
163 print(pos.parameter_index); |
164 print(pos.parameter_index); |
164 break; |
165 break; |
|
166 // type cast |
|
167 case CAST: |
165 // method/constructor/reference type argument |
168 // method/constructor/reference type argument |
166 case CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: |
169 case CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: |
167 case METHOD_INVOCATION_TYPE_ARGUMENT: |
170 case METHOD_INVOCATION_TYPE_ARGUMENT: |
|
171 case CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: |
168 case METHOD_REFERENCE_TYPE_ARGUMENT: |
172 case METHOD_REFERENCE_TYPE_ARGUMENT: |
169 if (showOffsets) { |
173 if (showOffsets) { |
170 print(", offset="); |
174 print(", offset="); |
171 print(pos.offset); |
175 print(pos.offset); |
172 } |
176 } |
174 print(pos.type_index); |
178 print(pos.type_index); |
175 break; |
179 break; |
176 // We don't need to worry about these |
180 // We don't need to worry about these |
177 case METHOD_RETURN: |
181 case METHOD_RETURN: |
178 case FIELD: |
182 case FIELD: |
179 break; |
|
180 // lambda formal parameter |
|
181 case LAMBDA_FORMAL_PARAMETER: |
|
182 print(", param_index="); |
|
183 print(pos.parameter_index); |
|
184 break; |
183 break; |
185 case UNKNOWN: |
184 case UNKNOWN: |
186 throw new AssertionError("AnnotationWriter: UNKNOWN target type should never occur!"); |
185 throw new AssertionError("AnnotationWriter: UNKNOWN target type should never occur!"); |
187 default: |
186 default: |
188 throw new AssertionError("AnnotationWriter: Unknown target type for position: " + pos); |
187 throw new AssertionError("AnnotationWriter: Unknown target type for position: " + pos); |