@@ -74,7 +74,7 @@ function emit_pointer_info!(ctx::TypeEmitter, @nospecialize(dt::DataType); inden
74
74
indented_println (" \" id\" : " , ctx. type_ids[dt], " ," )
75
75
indented_println (" \" kind\" : \" pointer\" ," )
76
76
indented_println (" \" name\" : " , type_name_json (dt), " ," )
77
- indented_println (" \" pointee \" : " , pointee_type_id)
77
+ indented_println (" \" pointee_type_id \" : " , pointee_type_id)
78
78
print (ctx. io, " " ^ indent, " }" )
79
79
end
80
80
end
@@ -85,7 +85,7 @@ function emit_field_info!(ctx::TypeEmitter, @nospecialize(dt::DataType), field::
85
85
print (ctx. io, " " ^ indent)
86
86
print (ctx. io, " {" )
87
87
print (ctx. io, " \" name\" : " , field_name_json (dt, field), " ," )
88
- print (ctx. io, " \" type \" : " , type_id, " ," )
88
+ print (ctx. io, " \" type_id \" : " , type_id, " ," )
89
89
print (ctx. io, " \" offset\" : " , desc. offset)
90
90
print (ctx. io, " }" )
91
91
end
@@ -161,11 +161,11 @@ function emit_method_info!(ctx::TypeEmitter, method::Core.Method; indent::Int =
161
161
print (ctx. io, " " ^ (indent + 4 ))
162
162
print (ctx. io, " {" )
163
163
print (ctx. io, " \" name\" : " , escape_string_json (argnames[i]), " ," )
164
- print (ctx. io, " \" type \" : " , ctx. type_ids[sig. parameters[i]])
164
+ print (ctx. io, " \" type_id \" : " , ctx. type_ids[sig. parameters[i]])
165
165
println (ctx. io, i == length (sig. parameters) ? " }" : " }," )
166
166
end
167
167
indented_println (" ]," )
168
- indented_println (" \" returns\" : { \" type \" : " , ctx. type_ids[rt], " }" )
168
+ indented_println (" \" returns\" : { \" type_id \" : " , ctx. type_ids[rt], " }" )
169
169
print (ctx. io, " " ^ indent, " }" )
170
170
end
171
171
end
0 commit comments