diff --git a/stage0/src/stdlib_flags.h b/stage0/src/stdlib_flags.h index 7c09f29c5a..79a0e58edd 100644 --- a/stage0/src/stdlib_flags.h +++ b/stage0/src/stdlib_flags.h @@ -1,7 +1,5 @@ #include "util/options.h" -// Please update me! - namespace lean { options get_default_options() { options opts; diff --git a/stage0/stdlib/Lean/Data/JsonRpc.c b/stage0/stdlib/Lean/Data/JsonRpc.c index 63237336f3..d80d7e1deb 100644 --- a/stage0/stdlib/Lean/Data/JsonRpc.c +++ b/stage0/stdlib/Lean/Data/JsonRpc.c @@ -23,7 +23,6 @@ lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqRequest(lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__3; lean_object* l_Lean_JsonNumber_toString(lean_object*); -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352_(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonNotification___redArg___lam__0___closed__2; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeStringRequestID; LEAN_EXPORT lean_object* l_Lean_JsonRpc_ErrorCode_noConfusion___redArg___lam__0(lean_object*); @@ -33,10 +32,11 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqRequest___redArg____x40_Lean_Data_Jso LEAN_EXPORT lean_object* l_IO_FS_Stream_writeResponseError(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__21; +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1473_(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instInhabitedResponse(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189_(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readMessage___closed__1; LEAN_EXPORT uint8_t l_Lean_JsonRpc_ordRequestID____x40_Lean_Data_JsonRpc___hyg_135_(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251_(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instDecidableLtRequestID___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___redArg___closed__1; @@ -48,14 +48,12 @@ static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__36; LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqErrorCode____x40_Lean_Data_JsonRpc___hyg_340_(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instFromJsonErrorCode; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__15; -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532_(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_45____boxed(lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__12; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readMessage_spec__1___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readResponseAs___redArg___closed__2; LEAN_EXPORT uint8_t l_Lean_JsonRpc_instInhabitedErrorCode; static lean_object* l_Lean_JsonRpc_instFromJsonMessage___closed__2; -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1352____boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_ErrorCode_noConfusion___redArg(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_JsonRpc_ErrorCode_noConfusion___redArg___lam__0___boxed(lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__16; @@ -64,6 +62,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponse___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponseError___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instInhabitedRequest(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutNotificationMessageOfToJson___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1720____boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__23; static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__23; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__27; @@ -84,6 +83,7 @@ lean_object* l_Lean_Json_getStr_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutNotificationMessageOfToJson(lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instInhabitedMessage___closed__0; static lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__11; +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720____boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__4; static lean_object* l_IO_FS_Stream_readResponseAs___redArg___closed__1; LEAN_EXPORT lean_object* l_IO_FS_Stream_writeNotification___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -95,12 +95,13 @@ static lean_object* l_IO_FS_Stream_readResponseAs___redArg___closed__3; lean_object* l_Lean_JsonNumber_fromInt(lean_object*); lean_object* l_IO_FS_Stream_readJson(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__10; -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1532____boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_Request_ofMessage_x3f(lean_object*); lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__0; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__30; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__6; static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__19; +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1251_(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__34; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqRequestID; static lean_object* l_Lean_JsonRpc_instBEqRequestID___closed__0; @@ -120,10 +121,10 @@ static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__18; static lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__7; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutRequestMessageOfToJson___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_RequestID_lt___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1720_(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__1; LEAN_EXPORT lean_object* l_IO_FS_Stream_writeRequest___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1532_(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__6; static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__8; LEAN_EXPORT lean_object* l_Lean_JsonRpc_ErrorCode_toCtorIdx(uint8_t); @@ -134,15 +135,15 @@ static lean_object* l_IO_FS_Stream_readMessage___closed__0; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutResponseErrorMessageOfToJson(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instFromJsonNotification___redArg(lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__25; -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532____boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473____boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToStringRequestID___lam__0___closed__1; static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__21; +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720_(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__19; static lean_object* l_IO_FS_Stream_readRequestAs___redArg___closed__6; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutResponseErrorMessageOfToJson___redArg___lam__0(lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instBEqErrorCode___closed__0; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readMessage_spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1189____boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonNotification___redArg___lam__0___closed__1; static lean_object* l_IO_FS_Stream_readNotificationAs___redArg___closed__0; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__26; @@ -151,7 +152,6 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqRequest____x40_Lean_Data_JsonRpc___hy LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutResponseMessageOfToJson(lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__10; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instOrdRequestID; -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352____boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instToStringRequestID___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqErrorCode____x40_Lean_Data_JsonRpc___hyg_340____boxed(lean_object*, lean_object*); lean_object* l_List_appendTR___redArg(lean_object*, lean_object*); @@ -171,11 +171,11 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instFromJsonRequestID___lam__0(lean_obje static lean_object* l_Lean_JsonRpc_instOrdRequestID___closed__0; LEAN_EXPORT lean_object* l_IO_FS_Stream_writeResponse___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutResponseMessageOfToJson___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189____boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonNotification___redArg___lam__0___closed__0; static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__15; lean_object* l_Lean_Json_Structured_toJson(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_opt___at___IO_FS_Stream_writeMessage_spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_ResponseError_ofMessage_x3f(lean_object*); lean_object* l_Option_toJson___redArg(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___redArg___closed__2; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__0; @@ -210,8 +210,11 @@ static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__0; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__35; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutResponseErrorUnitMessage___lam__0(lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__9; +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251____boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__20; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponse(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1251____boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1473____boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_ErrorCode_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__4; static lean_object* l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__8; @@ -226,8 +229,8 @@ LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___redArg(lean_object* LEAN_EXPORT lean_object* l_IO_FS_Stream_readRequestAs___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__37; static lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__1; +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473_(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeOutResponseMessageOfToJson___redArg___lam__0(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1189_(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__14; lean_object* l_Lean_Json_Structured_fromJson_x3f(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___redArg___closed__0; @@ -265,18 +268,20 @@ lean_object* lean_int_neg(lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_JsonRpc_ordRequestID____x40_Lean_Data_JsonRpc___hyg_135____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_writeNotification(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_Notification_ofMessage_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instInhabitedNotification___redArg(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_readMessage___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_decEqJsonNumber____x40_Lean_Data_Json_Basic___hyg_28_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_JsonRpc_Response_ofMessage_x3f(lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__32; static lean_object* l_Lean_JsonRpc_instInhabitedResponseError___closed__0; static lean_object* l_Lean_JsonRpc_instFromJsonMessage___lam__0___closed__0; LEAN_EXPORT lean_object* l_IO_FS_Stream_writeMessage(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1352_(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instToStringRequestID; static lean_object* l_Lean_JsonRpc_instFromJsonErrorCode___lam__0___closed__7; LEAN_EXPORT lean_object* l_Lean_JsonRpc_ErrorCode_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponseError(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(lean_object*); static lean_object* l_Lean_JsonRpc_instFromJsonRequestID___lam__0___closed__0; static lean_object* l_Lean_JsonRpc_instFromJsonMessage___closed__0; LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeJsonNumberRequestID; @@ -2041,6 +2046,72 @@ x_3 = l_Lean_JsonRpc_instCoeOutRequestMessageOfToJson___redArg(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_Json_Structured_toJson(x_3); +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Lean_JsonRpc_Request_ofMessage_x3f(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 2); +x_4 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_3); +lean_ctor_set(x_1, 2, x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_1); +x_9 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_8); +x_10 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_10, 0, x_6); +lean_ctor_set(x_10, 1, x_7); +lean_ctor_set(x_10, 2, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +} +else +{ +lean_object* x_12; +lean_dec_ref(x_1); +x_12 = lean_box(0); +return x_12; +} +} +} LEAN_EXPORT lean_object* l_Lean_JsonRpc_instInhabitedNotification___redArg(lean_object* x_1) { _start: { @@ -2060,7 +2131,7 @@ x_3 = l_Lean_JsonRpc_instInhabitedNotification___redArg(x_2); return x_3; } } -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1189_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1251_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -2093,28 +2164,28 @@ return x_10; } } } -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; -x_5 = l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1189_(x_2, x_3, x_4); +x_5 = l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1251_(x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1189____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1251____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; lean_object* x_5; -x_4 = l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1189_(x_1, x_2, x_3); +x_4 = l_Lean_JsonRpc_beqNotification___redArg____x40_Lean_Data_JsonRpc___hyg_1251_(x_1, x_2, x_3); x_5 = lean_box(x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189_(x_1, x_2, x_3, x_4); +x_5 = l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251_(x_1, x_2, x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -2123,7 +2194,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqNotification___redArg(lean_object _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189____boxed), 4, 2); +x_2 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251____boxed), 4, 2); lean_closure_set(x_2, 0, lean_box(0)); lean_closure_set(x_2, 1, x_1); return x_2; @@ -2133,7 +2204,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqNotification(lean_object* x_1, le _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1189____boxed), 4, 2); +x_3 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqNotification____x40_Lean_Data_JsonRpc___hyg_1251____boxed), 4, 2); lean_closure_set(x_3, 0, lean_box(0)); lean_closure_set(x_3, 1, x_2); return x_3; @@ -2244,6 +2315,50 @@ x_3 = l_Lean_JsonRpc_instCoeOutNotificationMessageOfToJson___redArg(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Lean_JsonRpc_Notification_ofMessage_x3f(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 1); +x_4 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_3); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_1); +x_8 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_6); +lean_ctor_set(x_9, 1, x_8); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} +else +{ +lean_object* x_11; +lean_dec_ref(x_1); +x_11 = lean_box(0); +return x_11; +} +} +} LEAN_EXPORT lean_object* l_Lean_JsonRpc_instInhabitedResponse___redArg(lean_object* x_1) { _start: { @@ -2263,7 +2378,7 @@ x_3 = l_Lean_JsonRpc_instInhabitedResponse___redArg(x_2); return x_3; } } -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1352_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1473_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -2296,28 +2411,28 @@ return x_10; } } } -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; -x_5 = l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1352_(x_2, x_3, x_4); +x_5 = l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1473_(x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1352____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1473____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; lean_object* x_5; -x_4 = l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1352_(x_1, x_2, x_3); +x_4 = l_Lean_JsonRpc_beqResponse___redArg____x40_Lean_Data_JsonRpc___hyg_1473_(x_1, x_2, x_3); x_5 = lean_box(x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352_(x_1, x_2, x_3, x_4); +x_5 = l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473_(x_1, x_2, x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -2326,7 +2441,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponse___redArg(lean_object* x_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352____boxed), 4, 2); +x_2 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473____boxed), 4, 2); lean_closure_set(x_2, 0, lean_box(0)); lean_closure_set(x_2, 1, x_1); return x_2; @@ -2336,7 +2451,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponse(lean_object* x_1, lean_o _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1352____boxed), 4, 2); +x_3 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponse____x40_Lean_Data_JsonRpc___hyg_1473____boxed), 4, 2); lean_closure_set(x_3, 0, lean_box(0)); lean_closure_set(x_3, 1, x_2); return x_3; @@ -2389,6 +2504,46 @@ x_3 = l_Lean_JsonRpc_instCoeOutResponseMessageOfToJson___redArg(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Lean_JsonRpc_Response_ofMessage_x3f(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; +lean_ctor_set_tag(x_1, 0); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_1); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_inc(x_4); +lean_dec(x_1); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +else +{ +lean_object* x_8; +lean_dec_ref(x_1); +x_8 = lean_box(0); +return x_8; +} +} +} static lean_object* _init_l_Lean_JsonRpc_instInhabitedResponseError___closed__0() { _start: { @@ -2413,7 +2568,7 @@ x_2 = l_Lean_JsonRpc_instInhabitedResponseError___closed__0; return x_2; } } -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1532_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1720_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -2481,28 +2636,28 @@ return x_15; } } } -LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT uint8_t l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; -x_5 = l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1532_(x_2, x_3, x_4); +x_5 = l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1720_(x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1532____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1720____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; lean_object* x_5; -x_4 = l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1532_(x_1, x_2, x_3); +x_4 = l_Lean_JsonRpc_beqResponseError___redArg____x40_Lean_Data_JsonRpc___hyg_1720_(x_1, x_2, x_3); x_5 = lean_box(x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532_(x_1, x_2, x_3, x_4); +x_5 = l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720_(x_1, x_2, x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -2511,7 +2666,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponseError___redArg(lean_objec _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532____boxed), 4, 2); +x_2 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720____boxed), 4, 2); lean_closure_set(x_2, 0, lean_box(0)); lean_closure_set(x_2, 1, x_1); return x_2; @@ -2521,7 +2676,7 @@ LEAN_EXPORT lean_object* l_Lean_JsonRpc_instBEqResponseError(lean_object* x_1, l _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1532____boxed), 4, 2); +x_3 = lean_alloc_closure((void*)(l_Lean_JsonRpc_beqResponseError____x40_Lean_Data_JsonRpc___hyg_1720____boxed), 4, 2); lean_closure_set(x_3, 0, lean_box(0)); lean_closure_set(x_3, 1, x_2); return x_3; @@ -2693,6 +2848,51 @@ x_1 = lean_alloc_closure((void*)(l_Lean_JsonRpc_instCoeOutResponseErrorUnitMessa return x_1; } } +LEAN_EXPORT lean_object* l_Lean_JsonRpc_ResponseError_ofMessage_x3f(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; +lean_ctor_set_tag(x_1, 0); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_1); +return x_3; +} +else +{ +lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +lean_dec(x_1); +x_8 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_6); +lean_ctor_set(x_8, 2, x_7); +lean_ctor_set_uint8(x_8, sizeof(void*)*3, x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_8); +return x_9; +} +} +else +{ +lean_object* x_10; +lean_dec_ref(x_1); +x_10 = lean_box(0); +return x_10; +} +} +} LEAN_EXPORT lean_object* l_Lean_JsonRpc_instCoeStringRequestID___lam__0(lean_object* x_1) { _start: { @@ -3413,7 +3613,7 @@ block_89: { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_71); +lean_ctor_set(x_75, 0, x_72); lean_ctor_set(x_75, 1, x_74); x_76 = l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__8; x_77 = lean_alloc_ctor(3, 1, 0); @@ -3433,7 +3633,7 @@ x_83 = l_Lean_Json_opt___redArg(x_2, x_82, x_70); x_84 = l_List_appendTR___redArg(x_81, x_83); x_85 = l_Lean_Json_mkObj(x_84); x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_72); +lean_ctor_set(x_86, 0, x_71); lean_ctor_set(x_86, 1, x_85); x_87 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_87, 0, x_86); @@ -3457,8 +3657,8 @@ case 0: { lean_object* x_95; x_95 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__1; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_95; goto block_89; @@ -3467,8 +3667,8 @@ case 1: { lean_object* x_96; x_96 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__3; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_96; goto block_89; @@ -3477,8 +3677,8 @@ case 2: { lean_object* x_97; x_97 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__5; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_97; goto block_89; @@ -3487,8 +3687,8 @@ case 3: { lean_object* x_98; x_98 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__7; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_98; goto block_89; @@ -3497,8 +3697,8 @@ case 4: { lean_object* x_99; x_99 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__9; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_99; goto block_89; @@ -3507,8 +3707,8 @@ case 5: { lean_object* x_100; x_100 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__11; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_100; goto block_89; @@ -3517,8 +3717,8 @@ case 6: { lean_object* x_101; x_101 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__13; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_101; goto block_89; @@ -3527,8 +3727,8 @@ case 7: { lean_object* x_102; x_102 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__15; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_102; goto block_89; @@ -3537,8 +3737,8 @@ case 8: { lean_object* x_103; x_103 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__17; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_103; goto block_89; @@ -3547,8 +3747,8 @@ case 9: { lean_object* x_104; x_104 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__19; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_104; goto block_89; @@ -3557,8 +3757,8 @@ case 10: { lean_object* x_105; x_105 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__21; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_105; goto block_89; @@ -3567,8 +3767,8 @@ default: { lean_object* x_106; x_106 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__23; -x_71 = x_94; -x_72 = x_93; +x_71 = x_93; +x_72 = x_94; x_73 = x_92; x_74 = x_106; goto block_89; @@ -6099,7 +6299,7 @@ block_197: { lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; x_183 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_183, 0, x_179); +lean_ctor_set(x_183, 0, x_180); lean_ctor_set(x_183, 1, x_182); x_184 = l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__8; x_185 = lean_alloc_ctor(3, 1, 0); @@ -6119,13 +6319,13 @@ x_191 = l_Lean_Json_opt___redArg(x_178, x_190, x_177); x_192 = l_List_appendTR___redArg(x_189, x_191); x_193 = l_Lean_Json_mkObj(x_192); x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_181); +lean_ctor_set(x_194, 0, x_179); lean_ctor_set(x_194, 1, x_193); x_195 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_195, 0, x_194); lean_ctor_set(x_195, 1, x_187); x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_180); +lean_ctor_set(x_196, 0, x_181); lean_ctor_set(x_196, 1, x_195); x_117 = x_196; goto block_126; @@ -6143,9 +6343,9 @@ case 0: { lean_object* x_203; x_203 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__1; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_203; goto block_197; } @@ -6153,9 +6353,9 @@ case 1: { lean_object* x_204; x_204 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__3; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_204; goto block_197; } @@ -6163,9 +6363,9 @@ case 2: { lean_object* x_205; x_205 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__5; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_205; goto block_197; } @@ -6173,9 +6373,9 @@ case 3: { lean_object* x_206; x_206 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__7; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_206; goto block_197; } @@ -6183,9 +6383,9 @@ case 4: { lean_object* x_207; x_207 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__9; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_207; goto block_197; } @@ -6193,9 +6393,9 @@ case 5: { lean_object* x_208; x_208 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__11; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_208; goto block_197; } @@ -6203,9 +6403,9 @@ case 6: { lean_object* x_209; x_209 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__13; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_209; goto block_197; } @@ -6213,9 +6413,9 @@ case 7: { lean_object* x_210; x_210 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__15; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_210; goto block_197; } @@ -6223,9 +6423,9 @@ case 8: { lean_object* x_211; x_211 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__17; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_211; goto block_197; } @@ -6233,9 +6433,9 @@ case 9: { lean_object* x_212; x_212 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__19; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_212; goto block_197; } @@ -6243,9 +6443,9 @@ case 10: { lean_object* x_213; x_213 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__21; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_213; goto block_197; } @@ -6253,9 +6453,9 @@ default: { lean_object* x_214; x_214 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__23; -x_179 = x_202; -x_180 = x_200; -x_181 = x_201; +x_179 = x_201; +x_180 = x_202; +x_181 = x_200; x_182 = x_214; goto block_197; } @@ -6944,13 +7144,13 @@ x_188 = l_Lean_Json_opt___redArg(x_175, x_187, x_174); x_189 = l_List_appendTR___redArg(x_186, x_188); x_190 = l_Lean_Json_mkObj(x_189); x_191 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_191, 0, x_178); +lean_ctor_set(x_191, 0, x_177); lean_ctor_set(x_191, 1, x_190); x_192 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_192, 0, x_191); lean_ctor_set(x_192, 1, x_184); x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_177); +lean_ctor_set(x_193, 0, x_178); lean_ctor_set(x_193, 1, x_192); x_114 = x_193; goto block_123; @@ -6969,8 +7169,8 @@ case 0: lean_object* x_200; x_200 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__1; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_200; goto block_194; } @@ -6979,8 +7179,8 @@ case 1: lean_object* x_201; x_201 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__3; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_201; goto block_194; } @@ -6989,8 +7189,8 @@ case 2: lean_object* x_202; x_202 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__5; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_202; goto block_194; } @@ -6999,8 +7199,8 @@ case 3: lean_object* x_203; x_203 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__7; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_203; goto block_194; } @@ -7009,8 +7209,8 @@ case 4: lean_object* x_204; x_204 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__9; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_204; goto block_194; } @@ -7019,8 +7219,8 @@ case 5: lean_object* x_205; x_205 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__11; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_205; goto block_194; } @@ -7029,8 +7229,8 @@ case 6: lean_object* x_206; x_206 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__13; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_206; goto block_194; } @@ -7039,8 +7239,8 @@ case 7: lean_object* x_207; x_207 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__15; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_207; goto block_194; } @@ -7049,8 +7249,8 @@ case 8: lean_object* x_208; x_208 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__17; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_208; goto block_194; } @@ -7059,8 +7259,8 @@ case 9: lean_object* x_209; x_209 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__19; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_209; goto block_194; } @@ -7069,8 +7269,8 @@ case 10: lean_object* x_210; x_210 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__21; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_210; goto block_194; } @@ -7079,8 +7279,8 @@ default: lean_object* x_211; x_211 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__23; x_176 = x_199; -x_177 = x_197; -x_178 = x_198; +x_177 = x_198; +x_178 = x_197; x_179 = x_211; goto block_194; } @@ -7758,7 +7958,7 @@ block_177: { lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; x_163 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 0, x_160); lean_ctor_set(x_163, 1, x_162); x_164 = l_Lean_JsonRpc_instToJsonMessage___lam__0___closed__8; x_165 = lean_alloc_ctor(3, 1, 0); @@ -7778,13 +7978,13 @@ x_171 = l_Lean_Json_opt___redArg(x_158, x_170, x_157); x_172 = l_List_appendTR___redArg(x_169, x_171); x_173 = l_Lean_Json_mkObj(x_172); x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_160); +lean_ctor_set(x_174, 0, x_159); lean_ctor_set(x_174, 1, x_173); x_175 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_175, 0, x_174); lean_ctor_set(x_175, 1, x_167); x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_159); +lean_ctor_set(x_176, 0, x_161); lean_ctor_set(x_176, 1, x_175); x_97 = x_176; goto block_106; @@ -7802,9 +8002,9 @@ case 0: { lean_object* x_183; x_183 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__1; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_183; goto block_177; } @@ -7812,9 +8012,9 @@ case 1: { lean_object* x_184; x_184 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__3; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_184; goto block_177; } @@ -7822,9 +8022,9 @@ case 2: { lean_object* x_185; x_185 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__5; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_185; goto block_177; } @@ -7832,9 +8032,9 @@ case 3: { lean_object* x_186; x_186 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__7; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_186; goto block_177; } @@ -7842,9 +8042,9 @@ case 4: { lean_object* x_187; x_187 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__9; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_187; goto block_177; } @@ -7852,9 +8052,9 @@ case 5: { lean_object* x_188; x_188 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__11; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_188; goto block_177; } @@ -7862,9 +8062,9 @@ case 6: { lean_object* x_189; x_189 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__13; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_189; goto block_177; } @@ -7872,9 +8072,9 @@ case 7: { lean_object* x_190; x_190 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__15; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_190; goto block_177; } @@ -7882,9 +8082,9 @@ case 8: { lean_object* x_191; x_191 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__17; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_191; goto block_177; } @@ -7892,9 +8092,9 @@ case 9: { lean_object* x_192; x_192 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__19; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_192; goto block_177; } @@ -7902,9 +8102,9 @@ case 10: { lean_object* x_193; x_193 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__21; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_193; goto block_177; } @@ -7912,9 +8112,9 @@ default: { lean_object* x_194; x_194 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__23; -x_159 = x_180; -x_160 = x_181; -x_161 = x_182; +x_159 = x_181; +x_160 = x_182; +x_161 = x_180; x_162 = x_194; goto block_177; } @@ -8393,13 +8593,13 @@ lean_dec(x_71); x_85 = l_List_appendTR___redArg(x_82, x_84); x_86 = l_Lean_Json_mkObj(x_85); x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_74); +lean_ctor_set(x_87, 0, x_72); lean_ctor_set(x_87, 1, x_86); x_88 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_88, 0, x_87); lean_ctor_set(x_88, 1, x_80); x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_72); +lean_ctor_set(x_89, 0, x_74); lean_ctor_set(x_89, 1, x_88); x_5 = x_89; goto block_9; @@ -8417,9 +8617,9 @@ case 0: { lean_object* x_96; x_96 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__1; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_96; goto block_90; } @@ -8427,9 +8627,9 @@ case 1: { lean_object* x_97; x_97 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__3; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_97; goto block_90; } @@ -8437,9 +8637,9 @@ case 2: { lean_object* x_98; x_98 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__5; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_98; goto block_90; } @@ -8447,9 +8647,9 @@ case 3: { lean_object* x_99; x_99 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__7; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_99; goto block_90; } @@ -8457,9 +8657,9 @@ case 4: { lean_object* x_100; x_100 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__9; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_100; goto block_90; } @@ -8467,9 +8667,9 @@ case 5: { lean_object* x_101; x_101 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__11; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_101; goto block_90; } @@ -8477,9 +8677,9 @@ case 6: { lean_object* x_102; x_102 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__13; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_102; goto block_90; } @@ -8487,9 +8687,9 @@ case 7: { lean_object* x_103; x_103 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__15; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_103; goto block_90; } @@ -8497,9 +8697,9 @@ case 8: { lean_object* x_104; x_104 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__17; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_104; goto block_90; } @@ -8507,9 +8707,9 @@ case 9: { lean_object* x_105; x_105 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__19; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_105; goto block_90; } @@ -8517,9 +8717,9 @@ case 10: { lean_object* x_106; x_106 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__21; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_106; goto block_90; } @@ -8527,9 +8727,9 @@ default: { lean_object* x_107; x_107 = l_Lean_JsonRpc_instToJsonErrorCode___lam__0___closed__23; -x_72 = x_93; +x_72 = x_94; x_73 = x_95; -x_74 = x_94; +x_74 = x_93; x_75 = x_107; goto block_90; } diff --git a/stage0/stdlib/Lean/Data/Lsp/Internal.c b/stage0/stdlib/Lean/Data/Lsp/Internal.c index 9354296b96..7fd34a5a73 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Internal.c +++ b/stage0/stdlib/Lean/Data/Lsp/Internal.c @@ -22,6 +22,7 @@ static lean_object* l_Array_mapMUnsafe_map___at___Lean_Json_getObjValAs_x3f___at LEAN_EXPORT lean_object* l_Lean_Lsp_instOrdRefIdent; lean_object* l_Array_toJson___at___Lean_Lsp_toJsonResolveSupport____x40_Lean_Data_Lsp_Basic___hyg_6481__spec__0(lean_object*); lean_object* l_Lean_Json_getObj_x3f(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4111_; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__3____x40_Lean_Data_Lsp_Internal___hyg_3878_; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__6____x40_Lean_Data_Lsp_Internal___hyg_3878_; @@ -31,6 +32,7 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedRefIdent; lean_object* l_Lean_Json_compress(lean_object*); static lean_object* l_Lean_Lsp_instToJsonLeanQueryModuleResponse___closed__0; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3686_; +static lean_object* l_Lean_Lsp_instFromJsonLeanDeclIdent___closed__0; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Lsp_instToJsonLeanIleanInfoParams___closed__0; static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___closed__7____x40_Lean_Data_Lsp_Internal___hyg_3199_; @@ -39,9 +41,13 @@ static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__4____x4 lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_732__spec__0(lean_object*, lean_object*); lean_object* l_Lean_Name_fromJson_x3f(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Lsp_toJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2857__spec__3(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___lam__0___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3199_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__27____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Lsp_toJsonOpenNamespace____x40_Lean_Data_Lsp_Internal___hyg_3379__spec__0(lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__6____x40_Lean_Data_Lsp_Internal___hyg_3686_; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2751__spec__0_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Lsp_toJsonLeanQueryModuleParams____x40_Lean_Data_Lsp_Internal___hyg_3792__spec__0(lean_object*); @@ -51,9 +57,11 @@ static lean_object* l_Lean_Lsp_instFromJsonModuleRefs___lam__2___closed__0; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__4; lean_object* l_Lean_Json_getObjValAs_x3f___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instForInModuleRefsProdRefIdentRefInfo___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__32____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_RefInfo_instInhabitedLocation___closed__2; LEAN_EXPORT lean_object* l_Lean_Lsp_RefIdent_instToJsonRefIdentJsonRepr; uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__28____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4111_; lean_object* l_Except_instMonad___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_RefInfo_toJsonParentDecl____x40_Lean_Data_Lsp_Internal___hyg_1106_(lean_object*); @@ -66,9 +74,11 @@ lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__2____x40_Lean_Data_Lsp_Internal___hyg_647_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4111_; static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__2____x40_Lean_Data_Lsp_Internal___hyg_3502_; +LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanDeclIdent; static lean_object* l_Lean_Lsp_instToJsonModuleRefs___closed__0; static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___lam__0___closed__0____x40_Lean_Data_Lsp_Internal___hyg_647_; lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_453__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Lsp_toJsonLeanModuleQuery____x40_Lean_Data_Lsp_Internal___hyg_3608__spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__6____x40_Lean_Data_Lsp_Internal___hyg_3502_; static lean_object* l_Lean_Lsp_fromJsonLeanStaleDependencyParams___closed__8____x40_Lean_Data_Lsp_Internal___hyg_3047_; @@ -78,8 +88,10 @@ LEAN_EXPORT uint64_t l_Lean_Lsp_hashRefIdent____x40_Lean_Data_Lsp_Internal___hyg LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonImportInfo___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4111__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedImportInfo; +LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanLocationLink; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Lsp_toJsonLeanQueryModuleParams____x40_Lean_Data_Lsp_Internal___hyg_3792__spec__0_spec__0(size_t, size_t, lean_object*); static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__11; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__5____x40_Lean_Data_Lsp_Internal___hyg_2568_; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__4____x40_Lean_Data_Lsp_Internal___hyg_3878_; LEAN_EXPORT lean_object* l_List_mapTR_loop___at___List_mapTR_loop___at___Lean_Lsp_toJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2857__spec__7_spec__7(lean_object*, lean_object*, lean_object*); @@ -113,12 +125,14 @@ static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___lam__1___clos LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonOpenNamespace____x40_Lean_Data_Lsp_Internal___hyg_3379_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanQueryModuleParams; LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Lsp_toJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2674__spec__0(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_168__spec__1(lean_object*, lean_object*); uint64_t lean_string_hash(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonModuleRefs; LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Lsp_toJsonLeanModuleQuery____x40_Lean_Data_Lsp_Internal___hyg_3608__spec__0(lean_object*); static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___closed__5____x40_Lean_Data_Lsp_Internal___hyg_3199_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__10____x40_Lean_Data_Lsp_Internal___hyg_3686_; LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonOpenNamespace___lam__1____x40_Lean_Data_Lsp_Internal___hyg_3199_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__22____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__6; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4111_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Lsp_toJsonOpenNamespace____x40_Lean_Data_Lsp_Internal___hyg_3379__spec__0_spec__0(lean_object*, size_t, size_t, lean_object*); @@ -130,6 +144,7 @@ static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__16____x40_Lean_D uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2751__spec__0_spec__0_spec__0(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__17____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__9; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanStaleDependencyParams; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Lsp_toJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4178__spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -138,7 +153,9 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanIdentifier; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4111_; lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Except_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__21____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_instFromJsonRefInfo___lam__0___closed__0; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getBool_x3f(lean_object*); lean_object* l_id___boxed(lean_object*, lean_object*); @@ -150,6 +167,7 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_RefInfo_instInhabitedLocation; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Array_toJson___at___Lean_Lsp_toJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4178__spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanQueryModuleResponse; LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4178_(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4251_; static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__7____x40_Lean_Data_Lsp_Internal___hyg_647_; static lean_object* l_Lean_Lsp_RefInfo_instToJsonParentDecl___closed__0; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__1____x40_Lean_Data_Lsp_Internal___hyg_3686_; @@ -160,6 +178,7 @@ lean_object* l_Lean_Json_getStr_x3f(lean_object*); LEAN_EXPORT lean_object* l_List_toJson___at___Option_toJson___at___Lean_Lsp_toJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2857__spec__1_spec__1(lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__8____x40_Lean_Data_Lsp_Internal___hyg_2751_; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanModuleQuery; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4444_; lean_object* l_Nat_reprFast(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instForInModuleRefsProdRefIdentRefInfo___lam__1(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); @@ -177,13 +196,17 @@ uint8_t lean_string_dec_lt(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__2____x40_Lean_Data_Lsp_Internal___hyg_3686_; static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__12; static lean_object* l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__8____x40_Lean_Data_Lsp_Internal___hyg_2568_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__13____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__1____x40_Lean_Data_Lsp_Internal___hyg_2751_; static lean_object* l_Lean_Lsp_fromJsonLeanStaleDependencyParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_3047_; +LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4357_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_RefInfo_instToJsonParentDecl; static lean_object* l_Lean_Lsp_instToJsonLeanIdentifier___closed__0; +LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonModuleRefs___lam__0(lean_object*, lean_object*, lean_object*); lean_object* l_List_toJson(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Lsp_toJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2857__spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanLocationLink; static lean_object* l_Lean_Lsp_RefIdent_instFromJson___closed__0; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__3____x40_Lean_Data_Lsp_Internal___hyg_3686_; static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___closed__2____x40_Lean_Data_Lsp_Internal___hyg_3199_; @@ -194,11 +217,16 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonModuleRefs___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2568__spec__0_spec__0_spec__0(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery____x40_Lean_Data_Lsp_Internal___hyg_3502_(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__16____x40_Lean_Data_Lsp_Internal___hyg_4444_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__18____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4111_; lean_object* l_Array_empty(lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanQueryModuleParams; LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanQueryModuleParams____x40_Lean_Data_Lsp_Internal___hyg_3686__spec__0_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_opt___at___Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706__spec__0(lean_object*, lean_object*); lean_object* l_Array_toJson___at___Lean_Json_opt___at___Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_676__spec__0_spec__0(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_; +lean_object* l_Lean_Json_opt___at___Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_383__spec__0(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanModuleQuery____x40_Lean_Data_Lsp_Internal___hyg_3502__spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_toJson___at___Array_toJson___at___Lean_Lsp_toJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4178__spec__0_spec__0(lean_object*); @@ -219,6 +247,8 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanIleanInfoParams; LEAN_EXPORT lean_object* l_Lean_Lsp_instForInModuleRefsProdRefIdentRefInfo___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2568_; static lean_object* l_Lean_Lsp_RefIdent_instToJsonRefIdentJsonRepr___closed__0; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_; +static lean_object* l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0___closed__0; lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readMessage_spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___closed__1____x40_Lean_Data_Lsp_Internal___hyg_3199_; static lean_object* l_Lean_Lsp_fromJsonLeanImportClosureParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2926_; @@ -230,9 +260,12 @@ static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__4____x40_Le lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__1; static lean_object* l_Lean_Lsp_fromJsonLeanStaleDependencyParams___closed__1____x40_Lean_Data_Lsp_Internal___hyg_3047_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__1____x40_Lean_Data_Lsp_Internal___hyg_3502_; static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__5; static lean_object* l_Lean_Lsp_fromJsonLeanImportClosureParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2926_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__29____x40_Lean_Data_Lsp_Internal___hyg_4444_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_instToJsonLeanImportClosureParams___closed__0; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4111__spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__12____x40_Lean_Data_Lsp_Internal___hyg_3686_; @@ -241,10 +274,14 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Json_getObjValAs_x3f static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___lam__1___closed__0____x40_Lean_Data_Lsp_Internal___hyg_647_; static lean_object* l_Lean_Lsp_RefIdent_instFromJsonRefIdentJsonRepr___closed__0; LEAN_EXPORT uint8_t l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___lam__0____x40_Lean_Data_Lsp_Internal___hyg_2568_(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_instBEqRefIdent___closed__0; +LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4251_(lean_object*); static lean_object* l_Lean_Lsp_instFromJsonImportInfo___lam__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___lam__0____x40_Lean_Data_Lsp_Internal___hyg_647_(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__12____x40_Lean_Data_Lsp_Internal___hyg_4444_; lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2751__spec__0_spec__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__8; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__8; @@ -259,9 +296,11 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_RefIdent_fromJson_x3f(lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__4____x40_Lean_Data_Lsp_Internal___hyg_3502_; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__1____x40_Lean_Data_Lsp_Internal___hyg_3878_; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldlM___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2751__spec__0_spec__5_spec__5(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanQueryModuleResponse; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonImportInfo; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanQueryModuleParams____x40_Lean_Data_Lsp_Internal___hyg_3686__spec__0___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_; lean_object* l_Array_mapMUnsafe_map___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__9____x40_Lean_Data_Lsp_Internal___hyg_3878_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__5____x40_Lean_Data_Lsp_Internal___hyg_3686_; @@ -269,6 +308,7 @@ lean_object* l_Except_orElseLazy___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at___Lean_Lsp_toJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2857__spec__6(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonLeanImportClosureParams___closed__0; static lean_object* l_Lean_Lsp_instFromJsonLeanStaleDependencyParams___closed__0; +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__6; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__5____x40_Lean_Data_Lsp_Internal___hyg_3878_; LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878_(lean_object*); @@ -285,6 +325,7 @@ static lean_object* l_Lean_Lsp_RefIdent_instToJson___closed__0; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanModuleQuery____x40_Lean_Data_Lsp_Internal___hyg_3502__spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__5____x40_Lean_Data_Lsp_Internal___hyg_3502_; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonImportInfo___lam__0___boxed(lean_object*); +static lean_object* l_Lean_Lsp_instFromJsonLeanLocationLink___closed__0; static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__13____x40_Lean_Data_Lsp_Internal___hyg_3502_; static lean_object* l_Lean_Lsp_instToJsonImportInfo___lam__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2568__spec__0(lean_object*, lean_object*); @@ -304,6 +345,7 @@ LEAN_EXPORT lean_object* l_Lean_Lsp_RefIdent_instFromJsonRefIdentJsonRepr; static lean_object* l_Lean_Lsp_fromJsonLeanImportClosureParams___closed__4____x40_Lean_Data_Lsp_Internal___hyg_2926_; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__0; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonModuleRefs; +LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706_(lean_object*); static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__0; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__7____x40_Lean_Data_Lsp_Internal___hyg_3878_; static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__7; @@ -311,6 +353,7 @@ static lean_object* l_Lean_Lsp_instToJsonModuleRefs___closed__1; lean_object* l_Array_fromJson_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instModuleRefsEmptyCollection; static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__3____x40_Lean_Data_Lsp_Internal___hyg_647_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__11____x40_Lean_Data_Lsp_Internal___hyg_4444_; lean_object* l_Option_toJson___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__4____x40_Lean_Data_Lsp_Internal___hyg_647_; static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___lam__1___closed__1____x40_Lean_Data_Lsp_Internal___hyg_3199_; @@ -321,29 +364,38 @@ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Json_ge static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3199_; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonModuleRefs___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanQueryModuleParams____x40_Lean_Data_Lsp_Internal___hyg_3792_(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__33____x40_Lean_Data_Lsp_Internal___hyg_4444_; +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__8____x40_Lean_Data_Lsp_Internal___hyg_647_; lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__10____x40_Lean_Data_Lsp_Internal___hyg_2751_; static lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2568__spec__0_spec__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanImportClosureParams____x40_Lean_Data_Lsp_Internal___hyg_2993_(lean_object*); lean_object* l_Except_instMonad___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanModuleQuery____x40_Lean_Data_Lsp_Internal___hyg_3502__spec__0_spec__0(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___lam__1___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3199_; static lean_object* l_Lean_Lsp_fromJsonOpenNamespace___closed__6____x40_Lean_Data_Lsp_Internal___hyg_3199_; static lean_object* l_Lean_Lsp_fromJsonLeanImportClosureParams___closed__3____x40_Lean_Data_Lsp_Internal___hyg_2926_; +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4251_; LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2568_(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__2____x40_Lean_Data_Lsp_Internal___hyg_2568_; static lean_object* l_Lean_Lsp_instToJsonLeanStaleDependencyParams___closed__0; LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Lsp_toJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4178__spec__0(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2568__spec__0_spec__0_spec__0___closed__0; +LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0(lean_object*); lean_object* l_Except_instMonad___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4251_; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanIdentifier; LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonRefInfo___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___lam__0____x40_Lean_Data_Lsp_Internal___hyg_2568____boxed(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__26____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr____x40_Lean_Data_Lsp_Internal___hyg_647_(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_BasicAux___hyg_277__spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__1____x40_Lean_Data_Lsp_Internal___hyg_647_; @@ -364,13 +416,18 @@ static lean_object* l_Lean_Lsp_instInhabitedImportInfo___closed__0; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__7; static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__10; static lean_object* l_Lean_Lsp_instFromJsonRefInfo___closed__13; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanStaleDependencyParams___closed__4____x40_Lean_Data_Lsp_Internal___hyg_3047_; lean_object* lean_nat_mul(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_instFromJsonLeanIdentifier___closed__0; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_; LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanStaleDependencyParams____x40_Lean_Data_Lsp_Internal___hyg_3114_(lean_object*); lean_object* l_Lean_Json_getNat_x3f(lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__23____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__7____x40_Lean_Data_Lsp_Internal___hyg_3502_; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanQueryModuleParams____x40_Lean_Data_Lsp_Internal___hyg_3686__spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_instToJsonLeanDeclIdent___closed__0; LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__0(lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); @@ -400,12 +457,15 @@ lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readMessage_spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanILeanHeaderInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2568__spec__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanDeclIdent; static lean_object* l_Lean_Lsp_RefInfo_instInhabitedLocation___closed__1; LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2857_(lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); LEAN_EXPORT uint8_t l_Lean_Lsp_beqRefIdent____x40_Lean_Data_Lsp_Internal___hyg_285_(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__12____x40_Lean_Data_Lsp_Internal___hyg_2751_; static lean_object* l_Lean_Lsp_fromJsonLeanModuleQuery___closed__12____x40_Lean_Data_Lsp_Internal___hyg_3502_; +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4251_; +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_; static lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__9____x40_Lean_Data_Lsp_Internal___hyg_2751_; lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Option_fromJson_x3f(lean_object*, lean_object*, lean_object*); @@ -418,6 +478,7 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_List_flatMapTR_go___at___Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_BasicAux___hyg_225__spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleResponse___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4111_; static lean_object* l_Lean_Lsp_instToJsonRefInfo___lam__4___closed__5; +static lean_object* l_Lean_Lsp_instToJsonLeanLocationLink___closed__0; static lean_object* l_Lean_Lsp_instOrdRefIdent___closed__0; lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonModuleRefs___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); @@ -443,7 +504,9 @@ static lean_object* l_Lean_Lsp_RefInfo_instInhabitedLocation___closed__0; static lean_object* l_Lean_Lsp_RefIdent_fromJsonRefIdentJsonRepr___closed__0____x40_Lean_Data_Lsp_Internal___hyg_647_; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_RefIdent_instToJson; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__34____x40_Lean_Data_Lsp_Internal___hyg_4444_; static lean_object* l_Lean_Lsp_fromJsonLeanQueryModuleParams___closed__4____x40_Lean_Data_Lsp_Internal___hyg_3686_; +static lean_object* l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT uint8_t l_Lean_Lsp_ordRefIdent____x40_Lean_Data_Lsp_Internal___hyg_472_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLeanILeanHeaderInfoParams; @@ -461,6 +524,7 @@ static lean_object* l_Lean_Lsp_fromJsonLeanImportClosureParams___closed__2____x4 LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLeanImportClosureParams; LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonOpenNamespace___lam__1____x40_Lean_Data_Lsp_Internal___hyg_3199____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4251_; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__17____x40_Lean_Data_Lsp_Internal___hyg_3878_; static lean_object* l_Lean_Lsp_instToJsonLeanILeanHeaderInfoParams___closed__0; static lean_object* l_Lean_Lsp_fromJsonLeanIdentifier___closed__15____x40_Lean_Data_Lsp_Internal___hyg_3878_; @@ -20932,6 +20996,1383 @@ x_1 = l_Lean_Lsp_instInhabitedLeanQueryModuleResponse___closed__0; return x_1; } } +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("LeanDeclIdent", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_2 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__2____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_3 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__1____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__5____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__6____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_2 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__11____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_2 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4251_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3878_; +lean_inc(x_1); +x_3 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +lean_dec(x_1); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +lean_ctor_set(x_3, 0, x_7); +return x_3; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_10 = lean_string_append(x_9, x_8); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +} +else +{ +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_12; +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_3); +if (x_12 == 0) +{ +lean_ctor_set_tag(x_3, 0); +return x_3; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +lean_dec(x_3); +x_14 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_3, 0); +lean_inc(x_15); +lean_dec_ref(x_3); +x_16 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__9____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_17 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0(x_1, x_16); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_21); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_17, 0); +lean_inc(x_22); +lean_dec(x_17); +x_23 = l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_; +x_24 = lean_string_append(x_23, x_22); +lean_dec(x_22); +x_25 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_25, 0, x_24); +return x_25; +} +} +else +{ +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_26; +lean_dec(x_15); +x_26 = !lean_is_exclusive(x_17); +if (x_26 == 0) +{ +lean_ctor_set_tag(x_17, 0); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_17, 0); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_17); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_17, 0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_15); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_17, 0, x_31); +return x_17; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_17, 0); +lean_inc(x_32); +lean_dec(x_17); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_15); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +return x_34; +} +} +} +} +} +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonLeanDeclIdent___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_fromJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4251_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonLeanDeclIdent() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonLeanDeclIdent___closed__0; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4357_(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_1, 1); +x_5 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_6 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_7 = 1; +x_8 = l_Lean_Name_toString(x_3, x_7, x_5); +x_9 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_1, 1, x_9); +lean_ctor_set(x_1, 0, x_6); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__9____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_13 = l_Lean_Name_toString(x_4, x_7, x_5); +x_14 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_10); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_Lsp_RefInfo_toJsonParentDecl___closed__3____x40_Lean_Data_Lsp_Internal___hyg_1106_; +x_21 = l_List_flatMapTR_go___at___Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_BasicAux___hyg_225__spec__0(x_19, x_20); +x_22 = l_Lean_Json_mkObj(x_21); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_23 = lean_ctor_get(x_1, 0); +x_24 = lean_ctor_get(x_1, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_1); +x_25 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_26 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__0____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_27 = 1; +x_28 = l_Lean_Name_toString(x_23, x_27, x_25); +x_29 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_26); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_Lsp_fromJsonLeanIdentifier___closed__9____x40_Lean_Data_Lsp_Internal___hyg_3878_; +x_34 = l_Lean_Name_toString(x_24, x_27, x_25); +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_31); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_32); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_Lsp_RefInfo_toJsonParentDecl___closed__3____x40_Lean_Data_Lsp_Internal___hyg_1106_; +x_42 = l_List_flatMapTR_go___at___Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_BasicAux___hyg_225__spec__0(x_40, x_41); +x_43 = l_Lean_Json_mkObj(x_42); +return x_43; +} +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLeanDeclIdent___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_toJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4357_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLeanDeclIdent() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonLeanDeclIdent___closed__0; +return x_1; +} +} +static lean_object* _init_l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0___closed__0; +return x_2; +} +else +{ +lean_object* x_3; +x_3 = l_Lean_Lsp_fromJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4251_(x_1); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_6, 0, x_5); +return x_6; +} +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_3); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_3, 0); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_3, 0, x_9); +return x_3; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +return x_12; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +x_4 = l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("originSelectionRange", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("LeanLocationLink", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__2____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_3 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__1____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__5____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("originSelectionRange\?", 21, 21); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("targetUri", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__11____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__12____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__11____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__13____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__12____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__13____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("targetRange", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__16____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__17____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__16____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__18____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__17____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__18____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("targetSelectionRange", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__21____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__22____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__21____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__23____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__22____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__23____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ident", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__26____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ident\?", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__27____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__26____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__28____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__27____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__29____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__28____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__29____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("isDefault", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__32____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__33____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Lsp_fromJsonLeanIleanInfoParams___closed__0____x40_Lean_Data_Lsp_Internal___hyg_2751_; +x_2 = 1; +x_3 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__32____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_4 = l_Lean_Name_toString(x_3, x_2, x_1); +return x_4; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__34____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__33____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Lsp_fromJsonLeanILeanHeaderInfoParams___closed__7____x40_Lean_Data_Lsp_Internal___hyg_2568_; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__34____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_3 = lean_string_append(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_; +lean_inc(x_1); +x_3 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_453__spec__0(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +lean_dec(x_1); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +lean_ctor_set(x_3, 0, x_7); +return x_3; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_10 = lean_string_append(x_9, x_8); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +} +else +{ +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_12; +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_3); +if (x_12 == 0) +{ +lean_ctor_set_tag(x_3, 0); +return x_3; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); +lean_dec(x_3); +x_14 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_3, 0); +lean_inc(x_15); +lean_dec_ref(x_3); +x_16 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_; +lean_inc(x_1); +x_17 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readMessage_spec__2(x_1, x_16); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_21); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_17, 0); +lean_inc(x_22); +lean_dec(x_17); +x_23 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_24 = lean_string_append(x_23, x_22); +lean_dec(x_22); +x_25 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_25, 0, x_24); +return x_25; +} +} +else +{ +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_26; +lean_dec(x_15); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_17); +if (x_26 == 0) +{ +lean_ctor_set_tag(x_17, 0); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_17, 0); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_27); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_17, 0); +lean_inc(x_29); +lean_dec_ref(x_17); +x_30 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_; +lean_inc(x_1); +x_31 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_168__spec__1(x_1, x_30); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_1); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 0); +x_34 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_35 = lean_string_append(x_34, x_33); +lean_dec(x_33); +lean_ctor_set(x_31, 0, x_35); +return x_31; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_31, 0); +lean_inc(x_36); +lean_dec(x_31); +x_37 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_38 = lean_string_append(x_37, x_36); +lean_dec(x_36); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_38); +return x_39; +} +} +else +{ +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_40; +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_31); +if (x_40 == 0) +{ +lean_ctor_set_tag(x_31, 0); +return x_31; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_31, 0); +lean_inc(x_41); +lean_dec(x_31); +x_42 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_42, 0, x_41); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_31, 0); +lean_inc(x_43); +lean_dec_ref(x_31); +x_44 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_; +lean_inc(x_1); +x_45 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_168__spec__1(x_1, x_44); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +lean_dec(x_43); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +x_48 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_49 = lean_string_append(x_48, x_47); +lean_dec(x_47); +lean_ctor_set(x_45, 0, x_49); +return x_45; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_45, 0); +lean_inc(x_50); +lean_dec(x_45); +x_51 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_52 = lean_string_append(x_51, x_50); +lean_dec(x_50); +x_53 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_53, 0, x_52); +return x_53; +} +} +else +{ +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_54; +lean_dec(x_43); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_1); +x_54 = !lean_is_exclusive(x_45); +if (x_54 == 0) +{ +lean_ctor_set_tag(x_45, 0); +return x_45; +} +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_45, 0); +lean_inc(x_55); +lean_dec(x_45); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_55); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_45, 0); +lean_inc(x_57); +lean_dec_ref(x_45); +x_58 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_; +lean_inc(x_1); +x_59 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0(x_1, x_58); +if (lean_obj_tag(x_59) == 0) +{ +uint8_t x_60; +lean_dec(x_57); +lean_dec(x_43); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 0); +x_62 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_63 = lean_string_append(x_62, x_61); +lean_dec(x_61); +lean_ctor_set(x_59, 0, x_63); +return x_59; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +lean_dec(x_59); +x_65 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_66 = lean_string_append(x_65, x_64); +lean_dec(x_64); +x_67 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_67, 0, x_66); +return x_67; +} +} +else +{ +if (lean_obj_tag(x_59) == 0) +{ +uint8_t x_68; +lean_dec(x_57); +lean_dec(x_43); +lean_dec(x_29); +lean_dec(x_15); +lean_dec(x_1); +x_68 = !lean_is_exclusive(x_59); +if (x_68 == 0) +{ +lean_ctor_set_tag(x_59, 0); +return x_59; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_59, 0); +lean_inc(x_69); +lean_dec(x_59); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +return x_70; +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_59, 0); +lean_inc(x_71); +lean_dec_ref(x_59); +x_72 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_73 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonChangeAnnotation____x40_Lean_Data_Lsp_Basic___hyg_1933__spec__0(x_1, x_72); +if (lean_obj_tag(x_73) == 0) +{ +uint8_t x_74; +lean_dec(x_71); +lean_dec(x_57); +lean_dec(x_43); +lean_dec(x_29); +lean_dec(x_15); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +x_76 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_77 = lean_string_append(x_76, x_75); +lean_dec(x_75); +lean_ctor_set(x_73, 0, x_77); +return x_73; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_73, 0); +lean_inc(x_78); +lean_dec(x_73); +x_79 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_80 = lean_string_append(x_79, x_78); +lean_dec(x_78); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +return x_81; +} +} +else +{ +if (lean_obj_tag(x_73) == 0) +{ +uint8_t x_82; +lean_dec(x_71); +lean_dec(x_57); +lean_dec(x_43); +lean_dec(x_29); +lean_dec(x_15); +x_82 = !lean_is_exclusive(x_73); +if (x_82 == 0) +{ +lean_ctor_set_tag(x_73, 0); +return x_73; +} +else +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_73, 0); +lean_inc(x_83); +lean_dec(x_73); +x_84 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_84, 0, x_83); +return x_84; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_73); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_73, 0); +x_87 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_87, 0, x_15); +lean_ctor_set(x_87, 1, x_29); +lean_ctor_set(x_87, 2, x_43); +lean_ctor_set(x_87, 3, x_57); +x_88 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_71); +x_89 = lean_unbox(x_86); +lean_dec(x_86); +lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_89); +lean_ctor_set(x_73, 0, x_88); +return x_73; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; +x_90 = lean_ctor_get(x_73, 0); +lean_inc(x_90); +lean_dec(x_73); +x_91 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_91, 0, x_15); +lean_ctor_set(x_91, 1, x_29); +lean_ctor_set(x_91, 2, x_43); +lean_ctor_set(x_91, 3, x_57); +x_92 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_71); +x_93 = lean_unbox(x_90); +lean_dec(x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*2, x_93); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_92); +return x_94; +} +} +} +} +} +} +} +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonLeanLocationLink___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonLeanLocationLink() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonLeanLocationLink___closed__0; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Json_opt___at___Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706__spec__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +lean_dec_ref(x_1); +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_Lsp_toJsonLeanDeclIdent____x40_Lean_Data_Lsp_Internal___hyg_4357_(x_4); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_2 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +lean_dec_ref(x_1); +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_6); +x_7 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_7); +x_8 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_8); +lean_dec_ref(x_2); +x_9 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_10 = l_Lean_Json_opt___at___Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_383__spec__0(x_9, x_5); +x_11 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_12 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_12, 0, x_6); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_17 = l_Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_BasicAux___hyg_624_(x_7); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_14); +x_20 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_21 = l_Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_BasicAux___hyg_624_(x_8); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_14); +x_24 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_25 = l_Lean_Json_opt___at___Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706__spec__0(x_24, x_3); +x_26 = l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_; +x_27 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_27, 0, x_4); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_14); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_25); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_23); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_15); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_10); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_Lsp_RefInfo_toJsonParentDecl___closed__3____x40_Lean_Data_Lsp_Internal___hyg_1106_; +x_38 = l_List_flatMapTR_go___at___Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_BasicAux___hyg_225__spec__0(x_36, x_37); +x_39 = l_Lean_Json_mkObj(x_38); +return x_39; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLeanLocationLink___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLeanLocationLink() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonLeanLocationLink___closed__0; +return x_1; +} +} lean_object* initialize_Lean_Expr(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_Lsp_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Data_JsonRpc(uint8_t builtin, lean_object*); @@ -21431,6 +22872,112 @@ l_Lean_Lsp_instInhabitedLeanQueryModuleResponse___closed__0 = _init_l_Lean_Lsp_i lean_mark_persistent(l_Lean_Lsp_instInhabitedLeanQueryModuleResponse___closed__0); l_Lean_Lsp_instInhabitedLeanQueryModuleResponse = _init_l_Lean_Lsp_instInhabitedLeanQueryModuleResponse(); lean_mark_persistent(l_Lean_Lsp_instInhabitedLeanQueryModuleResponse); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_ = _init_l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanDeclIdent___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4251_); +l_Lean_Lsp_instFromJsonLeanDeclIdent___closed__0 = _init_l_Lean_Lsp_instFromJsonLeanDeclIdent___closed__0(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonLeanDeclIdent___closed__0); +l_Lean_Lsp_instFromJsonLeanDeclIdent = _init_l_Lean_Lsp_instFromJsonLeanDeclIdent(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonLeanDeclIdent); +l_Lean_Lsp_instToJsonLeanDeclIdent___closed__0 = _init_l_Lean_Lsp_instToJsonLeanDeclIdent___closed__0(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLeanDeclIdent___closed__0); +l_Lean_Lsp_instToJsonLeanDeclIdent = _init_l_Lean_Lsp_instToJsonLeanDeclIdent(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLeanDeclIdent); +l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0___closed__0(); +lean_mark_persistent(l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444__spec__0_spec__0___closed__0); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__0____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__1____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__2____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__3____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__4____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__5____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__6____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__7____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__8____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__9____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__10____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__11____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__11____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__11____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__12____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__12____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__12____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__13____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__13____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__13____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__14____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__15____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__16____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__16____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__16____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__17____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__17____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__17____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__18____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__18____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__18____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__19____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__20____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__21____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__21____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__21____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__22____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__22____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__22____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__23____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__23____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__23____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__24____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__25____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__26____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__26____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__26____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__27____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__27____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__27____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__28____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__28____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__28____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__29____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__29____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__29____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__30____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__31____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__32____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__32____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__32____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__33____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__33____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__33____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__34____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__34____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__34____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_ = _init_l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_(); +lean_mark_persistent(l_Lean_Lsp_fromJsonLeanLocationLink___closed__35____x40_Lean_Data_Lsp_Internal___hyg_4444_); +l_Lean_Lsp_instFromJsonLeanLocationLink___closed__0 = _init_l_Lean_Lsp_instFromJsonLeanLocationLink___closed__0(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonLeanLocationLink___closed__0); +l_Lean_Lsp_instFromJsonLeanLocationLink = _init_l_Lean_Lsp_instFromJsonLeanLocationLink(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonLeanLocationLink); +l_Lean_Lsp_instToJsonLeanLocationLink___closed__0 = _init_l_Lean_Lsp_instToJsonLeanLocationLink___closed__0(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLeanLocationLink___closed__0); +l_Lean_Lsp_instToJsonLeanLocationLink = _init_l_Lean_Lsp_instToJsonLeanLocationLink(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLeanLocationLink); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index f5488883f5..aefa8532ec 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -38,8 +38,8 @@ static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___ static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2___closed__1; lean_object* l_Lean_Server_handleOnDidChange(lean_object*, lean_object*, lean_object*); lean_object* lean_io_cancel(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_setupFile(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8(lean_object*, lean_object*); lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__2; @@ -59,12 +59,10 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest___lam__0(lean_ob static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__66; lean_object* l_Lean_JsonNumber_toString(lean_object*); static lean_object* l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker___hyg_806_; -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_server_reportDelayMs; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress_spec__6___redArg___lam__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___closed__10; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_FileWorker_initializeWorker_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonRpcReleaseParams____x40_Lean_Data_Lsp_Extra___hyg_3922_(lean_object*); lean_object* l_Lean_Lsp_fromJsonCompletionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2981_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcConnect___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,6 +70,7 @@ lean_object* l_Lean_Language_SnapshotTask_get___redArg(lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___closed__3; lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_Lean_Option_get___at___Lean_profiler_threshold_getSecs_spec__0(lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__4; lean_object* l___private_Lean_Language_Lean_Types_0__Lean_Language_Lean_pushOpt___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePostRequestSpecialCases___closed__0; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__6(size_t, size_t, lean_object*, lean_object*); @@ -106,35 +105,35 @@ static lean_object* l_Lean_Server_FileWorker_setupImports___closed__0; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress_spec__6___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lam__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__7; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_instImpl___closed__1____x40_Lean_Server_FileWorker___hyg_861_; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5___boxed(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Server_mkFileProgressNotification(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleFinished_spec__0(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_DiagnosticWith_fullRange___redArg(lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2___closed__4; lean_object* l_List_forIn_x27_loop___at___Lean_KVMap_mergeBy_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_FileWorker_importAllUnknownIdentifiersProvider; uint8_t lean_uint64_dec_lt(uint64_t, uint64_t); static lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldlM___at___Lean_Server_FileWorker_mainLoop_spec__1_spec__1___redArg___closed__3; uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_FileWorker_initializeWorker_spec__2_spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lam__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updateDocument___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_rpcReleaseRef(size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Server_FileWorker_handlePostRequestSpecialCases_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleNotification(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcRelease___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker___hyg_806_; -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__1; lean_object* l_Lean_Server_ServerTask_IO_mapTaskCheap___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_instInhabitedReportSnapshotsState___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker_mkLspOutputChannel(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updatePendingRequests___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__5; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase___at___Lean_Server_FileWorker_WorkerContext_resolveServerRequestResponse_spec__0___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___closed__19; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,6 +161,7 @@ lean_object* l_Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitS lean_object* l_Option_toJson___at___Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_321__spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleResponse___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__8; +LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_runRefreshTasks_spec__5_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler_spec__0___redArg___closed__0; @@ -195,7 +195,6 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServe LEAN_EXPORT lean_object* lean_server_worker_main(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleUnknownIdentifierCodeAction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lam__0___closed__2; -static lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updatePendingRequests___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at___Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_564__spec__0(lean_object*, lean_object*); @@ -203,6 +202,7 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker_getImportClosure_x3f(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleStaleDependency___redArg___closed__2; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_checkCancelled(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -215,13 +215,13 @@ static lean_object* l_Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f___ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_mainLoop(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkIleanInfoNotification___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__7; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__1; lean_object* l_String_crlfToLf(lean_object*); lean_object* lean_get_stdout(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__52; static lean_object* l_Lean_Server_FileWorker_setupImports___closed__5; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_Server_FileWorker_runRefreshTasks_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress_spec__3_spec__3(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics_spec__0___boxed(lean_object*, lean_object*, lean_object*); @@ -233,7 +233,6 @@ lean_object* l_Lean_Language_SnapshotTask_finished___redArg(lean_object*, lean_o lean_object* l_Lean_Json_getStr_x3f(lean_object*); static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lam__1___closed__0; static lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_RequestM_parseRequestParams___at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__0_spec__0___closed__0; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5_spec__5(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_FileWorker_handleDidChange_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_IO_ofExcept___at___IO_Process_output_spec__0___redArg(lean_object*, lean_object*); @@ -250,7 +249,6 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCancelRequest(lean_objec static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonLeanFileProgressParams____x40_Lean_Data_Lsp_Extra___hyg_1256_(lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__0; uint8_t lean_string_dec_lt(lean_object*, lean_object*); lean_object* l_IO_CancelToken_new(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__22; @@ -304,7 +302,6 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse___redArg(l uint32_t lean_uint32_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleResponseError(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_queueRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__6; lean_object* l_Array_empty(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at___Lean_Server_FileWorker_sendServerRequest___at___Lean_Server_FileWorker_sendUntypedServerRequest_spec__0_spec__0___redArg___lam__0(lean_object*); lean_object* l_Lean_Language_mkIncrementalProcessor___redArg(lean_object*, lean_object*); @@ -316,6 +313,7 @@ static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updatePendingRequests(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toJson___at___Lean_Json_opt___at___Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_676__spec__0_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleResponseError___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); uint8_t l_ImportCompletion_isImportCompletionRequest(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_initPendingServerRequest___at___Lean_Server_FileWorker_sendServerRequest___at___Lean_Server_FileWorker_runRefreshTasks_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); @@ -337,8 +335,9 @@ lean_object* lean_io_wait_any(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__45; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_sendFileProgress_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks_spec__0(size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___boxed(lean_object*, lean_object*); lean_object* l_Lean_Option_register___at___Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_Options___hyg_5__spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10___closed__0; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation_spec__0(lean_object*, uint32_t, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lam__0___closed__3; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__23; @@ -352,12 +351,12 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Server_Fil extern lean_object* l_Lean_Elab_async; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lam__3(uint32_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_sleep(uint32_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4_spec__4(size_t, size_t, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initializeWorker_mkLspOutputChannel___lam__1___closed__1; static lean_object* l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker___hyg_806_; lean_object* l_Lean_LeanOptions_toOptions(lean_object*); lean_object* lean_array_pop(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2_spec__3(size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___closed__20; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_setupImports___lam__2(uint8_t, lean_object*); @@ -391,7 +390,6 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequ lean_object* l_Lean_Server_RequestM_asTask___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_runRefreshTasks_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__4; lean_object* lean_get_stdin(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker_mkLspOutputChannel___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instInhabitedMessage; @@ -403,16 +401,13 @@ LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_S static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__46; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at___Lean_Server_FileWorker_runRefreshTasks_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_minView___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_Language_diagnosticsOfHeaderError(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__43; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__21; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_instInhabitedPartialHandlerInfo___closed__0; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__70; @@ -441,12 +436,13 @@ lean_object* lean_get_set_stderr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDidChange(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__3; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Language_Snapshot_Diagnostics_empty; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkIleanInfoFinalNotification(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__14; static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2___closed__3; -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__3; lean_object* l_Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_BasicAux___hyg_624_(lean_object*); lean_object* l_List_appendTR___redArg(lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); @@ -460,14 +456,12 @@ static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__12; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__2(lean_object*, lean_object*); static lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldlM___at___Lean_Server_FileWorker_mainLoop_spec__1_spec__1___redArg___closed__2; static lean_object* l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker___hyg_806_; -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__2; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__60; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__25; static lean_object* l_Lean_Server_FileWorker_setupImports___closed__9; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode_spec__2(lean_object*, size_t, size_t, lean_object*); lean_object* l_String_Range_toLspRange(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_updateRequestsInFlight___lam__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___closed__23; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation(uint32_t, lean_object*); @@ -509,7 +503,6 @@ LEAN_EXPORT lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLs static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__13; static lean_object* l_Lean_Server_FileWorker_initializeWorker___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleStaleDependency___redArg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_setupImports___lam__4(lean_object*); lean_object* l_IO_FS_Stream_writeLspMessage(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -524,11 +517,12 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequ lean_object* l_Lean_Lsp_toJsonLeanImportClosureParams____x40_Lean_Data_Lsp_Internal___hyg_2993_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse_emitResponse___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__39; -LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___closed__0; +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__1; lean_object* l_Lean_Option_set___at___Lean_Environment_realizeConst_spec__2(lean_object*, lean_object*, uint8_t); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__13; static lean_object* l_Lean_Server_FileWorker_setupImports___closed__7; static lean_object* l_Lean_Server_FileWorker_setupImports___closed__22; @@ -542,6 +536,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileW LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_updateRequestsInFlight___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_806_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_queueRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_publishDiagnostics_spec__1(lean_object*); lean_object* l_Lean_Server_FileWorker_RpcSession_hasExpired(lean_object*, lean_object*); @@ -583,6 +578,7 @@ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest___at___Lean_Server_FileWorker_sendUntypedServerRequest_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_ServerTask_BaseIO_asTask___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_queueRequest___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleStatefulPreRequestSpecialCases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__17; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_queueRequest___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -592,14 +588,12 @@ lean_object* l_Lean_Server_foldDocumentChanges(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_readDoc___at___Lean_Server_RequestM_withWaitFindSnapAtPos_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker_mkLspOutputChannel___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5_spec__5___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_int_dec_lt(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1900____at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_runInIO___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcConnect(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5(lean_object*, lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); uint8_t l_instDecidableNot___redArg(uint8_t); lean_object* l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___redArg(lean_object*, lean_object*); @@ -641,7 +635,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_instRpcEncoda lean_object* l_Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_2516_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_WorkerContext_modifyPartialHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Channel_send___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__5; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__33; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleResponseError___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -685,8 +678,10 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa lean_object* l_IO_throwServerError___redArg(lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_607_(lean_object*); lean_object* l_IO_FS_Stream_putStrLn(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonCompletionList____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2913_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleTasks___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__6; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at_____private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_runRefreshTasks_sleepWithCancellation___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__0; @@ -751,10 +746,12 @@ lean_object* l_Lean_Option_setIfNotSet___at___Lean_Language_Lean_process_process static lean_object* l_Lean_Server_FileWorker_setupImports___closed__1; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__15; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_emitRequestResponse_emitResponse(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_RequestM_parseRequestParams___at___Lean_Server_FileWorker_handlePreRequestSpecialCases_x3f_spec__0_spec__0(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__34; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_importsLoadedRef; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__3; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__26; static lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_FileWorker_WorkerContext_modifyGetPartialHandler_spec__0___redArg___closed__3; static lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_handleNode___closed__0; @@ -765,6 +762,8 @@ lean_object* l_Lean_Server_handleLspRequest(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Lsp_toJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_1100_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_mkImportClosureNotification(lean_object*); static lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldlM___at___Lean_Server_FileWorker_mainLoop_spec__1_spec__1___redArg___closed__0; +LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4(lean_object*); +lean_object* l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_instImpl____x40_Lean_Server_FileWorker___hyg_861_; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_mainLoop___lam__0(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcKeepAlive___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -775,6 +774,7 @@ static lean_object* l_Lean_Server_FileWorker_setupImports___closed__21; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Server_FileWorker_runRefreshTasks_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___closed__17; lean_object* l_Lean_Widget_TaggedText_stripTags___redArg(lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__0; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_FileWorker_WorkerContext_resolveServerRequestResponse_spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_maybeTee(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__1; @@ -27746,27 +27746,7 @@ return x_60; } } } -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = l_Lean_Json_Structured_toJson(x_3); -return x_4; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -27775,7 +27755,7 @@ x_4 = l_Lean_Lsp_fromJsonClientCapabilities____x40_Lean_Data_Lsp_Capabilities___ return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -27784,7 +27764,7 @@ x_4 = l_Lean_Json_getInt_x3f(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -27793,7 +27773,7 @@ x_4 = l_Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_75_( return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -27802,7 +27782,7 @@ x_4 = l_Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5_spec__5(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4_spec__4(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -27857,7 +27837,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 4) @@ -27868,7 +27848,7 @@ lean_inc_ref(x_2); lean_dec(x_1); x_3 = lean_array_size(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5_spec__5(x_3, x_4, x_2); +x_5 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4_spec__4(x_3, x_4, x_2); return x_5; } else @@ -27887,16 +27867,16 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5(x_3); +x_4 = l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4(x_3); return x_4; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__0() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__0() { _start: { lean_object* x_1; @@ -27904,17 +27884,17 @@ x_1 = lean_mk_string_unchecked("unknown trace", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__1() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__0; +x_1 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__2() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__2() { _start: { lean_object* x_1; @@ -27922,7 +27902,7 @@ x_1 = lean_mk_string_unchecked("off", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__3() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__3() { _start: { lean_object* x_1; @@ -27930,7 +27910,7 @@ x_1 = lean_mk_string_unchecked("messages", 8, 8); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__4() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__4() { _start: { lean_object* x_1; @@ -27938,7 +27918,7 @@ x_1 = lean_mk_string_unchecked("verbose", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__5() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -27949,7 +27929,7 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__6() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__6() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -27960,7 +27940,7 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__7() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__7() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -27971,7 +27951,7 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_5; lean_object* x_6; @@ -27988,17 +27968,17 @@ lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); lean_dec_ref(x_6); -x_8 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__2; +x_8 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__2; x_9 = lean_string_dec_eq(x_7, x_8); if (x_9 == 0) { lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__3; +x_10 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__3; x_11 = lean_string_dec_eq(x_7, x_10); if (x_11 == 0) { lean_object* x_12; uint8_t x_13; -x_12 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__4; +x_12 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__4; x_13 = lean_string_dec_eq(x_7, x_12); lean_dec(x_7); if (x_13 == 0) @@ -28008,7 +27988,7 @@ goto block_4; else { lean_object* x_14; -x_14 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__5; +x_14 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__5; return x_14; } } @@ -28016,7 +27996,7 @@ else { lean_object* x_15; lean_dec(x_7); -x_15 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__6; +x_15 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__6; return x_15; } } @@ -28024,14 +28004,14 @@ else { lean_object* x_16; lean_dec(x_7); -x_16 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__7; +x_16 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__7; return x_16; } } block_4: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__1; return x_3; } } @@ -28756,10 +28736,10 @@ else { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_dec_ref(x_10); -x_23 = l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(x_11); +x_23 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_11); x_24 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__2; lean_inc(x_23); -x_25 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__1(x_23, x_24); +x_25 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(x_23, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -28833,19 +28813,19 @@ lean_inc(x_50); lean_dec_ref(x_25); x_72 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__6; lean_inc(x_23); -x_73 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__2(x_23, x_72); +x_73 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__1(x_23, x_72); x_74 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__7; lean_inc(x_23); -x_75 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__3(x_23, x_74); +x_75 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__2(x_23, x_74); x_76 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__8; lean_inc(x_23); x_77 = l_Lean_Json_getObjValAs_x3f___at___fromJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_144__spec__1(x_23, x_76); x_78 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__9; lean_inc(x_23); -x_79 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4(x_23, x_78); +x_79 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__3(x_23, x_78); x_115 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__11; lean_inc(x_23); -x_116 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8(x_23, x_115); +x_116 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7(x_23, x_115); if (lean_obj_tag(x_116) == 0) { uint8_t x_117; @@ -29076,7 +29056,7 @@ block_114: { lean_object* x_108; lean_object* x_109; x_108 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__10; -x_109 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5(x_23, x_108); +x_109 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4(x_23, x_108); if (lean_obj_tag(x_73) == 0) { lean_object* x_110; @@ -29657,7 +29637,7 @@ return x_10; } } } -static lean_object* _init_l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___closed__0() { +static lean_object* _init_l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___closed__0() { _start: { lean_object* x_1; @@ -29665,7 +29645,7 @@ x_1 = lean_mk_string_unchecked("Expected JSON-RPC notification, got: '", 38, 38) return x_1; } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -29715,7 +29695,7 @@ else { lean_object* x_21; lean_object* x_22; lean_dec_ref(x_10); -x_21 = l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(x_11); +x_21 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_11); lean_inc(x_21); x_22 = l_Lean_Lsp_fromJsonLeanDidOpenTextDocumentParams____x40_Lean_Data_Lsp_Extra___hyg_208_(x_21); if (lean_obj_tag(x_22) == 0) @@ -29816,7 +29796,7 @@ else { lean_object* x_57; lean_object* x_58; lean_dec_ref(x_46); -x_57 = l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(x_47); +x_57 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_47); lean_inc(x_57); x_58 = l_Lean_Lsp_fromJsonLeanDidOpenTextDocumentParams____x40_Lean_Data_Lsp_Extra___hyg_208_(x_57); if (lean_obj_tag(x_58) == 0) @@ -29914,7 +29894,7 @@ else { lean_object* x_87; lean_object* x_88; lean_dec_ref(x_74); -x_87 = l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(x_75); +x_87 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_75); lean_inc(x_87); x_88 = l_Lean_Lsp_fromJsonLeanDidOpenTextDocumentParams____x40_Lean_Data_Lsp_Extra___hyg_208_(x_87); if (lean_obj_tag(x_88) == 0) @@ -29991,7 +29971,7 @@ if (lean_is_exclusive(x_5)) { lean_dec_ref(x_5); x_106 = lean_box(0); } -x_107 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___closed__0; +x_107 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___closed__0; x_108 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__16; switch (lean_obj_tag(x_6)) { case 0: @@ -30231,7 +30211,7 @@ block_188: { lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_170); +lean_ctor_set(x_174, 0, x_172); lean_ctor_set(x_174, 1, x_173); x_175 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__21; x_176 = lean_alloc_ctor(3, 1, 0); @@ -30258,7 +30238,7 @@ x_186 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_186, 0, x_185); lean_ctor_set(x_186, 1, x_178); x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_172); +lean_ctor_set(x_187, 0, x_170); lean_ctor_set(x_187, 1, x_186); x_109 = x_187; goto block_118; @@ -30276,9 +30256,9 @@ case 0: { lean_object* x_194; x_194 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__28; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_194; goto block_188; } @@ -30286,9 +30266,9 @@ case 1: { lean_object* x_195; x_195 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__32; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_195; goto block_188; } @@ -30296,9 +30276,9 @@ case 2: { lean_object* x_196; x_196 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__36; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_196; goto block_188; } @@ -30306,9 +30286,9 @@ case 3: { lean_object* x_197; x_197 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__40; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_197; goto block_188; } @@ -30316,9 +30296,9 @@ case 4: { lean_object* x_198; x_198 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__44; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_198; goto block_188; } @@ -30326,9 +30306,9 @@ case 5: { lean_object* x_199; x_199 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__48; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_199; goto block_188; } @@ -30336,9 +30316,9 @@ case 6: { lean_object* x_200; x_200 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__52; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_200; goto block_188; } @@ -30346,9 +30326,9 @@ case 7: { lean_object* x_201; x_201 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__56; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_201; goto block_188; } @@ -30356,9 +30336,9 @@ case 8: { lean_object* x_202; x_202 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__60; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_202; goto block_188; } @@ -30366,9 +30346,9 @@ case 9: { lean_object* x_203; x_203 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__64; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_203; goto block_188; } @@ -30376,9 +30356,9 @@ case 10: { lean_object* x_204; x_204 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__68; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_204; goto block_188; } @@ -30386,9 +30366,9 @@ default: { lean_object* x_205; x_205 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__72; -x_170 = x_193; +x_170 = x_191; x_171 = x_192; -x_172 = x_191; +x_172 = x_193; x_173 = x_205; goto block_188; } @@ -30447,7 +30427,7 @@ return x_216; } } } -static lean_object* _init_l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11___closed__0() { +static lean_object* _init_l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10___closed__0() { _start: { lean_object* x_1; @@ -30455,7 +30435,7 @@ x_1 = lean_mk_string_unchecked("Cannot read LSP notification: ", 30, 30); return x_1; } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_12; @@ -30469,7 +30449,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec_ref(x_12); -x_15 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11(x_1, x_13, x_2, x_14); +x_15 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10(x_1, x_13, x_2, x_14); lean_dec(x_13); if (lean_obj_tag(x_15) == 0) { @@ -30505,7 +30485,7 @@ goto block_11; block_11: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11___closed__0; +x_6 = l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10___closed__0; x_7 = lean_io_error_to_string(x_4); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); @@ -30518,7 +30498,7 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -30554,11 +30534,11 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg(x_1, x_2, x_3, x_4, x_5, x_8); +x_9 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg(x_1, x_2, x_3, x_4, x_5, x_8); return x_9; } } @@ -30650,7 +30630,7 @@ lean_inc(x_52); lean_dec_ref(x_50); x_53 = l_Lean_Server_FileWorker_initAndRunWorker___closed__3; lean_inc(x_42); -x_54 = l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11(x_42, x_53, x_52); +x_54 = l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10(x_42, x_53, x_52); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; @@ -30763,7 +30743,7 @@ lean_dec_ref(x_89); x_91 = lean_box(0); x_92 = lean_array_size(x_87); x_93 = 0; -x_94 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg(x_91, x_87, x_92, x_93, x_91, x_90); +x_94 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg(x_91, x_87, x_92, x_93, x_91, x_90); lean_dec(x_87); x_95 = lean_ctor_get(x_94, 1); lean_inc(x_95); @@ -31051,6 +31031,15 @@ goto block_31; } } } +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__0(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -31078,6 +31067,18 @@ lean_dec_ref(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4_spec__4_spec__4(x_4, x_5, x_3); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -31087,32 +31088,11 @@ lean_dec_ref(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5_spec__5_spec__5(x_4, x_5, x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__5(x_1, x_2); -lean_dec_ref(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7(x_1, x_2); lean_dec_ref(x_2); return x_3; } @@ -31126,16 +31106,16 @@ lean_dec(x_2); return x_5; } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11(x_1, x_2, x_3, x_4); +x_5 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -31143,12 +31123,12 @@ x_7 = lean_unbox_usize(x_3); lean_dec(x_3); x_8 = lean_unbox_usize(x_4); lean_dec(x_4); -x_9 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___redArg(x_1, x_2, x_7, x_8, x_5, x_6); +x_9 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___redArg(x_1, x_2, x_7, x_8, x_5, x_6); lean_dec_ref(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { size_t x_9; size_t x_10; lean_object* x_11; @@ -31156,7 +31136,7 @@ x_9 = lean_unbox_usize(x_3); lean_dec(x_3); x_10 = lean_unbox_usize(x_4); lean_dec(x_4); -x_11 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__13(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); +x_11 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_initAndRunWorker_spec__12(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec_ref(x_6); lean_dec_ref(x_2); @@ -31608,22 +31588,22 @@ l_Lean_Server_FileWorker_runRefreshTasks___closed__0 = _init_l_Lean_Server_FileW lean_mark_persistent(l_Lean_Server_FileWorker_runRefreshTasks___closed__0); l_Lean_Server_FileWorker_initAndRunWorker_writeErrorDiag___closed__0 = _init_l_Lean_Server_FileWorker_initAndRunWorker_writeErrorDiag___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_initAndRunWorker_writeErrorDiag___closed__0); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__0 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__0(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__0); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__1(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__1); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__2(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__2); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__3 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__3(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__3); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__4 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__4(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__4); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__5 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__5(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__5); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__6 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__6(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__6); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__7 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__7(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__8___closed__7); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__0 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__0(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__0); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__1(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__1); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__2(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__2); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__3 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__3(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__3); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__4 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__4(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__4); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__5 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__5(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__5); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__6 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__6(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__6); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__7 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__7(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0_spec__7___closed__7); l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__0 = _init_l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__0(); lean_mark_persistent(l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__0); l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__1 = _init_l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__1(); @@ -31772,10 +31752,10 @@ l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Se lean_mark_persistent(l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0_spec__0___closed__72); l_IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0___closed__0 = _init_l_IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0___closed__0(); lean_mark_persistent(l_IO_FS_Stream_readLspRequestAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__0___closed__0); -l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___closed__0 = _init_l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___closed__0(); -lean_mark_persistent(l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11_spec__11___closed__0); -l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11___closed__0 = _init_l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11___closed__0(); -lean_mark_persistent(l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__11___closed__0); +l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___closed__0 = _init_l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___closed__0(); +lean_mark_persistent(l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10_spec__10___closed__0); +l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10___closed__0 = _init_l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10___closed__0(); +lean_mark_persistent(l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_FileWorker_initAndRunWorker_spec__10___closed__0); l_Lean_Server_FileWorker_initAndRunWorker___closed__0 = _init_l_Lean_Server_FileWorker_initAndRunWorker___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_initAndRunWorker___closed__0); l_Lean_Server_FileWorker_initAndRunWorker___closed__1 = _init_l_Lean_Server_FileWorker_initAndRunWorker___closed__1(); diff --git a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c index 812c3eef58..a8a883b194 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c @@ -15,170 +15,153 @@ extern "C" { #endif lean_object* l_Lean_Name_getNumParts(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRange___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__6(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; LEAN_EXPORT lean_object* l_liftExcept___at___Lean_Server_FileWorker_handleWaitForDiagnostics_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__1(uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandElaboratingSnapshot_go(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__1(lean_object*); lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___closed__3; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__6; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__9; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__8; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__3(lean_object*); +lean_object* l_List_filterMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__1(lean_object*, lean_object*); lean_object* l_List_lengthTR___redArg(lean_object*); lean_object* l_Lean_Json_compress(lean_object*); static lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_infoTree(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePlainGoal_spec__0(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_diffInteractiveGoals(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__5; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9; +static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_FileMap_rangeContainsHoverPos(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Lsp_fromJsonCompletionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2981_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__1(lean_object*); +static lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__19; -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__3(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -lean_object* l_Lean_Meta_isInstance___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -static lean_object* l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__32(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__0(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__1(lean_object*, lean_object*); lean_object* l_Lean_Language_SnapshotTree_foldSnaps___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___redArg(lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Lsp_fromJsonDocumentHighlightParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_4504_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__0; lean_object* l_Lean_beqFVarId____x40_Lean_Expr___hyg_1503____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePlainGoal_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__1(lean_object*); +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_getInteractiveGoals_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__0(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Lean_DeclarationRange_toLspRange(lean_object*); -lean_object* l_Lean_Expr_sort___override(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_1614_(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__16; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37(lean_object*, lean_object*, lean_object*); -static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__1(lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__34(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__4; +LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_1324_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2; +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__42(lean_object*); uint8_t l_String_Range_includes(lean_object*, lean_object*, uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lam__0(lean_object*); -lean_object* lean_mk_array(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__18(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__0(lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSignatureHelp___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__32(lean_object*); -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__34(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__3___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_ServerTask_bindCostly___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_InteractiveTermGoal_pretty(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__0; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__0(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__1; static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(lean_object*); lean_object* l_Lean_Server_ServerTask_mapCheap___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__14; lean_object* l_Lean_Lsp_fromJsonSignatureHelpParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_14786_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__2(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); extern lean_object* l_Lean_Server_requestHandlers; -static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__5; static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1; -static lean_object* l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; static lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__1; lean_object* l_EIO_ofExcept___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__4; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__40(lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; +static lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletionItemResolve(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_span_loop___at___Lean_Server_FileWorker_handleFoldingRange_addRanges_spec__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__8; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_findCmdParsedSnap(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__12; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__3; +static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20_spec__20___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_checkCancelled(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Server_FileWorker_handleDocumentSymbol_spec__0(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1(lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__9(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; static lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__4___closed__0; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___List_foldrTR___at___Lean_Server_FileWorker_NamespaceEntry_finish_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__11; lean_object* l_Lean_initializing(lean_object*); lean_object* l_Lean_Lsp_fromJsonResolvableCompletionItemData____x40_Lean_Server_Completion_CompletionResolution___hyg_275_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__1(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_withWaitFindSnap___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRange___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDefinition___lam__2(lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15(lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonCompletionItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2093_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t, uint8_t); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__0; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7; size_t lean_usize_of_nat(lean_object*); static lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___closed__0; static lean_object* l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__0; @@ -186,440 +169,423 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWor lean_object* l_Lean_Widget_goalToInteractive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_pop(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_isInstanceProjectionInfoFor___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__0___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__23(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_locationLinksOfInfo(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_locationLinksOfInfo___lam__4(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -static lean_object* l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1(lean_object*, lean_object*); lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__0___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__36(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_ModuleRefs_findAt(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___List_foldrTR___at___Lean_Server_FileWorker_NamespaceEntry_finish_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__7; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__42(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_eqv(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__0(lean_object*); -static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__0; +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1___redArg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__5; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_documentUriFromModule_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lam__0___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__3; -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__1(lean_object*, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__12; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___closed__1; lean_object* l_Lean_hashFVarId____x40_Lean_Expr___hyg_1561____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_empty(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +lean_object* l_List_find_x3f___redArg(lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___redArg(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20(lean_object*); +lean_object* l_Lean_Elab_Info_updateContext_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__10; lean_object* l_Lean_Lsp_fromJsonPlainTermGoalParams____x40_Lean_Data_Lsp_Extra___hyg_1682_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6; +lean_object* l_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___redArg(lean_object*, lean_object*); +lean_object* l_instMonadEIO(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePlainGoal_spec__1___closed__0; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__25(lean_object*); -lean_object* l_Lean_MessageData_ofFormat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; lean_object* l_Lean_Server_Snapshots_Snapshot_env(lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___Lean_Server_FileWorker_getInteractiveGoals_spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_InteractiveGoal_pretty(lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__11(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findCompletionCmdDataAtPos(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lam__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_sleep(uint32_t, lean_object*); +lean_object* l_instInhabitedOfMonad___redArg(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_findCmdDataAtPos(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__0; -LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; lean_object* l_Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_3330_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0(lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__6; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__3; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_getInteractiveGoals___lam__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_mapTaskCostly___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3; -static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37___redArg(lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at___Lean_Server_FileWorker_handleWaitForDiagnostics_spec__0___redArg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonCompletionItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2433_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at___Lean_Server_FileWorker_handleWaitForDiagnostics_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15_spec__15(size_t, size_t, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +extern lean_object* l_String_instInhabitedRange; lean_object* l_Lean_Server_FileWorker_SignatureHelp_findSignatureHelp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__0(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__13(lean_object*); lean_object* l_Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_4477_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonDocumentHighlight____x40_Lean_Data_Lsp_LanguageFeatures___hyg_4729_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lam__0___boxed(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_asTask___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__0; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29_spec__29___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__0___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___lam__0___boxed(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lam__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_constName_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePlainGoal_spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__27(lean_object*); static lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__1(lean_object*); +static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7; +static lean_object* l_Lean_Server_FileWorker_handleDefinition___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_componentsRev(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__0(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1(lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__1(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_getInteractiveGoals_spec__0(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f_getPositions___boxed(lean_object*); lean_object* l_Lean_Server_RequestM_bindTaskCheap___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_locationLinksFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__9; -static lean_object* l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lam__0___closed__0; +LEAN_EXPORT lean_object* l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed(lean_object*, lean_object*); +static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1; lean_object* l_Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_LanguageFeatures___hyg_3166_(lean_object*); -static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_takeTR_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__13; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__0(lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange___redArg___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__18; lean_object* l_String_Range_toLspRange(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Environment_contains(lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__27(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_ModuleRefs_toLspModuleRefs(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lam__0___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePlainGoal_spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lam__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20_spec__20(size_t, size_t, lean_object*); -lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); +lean_object* l_Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706_(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__17; lean_object* l_Lean_Syntax_reprint(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__6(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_getLastD___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTrailingTailPos_x3f(lean_object*, uint8_t); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; LEAN_EXPORT lean_object* l_List_foldrTR___at___Lean_Server_FileWorker_NamespaceEntry_finish_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__4(size_t, size_t, lean_object*); -lean_object* lean_array_fget(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29_spec__29(size_t, size_t, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__2_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; uint8_t l_String_Range_contains(lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__25(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; lean_object* l_Lean_Server_FileWorker_Hover_rewriteExamples(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSignatureHelp___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__0; +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29_spec__29(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__0(lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__6; +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__20; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_spec__0(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_hasArgs(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__0(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3(lean_object*); static lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___closed__1; lean_object* l_Lean_Syntax_findStack_x3f(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___lam__0___closed__0; +static lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; lean_object* l_Lean_Server_RequestM_findInfoTreeAtPos(lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__0(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_381_(lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at___Lean_Server_FileWorker_handleWaitForDiagnostics_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__38(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__40(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__1(lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___lam__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__10; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lam__0___closed__3; -static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__4; static lean_object* l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__1; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleFoldingRange_isImport(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__11; -lean_object* l_Lean_getErrorExplanationRaw_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; lean_object* l_Lean_Lsp_fromJsonFoldingRangeParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_10924_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Server_WithRpcRef_mk___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__15; lean_object* l_Lean_Server_RequestM_readDoc___at___Lean_Server_RequestM_withWaitFindSnapAtPos_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19(lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__0(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_PersistentHashMap_contains___at___Lean_Server_isStatefulLspRequestMethod_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_Server_Completion_find_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__18(lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29_spec__29___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__7; lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Json_opt___at___Lean_Lsp_toJsonDocumentSymbolAux____x40_Lean_Data_Lsp_LanguageFeatures___hyg_5730____at___Lean_Lsp_instToJsonDocumentSymbol_go_spec__0_spec__0_spec__0_spec__0(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__23(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__5; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_383_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__1(lean_object*); lean_object* l_Lean_Elab_Info_range_x3f(lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__0; +static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20_spec__20(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_CompletionItem_getFileSource_x21(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15_spec__15___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___Lean_Server_FileWorker_getInteractiveGoals_spec__3___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonPlainTermGoal____x40_Lean_Data_Lsp_Extra___hyg_1971_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_NamespaceEntry_finish___lam__0(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__4___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__4___boxed(lean_object*, lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); +static lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; size_t lean_usize_sub(size_t, size_t); +LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0(lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___closed__2; -static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_4792_(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handlePlainGoal_spec__1___closed__1; -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDefinition___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__0(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__4___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__0(lean_object*); -static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__9(lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__0(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__0(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__6; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Info_lctx(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__1(lean_object*); size_t lean_array_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__1(lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__0(lean_object*); static lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___closed__5; -lean_object* lean_io_error_to_string(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_findInfo_x3f(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__7; -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); lean_object* l_Lean_Server_Completion_resolveCompletionItem_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletionItemResolve___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___closed__0; -static lean_object* l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; lean_object* l_Lean_Lsp_toJsonCompletionList____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2913_(lean_object*); -lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28___redArg(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__21; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__1(lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15_spec__15___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +static lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__0; lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_RequestError_requestCancelled; lean_object* l_Lean_Lsp_toJsonFoldingRange____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11105_(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSignatureHelp(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +static lean_object* l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; static lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lam__1___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__1(lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__0(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__8; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__0(lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__3; uint8_t l_List_any___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__1(lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15_spec__15(size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t); lean_object* l_Lean_Elab_Info_stx(lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lam__0___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__0(lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_Server_RequestError_ofIoError(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__4(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonSignatureHelp____x40_Lean_Data_Lsp_LanguageFeatures___hyg_14311_(lean_object*); -lean_object* lean_get_projection_info(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__1; -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__11(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__0(lean_object*); lean_object* l_Lean_Elab_Info_toElabInfo_x3f(lean_object*); +static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__0; lean_object* l_Lean_Elab_ContextInfo_runMetaM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__0___closed__0; -lean_object* l_Lean_Expr_consumeMData(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__13(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRange(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_References_allRefsFor_spec__0___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_SemanticHighlighting___hyg_3029__spec__0_spec__2___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20_spec__20___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__0(lean_object*); lean_object* l_List_drop___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -static lean_object* l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15(lean_object*); +uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentArray_toList___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletionItemResolve___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5; +static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0; +static lean_object* l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +static lean_object* l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__36(lean_object*); +static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg___closed__0; +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f_getPositions(lean_object*); -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__38(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals(lean_object*, lean_object*, lean_object*); lean_object* l_IO_AsyncList_getFinishedPrefix___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findCompletionCmdDataAtPos(lean_object* x_1, lean_object* x_2) { _start: { @@ -1076,7 +1042,16 @@ lean_dec(x_5); return x_9; } } -static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__0() { +LEAN_EXPORT lean_object* l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_String_instInhabitedRange; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__0() { _start: { lean_object* x_1; @@ -1084,7 +1059,7 @@ x_1 = lean_mk_string_unchecked("Init.Data.Option.BasicAux", 25, 25); return x_1; } } -static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__1() { +static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__1() { _start: { lean_object* x_1; @@ -1092,7 +1067,7 @@ x_1 = lean_mk_string_unchecked("Option.get!", 11, 11); return x_1; } } -static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__2() { +static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__2() { _start: { lean_object* x_1; @@ -1100,20 +1075,20 @@ x_1 = lean_mk_string_unchecked("value is none", 13, 13); return x_1; } } -static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3() { +static lean_object* _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__2; +x_1 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__2; x_2 = lean_unsigned_to_nat(14u); x_3 = lean_unsigned_to_nat(23u); -x_4 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__1; -x_5 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__0; +x_4 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__1; +x_5 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__0; x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); return x_6; } } -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1182,8 +1157,8 @@ lean_dec(x_8); if (lean_obj_tag(x_25) == 0) { lean_object* x_26; lean_object* x_27; -x_26 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3; -x_27 = l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(x_26); +x_26 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3; +x_27 = l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(x_26); lean_ctor_set(x_6, 1, x_27); lean_ctor_set(x_6, 0, x_23); x_18 = x_6; @@ -1278,8 +1253,8 @@ lean_dec(x_31); if (lean_obj_tag(x_47) == 0) { lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3; -x_49 = l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(x_48); +x_48 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3; +x_49 = l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(x_48); x_50 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_50, 0, x_45); lean_ctor_set(x_50, 1, x_49); @@ -1328,15 +1303,22 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg(x_1, x_2, x_4); +x_5 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg(x_1, x_2, x_4); return x_5; } } -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_inc(x_4); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__1(lean_object* x_1) { _start: { uint8_t x_2; @@ -1355,7 +1337,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -1373,7 +1355,7 @@ lean_ctor_set(x_9, 1, x_8); return x_9; } } -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -1383,7 +1365,7 @@ lean_dec(x_3); return x_4; } } -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lam__4(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; @@ -1405,7 +1387,7 @@ return x_6; } } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -1415,295 +1397,295 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_16; lean_object* x_17; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_66; lean_object* x_67; lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_6, 0); -lean_inc(x_82); -x_83 = l_Lean_Syntax_findStack_x3f(x_82, x_4, x_5); -if (lean_obj_tag(x_83) == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_17; lean_object* x_18; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_67; lean_object* x_68; lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_7, 0); +lean_inc(x_83); +x_84 = l_Lean_Syntax_findStack_x3f(x_83, x_5, x_6); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_84; -x_84 = lean_box(0); -x_66 = x_84; -x_67 = x_8; -goto block_81; +lean_object* x_85; +x_85 = lean_box(0); +x_67 = x_85; +x_68 = x_9; +goto block_82; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_83, 0); -lean_inc(x_85); -lean_dec(x_83); -x_86 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg(x_6, x_85, x_8); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_84, 0); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg(x_7, x_86, x_9); +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -lean_dec_ref(x_86); -x_66 = x_87; +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec_ref(x_87); x_67 = x_88; -goto block_81; +x_68 = x_89; +goto block_82; } -block_15: +block_16: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_apply_2(x_1, x_9, x_10); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 2, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_apply_2(x_1, x_10, x_11); +x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_11); -return x_14; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; } -block_22: +block_23: { -if (lean_obj_tag(x_16) == 0) +if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; +lean_object* x_19; lean_dec(x_1); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_2); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_18); +return x_19; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_dec(x_2); -x_19 = lean_ctor_get(x_16, 0); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_ctor_get(x_19, 0); +x_20 = lean_ctor_get(x_17, 0); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_dec(x_17); +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_9 = x_20; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); x_10 = x_21; -x_11 = x_17; -goto block_15; +x_11 = x_22; +x_12 = x_18; +goto block_16; } } -block_65: -{ -lean_object* x_28; -x_28 = l_Lean_Elab_Info_fmtHover_x3f(x_26, x_23, x_27); -if (lean_obj_tag(x_28) == 0) +block_66: { lean_object* x_29; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); +x_29 = l_Lean_Elab_Info_fmtHover_x3f(x_28, x_24, x_27); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; -lean_dec_ref(x_24); -x_30 = lean_ctor_get(x_28, 1); +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec_ref(x_28); -x_16 = x_25; -x_17 = x_30; -goto block_22; +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; +lean_dec_ref(x_25); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec_ref(x_29); +x_17 = x_26; +x_18 = x_31; +goto block_23; } else { -uint8_t x_31; -lean_dec(x_25); -lean_dec(x_2); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) -{ uint8_t x_32; -x_32 = !lean_is_exclusive(x_28); +lean_dec(x_26); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_30); if (x_32 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_33 = lean_ctor_get(x_29, 0); -x_34 = lean_ctor_get(x_28, 0); +uint8_t x_33; +x_33 = !lean_is_exclusive(x_29); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_29, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); lean_dec(x_34); -x_35 = lean_ctor_get(x_33, 0); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unsigned_to_nat(120u); -x_37 = lean_unsigned_to_nat(0u); -x_38 = lean_format_pretty(x_35, x_36, x_37, x_37); -x_39 = lean_apply_2(x_1, x_38, x_24); -lean_ctor_set(x_29, 0, x_39); -return x_28; +x_37 = lean_unsigned_to_nat(120u); +x_38 = lean_unsigned_to_nat(0u); +x_39 = lean_format_pretty(x_36, x_37, x_38, x_38); +x_40 = lean_apply_2(x_1, x_39, x_25); +lean_ctor_set(x_30, 0, x_40); +return x_29; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_40 = lean_ctor_get(x_29, 0); -x_41 = lean_ctor_get(x_28, 1); -lean_inc(x_41); -lean_dec(x_28); -x_42 = lean_ctor_get(x_40, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_41 = lean_ctor_get(x_30, 0); +x_42 = lean_ctor_get(x_29, 1); lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_unsigned_to_nat(120u); -x_44 = lean_unsigned_to_nat(0u); -x_45 = lean_format_pretty(x_42, x_43, x_44, x_44); -x_46 = lean_apply_2(x_1, x_45, x_24); -lean_ctor_set(x_29, 0, x_46); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_29); -lean_ctor_set(x_47, 1, x_41); -return x_47; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_48 = lean_ctor_get(x_29, 0); -lean_inc(x_48); lean_dec(x_29); -x_49 = lean_ctor_get(x_28, 1); +x_43 = lean_ctor_get(x_41, 0); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_unsigned_to_nat(120u); +x_45 = lean_unsigned_to_nat(0u); +x_46 = lean_format_pretty(x_43, x_44, x_45, x_45); +x_47 = lean_apply_2(x_1, x_46, x_25); +lean_ctor_set(x_30, 0, x_47); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_30); +lean_ctor_set(x_48, 1, x_42); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_49 = lean_ctor_get(x_30, 0); lean_inc(x_49); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_50 = x_28; +lean_dec(x_30); +x_50 = lean_ctor_get(x_29, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_51 = x_29; } else { - lean_dec_ref(x_28); - x_50 = lean_box(0); -} -x_51 = lean_ctor_get(x_48, 0); -lean_inc(x_51); -lean_dec(x_48); -x_52 = lean_unsigned_to_nat(120u); -x_53 = lean_unsigned_to_nat(0u); -x_54 = lean_format_pretty(x_51, x_52, x_53, x_53); -x_55 = lean_apply_2(x_1, x_54, x_24); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_55); -if (lean_is_scalar(x_50)) { - x_57 = lean_alloc_ctor(0, 2, 0); -} else { - x_57 = x_50; + lean_dec_ref(x_29); + x_51 = lean_box(0); } +x_52 = lean_ctor_get(x_49, 0); +lean_inc(x_52); +lean_dec(x_49); +x_53 = lean_unsigned_to_nat(120u); +x_54 = lean_unsigned_to_nat(0u); +x_55 = lean_format_pretty(x_52, x_53, x_54, x_54); +x_56 = lean_apply_2(x_1, x_55, x_25); +x_57 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_49); -return x_57; +if (lean_is_scalar(x_51)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_51; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_50); +return x_58; } } } else { -uint8_t x_58; -lean_dec(x_25); -lean_dec_ref(x_24); +uint8_t x_59; +lean_dec(x_26); +lean_dec_ref(x_25); lean_dec(x_2); lean_dec(x_1); -x_58 = !lean_is_exclusive(x_28); -if (x_58 == 0) +x_59 = !lean_is_exclusive(x_29); +if (x_59 == 0) { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_28, 0); -x_60 = l_Lean_Server_RequestError_ofIoError(x_59); -lean_ctor_set(x_28, 0, x_60); -return x_28; +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_29, 0); +x_61 = l_Lean_Server_RequestError_ofIoError(x_60); +lean_ctor_set(x_29, 0, x_61); +return x_29; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_28, 0); -x_62 = lean_ctor_get(x_28, 1); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_29, 0); +x_63 = lean_ctor_get(x_29, 1); +lean_inc(x_63); lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_28); -x_63 = l_Lean_Server_RequestError_ofIoError(x_61); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -return x_64; +lean_dec(x_29); +x_64 = l_Lean_Server_RequestError_ofIoError(x_62); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +return x_65; } } } -block_81: +block_82: { -lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_68 = l_Lean_Server_Snapshots_Snapshot_infoTree(x_6); -x_69 = 0; -x_70 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_68, x_3, x_69, x_69, x_69); -if (lean_obj_tag(x_70) == 0) +lean_object* x_69; uint8_t x_70; lean_object* x_71; +x_69 = l_Lean_Server_Snapshots_Snapshot_infoTree(x_7); +x_70 = 0; +x_71 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1(x_69, x_3, x_70, x_4); +if (lean_obj_tag(x_71) == 0) { -x_16 = x_66; x_17 = x_67; -goto block_22; +x_18 = x_68; +goto block_23; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -lean_dec(x_70); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; x_72 = lean_ctor_get(x_71, 0); -lean_inc_ref(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc_ref(x_73); +lean_inc(x_72); lean_dec(x_71); -x_74 = l_Lean_Elab_Info_range_x3f(x_73); -if (lean_obj_tag(x_74) == 0) +x_73 = lean_ctor_get(x_72, 0); +lean_inc_ref(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc_ref(x_74); +lean_dec(x_72); +x_75 = l_Lean_Elab_Info_range_x3f(x_74); +if (lean_obj_tag(x_75) == 0) { +lean_dec_ref(x_74); lean_dec_ref(x_73); -lean_dec_ref(x_72); -x_16 = x_66; x_17 = x_67; -goto block_22; +x_18 = x_68; +goto block_23; } else { -if (lean_obj_tag(x_66) == 0) +if (lean_obj_tag(x_67) == 0) { -lean_object* x_75; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -lean_dec(x_74); -x_23 = x_73; -x_24 = x_75; -x_25 = x_66; -x_26 = x_72; -x_27 = x_67; -goto block_65; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_76 = lean_ctor_get(x_66, 0); +lean_object* x_76; +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -x_77 = lean_ctor_get(x_74, 0); -lean_inc(x_77); -lean_dec(x_74); -x_78 = lean_ctor_get(x_76, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_76, 1); -lean_inc(x_79); -lean_dec(x_76); -x_80 = l_String_Range_includes(x_79, x_77, x_69, x_69); -if (x_80 == 0) -{ -lean_dec(x_77); -lean_dec_ref(x_73); -lean_dec_ref(x_72); -lean_dec(x_66); -lean_dec(x_2); -x_9 = x_78; -x_10 = x_79; -x_11 = x_67; -goto block_15; +lean_dec(x_75); +x_24 = x_74; +x_25 = x_76; +x_26 = x_67; +x_27 = x_68; +x_28 = x_73; +goto block_66; } else { -lean_dec(x_79); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_77 = lean_ctor_get(x_67, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_75, 0); +lean_inc(x_78); +lean_dec(x_75); +x_79 = lean_ctor_get(x_77, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +lean_dec(x_77); +x_81 = l_String_Range_includes(x_80, x_78, x_70, x_70); +if (x_81 == 0) +{ lean_dec(x_78); -x_23 = x_73; -x_24 = x_77; -x_25 = x_66; -x_26 = x_72; -x_27 = x_67; -goto block_65; +lean_dec_ref(x_74); +lean_dec_ref(x_73); +lean_dec(x_67); +lean_dec(x_2); +x_10 = x_79; +x_11 = x_80; +x_12 = x_68; +goto block_16; +} +else +{ +lean_dec(x_80); +lean_dec(x_79); +x_24 = x_74; +x_25 = x_78; +x_26 = x_67; +x_27 = x_68; +x_28 = x_73; +goto block_66; } } } @@ -1714,7 +1696,7 @@ goto block_65; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_4 = l_Lean_Server_RequestM_readDoc___at___Lean_Server_RequestM_withWaitFindSnapAtPos_spec__0(x_2, x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); @@ -1732,1101 +1714,1564 @@ lean_dec_ref(x_7); x_10 = lean_ctor_get(x_1, 1); lean_inc_ref(x_10); lean_dec_ref(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__0___boxed), 1, 0); +x_11 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__0___boxed), 4, 0); +x_12 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__1___boxed), 1, 0); lean_inc_ref(x_9); -x_12 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__1), 3, 1); -lean_closure_set(x_12, 0, x_9); -x_13 = l_Lean_FileMap_lspPosToUtf8Pos(x_9, x_10); +x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__2), 3, 1); +lean_closure_set(x_13, 0, x_9); +x_14 = l_Lean_FileMap_lspPosToUtf8Pos(x_9, x_10); lean_dec_ref(x_9); -lean_inc(x_13); -x_14 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__2___boxed), 2, 1); -lean_closure_set(x_14, 0, x_13); -lean_inc(x_13); +lean_inc(x_14); x_15 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__3___boxed), 2, 1); -lean_closure_set(x_15, 0, x_13); -x_16 = lean_box(0); -x_17 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__4___boxed), 3, 1); -lean_closure_set(x_17, 0, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__5___boxed), 8, 5); -lean_closure_set(x_18, 0, x_12); -lean_closure_set(x_18, 1, x_16); -lean_closure_set(x_18, 2, x_13); -lean_closure_set(x_18, 3, x_15); -lean_closure_set(x_18, 4, x_11); -x_19 = l_Lean_Server_RequestM_withWaitFindSnap___redArg(x_5, x_14, x_17, x_18, x_2, x_8); -return x_19; +lean_closure_set(x_15, 0, x_14); +lean_inc(x_14); +x_16 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__4___boxed), 2, 1); +lean_closure_set(x_16, 0, x_14); +x_17 = lean_box(0); +x_18 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__5___boxed), 3, 1); +lean_closure_set(x_18, 0, x_17); +x_19 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover___lam__6___boxed), 9, 6); +lean_closure_set(x_19, 0, x_13); +lean_closure_set(x_19, 1, x_17); +lean_closure_set(x_19, 2, x_14); +lean_closure_set(x_19, 3, x_11); +lean_closure_set(x_19, 4, x_16); +lean_closure_set(x_19, 5, x_12); +x_20 = l_Lean_Server_RequestM_withWaitFindSnap___redArg(x_5, x_15, x_18, x_19, x_2, x_8); +return x_20; } } -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg(x_1, x_2, x_3); +x_4 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg(x_1, x_2, x_3); lean_dec_ref(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0(x_1, x_2, x_3, x_4); +x_5 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1(x_1, x_2, x_3, x_4); lean_dec_ref(x_3); lean_dec_ref(x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__0___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Server_FileWorker_handleHover___lam__0(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__1___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Server_FileWorker_handleHover___lam__0(x_1); +x_2 = l_Lean_Server_FileWorker_handleHover___lam__1(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Server_FileWorker_handleHover___lam__2(x_1, x_2); -lean_dec_ref(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l_Lean_Server_FileWorker_handleHover___lam__3(x_1, x_2); +lean_dec_ref(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Server_FileWorker_handleHover___lam__4(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_FileWorker_handleHover___lam__4(x_1, x_2, x_3); +x_4 = l_Lean_Server_FileWorker_handleHover___lam__5(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Server_FileWorker_handleHover___lam__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec_ref(x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Meta_isInstance___redArg(x_1, x_5, x_6); -return x_7; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(1u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_3)) { -case 4: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec_ref(x_3); -lean_inc(x_5); -x_6 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___lam__0___boxed), 6, 1); -lean_closure_set(x_6, 0, x_5); -x_7 = l_Lean_Elab_Info_lctx(x_1); -x_8 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_2, x_7, x_6, x_4); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_unbox(x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -uint8_t x_11; -lean_dec(x_5); -x_11 = !lean_is_exclusive(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_8, 0); -lean_dec(x_12); -x_13 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; -lean_ctor_set(x_8, 0, x_13); -return x_8; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_dec(x_8); -x_15 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_8); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_8, 0); -lean_dec(x_18); -x_19 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1; -x_20 = lean_array_push(x_19, x_5); -lean_ctor_set(x_8, 0, x_20); -return x_8; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_8, 1); -lean_inc(x_21); -lean_dec(x_8); -x_22 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1; -x_23 = lean_array_push(x_22, x_5); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; -} -} -} -else -{ -uint8_t x_25; -lean_dec(x_5); -x_25 = !lean_is_exclusive(x_8); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_8, 0); -x_27 = l_Lean_Server_RequestError_ofIoError(x_26); -lean_ctor_set(x_8, 0, x_27); -return x_8; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_8, 0); -x_29 = lean_ctor_get(x_8, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_8); -x_30 = l_Lean_Server_RequestError_ofIoError(x_28); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -} -case 5: -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_3, 0); -lean_inc_ref(x_32); -x_33 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_33); -lean_dec_ref(x_3); -lean_inc_ref(x_2); -x_34 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(x_1, x_2, x_32, x_4); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec_ref(x_34); -x_37 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(x_1, x_2, x_33, x_36); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 0); -x_40 = l_Array_append___redArg(x_35, x_39); -lean_dec(x_39); -lean_ctor_set(x_37, 0, x_40); -return x_37; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_37, 0); -x_42 = lean_ctor_get(x_37, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_37); -x_43 = l_Array_append___redArg(x_35, x_41); -lean_dec(x_41); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; -} -} -else -{ -lean_dec(x_35); -return x_37; -} -} -else -{ -lean_dec_ref(x_33); -lean_dec_ref(x_2); -return x_34; -} -} -case 10: -{ -lean_object* x_45; -x_45 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_45); -lean_dec_ref(x_3); -x_3 = x_45; -goto _start; -} -default: -{ -lean_object* x_47; lean_object* x_48; -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_47 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_4); -return x_48; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(x_1, x_2, x_3, x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(x_1, x_2, x_3, x_4); -lean_dec_ref(x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances(x_1, x_2, x_3, x_4, x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = lean_usize_dec_lt(x_7, x_6); -if (x_10 == 0) -{ -lean_object* x_11; -lean_dec_ref(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_array_uget(x_5, x_7); -lean_inc(x_1); -lean_inc_ref(x_2); -x_13 = lean_apply_2(x_1, x_2, x_12); -lean_inc_ref(x_4); -lean_inc_ref(x_3); -x_14 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_3, x_4, x_13, x_9); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec_ref(x_14); -x_17 = l_Array_append___redArg(x_8, x_15); -lean_dec(x_15); -x_18 = 1; -x_19 = lean_usize_add(x_7, x_18); -x_7 = x_19; -x_8 = x_17; -x_9 = x_16; -goto _start; -} -else -{ -uint8_t x_21; -lean_dec_ref(x_8); -lean_dec_ref(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_14, 0); -x_23 = l_Lean_Server_RequestError_ofIoError(x_22); -lean_ctor_set(x_14, 0, x_23); -return x_14; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_14, 0); -x_25 = lean_ctor_get(x_14, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_14); -x_26 = l_Lean_Server_RequestError_ofIoError(x_24); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -return x_11; -} -} -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_3, x_4); -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1(x_1, x_6); -lean_dec_ref(x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_3, x_8); -x_3 = x_9; -goto _start; -} -else -{ -return x_7; -} -} -else -{ -uint8_t x_11; -x_11 = 0; -return x_11; -} -} -} -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_3, x_4); -if (x_5 == 0) -{ -uint8_t x_6; uint8_t x_7; lean_object* x_12; -x_6 = 1; -x_12 = lean_array_uget(x_2, x_3); -if (lean_obj_tag(x_12) == 1) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); -lean_inc_ref(x_13); -lean_dec_ref(x_12); -switch (lean_obj_tag(x_13)) { -case 1: -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_ctor_get(x_13, 0); -lean_inc_ref(x_14); -lean_dec_ref(x_13); -x_15 = lean_ctor_get(x_14, 3); -lean_inc_ref(x_15); -lean_dec_ref(x_14); -x_16 = lean_expr_eqv(x_15, x_1); -lean_dec_ref(x_15); -x_7 = x_16; -goto block_11; -} -case 4: -{ -lean_dec_ref(x_13); -return x_6; -} -default: -{ -lean_dec_ref(x_13); -x_7 = x_5; -goto block_11; -} -} -} -else -{ -lean_dec_ref(x_12); -x_7 = x_5; -goto block_11; -} -block_11: -{ -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_3, x_8); -x_3 = x_9; -goto _start; -} -else -{ -return x_6; -} -} -} -else -{ -uint8_t x_17; -x_17 = 0; -return x_17; -} -} -} -LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_array_get_size(x_3); -x_6 = lean_nat_dec_lt(x_4, x_5); -if (x_6 == 0) -{ -lean_dec(x_5); -return x_6; -} -else -{ -if (x_6 == 0) -{ -lean_dec(x_5); -return x_6; -} -else -{ -size_t x_7; size_t x_8; uint8_t x_9; -x_7 = 0; -x_8 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_9 = l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__1(x_1, x_3, x_7, x_8); -return x_9; -} -} -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_2, 0); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_array_get_size(x_10); -x_13 = lean_nat_dec_lt(x_11, x_12); -if (x_13 == 0) -{ -lean_dec(x_12); -return x_13; -} -else -{ -if (x_13 == 0) -{ -lean_dec(x_12); -return x_13; -} -else -{ -size_t x_14; size_t x_15; uint8_t x_16; -x_14 = 0; -x_15 = lean_usize_of_nat(x_12); -lean_dec(x_12); -x_16 = l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2(x_1, x_10, x_14, x_15); -return x_16; -} -} -} -} -} -LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_2, 1); -x_5 = l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1(x_1, x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_get_size(x_4); -x_8 = lean_nat_dec_lt(x_6, x_7); -if (x_8 == 0) -{ -lean_dec(x_7); -return x_5; -} -else -{ -if (x_8 == 0) -{ -lean_dec(x_7); -return x_5; -} -else -{ -size_t x_9; size_t x_10; uint8_t x_11; -x_9 = 0; -x_10 = lean_usize_of_nat(x_7); -lean_dec(x_7); -x_11 = l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2(x_1, x_4, x_9, x_10); -return x_11; -} -} -} -else -{ -return x_5; -} -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; -x_5 = lean_box(0); -x_6 = lean_apply_3(x_1, x_5, x_3, x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lam__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Elab_Info_range_x3f(x_3); -if (lean_obj_tag(x_10) == 0) +x_10 = l_Lean_Server_FileWorker_handleHover___lam__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec_ref(x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: { -lean_object* x_11; lean_object* x_12; +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_8; lean_dec_ref(x_2); -x_11 = lean_box(0); -x_12 = l_Lean_Server_locationLinksFromDecl(x_1, x_4, x_11, x_5, x_6, x_7, x_8, x_9); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_16; lean_object* x_17; +x_9 = lean_ctor_get(x_3, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + x_11 = x_3; +} else { + lean_dec_ref(x_3); + x_11 = lean_box(0); +} +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc_ref(x_17); +lean_dec(x_16); +if (lean_obj_tag(x_17) == 1) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_17, 0); +lean_inc_ref(x_18); +lean_dec_ref(x_17); +lean_inc_ref(x_2); +x_19 = l_Lean_Server_isInstanceProjectionInfoFor___redArg(x_1, x_2, x_18, x_5, x_6, x_7); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec_ref(x_19); +x_12 = x_22; +goto block_15; +} +else +{ +lean_object* x_23; +lean_dec(x_11); +lean_dec(x_9); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec_ref(x_19); +x_3 = x_10; +x_7 = x_23; +goto _start; +} +} +else +{ +lean_dec_ref(x_17); +x_12 = x_7; +goto block_15; +} +block_15: +{ +lean_object* x_13; +if (lean_is_scalar(x_11)) { + x_13 = lean_alloc_ctor(1, 2, 0); +} else { + x_13 = x_11; +} +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_4); +x_3 = x_10; +x_4 = x_13; +x_7 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg(x_1, x_2, x_3, x_4, x_6, x_8, x_9); +return x_10; +} +} +static lean_object* _init_l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_instMonadEIO(lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg___closed__0; +x_4 = lean_box(0); +x_5 = l_instInhabitedOfMonad___redArg(x_3, x_4); +x_6 = lean_panic_fn(x_5, x_1); +x_7 = lean_apply_1(x_6, x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg(x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_List_reverse___redArg(x_5); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_12 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg(x_1, x_2, x_3, x_10, x_6); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec_ref(x_12); +lean_ctor_set(x_4, 1, x_5); +lean_ctor_set(x_4, 0, x_13); +{ +lean_object* _tmp_3 = x_11; +lean_object* _tmp_4 = x_4; +lean_object* _tmp_5 = x_14; +x_4 = _tmp_3; +x_5 = _tmp_4; +x_6 = _tmp_5; +} +goto _start; +} +else +{ +uint8_t x_16; +lean_free_object(x_4); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ return x_12; } else { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_10); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 0); -x_15 = l_String_Range_toLspRange(x_2, x_14); -lean_ctor_set(x_10, 0, x_15); -x_16 = l_Lean_Server_locationLinksFromDecl(x_1, x_4, x_10, x_5, x_6, x_7, x_8, x_9); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = l_String_Range_toLspRange(x_2, x_17); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Server_locationLinksFromDecl(x_1, x_4, x_19, x_5, x_6, x_7, x_8, x_9); -return x_20; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; uint8_t x_28; uint8_t x_52; uint8_t x_53; -x_52 = 0; -x_53 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_5, x_52); -if (x_53 == 0) -{ -x_28 = x_53; -goto block_51; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_54 = lean_ctor_get(x_4, 0); -lean_inc_ref(x_54); -x_55 = lean_ctor_get(x_54, 0); -lean_inc_ref(x_55); -lean_dec_ref(x_54); -x_56 = lean_ctor_get(x_6, 1); -lean_inc(x_56); -x_57 = l_Lean_Syntax_getKind(x_56); -x_58 = l_Lean_Environment_contains(x_55, x_57, x_53); -x_28 = x_58; -goto block_51; -} -block_27: -{ -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -lean_dec_ref(x_6); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -x_10 = lean_box(0); -x_11 = lean_apply_3(x_1, x_10, x_7, x_8); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec_ref(x_7); -lean_dec(x_1); -x_12 = lean_ctor_get(x_6, 0); -lean_inc(x_12); -lean_dec_ref(x_6); -x_13 = l_Lean_Elab_Info_lctx(x_2); -x_14 = lean_apply_2(x_3, x_2, x_12); -x_15 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_4, x_13, x_14, x_8); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -return x_15; -} -else -{ lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); lean_inc(x_18); lean_inc(x_17); -lean_dec(x_15); -x_19 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_12); +x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); return x_19; } } -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_15); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_15, 0); -x_22 = l_Lean_Server_RequestError_ofIoError(x_21); -lean_ctor_set(x_15, 0, x_22); -return x_15; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_15, 0); -x_24 = lean_ctor_get(x_15, 1); -lean_inc(x_24); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_4, 0); +x_21 = lean_ctor_get(x_4, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_22 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg(x_1, x_2, x_3, x_20, x_6); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_15); -x_25 = l_Lean_Server_RequestError_ofIoError(x_23); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; -} -} -} -} -block_51: -{ -if (x_28 == 0) -{ -uint8_t x_29; uint8_t x_30; -x_29 = 1; -x_30 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_5, x_29); -if (x_30 == 0) -{ -x_9 = x_30; -goto block_27; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec_ref(x_22); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_5); +x_4 = x_21; +x_5 = x_25; +x_6 = x_24; +goto _start; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_4, 0); -lean_inc_ref(x_31); -x_32 = lean_ctor_get(x_31, 0); -lean_inc_ref(x_32); -lean_dec_ref(x_31); -x_33 = lean_ctor_get(x_6, 0); -lean_inc(x_33); -x_34 = l_Lean_Environment_contains(x_32, x_33, x_30); -x_9 = x_34; -goto block_27; -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec_ref(x_7); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_21); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_35 = lean_ctor_get(x_6, 1); +x_27 = lean_ctor_get(x_22, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_29 = x_22; +} else { + lean_dec_ref(x_22); + x_29 = lean_box(0); +} +if (lean_is_scalar(x_29)) { + x_30 = lean_alloc_ctor(1, 2, 0); +} else { + x_30 = x_29; +} +lean_ctor_set(x_30, 0, x_27); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2___redArg(x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Server.InfoUtils", 21, 21); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Elab.InfoTree.visitM.go", 28, 28); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("unexpected context-free info tree node", 38, 38); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__2; +x_2 = lean_unsigned_to_nat(21u); +x_3 = lean_unsigned_to_nat(62u); +x_4 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__1; +x_5 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__0; +x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +if (lean_obj_tag(x_3) == 0) +{ +switch (lean_obj_tag(x_4)) { +case 0: +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_4, 0); +lean_inc_ref(x_15); +x_16 = lean_ctor_get(x_4, 1); +lean_inc_ref(x_16); +lean_dec_ref(x_4); +x_6 = x_3; +x_7 = x_15; +x_8 = x_16; +goto block_11; +} +case 1: +{ +lean_object* x_17; lean_object* x_18; +lean_dec_ref(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_17 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__3; +x_18 = l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg(x_17, x_5); +return x_18; +} +default: +{ +lean_dec_ref(x_4); +lean_dec(x_2); +lean_dec(x_1); +goto block_14; +} +} +} +else +{ +switch (lean_obj_tag(x_4)) { +case 0: +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_4, 0); +lean_inc_ref(x_19); +x_20 = lean_ctor_get(x_4, 1); +lean_inc_ref(x_20); +lean_dec_ref(x_4); +x_6 = x_3; +x_7 = x_19; +x_8 = x_20; +goto block_11; +} +case 1: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_3, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_4, 0); +lean_inc_ref(x_22); +x_23 = lean_ctor_get(x_4, 1); +lean_inc_ref(x_23); +lean_dec_ref(x_4); +lean_inc(x_1); +lean_inc_ref(x_23); +lean_inc_ref(x_22); +lean_inc(x_21); +x_24 = lean_apply_4(x_1, x_21, x_22, x_23, x_5); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +uint8_t x_27; +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_3); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_3, 0); +lean_dec(x_28); +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_dec_ref(x_24); +x_30 = lean_box(0); +x_31 = lean_apply_5(x_2, x_21, x_22, x_23, x_30, x_29); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_ctor_set(x_3, 0, x_33); +lean_ctor_set(x_31, 0, x_3); +return x_31; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_31, 0); +x_35 = lean_ctor_get(x_31, 1); lean_inc(x_35); -lean_dec_ref(x_6); -x_36 = l_Lean_Elab_Info_lctx(x_2); -x_37 = l_Lean_Syntax_getKind(x_35); -x_38 = lean_apply_2(x_3, x_2, x_37); -x_39 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_4, x_36, x_38, x_8); -if (lean_obj_tag(x_39) == 0) +lean_inc(x_34); +lean_dec(x_31); +lean_ctor_set(x_3, 0, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_3); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +uint8_t x_37; +lean_free_object(x_3); +x_37 = !lean_is_exclusive(x_31); +if (x_37 == 0) { -return x_39; +return x_31; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_31, 0); +x_39 = lean_ctor_get(x_31, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_31); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} } else { lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); +lean_dec(x_3); +x_41 = lean_ctor_get(x_24, 1); lean_inc(x_41); -lean_dec(x_39); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_dec_ref(x_24); +x_42 = lean_box(0); +x_43 = lean_apply_5(x_2, x_21, x_22, x_23, x_42, x_41); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_44); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_46; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_43, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_51 = x_43; +} else { + lean_dec_ref(x_43); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} } } else { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_39); -if (x_44 == 0) +lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_24, 1); +lean_inc(x_53); +lean_dec_ref(x_24); +lean_inc(x_3); +x_54 = l_Lean_Elab_Info_updateContext_x3f(x_3, x_22); +x_55 = !lean_is_exclusive(x_3); +if (x_55 == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_39, 0); -x_46 = l_Lean_Server_RequestError_ofIoError(x_45); -lean_ctor_set(x_39, 0, x_46); -return x_39; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_3, 0); +lean_dec(x_56); +x_57 = l_Lean_PersistentArray_toList___redArg(x_23); +x_58 = lean_box(0); +lean_inc(x_2); +x_59 = l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2___redArg(x_1, x_2, x_54, x_57, x_58, x_53); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +x_62 = lean_apply_5(x_2, x_21, x_22, x_23, x_60, x_61); +if (lean_obj_tag(x_62) == 0) +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_62, 0); +lean_ctor_set(x_3, 0, x_64); +lean_ctor_set(x_62, 0, x_3); +return x_62; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_39, 0); -x_48 = lean_ctor_get(x_39, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_39); -x_49 = l_Lean_Server_RequestError_ofIoError(x_47); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -return x_50; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_62, 0); +x_66 = lean_ctor_get(x_62, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_62); +lean_ctor_set(x_3, 0, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_3); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +else +{ +uint8_t x_68; +lean_free_object(x_3); +x_68 = !lean_is_exclusive(x_62); +if (x_68 == 0) +{ +return x_62; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_62, 0); +x_70 = lean_ctor_get(x_62, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_62); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +uint8_t x_72; +lean_free_object(x_3); +lean_dec_ref(x_23); +lean_dec_ref(x_22); +lean_dec(x_21); +lean_dec(x_2); +x_72 = !lean_is_exclusive(x_59); +if (x_72 == 0) +{ +return x_59; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_59, 0); +x_74 = lean_ctor_get(x_59, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_59); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_3); +x_76 = l_Lean_PersistentArray_toList___redArg(x_23); +x_77 = lean_box(0); +lean_inc(x_2); +x_78 = l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__2___redArg(x_1, x_2, x_54, x_76, x_77, x_53); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec_ref(x_78); +x_81 = lean_apply_5(x_2, x_21, x_22, x_23, x_79, x_80); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_84 = x_81; +} else { + lean_dec_ref(x_81); + x_84 = lean_box(0); +} +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_82); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_83); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_81, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_81, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_89 = x_81; +} else { + lean_dec_ref(x_81); + x_89 = lean_box(0); +} +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; +} +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec_ref(x_23); +lean_dec_ref(x_22); +lean_dec(x_21); +lean_dec(x_2); +x_91 = lean_ctor_get(x_78, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_78, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_93 = x_78; +} else { + lean_dec_ref(x_78); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); +} else { + x_94 = x_93; +} +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); +return x_94; } } } } +else +{ +uint8_t x_95; +lean_dec_ref(x_23); +lean_dec_ref(x_22); +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_95 = !lean_is_exclusive(x_24); +if (x_95 == 0) +{ +return x_24; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_24, 0); +x_97 = lean_ctor_get(x_24, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_24); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_locationLinksOfInfo___lam__4(lean_object* x_1, lean_object* x_2) { +} +default: +{ +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +goto block_14; +} +} +} +block_11: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f(x_7, x_6); +x_3 = x_9; +x_4 = x_8; +goto _start; +} +block_14: +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_5); +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_2) == 1) -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_3, 3); -if (lean_obj_tag(x_4) == 1) -{ -uint8_t x_5; -x_5 = lean_ctor_get_uint8(x_3, sizeof(void*)*4); -if (x_5 == 0) -{ -return x_5; -} -else -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_name_eq(x_6, x_1); +lean_object* x_7; +x_7 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg(x_2, x_3, x_4, x_5, x_6); return x_7; } } -else +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -uint8_t x_8; -x_8 = 0; -return x_8; +uint8_t x_5; lean_object* x_6; lean_object* x_7; +x_5 = 1; +x_6 = lean_box(x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; } } -else +LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__1(lean_object* x_1, lean_object* x_2) { +_start: { -uint8_t x_9; -x_9 = 0; -return x_9; +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5(x_4, x_1); +lean_dec_ref(x_4); +return x_5; } } -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__0() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(1u); +x_1 = lean_unsigned_to_nat(0u); x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__1() { _start: { -if (lean_obj_tag(x_1) == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("null", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2() { +_start: { -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec(x_2); -goto block_13; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__1; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Elab", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Tactic", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("evalWithAnnotateState", 21, 21); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__6; +x_2 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__5; +x_3 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__4; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__0; +x_10 = l_List_filterMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__1(x_7, x_9); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_11 = lean_apply_5(x_1, x_4, x_5, x_6, x_10, x_8); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_14 = x_11; +} else { + lean_dec_ref(x_11); + x_14 = lean_box(0); +} +x_24 = lean_box(0); +lean_inc(x_12); +x_25 = l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__2(x_12, x_24); +x_26 = l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3(x_25); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__1___boxed), 2, 1); +lean_closure_set(x_27, 0, x_26); +x_28 = l_List_find_x3f___redArg(x_27, x_12); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_46; lean_object* x_54; uint8_t x_55; +x_29 = l_Lean_Elab_Info_stx(x_5); +x_54 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2; +lean_inc(x_29); +x_55 = l_Lean_Syntax_isOfKind(x_29, x_54); +if (x_55 == 0) +{ +lean_object* x_56; +lean_inc_ref(x_5); +x_56 = l_Lean_Elab_Info_toElabInfo_x3f(x_5); +if (lean_obj_tag(x_56) == 0) +{ +x_46 = x_55; +goto block_53; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_1, 0); -lean_inc(x_14); -lean_dec(x_1); -x_15 = l_Lean_Elab_InfoTree_findInfo_x3f(x_2, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_dec(x_4); -lean_dec_ref(x_3); -goto block_13; +lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +lean_dec(x_57); +x_59 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__7; +x_60 = lean_name_eq(x_58, x_59); +lean_dec(x_58); +x_46 = x_60; +goto block_53; +} } else { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Elab_Info_range_x3f(x_16); -lean_dec(x_16); +x_46 = x_55; +goto block_53; +} +block_45: +{ +uint8_t x_32; lean_object* x_33; +x_32 = 1; +x_33 = l_Lean_Syntax_getRange_x3f(x_29, x_32); +lean_dec(x_29); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; +lean_dec(x_14); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_28); +lean_ctor_set(x_34, 1, x_13); +return x_34; +} +else +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_String_Range_contains(x_35, x_2, x_3); +if (x_36 == 0) +{ +lean_object* x_37; +lean_dec(x_35); +lean_dec(x_14); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_28); +lean_ctor_set(x_37, 1, x_13); +return x_37; +} +else +{ +if (x_31 == 0) +{ +lean_object* x_38; +lean_dec(x_35); +lean_dec(x_14); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_28); +lean_ctor_set(x_38, 1, x_13); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_35, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +lean_dec(x_35); +x_41 = lean_nat_dec_eq(x_40, x_2); +x_42 = lean_nat_sub(x_40, x_39); +lean_dec(x_39); +lean_dec(x_40); +if (lean_obj_tag(x_5) == 1) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_5, 0); +lean_inc_ref(x_43); +x_44 = lean_ctor_get(x_43, 3); +lean_inc_ref(x_44); +lean_dec_ref(x_43); +if (lean_obj_tag(x_44) == 1) +{ +lean_dec_ref(x_44); +x_15 = x_42; +x_16 = x_41; +x_17 = x_31; +goto block_23; +} +else +{ +lean_dec_ref(x_44); +x_15 = x_42; +x_16 = x_41; +x_17 = x_30; +goto block_23; +} +} +else +{ +x_15 = x_42; +x_16 = x_41; +x_17 = x_30; +goto block_23; +} +} +} +} +} +block_53: +{ +if (x_46 == 0) +{ +switch (lean_obj_tag(x_5)) { +case 5: +{ +uint8_t x_47; +x_47 = 1; +x_30 = x_46; +x_31 = x_47; +goto block_45; +} +case 6: +{ +uint8_t x_48; +x_48 = 1; +x_30 = x_46; +x_31 = x_48; +goto block_45; +} +case 7: +{ +uint8_t x_49; +x_49 = 1; +x_30 = x_46; +x_31 = x_49; +goto block_45; +} +default: +{ +lean_object* x_50; +lean_inc_ref(x_5); +x_50 = l_Lean_Elab_Info_toElabInfo_x3f(x_5); +if (lean_obj_tag(x_50) == 0) +{ +x_30 = x_46; +x_31 = x_46; +goto block_45; +} +else +{ +uint8_t x_51; +lean_dec(x_50); +x_51 = 1; +x_30 = x_46; +x_31 = x_51; +goto block_45; +} +} +} +} +else +{ +lean_object* x_52; +lean_dec(x_29); +lean_dec(x_14); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_28); +lean_ctor_set(x_52, 1, x_13); +return x_52; +} +} +} +else +{ +lean_object* x_61; +lean_dec(x_14); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_28); +lean_ctor_set(x_61, 1, x_13); +return x_61; +} +block_23: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_16); +lean_ctor_set_uint8(x_18, sizeof(void*)*1 + 1, x_17); +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_5); +lean_ctor_set(x_19, 2, x_6); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +if (lean_is_scalar(x_14)) { + x_22 = lean_alloc_ctor(0, 2, 0); +} else { + x_22 = x_14; +} +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_13); +return x_22; +} +} +else +{ +uint8_t x_62; +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +x_62 = !lean_is_exclusive(x_11); +if (x_62 == 0) +{ +return x_11; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_11, 0); +x_64 = lean_ctor_get(x_11, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_11); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__0___boxed), 4, 0); +x_7 = lean_box(x_3); +x_8 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___boxed), 8, 3); +lean_closure_set(x_8, 0, x_4); +lean_closure_set(x_8, 1, x_2); +lean_closure_set(x_8, 2, x_7); +x_9 = lean_box(0); +x_10 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg(x_6, x_8, x_9, x_1, x_5); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_13 = x_10; +} else { + lean_dec_ref(x_10); + x_13 = lean_box(0); +} +if (lean_obj_tag(x_11) == 0) +{ +goto block_16; +} +else +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); if (lean_obj_tag(x_17) == 0) { -lean_dec(x_4); -lean_dec_ref(x_3); -goto block_13; +goto block_16; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_26; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -lean_dec(x_17); -lean_inc_ref(x_3); -x_19 = l_String_Range_toLspRange(x_3, x_18); -x_26 = l_Lean_Elab_Info_range_x3f(x_5); -if (lean_obj_tag(x_26) == 0) +uint8_t x_18; +lean_dec(x_13); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 1); +x_22 = lean_ctor_get(x_19, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc_ref(x_23); +lean_ctor_set(x_17, 0, x_21); +if (lean_obj_tag(x_23) == 1) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_23, 0); +lean_inc_ref(x_24); +lean_dec_ref(x_23); +x_25 = lean_ctor_get(x_24, 3); +lean_inc_ref(x_25); +lean_dec_ref(x_24); +x_26 = l_Lean_Expr_isSyntheticSorry(x_25); +lean_dec_ref(x_25); +if (x_26 == 0) +{ +lean_ctor_set(x_19, 1, x_12); +lean_ctor_set(x_19, 0, x_17); +return x_19; +} +else { lean_object* x_27; -lean_dec_ref(x_3); +lean_dec_ref(x_17); x_27 = lean_box(0); -x_20 = x_27; -goto block_25; +lean_ctor_set(x_19, 1, x_12); +lean_ctor_set(x_19, 0, x_27); +return x_19; +} } else { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 0); -x_30 = l_String_Range_toLspRange(x_3, x_29); -lean_ctor_set(x_26, 0, x_30); -x_20 = x_26; -goto block_25; +lean_dec_ref(x_23); +lean_ctor_set(x_19, 1, x_12); +lean_ctor_set(x_19, 0, x_17); +return x_19; +} } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_26, 0); -lean_inc(x_31); -lean_dec(x_26); -x_32 = l_String_Range_toLspRange(x_3, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_20 = x_33; -goto block_25; -} -} -block_25: +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_ctor_get(x_28, 1); +lean_inc_ref(x_29); +lean_ctor_set(x_17, 0, x_28); +if (lean_obj_tag(x_29) == 1) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_inc_ref(x_19); -x_21 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_4); -lean_ctor_set(x_21, 2, x_19); -lean_ctor_set(x_21, 3, x_19); -x_22 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_23 = lean_array_push(x_22, x_21); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_10); -return x_24; -} -} -} -} -block_13: +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_29, 0); +lean_inc_ref(x_30); +lean_dec_ref(x_29); +x_31 = lean_ctor_get(x_30, 3); +lean_inc_ref(x_31); +lean_dec_ref(x_30); +x_32 = l_Lean_Expr_isSyntheticSorry(x_31); +lean_dec_ref(x_31); +if (x_32 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -return x_12; +lean_object* x_33; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_17); +lean_ctor_set(x_33, 1, x_12); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec_ref(x_17); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_12); +return x_35; +} +} +else +{ +lean_object* x_36; +lean_dec_ref(x_29); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_17); +lean_ctor_set(x_36, 1, x_12); +return x_36; } } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_17, 0); +lean_inc(x_37); +lean_dec(x_17); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +x_40 = lean_ctor_get(x_38, 1); +lean_inc_ref(x_40); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_38); +if (lean_obj_tag(x_40) == 1) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_40, 0); +lean_inc_ref(x_42); +lean_dec_ref(x_40); +x_43 = lean_ctor_get(x_42, 3); +lean_inc_ref(x_43); +lean_dec_ref(x_42); +x_44 = l_Lean_Expr_isSyntheticSorry(x_43); +lean_dec_ref(x_43); +if (x_44 == 0) +{ +lean_object* x_45; +if (lean_is_scalar(x_39)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_39; +} +lean_ctor_set(x_45, 0, x_41); +lean_ctor_set(x_45, 1, x_12); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; +lean_dec_ref(x_41); +x_46 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_39; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_12); +return x_47; +} +} +else +{ +lean_object* x_48; +lean_dec_ref(x_40); +if (lean_is_scalar(x_39)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_39; +} +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_48, 1, x_12); +return x_48; +} +} +} +} +block_16: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +if (lean_is_scalar(x_13)) { + x_15 = lean_alloc_ctor(0, 2, 0); +} else { + x_15 = x_13; +} +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +else +{ +uint8_t x_49; +x_49 = !lean_is_exclusive(x_10); +if (x_49 == 0) +{ +return x_10; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_10, 0); +x_51 = lean_ctor_get(x_10, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_10); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__0(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_7; -lean_inc(x_3); -x_7 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec_ref(x_7); -x_10 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_8, x_3, x_9); -lean_dec(x_3); +lean_object* x_10; uint8_t x_11; +x_10 = l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg(x_1, x_2, x_3, x_4, x_6, x_8, x_9); x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_10, 0); -x_13 = l_Lean_Expr_getAppFn(x_12); -lean_dec(x_12); +x_13 = l_List_reverse___redArg(x_12); lean_ctor_set(x_10, 0, x_13); return x_10; } @@ -2838,3335 +3283,47 @@ x_15 = lean_ctor_get(x_10, 1); lean_inc(x_15); lean_inc(x_14); lean_dec(x_10); -x_16 = l_Lean_Expr_getAppFn(x_14); -lean_dec(x_14); +x_16 = l_List_reverse___redArg(x_14); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); return x_17; } } -else -{ -lean_dec(x_3); -return x_7; } -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_3) == 1) { -lean_object* x_7; -lean_dec(x_3); -x_7 = lean_apply_3(x_2, x_1, x_5, x_6); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_2); -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -lean_dec(x_1); -x_9 = lean_apply_3(x_3, x_8, x_5, x_6); -return x_9; -} -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Parser", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Module", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("import", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__5; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("all", 3, 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__7; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("meta", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__9; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("public", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__11; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l_Lean_Elab_Info_stx(x_1); -x_19 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__4; -lean_inc(x_18); -x_20 = l_Lean_Syntax_isOfKind(x_18, x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_18); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_7); +x_8 = l_Lean_Elab_Info_lctx(x_3); lean_dec_ref(x_3); -x_21 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_8); -return x_22; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_84; lean_object* x_85; lean_object* x_98; uint8_t x_99; -x_23 = lean_unsigned_to_nat(0u); -x_98 = l_Lean_Syntax_getArg(x_18, x_23); -x_99 = l_Lean_Syntax_isNone(x_98); -if (x_99 == 0) -{ -lean_object* x_100; uint8_t x_101; -x_100 = lean_unsigned_to_nat(1u); -lean_inc(x_98); -x_101 = l_Lean_Syntax_matchesNull(x_98, x_100); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; -lean_dec(x_98); -lean_dec(x_18); -lean_dec_ref(x_3); -x_102 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_8); -return x_103; -} -else -{ -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = l_Lean_Syntax_getArg(x_98, x_23); -lean_dec(x_98); -x_105 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__12; -x_106 = l_Lean_Syntax_isOfKind(x_104, x_105); -if (x_106 == 0) -{ -lean_object* x_107; lean_object* x_108; -lean_dec(x_18); -lean_dec_ref(x_3); -x_107 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_8); -return x_108; -} -else -{ -x_84 = x_6; -x_85 = x_8; -goto block_97; -} -} -} -else -{ -lean_dec(x_98); -x_84 = x_6; -x_85 = x_8; -goto block_97; -} -block_68: -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_unsigned_to_nat(5u); -x_27 = l_Lean_Syntax_getArg(x_18, x_26); -x_28 = l_Lean_Syntax_matchesNull(x_27, x_23); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -lean_dec(x_18); -lean_dec_ref(x_3); -x_29 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_25); -return x_30; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_unsigned_to_nat(4u); -x_32 = l_Lean_Syntax_getArg(x_18, x_31); -lean_dec(x_18); -x_33 = l_Lean_Syntax_getId(x_32); -x_34 = l_Lean_Server_documentUriFromModule_x3f(x_33, x_25); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -if (lean_obj_tag(x_35) == 0) -{ -uint8_t x_36; -lean_dec(x_32); -lean_dec_ref(x_3); -x_36 = !lean_is_exclusive(x_34); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_34, 0); -lean_dec(x_37); -x_38 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -lean_ctor_set(x_34, 0, x_38); -return x_34; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 1); -lean_inc(x_39); -lean_dec(x_34); -x_40 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -return x_41; -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_34, 1); -lean_inc(x_42); -lean_dec_ref(x_34); -x_43 = lean_ctor_get(x_35, 0); -lean_inc(x_43); -lean_dec(x_35); -x_44 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__6; -x_45 = l_Lean_Syntax_getRange_x3f(x_32, x_2); -lean_dec(x_32); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; -lean_dec_ref(x_3); -x_46 = lean_box(0); -x_9 = x_43; -x_10 = x_44; -x_11 = x_42; -x_12 = x_46; -goto block_17; -} -else -{ -uint8_t x_47; -x_47 = !lean_is_exclusive(x_45); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 0); -x_49 = l_String_Range_toLspRange(x_3, x_48); -lean_ctor_set(x_45, 0, x_49); -x_9 = x_43; -x_10 = x_44; -x_11 = x_42; -x_12 = x_45; -goto block_17; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_45, 0); -lean_inc(x_50); -lean_dec(x_45); -x_51 = l_String_Range_toLspRange(x_3, x_50); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_51); -x_9 = x_43; -x_10 = x_44; -x_11 = x_42; -x_12 = x_52; -goto block_17; -} -} -} -} -else -{ -uint8_t x_53; -lean_dec(x_32); -lean_dec_ref(x_3); -x_53 = !lean_is_exclusive(x_34); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_54 = lean_ctor_get(x_34, 0); -x_55 = lean_ctor_get(x_24, 5); -x_56 = lean_io_error_to_string(x_54); -x_57 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_57, 0, x_56); -x_58 = l_Lean_MessageData_ofFormat(x_57); -lean_inc(x_55); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_55); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_34, 0, x_59); -return x_34; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_60 = lean_ctor_get(x_34, 0); -x_61 = lean_ctor_get(x_34, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_34); -x_62 = lean_ctor_get(x_24, 5); -x_63 = lean_io_error_to_string(x_60); -x_64 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_64, 0, x_63); -x_65 = l_Lean_MessageData_ofFormat(x_64); -lean_inc(x_62); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_62); -lean_ctor_set(x_66, 1, x_65); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_61); -return x_67; -} -} -} -} -block_83: -{ -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_unsigned_to_nat(3u); -x_73 = l_Lean_Syntax_getArg(x_18, x_72); -x_74 = l_Lean_Syntax_isNone(x_73); -if (x_74 == 0) -{ -uint8_t x_75; -lean_inc(x_73); -x_75 = l_Lean_Syntax_matchesNull(x_73, x_69); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; -lean_dec(x_73); -lean_dec(x_18); -lean_dec_ref(x_3); -x_76 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_71); -return x_77; -} -else -{ -lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_78 = l_Lean_Syntax_getArg(x_73, x_23); -lean_dec(x_73); -x_79 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__8; -x_80 = l_Lean_Syntax_isOfKind(x_78, x_79); -if (x_80 == 0) -{ -lean_object* x_81; lean_object* x_82; -lean_dec(x_18); -lean_dec_ref(x_3); -x_81 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_71); -return x_82; -} -else -{ -x_24 = x_70; -x_25 = x_71; -goto block_68; -} -} -} -else -{ -lean_dec(x_73); -x_24 = x_70; -x_25 = x_71; -goto block_68; -} -} -block_97: -{ -lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_86 = lean_unsigned_to_nat(1u); -x_87 = l_Lean_Syntax_getArg(x_18, x_86); -x_88 = l_Lean_Syntax_isNone(x_87); -if (x_88 == 0) -{ -uint8_t x_89; -lean_inc(x_87); -x_89 = l_Lean_Syntax_matchesNull(x_87, x_86); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; -lean_dec(x_87); -lean_dec(x_18); -lean_dec_ref(x_3); -x_90 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_85); -return x_91; -} -else -{ -lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_92 = l_Lean_Syntax_getArg(x_87, x_23); -lean_dec(x_87); -x_93 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__10; -x_94 = l_Lean_Syntax_isOfKind(x_92, x_93); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -lean_dec(x_18); -lean_dec_ref(x_3); -x_95 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_85); -return x_96; -} -else -{ -x_69 = x_86; -x_70 = x_84; -x_71 = x_85; -goto block_83; -} -} -} -else -{ -lean_dec(x_87); -x_69 = x_86; -x_70 = x_84; -x_71 = x_85; -goto block_83; -} -} -} -block_17: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_inc_ref(x_10); -x_13 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -lean_ctor_set(x_13, 2, x_10); -lean_ctor_set(x_13, 3, x_10); -x_14 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_15 = lean_array_push(x_14, x_13); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_11); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = lean_ctor_get(x_10, 0); -lean_inc_ref(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_1, 0); -x_14 = lean_ctor_get(x_1, 1); -x_15 = l_Lean_getErrorExplanationRaw_x3f(x_12, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; -lean_dec_ref(x_2); -x_16 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -lean_ctor_set(x_8, 0, x_16); -return x_8; -} -else -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_17, 2); -lean_inc(x_18); -lean_dec(x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -lean_dec_ref(x_2); -x_19 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -lean_ctor_set(x_8, 0, x_19); -return x_8; -} -else -{ -uint8_t x_20; -lean_free_object(x_8); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_18, 0); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); -x_25 = l_Lean_Server_documentUriFromModule_x3f(x_23, x_11); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; -lean_free_object(x_21); -lean_free_object(x_18); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -lean_dec_ref(x_24); -lean_dec_ref(x_2); -x_27 = !lean_is_exclusive(x_25); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 0); -lean_dec(x_28); -x_29 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -lean_ctor_set(x_25, 0, x_29); -return x_25; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -x_31 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_43; lean_object* x_44; -x_33 = lean_ctor_get(x_25, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_34 = x_25; -} else { - lean_dec_ref(x_25); - x_34 = lean_box(0); -} -x_35 = lean_ctor_get(x_26, 0); -lean_inc(x_35); -lean_dec(x_26); -x_36 = l_Lean_DeclarationRange_toLspRange(x_24); -x_43 = 1; -x_44 = l_Lean_Syntax_getRange_x3f(x_13, x_43); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; -lean_dec_ref(x_2); -x_45 = lean_box(0); -x_37 = x_45; -goto block_42; -} -else -{ -uint8_t x_46; -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 0); -x_48 = l_String_Range_toLspRange(x_2, x_47); -lean_ctor_set(x_44, 0, x_48); -x_37 = x_44; -goto block_42; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_44, 0); -lean_inc(x_49); -lean_dec(x_44); -x_50 = l_String_Range_toLspRange(x_2, x_49); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_37 = x_51; -goto block_42; -} -} -block_42: -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -lean_inc_ref(x_36); -x_38 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -lean_ctor_set(x_38, 2, x_36); -lean_ctor_set(x_38, 3, x_36); -x_39 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_40 = lean_array_push(x_39, x_38); -if (lean_is_scalar(x_34)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_34; -} -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_33); -return x_41; -} -} -} -else -{ -uint8_t x_52; -lean_dec_ref(x_24); -lean_dec_ref(x_2); -x_52 = !lean_is_exclusive(x_25); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_25, 0); -x_54 = lean_ctor_get(x_5, 5); -x_55 = lean_io_error_to_string(x_53); -lean_ctor_set_tag(x_18, 3); -lean_ctor_set(x_18, 0, x_55); -x_56 = l_Lean_MessageData_ofFormat(x_18); -lean_inc(x_54); -lean_ctor_set(x_21, 1, x_56); -lean_ctor_set(x_21, 0, x_54); -lean_ctor_set(x_25, 0, x_21); -return x_25; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_57 = lean_ctor_get(x_25, 0); -x_58 = lean_ctor_get(x_25, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_25); -x_59 = lean_ctor_get(x_5, 5); -x_60 = lean_io_error_to_string(x_57); -lean_ctor_set_tag(x_18, 3); -lean_ctor_set(x_18, 0, x_60); -x_61 = l_Lean_MessageData_ofFormat(x_18); -lean_inc(x_59); -lean_ctor_set(x_21, 1, x_61); -lean_ctor_set(x_21, 0, x_59); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_21); -lean_ctor_set(x_62, 1, x_58); -return x_62; -} -} -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_21, 0); -x_64 = lean_ctor_get(x_21, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_21); -x_65 = l_Lean_Server_documentUriFromModule_x3f(x_63, x_11); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; -lean_free_object(x_18); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec_ref(x_64); -lean_dec_ref(x_2); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_68 = x_65; -} else { - lean_dec_ref(x_65); - x_68 = lean_box(0); -} -x_69 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -if (lean_is_scalar(x_68)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_68; -} -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_67); -return x_70; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_81; lean_object* x_82; -x_71 = lean_ctor_get(x_65, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_72 = x_65; -} else { - lean_dec_ref(x_65); - x_72 = lean_box(0); -} -x_73 = lean_ctor_get(x_66, 0); -lean_inc(x_73); -lean_dec(x_66); -x_74 = l_Lean_DeclarationRange_toLspRange(x_64); -x_81 = 1; -x_82 = l_Lean_Syntax_getRange_x3f(x_13, x_81); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; -lean_dec_ref(x_2); -x_83 = lean_box(0); -x_75 = x_83; -goto block_80; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_84 = lean_ctor_get(x_82, 0); -lean_inc(x_84); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - x_85 = x_82; -} else { - lean_dec_ref(x_82); - x_85 = lean_box(0); -} -x_86 = l_String_Range_toLspRange(x_2, x_84); -if (lean_is_scalar(x_85)) { - x_87 = lean_alloc_ctor(1, 1, 0); -} else { - x_87 = x_85; -} -lean_ctor_set(x_87, 0, x_86); -x_75 = x_87; -goto block_80; -} -block_80: -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_inc_ref(x_74); -x_76 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -lean_ctor_set(x_76, 2, x_74); -lean_ctor_set(x_76, 3, x_74); -x_77 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_78 = lean_array_push(x_77, x_76); -if (lean_is_scalar(x_72)) { - x_79 = lean_alloc_ctor(0, 2, 0); -} else { - x_79 = x_72; -} -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_71); -return x_79; -} -} -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -lean_dec_ref(x_64); -lean_dec_ref(x_2); -x_88 = lean_ctor_get(x_65, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_65, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_90 = x_65; -} else { - lean_dec_ref(x_65); - x_90 = lean_box(0); -} -x_91 = lean_ctor_get(x_5, 5); -x_92 = lean_io_error_to_string(x_88); -lean_ctor_set_tag(x_18, 3); -lean_ctor_set(x_18, 0, x_92); -x_93 = l_Lean_MessageData_ofFormat(x_18); -lean_inc(x_91); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_93); -if (lean_is_scalar(x_90)) { - x_95 = lean_alloc_ctor(1, 2, 0); -} else { - x_95 = x_90; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_89); -return x_95; -} -} -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_96 = lean_ctor_get(x_18, 0); -lean_inc(x_96); -lean_dec(x_18); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc_ref(x_98); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_99 = x_96; -} else { - lean_dec_ref(x_96); - x_99 = lean_box(0); -} -x_100 = l_Lean_Server_documentUriFromModule_x3f(x_97, x_11); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; -lean_dec(x_99); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec_ref(x_98); -lean_dec_ref(x_2); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_103 = x_100; -} else { - lean_dec_ref(x_100); - x_103 = lean_box(0); -} -x_104 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -if (lean_is_scalar(x_103)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_103; -} -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_102); -return x_105; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_116; lean_object* x_117; -x_106 = lean_ctor_get(x_100, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_107 = x_100; -} else { - lean_dec_ref(x_100); - x_107 = lean_box(0); -} -x_108 = lean_ctor_get(x_101, 0); -lean_inc(x_108); -lean_dec(x_101); -x_109 = l_Lean_DeclarationRange_toLspRange(x_98); -x_116 = 1; -x_117 = l_Lean_Syntax_getRange_x3f(x_13, x_116); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; -lean_dec_ref(x_2); -x_118 = lean_box(0); -x_110 = x_118; -goto block_115; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_119 = lean_ctor_get(x_117, 0); -lean_inc(x_119); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - x_120 = x_117; -} else { - lean_dec_ref(x_117); - x_120 = lean_box(0); -} -x_121 = l_String_Range_toLspRange(x_2, x_119); -if (lean_is_scalar(x_120)) { - x_122 = lean_alloc_ctor(1, 1, 0); -} else { - x_122 = x_120; -} -lean_ctor_set(x_122, 0, x_121); -x_110 = x_122; -goto block_115; -} -block_115: -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -lean_inc_ref(x_109); -x_111 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_108); -lean_ctor_set(x_111, 2, x_109); -lean_ctor_set(x_111, 3, x_109); -x_112 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_113 = lean_array_push(x_112, x_111); -if (lean_is_scalar(x_107)) { - x_114 = lean_alloc_ctor(0, 2, 0); -} else { - x_114 = x_107; -} -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_106); -return x_114; -} -} -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec_ref(x_98); -lean_dec_ref(x_2); -x_123 = lean_ctor_get(x_100, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_100, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_125 = x_100; -} else { - lean_dec_ref(x_100); - x_125 = lean_box(0); -} -x_126 = lean_ctor_get(x_5, 5); -x_127 = lean_io_error_to_string(x_123); -x_128 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_128, 0, x_127); -x_129 = l_Lean_MessageData_ofFormat(x_128); -lean_inc(x_126); -if (lean_is_scalar(x_99)) { - x_130 = lean_alloc_ctor(0, 2, 0); -} else { - x_130 = x_99; -} -lean_ctor_set(x_130, 0, x_126); -lean_ctor_set(x_130, 1, x_129); -if (lean_is_scalar(x_125)) { - x_131 = lean_alloc_ctor(1, 2, 0); -} else { - x_131 = x_125; -} -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_124); -return x_131; -} -} -} -} -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_132 = lean_ctor_get(x_8, 0); -x_133 = lean_ctor_get(x_8, 1); -lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_8); -x_134 = lean_ctor_get(x_132, 0); -lean_inc_ref(x_134); -lean_dec(x_132); -x_135 = lean_ctor_get(x_1, 0); -x_136 = lean_ctor_get(x_1, 1); -x_137 = l_Lean_getErrorExplanationRaw_x3f(x_134, x_136); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; -lean_dec_ref(x_2); -x_138 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_133); -return x_139; -} -else -{ -lean_object* x_140; lean_object* x_141; -x_140 = lean_ctor_get(x_137, 0); -lean_inc(x_140); -lean_dec(x_137); -x_141 = lean_ctor_get(x_140, 2); -lean_inc(x_141); -lean_dec(x_140); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; lean_object* x_143; -lean_dec_ref(x_2); -x_142 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_133); -return x_143; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_144 = lean_ctor_get(x_141, 0); -lean_inc(x_144); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - x_145 = x_141; -} else { - lean_dec_ref(x_141); - x_145 = lean_box(0); -} -x_146 = lean_ctor_get(x_144, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_144, 1); -lean_inc_ref(x_147); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_148 = x_144; -} else { - lean_dec_ref(x_144); - x_148 = lean_box(0); -} -x_149 = l_Lean_Server_documentUriFromModule_x3f(x_146, x_133); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; -lean_dec(x_148); -lean_dec(x_145); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec_ref(x_147); -lean_dec_ref(x_2); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; -} else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -x_153 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -if (lean_is_scalar(x_152)) { - x_154 = lean_alloc_ctor(0, 2, 0); -} else { - x_154 = x_152; -} -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_151); -return x_154; -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_165; lean_object* x_166; -x_155 = lean_ctor_get(x_149, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_156 = x_149; -} else { - lean_dec_ref(x_149); - x_156 = lean_box(0); -} -x_157 = lean_ctor_get(x_150, 0); -lean_inc(x_157); -lean_dec(x_150); -x_158 = l_Lean_DeclarationRange_toLspRange(x_147); -x_165 = 1; -x_166 = l_Lean_Syntax_getRange_x3f(x_135, x_165); -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; -lean_dec_ref(x_2); -x_167 = lean_box(0); -x_159 = x_167; -goto block_164; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_168 = lean_ctor_get(x_166, 0); -lean_inc(x_168); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - x_169 = x_166; -} else { - lean_dec_ref(x_166); - x_169 = lean_box(0); -} -x_170 = l_String_Range_toLspRange(x_2, x_168); -if (lean_is_scalar(x_169)) { - x_171 = lean_alloc_ctor(1, 1, 0); -} else { - x_171 = x_169; -} -lean_ctor_set(x_171, 0, x_170); -x_159 = x_171; -goto block_164; -} -block_164: -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_inc_ref(x_158); -x_160 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_157); -lean_ctor_set(x_160, 2, x_158); -lean_ctor_set(x_160, 3, x_158); -x_161 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_162 = lean_array_push(x_161, x_160); -if (lean_is_scalar(x_156)) { - x_163 = lean_alloc_ctor(0, 2, 0); -} else { - x_163 = x_156; -} -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_155); -return x_163; -} -} -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec_ref(x_147); -lean_dec_ref(x_2); -x_172 = lean_ctor_get(x_149, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_149, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_174 = x_149; -} else { - lean_dec_ref(x_149); - x_174 = lean_box(0); -} -x_175 = lean_ctor_get(x_5, 5); -x_176 = lean_io_error_to_string(x_172); -if (lean_is_scalar(x_145)) { - x_177 = lean_alloc_ctor(3, 1, 0); -} else { - x_177 = x_145; - lean_ctor_set_tag(x_177, 3); -} -lean_ctor_set(x_177, 0, x_176); -x_178 = l_Lean_MessageData_ofFormat(x_177); -lean_inc(x_175); -if (lean_is_scalar(x_148)) { - x_179 = lean_alloc_ctor(0, 2, 0); -} else { - x_179 = x_148; -} -lean_ctor_set(x_179, 0, x_175); -lean_ctor_set(x_179, 1, x_178); -if (lean_is_scalar(x_174)) { - x_180 = lean_alloc_ctor(1, 2, 0); -} else { - x_180 = x_174; -} -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_173); -return x_180; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -lean_inc(x_3); -x_7 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec_ref(x_7); -x_10 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_8, x_3, x_9); -lean_dec(x_3); -return x_10; -} -else -{ -lean_dec(x_3); -return x_7; -} -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = l_Lean_Expr_sort___override(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Array_empty(lean_box(0)); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Delab", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__2; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Elab", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Term", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("elabApp", 7, 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__6; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("elabIdent", 9, 9); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__8; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_206; lean_object* x_207; uint8_t x_211; -x_6 = l_Lean_Server_RequestM_readDoc___at___Lean_Server_RequestM_withWaitFindSnapAtPos_spec__0(x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 0); -lean_inc_ref(x_8); -lean_dec(x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_9); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - lean_ctor_release(x_8, 3); - x_10 = x_8; -} else { - lean_dec_ref(x_8); - x_10 = lean_box(0); -} -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_12 = x_6; -} else { - lean_dec_ref(x_6); - x_12 = lean_box(0); -} -x_13 = lean_ctor_get(x_9, 0); -lean_inc_ref(x_13); -x_14 = lean_ctor_get(x_9, 3); -lean_inc_ref(x_14); -lean_dec_ref(x_9); -x_15 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_15); -x_16 = lean_ctor_get(x_2, 1); -lean_inc_ref(x_16); -x_17 = lean_ctor_get(x_2, 2); -lean_inc_ref(x_17); -lean_dec_ref(x_2); -x_18 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___boxed), 3, 0); -lean_inc_ref(x_18); -x_19 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1___boxed), 4, 1); -lean_closure_set(x_19, 0, x_18); -lean_inc_ref(x_14); -lean_inc_ref(x_13); -x_20 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 2); -lean_closure_set(x_20, 0, x_13); -lean_closure_set(x_20, 1, x_14); -x_57 = lean_box(x_1); -lean_inc_ref(x_15); -lean_inc_ref(x_20); -lean_inc_ref(x_16); -lean_inc_ref(x_18); -x_58 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3___boxed), 8, 5); -lean_closure_set(x_58, 0, x_18); -lean_closure_set(x_58, 1, x_16); -lean_closure_set(x_58, 2, x_20); -lean_closure_set(x_58, 3, x_15); -lean_closure_set(x_58, 4, x_57); -lean_inc_ref(x_16); -x_59 = l_Lean_Elab_Info_toElabInfo_x3f(x_16); -switch (lean_obj_tag(x_16)) { -case 1: -{ -lean_object* x_230; -lean_dec_ref(x_58); -lean_dec_ref(x_19); -lean_dec(x_10); -x_230 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_230); -x_187 = x_230; -x_188 = x_4; -x_189 = x_11; -goto block_205; -} -case 3: -{ -lean_object* x_231; lean_object* x_232; -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_3); -x_231 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_231); -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -lean_dec_ref(x_231); -if (lean_obj_tag(x_232) == 1) -{ -lean_object* x_233; -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -if (lean_obj_tag(x_233) == 0) -{ -lean_object* x_234; lean_object* x_235; uint8_t x_236; -x_234 = lean_ctor_get(x_232, 1); -lean_inc_ref(x_234); -lean_dec(x_232); -x_235 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3; -x_236 = lean_string_dec_eq(x_234, x_235); -lean_dec_ref(x_234); -if (x_236 == 0) -{ -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -x_206 = x_4; -x_207 = x_11; -goto block_210; -} -else -{ -uint8_t x_237; uint8_t x_238; -x_237 = 1; -x_238 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_1, x_237); -if (x_238 == 0) -{ -uint8_t x_239; uint8_t x_240; -x_239 = 0; -x_240 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_1, x_239); -x_211 = x_240; -goto block_229; -} -else -{ -x_211 = x_238; -goto block_229; -} -} -} -else -{ -lean_dec(x_233); -lean_dec(x_232); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -x_206 = x_4; -x_207 = x_11; -goto block_210; -} -} -else -{ -lean_dec(x_232); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -x_206 = x_4; -x_207 = x_11; -goto block_210; -} -} -case 5: -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -lean_dec(x_59); -lean_dec_ref(x_58); -lean_dec_ref(x_20); -lean_dec_ref(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec(x_12); -lean_dec(x_10); -lean_dec_ref(x_4); -lean_dec(x_3); -x_241 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_241); -x_242 = lean_ctor_get(x_241, 2); -lean_inc(x_242); -lean_dec_ref(x_241); -x_243 = l_Lean_Elab_Info_lctx(x_16); -x_244 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_244, 0, x_13); -lean_closure_set(x_244, 1, x_14); -lean_closure_set(x_244, 2, x_16); -lean_closure_set(x_244, 3, x_242); -x_245 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_243, x_244, x_11); -if (lean_obj_tag(x_245) == 0) -{ -uint8_t x_246; -x_246 = !lean_is_exclusive(x_245); -if (x_246 == 0) -{ -return x_245; -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_245, 0); -x_248 = lean_ctor_get(x_245, 1); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_245); -x_249 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -return x_249; -} -} -else -{ -uint8_t x_250; -x_250 = !lean_is_exclusive(x_245); -if (x_250 == 0) -{ -lean_object* x_251; lean_object* x_252; -x_251 = lean_ctor_get(x_245, 0); -x_252 = l_Lean_Server_RequestError_ofIoError(x_251); -lean_ctor_set(x_245, 0, x_252); -return x_245; -} -else -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_253 = lean_ctor_get(x_245, 0); -x_254 = lean_ctor_get(x_245, 1); -lean_inc(x_254); -lean_inc(x_253); -lean_dec(x_245); -x_255 = l_Lean_Server_RequestError_ofIoError(x_253); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_254); -return x_256; -} -} -} -case 6: -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -lean_dec(x_59); -lean_dec_ref(x_58); -lean_dec_ref(x_20); -lean_dec_ref(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec_ref(x_4); -lean_dec(x_3); -x_257 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_257); -x_258 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__9___boxed), 7, 2); -lean_closure_set(x_258, 0, x_257); -lean_closure_set(x_258, 1, x_14); -x_259 = l_Lean_Elab_Info_lctx(x_16); -lean_dec_ref(x_16); -x_260 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_259, x_258, x_11); -if (lean_obj_tag(x_260) == 0) -{ -uint8_t x_261; -x_261 = !lean_is_exclusive(x_260); -if (x_261 == 0) -{ -return x_260; -} -else -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_262 = lean_ctor_get(x_260, 0); -x_263 = lean_ctor_get(x_260, 1); -lean_inc(x_263); -lean_inc(x_262); -lean_dec(x_260); -x_264 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_264, 0, x_262); -lean_ctor_set(x_264, 1, x_263); -return x_264; -} -} -else -{ -uint8_t x_265; -x_265 = !lean_is_exclusive(x_260); -if (x_265 == 0) -{ -lean_object* x_266; lean_object* x_267; -x_266 = lean_ctor_get(x_260, 0); -x_267 = l_Lean_Server_RequestError_ofIoError(x_266); -lean_ctor_set(x_260, 0, x_267); -return x_260; -} -else -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_268 = lean_ctor_get(x_260, 0); -x_269 = lean_ctor_get(x_260, 1); -lean_inc(x_269); -lean_inc(x_268); -lean_dec(x_260); -x_270 = l_Lean_Server_RequestError_ofIoError(x_268); -x_271 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_269); -return x_271; -} -} -} -case 7: -{ -lean_object* x_272; uint8_t x_273; uint8_t x_274; -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_3); -x_272 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_272); -x_273 = 2; -x_274 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_1, x_273); -if (x_274 == 0) -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; -lean_dec(x_59); -lean_dec_ref(x_58); -lean_dec_ref(x_19); -lean_dec_ref(x_4); -x_275 = lean_ctor_get(x_272, 0); -lean_inc(x_275); -lean_dec_ref(x_272); -x_276 = l_Lean_Elab_Info_lctx(x_16); -x_277 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_277, 0, x_13); -lean_closure_set(x_277, 1, x_14); -lean_closure_set(x_277, 2, x_16); -lean_closure_set(x_277, 3, x_275); -x_278 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_276, x_277, x_11); -if (lean_obj_tag(x_278) == 0) -{ -uint8_t x_279; -x_279 = !lean_is_exclusive(x_278); -if (x_279 == 0) -{ -return x_278; -} -else -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_278, 0); -x_281 = lean_ctor_get(x_278, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_278); -x_282 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); -return x_282; -} -} -else -{ -uint8_t x_283; -x_283 = !lean_is_exclusive(x_278); -if (x_283 == 0) -{ -lean_object* x_284; lean_object* x_285; -x_284 = lean_ctor_get(x_278, 0); -x_285 = l_Lean_Server_RequestError_ofIoError(x_284); -lean_ctor_set(x_278, 0, x_285); -return x_278; -} -else -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_286 = lean_ctor_get(x_278, 0); -x_287 = lean_ctor_get(x_278, 1); -lean_inc(x_287); -lean_inc(x_286); -lean_dec(x_278); -x_288 = l_Lean_Server_RequestError_ofIoError(x_286); -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_287); -return x_289; -} -} -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_290 = lean_ctor_get(x_272, 3); -lean_inc_ref(x_290); -lean_dec_ref(x_272); -x_291 = l_Lean_Elab_Info_lctx(x_16); -x_292 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__10), 6, 1); -lean_closure_set(x_292, 0, x_290); -lean_inc_ref(x_291); -lean_inc_ref(x_15); -x_293 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_291, x_292, x_11); -if (lean_obj_tag(x_293) == 0) -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_294 = lean_ctor_get(x_293, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_293, 1); -lean_inc(x_295); -lean_dec_ref(x_293); -x_296 = l_Lean_Expr_getAppFn(x_294); -lean_dec(x_294); -x_297 = l_Lean_Expr_constName_x3f(x_296); -lean_dec_ref(x_296); -if (lean_obj_tag(x_297) == 0) -{ -lean_object* x_298; lean_object* x_299; -lean_dec_ref(x_291); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_298 = lean_box(0); -x_299 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7(x_59, x_19, x_58, x_298, x_4, x_295); -return x_299; -} -else -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -lean_dec(x_59); -lean_dec_ref(x_58); -lean_dec_ref(x_19); -lean_dec_ref(x_4); -x_300 = lean_ctor_get(x_297, 0); -lean_inc(x_300); -lean_dec(x_297); -x_301 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_301, 0, x_13); -lean_closure_set(x_301, 1, x_14); -lean_closure_set(x_301, 2, x_16); -lean_closure_set(x_301, 3, x_300); -x_302 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_291, x_301, x_295); -if (lean_obj_tag(x_302) == 0) -{ -uint8_t x_303; -x_303 = !lean_is_exclusive(x_302); -if (x_303 == 0) -{ -return x_302; -} -else -{ -lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_304 = lean_ctor_get(x_302, 0); -x_305 = lean_ctor_get(x_302, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_302); -x_306 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_306, 0, x_304); -lean_ctor_set(x_306, 1, x_305); -return x_306; -} -} -else -{ -uint8_t x_307; -x_307 = !lean_is_exclusive(x_302); -if (x_307 == 0) -{ -lean_object* x_308; lean_object* x_309; -x_308 = lean_ctor_get(x_302, 0); -x_309 = l_Lean_Server_RequestError_ofIoError(x_308); -lean_ctor_set(x_302, 0, x_309); -return x_302; -} -else -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_310 = lean_ctor_get(x_302, 0); -x_311 = lean_ctor_get(x_302, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_302); -x_312 = l_Lean_Server_RequestError_ofIoError(x_310); -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_312); -lean_ctor_set(x_313, 1, x_311); -return x_313; -} -} -} -} -else -{ -uint8_t x_314; -lean_dec_ref(x_291); -lean_dec(x_59); -lean_dec_ref(x_58); -lean_dec_ref(x_19); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec_ref(x_4); -x_314 = !lean_is_exclusive(x_293); -if (x_314 == 0) -{ -lean_object* x_315; lean_object* x_316; -x_315 = lean_ctor_get(x_293, 0); -x_316 = l_Lean_Server_RequestError_ofIoError(x_315); -lean_ctor_set(x_293, 0, x_316); -return x_293; -} -else -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_317 = lean_ctor_get(x_293, 0); -x_318 = lean_ctor_get(x_293, 1); -lean_inc(x_318); -lean_inc(x_317); -lean_dec(x_293); -x_319 = l_Lean_Server_RequestError_ofIoError(x_317); -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_318); -return x_320; -} -} -} -} -case 13: -{ -lean_object* x_321; lean_object* x_322; -lean_dec_ref(x_58); -lean_dec_ref(x_19); -x_321 = lean_ctor_get(x_16, 0); -lean_inc_ref(x_321); -x_322 = lean_ctor_get(x_321, 1); -lean_inc(x_322); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_323; -lean_dec(x_10); -x_323 = lean_ctor_get(x_321, 0); -lean_inc_ref(x_323); -lean_dec_ref(x_321); -x_187 = x_323; -x_188 = x_4; -x_189 = x_11; -goto block_205; -} -else -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -x_324 = lean_ctor_get(x_322, 0); -lean_inc(x_324); -lean_dec(x_322); -x_325 = lean_ctor_get(x_321, 0); -lean_inc_ref(x_325); -lean_dec_ref(x_321); -x_326 = lean_ctor_get(x_324, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_324, 1); -lean_inc_ref(x_327); -lean_dec(x_324); -x_328 = l_Lean_Server_documentUriFromModule_x3f(x_326, x_11); -if (lean_obj_tag(x_328) == 0) -{ -lean_object* x_329; -x_329 = lean_ctor_get(x_328, 0); -lean_inc(x_329); -if (lean_obj_tag(x_329) == 0) -{ -lean_object* x_330; -lean_dec_ref(x_327); -lean_dec(x_10); -x_330 = lean_ctor_get(x_328, 1); -lean_inc(x_330); -lean_dec_ref(x_328); -x_187 = x_325; -x_188 = x_4; -x_189 = x_330; -goto block_205; -} -else -{ -lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_341; -lean_dec_ref(x_325); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_15); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec_ref(x_4); -lean_dec(x_3); -x_331 = lean_ctor_get(x_328, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_328)) { - lean_ctor_release(x_328, 0); - lean_ctor_release(x_328, 1); - x_332 = x_328; -} else { - lean_dec_ref(x_328); - x_332 = lean_box(0); -} -x_333 = lean_ctor_get(x_329, 0); -lean_inc(x_333); -lean_dec(x_329); -x_334 = l_Lean_DeclarationRange_toLspRange(x_327); -x_341 = l_Lean_Elab_Info_range_x3f(x_16); -lean_dec_ref(x_16); -if (lean_obj_tag(x_341) == 0) -{ -lean_object* x_342; -lean_dec_ref(x_14); -x_342 = lean_box(0); -x_335 = x_342; -goto block_340; -} -else -{ -uint8_t x_343; -x_343 = !lean_is_exclusive(x_341); -if (x_343 == 0) -{ -lean_object* x_344; lean_object* x_345; -x_344 = lean_ctor_get(x_341, 0); -x_345 = l_String_Range_toLspRange(x_14, x_344); -lean_ctor_set(x_341, 0, x_345); -x_335 = x_341; -goto block_340; -} -else -{ -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_ctor_get(x_341, 0); -lean_inc(x_346); -lean_dec(x_341); -x_347 = l_String_Range_toLspRange(x_14, x_346); -x_348 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_348, 0, x_347); -x_335 = x_348; -goto block_340; -} -} -block_340: -{ -lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; -lean_inc_ref(x_334); -if (lean_is_scalar(x_10)) { - x_336 = lean_alloc_ctor(0, 4, 0); -} else { - x_336 = x_10; -} -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_333); -lean_ctor_set(x_336, 2, x_334); -lean_ctor_set(x_336, 3, x_334); -x_337 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0; -x_338 = lean_array_push(x_337, x_336); -if (lean_is_scalar(x_332)) { - x_339 = lean_alloc_ctor(0, 2, 0); -} else { - x_339 = x_332; -} -lean_ctor_set(x_339, 0, x_338); -lean_ctor_set(x_339, 1, x_331); -return x_339; -} -} -} -else -{ -uint8_t x_349; -lean_dec_ref(x_327); -lean_dec_ref(x_325); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec_ref(x_4); -lean_dec(x_3); -x_349 = !lean_is_exclusive(x_328); -if (x_349 == 0) -{ -lean_object* x_350; lean_object* x_351; -x_350 = lean_ctor_get(x_328, 0); -x_351 = l_Lean_Server_RequestError_ofIoError(x_350); -lean_ctor_set(x_328, 0, x_351); -return x_328; -} -else -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; -x_352 = lean_ctor_get(x_328, 0); -x_353 = lean_ctor_get(x_328, 1); -lean_inc(x_353); -lean_inc(x_352); -lean_dec(x_328); -x_354 = l_Lean_Server_RequestError_ofIoError(x_352); -x_355 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_355, 0, x_354); -lean_ctor_set(x_355, 1, x_353); -return x_355; -} -} -} -} -default: -{ -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_3); -x_206 = x_4; -x_207 = x_11; -goto block_210; -} -} -block_56: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -lean_dec_ref(x_26); -x_28 = lean_ctor_get(x_21, 1); -lean_inc(x_28); -lean_dec_ref(x_21); -x_29 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__0; -x_30 = l_Lean_Expr_getAppNumArgs(x_23); -lean_inc(x_30); -x_31 = lean_mk_array(x_30, x_29); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_sub(x_30, x_32); -lean_dec(x_30); -x_34 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_23, x_31, x_33); -x_35 = lean_array_get_size(x_34); -x_36 = lean_nat_dec_lt(x_28, x_35); -lean_dec(x_35); -if (x_36 == 0) -{ -lean_object* x_37; -lean_dec_ref(x_34); -lean_dec(x_28); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -if (lean_is_scalar(x_12)) { - x_37 = lean_alloc_ctor(0, 2, 0); -} else { - x_37 = x_12; -} -lean_ctor_set(x_37, 0, x_25); -lean_ctor_set(x_37, 1, x_27); -return x_37; -} -else -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_12); -x_38 = lean_array_fget(x_34, x_28); -lean_dec(x_28); -lean_dec_ref(x_34); -lean_inc_ref(x_15); -x_39 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg(x_16, x_15, x_38, x_27); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec_ref(x_39); -x_42 = lean_array_size(x_40); -x_43 = 0; -x_44 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg(x_20, x_16, x_15, x_22, x_40, x_42, x_43, x_25, x_41); -lean_dec(x_40); -if (lean_obj_tag(x_44) == 0) -{ -uint8_t x_45; -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_44, 0); -x_47 = l_Array_append___redArg(x_46, x_24); -lean_dec_ref(x_24); -lean_ctor_set(x_44, 0, x_47); -return x_44; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_44, 0); -x_49 = lean_ctor_get(x_44, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_44); -x_50 = l_Array_append___redArg(x_48, x_24); -lean_dec_ref(x_24); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -return x_51; -} -} -else -{ -lean_dec_ref(x_24); -return x_44; -} -} -else -{ -uint8_t x_52; -lean_dec_ref(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -x_52 = !lean_is_exclusive(x_39); -if (x_52 == 0) -{ -return x_39; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_39, 0); -x_54 = lean_ctor_get(x_39, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_39); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -block_65: -{ -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_62; -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -x_62 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1(x_18, x_59, x_60, x_61); -return x_62; -} -else -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_59, 0); -lean_inc(x_63); -lean_dec(x_59); -x_64 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3(x_18, x_16, x_20, x_15, x_1, x_63, x_60, x_61); -return x_64; -} -} -block_147: -{ -uint8_t x_70; uint8_t x_71; -x_70 = 0; -x_71 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_1, x_70); -if (x_71 == 0) -{ -if (x_69 == 0) -{ -lean_dec_ref(x_66); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -x_60 = x_67; -x_61 = x_68; -goto block_65; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = l_Lean_Elab_Info_lctx(x_16); -x_73 = lean_alloc_closure((void*)(l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___boxed), 6, 1); -lean_closure_set(x_73, 0, x_66); -lean_inc_ref(x_72); -lean_inc_ref(x_15); -x_74 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_72, x_73, x_68); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec_ref(x_74); -x_77 = l_Lean_Expr_getAppFn(x_75); -x_78 = l_Lean_Expr_consumeMData(x_77); -lean_dec_ref(x_77); -if (lean_obj_tag(x_78) == 4) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec_ref(x_18); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -lean_dec_ref(x_78); -lean_inc(x_79); -lean_inc_ref(x_16); -lean_inc_ref(x_14); -lean_inc_ref(x_13); -x_80 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_80, 0, x_13); -lean_closure_set(x_80, 1, x_14); -lean_closure_set(x_80, 2, x_16); -lean_closure_set(x_80, 3, x_79); -lean_inc_ref(x_72); -lean_inc_ref(x_15); -x_81 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_72, x_80, x_76); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; uint8_t x_83; -x_82 = lean_ctor_get(x_15, 0); -lean_inc_ref(x_82); -x_83 = !lean_is_exclusive(x_81); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_84 = lean_ctor_get(x_81, 0); -x_85 = lean_ctor_get(x_81, 1); -x_86 = lean_ctor_get(x_82, 0); -lean_inc_ref(x_86); -lean_dec_ref(x_82); -x_87 = lean_get_projection_info(x_86, x_79); -if (lean_obj_tag(x_87) == 0) -{ -lean_dec(x_75); -lean_dec_ref(x_72); -lean_dec_ref(x_67); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -return x_81; -} -else -{ -lean_object* x_88; lean_object* x_89; -lean_free_object(x_81); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -lean_dec(x_87); -x_89 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1; -if (lean_obj_tag(x_59) == 0) -{ -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_88; -x_22 = x_72; -x_23 = x_75; -x_24 = x_89; -x_25 = x_84; -x_26 = x_67; -x_27 = x_85; -goto block_56; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; -x_90 = lean_ctor_get(x_59, 0); -lean_inc(x_90); -lean_dec(x_59); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -lean_dec(x_90); -x_92 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3; -x_93 = lean_name_eq(x_91, x_92); -if (x_93 == 0) -{ -lean_object* x_94; uint8_t x_95; -x_94 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7; -x_95 = lean_name_eq(x_91, x_94); -if (x_95 == 0) -{ -lean_object* x_96; uint8_t x_97; -x_96 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9; -x_97 = lean_name_eq(x_91, x_96); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; -lean_inc_ref(x_16); -x_98 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_98, 0, x_13); -lean_closure_set(x_98, 1, x_14); -lean_closure_set(x_98, 2, x_16); -lean_closure_set(x_98, 3, x_91); -lean_inc_ref(x_72); -lean_inc_ref(x_15); -x_99 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_72, x_98, x_85); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec_ref(x_99); -x_21 = x_88; -x_22 = x_72; -x_23 = x_75; -x_24 = x_100; -x_25 = x_84; -x_26 = x_67; -x_27 = x_101; -goto block_56; -} -else -{ -uint8_t x_102; -lean_dec(x_88); -lean_dec(x_84); -lean_dec(x_75); -lean_dec_ref(x_72); -lean_dec_ref(x_67); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec(x_12); -x_102 = !lean_is_exclusive(x_99); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_99, 0); -x_104 = l_Lean_Server_RequestError_ofIoError(x_103); -lean_ctor_set(x_99, 0, x_104); -return x_99; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_99, 0); -x_106 = lean_ctor_get(x_99, 1); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_99); -x_107 = l_Lean_Server_RequestError_ofIoError(x_105); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -return x_108; -} -} -} -else -{ -lean_dec(x_91); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_88; -x_22 = x_72; -x_23 = x_75; -x_24 = x_89; -x_25 = x_84; -x_26 = x_67; -x_27 = x_85; -goto block_56; -} -} -else -{ -lean_dec(x_91); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_88; -x_22 = x_72; -x_23 = x_75; -x_24 = x_89; -x_25 = x_84; -x_26 = x_67; -x_27 = x_85; -goto block_56; -} -} -else -{ -lean_dec(x_91); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_88; -x_22 = x_72; -x_23 = x_75; -x_24 = x_89; -x_25 = x_84; -x_26 = x_67; -x_27 = x_85; -goto block_56; -} -} -} -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_109 = lean_ctor_get(x_81, 0); -x_110 = lean_ctor_get(x_81, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_81); -x_111 = lean_ctor_get(x_82, 0); -lean_inc_ref(x_111); -lean_dec_ref(x_82); -x_112 = lean_get_projection_info(x_111, x_79); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; -lean_dec(x_75); -lean_dec_ref(x_72); -lean_dec_ref(x_67); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_109); -lean_ctor_set(x_113, 1, x_110); -return x_113; -} -else -{ -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_112, 0); -lean_inc(x_114); -lean_dec(x_112); -x_115 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1; -if (lean_obj_tag(x_59) == 0) -{ -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_114; -x_22 = x_72; -x_23 = x_75; -x_24 = x_115; -x_25 = x_109; -x_26 = x_67; -x_27 = x_110; -goto block_56; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_116 = lean_ctor_get(x_59, 0); -lean_inc(x_116); -lean_dec(x_59); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -lean_dec(x_116); -x_118 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3; -x_119 = lean_name_eq(x_117, x_118); -if (x_119 == 0) -{ -lean_object* x_120; uint8_t x_121; -x_120 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7; -x_121 = lean_name_eq(x_117, x_120); -if (x_121 == 0) -{ -lean_object* x_122; uint8_t x_123; -x_122 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9; -x_123 = lean_name_eq(x_117, x_122); -if (x_123 == 0) -{ -lean_object* x_124; lean_object* x_125; -lean_inc_ref(x_16); -x_124 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_124, 0, x_13); -lean_closure_set(x_124, 1, x_14); -lean_closure_set(x_124, 2, x_16); -lean_closure_set(x_124, 3, x_117); -lean_inc_ref(x_72); -lean_inc_ref(x_15); -x_125 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_72, x_124, x_110); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec_ref(x_125); -x_21 = x_114; -x_22 = x_72; -x_23 = x_75; -x_24 = x_126; -x_25 = x_109; -x_26 = x_67; -x_27 = x_127; -goto block_56; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_114); -lean_dec(x_109); -lean_dec(x_75); -lean_dec_ref(x_72); -lean_dec_ref(x_67); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec(x_12); -x_128 = lean_ctor_get(x_125, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_125, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_130 = x_125; -} else { - lean_dec_ref(x_125); - x_130 = lean_box(0); -} -x_131 = l_Lean_Server_RequestError_ofIoError(x_128); -if (lean_is_scalar(x_130)) { - x_132 = lean_alloc_ctor(1, 2, 0); -} else { - x_132 = x_130; -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_129); -return x_132; -} -} -else -{ -lean_dec(x_117); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_114; -x_22 = x_72; -x_23 = x_75; -x_24 = x_115; -x_25 = x_109; -x_26 = x_67; -x_27 = x_110; -goto block_56; -} -} -else -{ -lean_dec(x_117); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_114; -x_22 = x_72; -x_23 = x_75; -x_24 = x_115; -x_25 = x_109; -x_26 = x_67; -x_27 = x_110; -goto block_56; -} -} -else -{ -lean_dec(x_117); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -x_21 = x_114; -x_22 = x_72; -x_23 = x_75; -x_24 = x_115; -x_25 = x_109; -x_26 = x_67; -x_27 = x_110; -goto block_56; -} -} -} -} -} -else -{ -uint8_t x_133; -lean_dec(x_79); -lean_dec(x_75); -lean_dec_ref(x_72); -lean_dec_ref(x_67); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -x_133 = !lean_is_exclusive(x_81); -if (x_133 == 0) -{ -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_81, 0); -x_135 = l_Lean_Server_RequestError_ofIoError(x_134); -lean_ctor_set(x_81, 0, x_135); -return x_81; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_81, 0); -x_137 = lean_ctor_get(x_81, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_81); -x_138 = l_Lean_Server_RequestError_ofIoError(x_136); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_137); -return x_139; -} -} -} -else -{ -lean_dec_ref(x_78); -lean_dec(x_75); -lean_dec_ref(x_72); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -x_60 = x_67; -x_61 = x_76; -goto block_65; -} -} -else -{ -uint8_t x_140; -lean_dec_ref(x_72); -lean_dec_ref(x_67); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -x_140 = !lean_is_exclusive(x_74); -if (x_140 == 0) -{ -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_74, 0); -x_142 = l_Lean_Server_RequestError_ofIoError(x_141); -lean_ctor_set(x_74, 0, x_142); -return x_74; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_143 = lean_ctor_get(x_74, 0); -x_144 = lean_ctor_get(x_74, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_74); -x_145 = l_Lean_Server_RequestError_ofIoError(x_143); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -return x_146; -} -} -} -} -else -{ -lean_dec_ref(x_66); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -x_60 = x_67; -x_61 = x_68; -goto block_65; -} -} -block_186: -{ -lean_object* x_151; -x_151 = l_Lean_Expr_consumeMData(x_148); -switch (lean_obj_tag(x_151)) { -case 1: -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec_ref(x_149); -lean_dec_ref(x_148); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec(x_12); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -lean_dec_ref(x_151); -x_153 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__4___boxed), 2, 1); -lean_closure_set(x_153, 0, x_152); -lean_inc_ref(x_16); -x_154 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___boxed), 10, 5); -lean_closure_set(x_154, 0, x_3); -lean_closure_set(x_154, 1, x_153); -lean_closure_set(x_154, 2, x_14); -lean_closure_set(x_154, 3, x_13); -lean_closure_set(x_154, 4, x_16); -x_155 = l_Lean_Elab_Info_lctx(x_16); -lean_dec_ref(x_16); -x_156 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_155, x_154, x_150); -if (lean_obj_tag(x_156) == 0) -{ -uint8_t x_157; -x_157 = !lean_is_exclusive(x_156); -if (x_157 == 0) -{ -return x_156; -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_156, 0); -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_156); -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); -return x_160; -} -} -else -{ -uint8_t x_161; -x_161 = !lean_is_exclusive(x_156); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; -x_162 = lean_ctor_get(x_156, 0); -x_163 = l_Lean_Server_RequestError_ofIoError(x_162); -lean_ctor_set(x_156, 0, x_163); -return x_156; -} -else -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_164 = lean_ctor_get(x_156, 0); -x_165 = lean_ctor_get(x_156, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_156); -x_166 = l_Lean_Server_RequestError_ofIoError(x_164); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -return x_167; -} -} -} -case 4: -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec_ref(x_149); -lean_dec_ref(x_148); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec(x_12); -lean_dec(x_3); -x_168 = lean_ctor_get(x_151, 0); -lean_inc(x_168); -lean_dec_ref(x_151); -x_169 = l_Lean_Elab_Info_lctx(x_16); -x_170 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed), 9, 4); -lean_closure_set(x_170, 0, x_13); -lean_closure_set(x_170, 1, x_14); -lean_closure_set(x_170, 2, x_16); -lean_closure_set(x_170, 3, x_168); -x_171 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_169, x_170, x_150); -if (lean_obj_tag(x_171) == 0) -{ -uint8_t x_172; -x_172 = !lean_is_exclusive(x_171); -if (x_172 == 0) -{ -return x_171; -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_171, 0); -x_174 = lean_ctor_get(x_171, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_171); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; -} -} -else -{ -uint8_t x_176; -x_176 = !lean_is_exclusive(x_171); -if (x_176 == 0) -{ -lean_object* x_177; lean_object* x_178; -x_177 = lean_ctor_get(x_171, 0); -x_178 = l_Lean_Server_RequestError_ofIoError(x_177); -lean_ctor_set(x_171, 0, x_178); -return x_171; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_179 = lean_ctor_get(x_171, 0); -x_180 = lean_ctor_get(x_171, 1); -lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_171); -x_181 = l_Lean_Server_RequestError_ofIoError(x_179); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -return x_182; -} -} -} -default: -{ -uint8_t x_183; -lean_dec_ref(x_151); -lean_dec(x_3); -x_183 = l_Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1(x_148, x_17); -lean_dec_ref(x_17); -if (x_183 == 0) -{ -uint8_t x_184; -x_184 = 1; -x_66 = x_148; -x_67 = x_149; -x_68 = x_150; -x_69 = x_184; -goto block_147; -} -else -{ -uint8_t x_185; -x_185 = 0; -x_66 = x_148; -x_67 = x_149; -x_68 = x_150; -x_69 = x_185; -goto block_147; -} -} -} -} -block_205: -{ -lean_object* x_190; uint8_t x_191; uint8_t x_192; -x_190 = lean_ctor_get(x_187, 3); -lean_inc_ref(x_190); -lean_dec_ref(x_187); -x_191 = 2; -x_192 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_1, x_191); -if (x_192 == 0) -{ -x_148 = x_190; -x_149 = x_188; -x_150 = x_189; -goto block_186; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_193 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__6), 6, 1); -lean_closure_set(x_193, 0, x_190); -x_194 = l_Lean_Elab_Info_lctx(x_16); -lean_inc_ref(x_15); -x_195 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_194, x_193, x_189); -if (lean_obj_tag(x_195) == 0) -{ -lean_object* x_196; lean_object* x_197; -x_196 = lean_ctor_get(x_195, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_195, 1); -lean_inc(x_197); -lean_dec_ref(x_195); -x_148 = x_196; -x_149 = x_188; -x_150 = x_197; -goto block_186; -} -else -{ -uint8_t x_198; -lean_dec_ref(x_188); -lean_dec(x_59); -lean_dec_ref(x_20); -lean_dec_ref(x_18); -lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_3); -x_198 = !lean_is_exclusive(x_195); -if (x_198 == 0) -{ -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_195, 0); -x_200 = l_Lean_Server_RequestError_ofIoError(x_199); -lean_ctor_set(x_195, 0, x_200); -return x_195; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_201 = lean_ctor_get(x_195, 0); -x_202 = lean_ctor_get(x_195, 1); -lean_inc(x_202); -lean_inc(x_201); -lean_dec(x_195); -x_203 = l_Lean_Server_RequestError_ofIoError(x_201); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -return x_204; -} -} -} -} -block_210: -{ -lean_object* x_208; lean_object* x_209; -x_208 = lean_box(0); -x_209 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7(x_59, x_19, x_58, x_208, x_206, x_207); -return x_209; -} -block_229: -{ -if (x_211 == 0) -{ -lean_object* x_212; lean_object* x_213; -lean_dec_ref(x_16); -lean_dec_ref(x_15); -lean_dec_ref(x_14); -x_212 = lean_box(0); -x_213 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7(x_59, x_19, x_58, x_212, x_4, x_11); -return x_213; -} -else -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -lean_dec(x_59); -lean_dec_ref(x_58); -lean_dec_ref(x_19); -lean_dec_ref(x_4); -x_214 = lean_box(x_211); -lean_inc_ref(x_16); -x_215 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___boxed), 8, 3); -lean_closure_set(x_215, 0, x_16); -lean_closure_set(x_215, 1, x_214); -lean_closure_set(x_215, 2, x_14); -x_216 = l_Lean_Elab_Info_lctx(x_16); -lean_dec_ref(x_16); -x_217 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_15, x_216, x_215, x_11); -if (lean_obj_tag(x_217) == 0) -{ -uint8_t x_218; -x_218 = !lean_is_exclusive(x_217); -if (x_218 == 0) -{ -return x_217; -} -else -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_217, 0); -x_220 = lean_ctor_get(x_217, 1); -lean_inc(x_220); -lean_inc(x_219); -lean_dec(x_217); -x_221 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_221, 0, x_219); -lean_ctor_set(x_221, 1, x_220); -return x_221; -} -} -else -{ -uint8_t x_222; -x_222 = !lean_is_exclusive(x_217); -if (x_222 == 0) -{ -lean_object* x_223; lean_object* x_224; -x_223 = lean_ctor_get(x_217, 0); -x_224 = l_Lean_Server_RequestError_ofIoError(x_223); -lean_ctor_set(x_217, 0, x_224); -return x_217; -} -else -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_225 = lean_ctor_get(x_217, 0); -x_226 = lean_ctor_get(x_217, 1); -lean_inc(x_226); -lean_inc(x_225); -lean_dec(x_217); -x_227 = l_Lean_Server_RequestError_ofIoError(x_225); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_226); -return x_228; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_11 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_12 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_10, x_11, x_8, x_9); -lean_dec_ref(x_5); +x_9 = lean_box(0); +x_10 = lean_box(x_1); +x_11 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed), 9, 4); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_7); +lean_closure_set(x_11, 2, x_5); +lean_closure_set(x_11, 3, x_9); +x_12 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_2, x_8, x_11, x_6); return x_12; } -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: +else { -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_12 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_13 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__0(x_1, x_2, x_3, x_4, x_5, x_11, x_12, x_8, x_9, x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_5); +lean_object* x_13; +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_5); +lean_ctor_set(x_13, 1, x_6); return x_13; } } -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__1(x_1, x_2, x_5, x_6); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_8 = lean_box(x_7); -return x_8; } -} -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1_spec__2(x_1, x_2, x_5, x_6); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1_spec__1(x_1, x_2); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_PersistentArray_anyM___at___Lean_Server_FileWorker_locationLinksOfInfo_spec__1(x_1, x_2); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0(x_1, x_2, x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__1(x_1, x_2, x_3, x_4); -lean_dec(x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_5); -x_10 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__3(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__4___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__4(x_1, x_2); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__7(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_2); -x_10 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec_ref(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lam__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_1); -x_7 = l_Lean_Server_FileWorker_locationLinksOfInfo(x_6, x_2, x_3, x_4, x_5); -return x_7; -} -} -LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDefinition___lam__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDefinition___lam__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -6176,7 +3333,7 @@ lean_dec(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -6186,56 +3343,215 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_7; uint8_t x_8; uint8_t x_9; lean_object* x_10; -x_7 = l_Lean_Server_Snapshots_Snapshot_infoTree(x_4); -x_8 = 1; -x_9 = 0; -lean_inc_ref(x_7); -x_10 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_7, x_1, x_8, x_9, x_8); -if (lean_obj_tag(x_10) == 0) +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = l_Lean_Server_Snapshots_Snapshot_infoTree(x_6); +x_10 = 1; +lean_inc_ref(x_9); +x_11 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1(x_9, x_1, x_10, x_2, x_8); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_11; -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_2); -lean_ctor_set(x_11, 1, x_6); +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec_ref(x_9); +lean_dec_ref(x_4); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +lean_ctor_set(x_11, 0, x_3); return x_11; } else { -uint8_t x_12; -lean_dec_ref(x_2); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_ctor_set(x_10, 0, x_7); -x_14 = l_Lean_Server_FileWorker_locationLinksOfInfo(x_3, x_13, x_10, x_5, x_6); -return x_14; +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 0); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_7); -x_17 = l_Lean_Server_FileWorker_locationLinksOfInfo(x_3, x_15, x_16, x_5, x_6); -return x_17; +lean_object* x_17; uint8_t x_18; +lean_dec_ref(x_3); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec_ref(x_11); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_12, 0); +lean_ctor_set(x_12, 0, x_9); +x_20 = l_Lean_Server_locationLinksOfInfo(x_4, x_5, x_19, x_12, x_17); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +return x_20; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_20, 0); +x_27 = l_Lean_Server_RequestError_ofIoError(x_26); +lean_ctor_set(x_20, 0, x_27); +return x_20; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_20, 0); +x_29 = lean_ctor_get(x_20, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_20); +x_30 = l_Lean_Server_RequestError_ofIoError(x_28); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_12, 0); +lean_inc(x_32); +lean_dec(x_12); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_9); +x_34 = l_Lean_Server_locationLinksOfInfo(x_4, x_5, x_32, x_33, x_17); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_34, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_34, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_41 = x_34; +} else { + lean_dec_ref(x_34); + x_41 = lean_box(0); +} +x_42 = l_Lean_Server_RequestError_ofIoError(x_39); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +} +else +{ +uint8_t x_44; +lean_dec_ref(x_9); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +x_44 = !lean_is_exclusive(x_11); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_11, 0); +x_46 = l_Lean_Server_RequestError_ofIoError(x_45); +lean_ctor_set(x_11, 0, x_46); +return x_11; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_11, 0); +x_48 = lean_ctor_get(x_11, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_11); +x_49 = l_Lean_Server_RequestError_ofIoError(x_47); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +} +} +static lean_object* _init_l_Lean_Server_FileWorker_handleDefinition___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; } } LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_5 = l_Lean_Server_RequestM_readDoc___at___Lean_Server_RequestM_withWaitFindSnapAtPos_spec__0(x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -6249,54 +3565,147 @@ lean_inc(x_9); lean_dec_ref(x_5); x_10 = lean_ctor_get(x_8, 3); lean_inc_ref(x_10); -lean_dec_ref(x_8); x_11 = lean_ctor_get(x_2, 1); lean_inc_ref(x_11); lean_dec_ref(x_2); -x_12 = l_Lean_FileMap_lspPosToUtf8Pos(x_10, x_11); -lean_dec_ref(x_10); -lean_inc(x_12); -x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed), 2, 1); +x_12 = lean_box(x_1); +x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__1___boxed), 6, 1); lean_closure_set(x_13, 0, x_12); -x_14 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0; -x_15 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__1___boxed), 3, 1); +x_14 = l_Lean_FileMap_lspPosToUtf8Pos(x_10, x_11); +lean_dec_ref(x_10); +lean_inc(x_14); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed), 2, 1); lean_closure_set(x_15, 0, x_14); -x_16 = lean_box(x_1); -x_17 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed), 6, 3); -lean_closure_set(x_17, 0, x_12); -lean_closure_set(x_17, 1, x_14); -lean_closure_set(x_17, 2, x_16); -x_18 = l_Lean_Server_RequestM_withWaitFindSnap___redArg(x_6, x_13, x_15, x_17, x_3, x_9); -return x_18; +x_16 = l_Lean_Server_FileWorker_handleDefinition___closed__0; +x_17 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__3___boxed), 3, 1); +lean_closure_set(x_17, 0, x_16); +x_18 = lean_box(x_1); +x_19 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__4___boxed), 8, 5); +lean_closure_set(x_19, 0, x_14); +lean_closure_set(x_19, 1, x_13); +lean_closure_set(x_19, 2, x_16); +lean_closure_set(x_19, 3, x_8); +lean_closure_set(x_19, 4, x_18); +x_20 = l_Lean_Server_RequestM_withWaitFindSnap___redArg(x_6, x_15, x_17, x_19, x_3, x_9); +return x_20; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +x_9 = l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___redArg(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +x_11 = l_List_filterAuxM___at___Lean_Server_FileWorker_handleDefinition_spec__0(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__0(x_1, x_2, x_3, x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Server_FileWorker_handleDefinition___lam__0(x_1, x_2); +x_3 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__1(x_1, x_2); lean_dec_ref(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +x_10 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_3); +x_7 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1(x_1, x_2, x_6, x_4, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +x_11 = l_Lean_Server_FileWorker_handleDefinition___lam__0(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +x_8 = l_Lean_Server_FileWorker_handleDefinition___lam__1(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec_ref(x_4); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Server_FileWorker_handleDefinition___lam__2(x_1, x_2); +lean_dec_ref(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_FileWorker_handleDefinition___lam__1(x_1, x_2, x_3); +x_4 = l_Lean_Server_FileWorker_handleDefinition___lam__3(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lam__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_3); -x_8 = l_Lean_Server_FileWorker_handleDefinition___lam__2(x_1, x_2, x_7, x_4, x_5, x_6); -return x_8; +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_5); +x_10 = l_Lean_Server_FileWorker_handleDefinition___lam__4(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); +lean_dec_ref(x_7); +return x_10; } } LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -7885,8 +5294,8 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; x_35 = lean_array_mk(x_34); x_36 = lean_alloc_closure((void*)(l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___lam__0), 6, 1); lean_closure_set(x_36, 0, x_35); -lean_inc_ref(x_33); -x_37 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_32, x_33, x_36, x_7); +lean_inc_ref(x_32); +x_37 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_33, x_32, x_36, x_7); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -7900,7 +5309,7 @@ x_41 = lean_alloc_closure((void*)(l_List_mapM_loop___at___List_mapM_loop___at___ lean_closure_set(x_41, 0, x_40); lean_closure_set(x_41, 1, x_13); lean_closure_set(x_41, 2, x_38); -x_42 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_11, x_33, x_41, x_39); +x_42 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_11, x_32, x_41, x_39); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -7953,7 +5362,7 @@ return x_53; else { uint8_t x_54; -lean_dec_ref(x_33); +lean_dec_ref(x_32); lean_dec_ref(x_11); lean_dec(x_15); lean_dec(x_14); @@ -7991,16 +5400,16 @@ x_63 = l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getI if (x_16 == 0) { lean_dec(x_31); -x_32 = x_62; -x_33 = x_63; +x_32 = x_63; +x_33 = x_62; x_34 = x_29; goto block_61; } else { lean_dec(x_29); -x_32 = x_62; -x_33 = x_63; +x_32 = x_63; +x_33 = x_62; x_34 = x_31; goto block_61; } @@ -8083,8 +5492,8 @@ lean_object* x_81; lean_object* x_82; lean_object* x_83; x_81 = lean_array_mk(x_80); x_82 = lean_alloc_closure((void*)(l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___lam__0), 6, 1); lean_closure_set(x_82, 0, x_81); -lean_inc_ref(x_79); -x_83 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_78, x_79, x_82, x_7); +lean_inc_ref(x_78); +x_83 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_79, x_78, x_82, x_7); if (lean_obj_tag(x_83) == 0) { lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; @@ -8098,7 +5507,7 @@ x_87 = lean_alloc_closure((void*)(l_List_mapM_loop___at___List_mapM_loop___at___ lean_closure_set(x_87, 0, x_86); lean_closure_set(x_87, 1, x_13); lean_closure_set(x_87, 2, x_84); -x_88 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_11, x_79, x_87, x_85); +x_88 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_11, x_78, x_87, x_85); if (lean_obj_tag(x_88) == 0) { lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; @@ -8149,7 +5558,7 @@ return x_97; else { lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec_ref(x_79); +lean_dec_ref(x_78); lean_dec_ref(x_11); lean_dec(x_15); lean_dec(x_14); @@ -8185,16 +5594,16 @@ x_105 = l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_get if (x_16 == 0) { lean_dec(x_76); -x_78 = x_104; -x_79 = x_105; +x_78 = x_105; +x_79 = x_104; x_80 = x_74; goto block_103; } else { lean_dec(x_74); -x_78 = x_104; -x_79 = x_105; +x_78 = x_105; +x_79 = x_104; x_80 = x_76; goto block_103; } @@ -8299,8 +5708,8 @@ lean_object* x_126; lean_object* x_127; lean_object* x_128; x_126 = lean_array_mk(x_125); x_127 = lean_alloc_closure((void*)(l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_getInteractiveGoals_spec__1_spec__1___redArg___lam__0), 6, 1); lean_closure_set(x_127, 0, x_126); -lean_inc_ref(x_124); -x_128 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_123, x_124, x_127, x_7); +lean_inc_ref(x_123); +x_128 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_124, x_123, x_127, x_7); if (lean_obj_tag(x_128) == 0) { lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; @@ -8314,7 +5723,7 @@ x_132 = lean_alloc_closure((void*)(l_List_mapM_loop___at___List_mapM_loop___at__ lean_closure_set(x_132, 0, x_131); lean_closure_set(x_132, 1, x_13); lean_closure_set(x_132, 2, x_129); -x_133 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_122, x_124, x_132, x_130); +x_133 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_122, x_123, x_132, x_130); if (lean_obj_tag(x_133) == 0) { lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; @@ -8365,7 +5774,7 @@ return x_142; else { lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec_ref(x_124); +lean_dec_ref(x_123); lean_dec_ref(x_122); lean_dec(x_15); lean_dec(x_14); @@ -8401,16 +5810,16 @@ x_150 = l_List_mapM_loop___at___List_mapM_loop___at___Lean_Server_FileWorker_get if (x_16 == 0) { lean_dec(x_120); -x_123 = x_149; -x_124 = x_150; +x_123 = x_150; +x_124 = x_149; x_125 = x_118; goto block_148; } else { lean_dec(x_118); -x_123 = x_149; -x_124 = x_150; +x_123 = x_150; +x_124 = x_149; x_125 = x_120; goto block_148; } @@ -9176,8 +6585,8 @@ lean_inc_ref(x_2); x_56 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_56, 0, x_2); lean_ctor_set(x_56, 1, x_2); -x_22 = x_54; -x_23 = x_53; +x_22 = x_53; +x_23 = x_54; x_24 = x_56; goto block_37; } @@ -9189,8 +6598,8 @@ x_57 = lean_ctor_get(x_55, 0); lean_inc(x_57); lean_dec(x_55); x_58 = l_String_Range_toLspRange(x_3, x_57); -x_22 = x_54; -x_23 = x_53; +x_22 = x_53; +x_23 = x_54; x_24 = x_58; goto block_37; } @@ -9269,15 +6678,15 @@ return x_74; block_37: { lean_object* x_25; uint8_t x_26; -x_25 = l_Lean_Server_WithRpcRef_mk___redArg(x_21, x_22); +x_25 = l_Lean_Server_WithRpcRef_mk___redArg(x_21, x_23); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_22, 0); lean_inc_ref(x_28); -lean_dec_ref(x_23); +lean_dec_ref(x_22); if (lean_is_scalar(x_20)) { x_29 = lean_alloc_ctor(0, 3, 0); } else { @@ -9303,9 +6712,9 @@ x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); lean_inc(x_31); lean_dec(x_25); -x_33 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_22, 0); lean_inc_ref(x_33); -lean_dec_ref(x_23); +lean_dec_ref(x_22); if (lean_is_scalar(x_20)) { x_34 = lean_alloc_ctor(0, 3, 0); } else { @@ -9633,27 +7042,23 @@ static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highl _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("doReturn", 8, 8); +x_1 = lean_mk_string_unchecked("Parser", 6, 6); return x_1; } } static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Term", 4, 4); +return x_1; } } static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("do", 2, 2); +x_1 = lean_mk_string_unchecked("doReturn", 8, 8); return x_1; } } @@ -9662,9 +7067,9 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__3; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_2 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -9672,6 +7077,26 @@ return x_5; static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("do", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5; +x_2 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = lean_box(0); @@ -9685,13 +7110,13 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highli _start: { lean_object* x_5; lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; +x_10 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4; lean_inc(x_4); x_11 = l_Lean_Syntax_isOfKind(x_4, x_10); if (x_11 == 0) { lean_object* x_12; uint8_t x_13; -x_12 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4; +x_12 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6; lean_inc(x_4); x_13 = l_Lean_Syntax_isOfKind(x_4, x_12); if (x_13 == 0) @@ -9700,7 +7125,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_1 x_14 = l_Lean_Syntax_getArgs(x_4); lean_dec(x_4); x_15 = lean_box(0); -x_16 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5; +x_16 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7; x_17 = lean_array_size(x_14); x_18 = 0; x_19 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f_spec__0(x_1, x_2, x_3, x_16, x_15, x_14, x_17, x_18, x_16); @@ -9737,8 +7162,8 @@ lean_dec(x_24); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; -x_33 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3; -x_34 = l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(x_33); +x_33 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3; +x_34 = l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(x_33); x_27 = x_34; goto block_31; } @@ -9778,7 +7203,7 @@ lean_dec(x_37); x_39 = l_Lean_Syntax_getArgs(x_4); lean_dec(x_4); x_40 = lean_box(0); -x_41 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5; +x_41 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7; x_42 = lean_array_size(x_39); x_43 = 0; x_44 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f_spec__0(x_1, x_2, x_3, x_41, x_40, x_39, x_42, x_43, x_41); @@ -10326,7 +7751,7 @@ lean_dec_ref(x_1); lean_inc_ref(x_11); x_12 = l_Lean_FileMap_lspPosToUtf8Pos(x_10, x_11); lean_inc(x_12); -x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__0___boxed), 2, 1); +x_13 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDefinition___lam__2___boxed), 2, 1); lean_closure_set(x_13, 0, x_12); x_14 = lean_unsigned_to_nat(0u); x_15 = l_Lean_Server_FileWorker_handleDocumentHighlight___closed__0; @@ -10518,27 +7943,10 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("null", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__4; -x_2 = l_Lean_Name_mkStr1(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_20; lean_object* x_21; lean_object* x_29; lean_object* x_30; lean_object* x_39; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_20; lean_object* x_21; lean_object* x_29; lean_object* x_30; lean_object* x_39; x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 1); @@ -10558,8 +7966,8 @@ lean_dec(x_6); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; -x_51 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3; -x_52 = l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(x_51); +x_51 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3; +x_52 = l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(x_51); x_39 = x_52; goto block_48; } @@ -10582,7 +7990,7 @@ lean_dec(x_3); x_55 = l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__3; x_56 = lean_array_push(x_55, x_6); x_57 = lean_array_push(x_56, x_54); -x_58 = l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__5; +x_58 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2; x_59 = lean_box(2); x_60 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_60, 0, x_59); @@ -10594,8 +8002,8 @@ lean_dec_ref(x_60); if (lean_obj_tag(x_62) == 0) { lean_object* x_63; lean_object* x_64; -x_63 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3; -x_64 = l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(x_63); +x_63 = l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3; +x_64 = l_panic___at___Lean_Server_FileWorker_handleHover_spec__0(x_63); x_30 = x_64; goto block_38; } @@ -10616,12 +8024,12 @@ x_14 = l_String_Range_toLspRange(x_1, x_13); x_15 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_15, 0, x_2); x_16 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_16, 0, x_10); -lean_ctor_set(x_16, 1, x_11); -lean_ctor_set(x_16, 2, x_12); +lean_ctor_set(x_16, 0, x_12); +lean_ctor_set(x_16, 1, x_9); +lean_ctor_set(x_16, 2, x_10); lean_ctor_set(x_16, 3, x_14); lean_ctor_set(x_16, 4, x_15); -lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_9); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_11); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); x_18 = lean_array_push(x_8, x_17); @@ -10640,10 +8048,10 @@ x_26 = l_Lean_Syntax_getRange_x3f(x_7, x_25); lean_dec(x_7); if (lean_obj_tag(x_26) == 0) { -x_9 = x_23; -x_10 = x_21; -x_11 = x_22; -x_12 = x_24; +x_9 = x_22; +x_10 = x_24; +x_11 = x_23; +x_12 = x_21; x_13 = x_20; goto block_19; } @@ -10654,10 +8062,10 @@ lean_dec_ref(x_20); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); lean_dec(x_26); -x_9 = x_23; -x_10 = x_21; -x_11 = x_22; -x_12 = x_24; +x_9 = x_22; +x_10 = x_24; +x_11 = x_23; +x_12 = x_21; x_13 = x_27; goto block_19; } @@ -11831,8 +9239,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__2; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11851,8 +9259,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__4; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11871,8 +9279,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__6; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11891,8 +9299,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__8; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11903,8 +9311,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__1; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11923,8 +9331,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__11; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11943,8 +9351,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__13; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11962,9 +9370,9 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__15; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_2 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -11983,8 +9391,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__17; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -12003,8 +9411,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__19; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -12072,8 +9480,8 @@ if (lean_is_exclusive(x_2)) { lean_dec_ref(x_2); x_17 = lean_box(0); } -x_25 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; -x_26 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; +x_25 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; +x_26 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; x_27 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; x_28 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__3; lean_inc(x_15); @@ -15512,6 +12920,15 @@ return x_873; } } } +static lean_object* _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -15585,7 +13002,7 @@ x_28 = lean_ctor_get(x_11, 0); lean_dec(x_28); x_29 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_29, 0, x_2); -x_30 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; +x_30 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0; lean_inc(x_4); lean_inc(x_13); x_31 = l_List_takeTR_go___redArg(x_13, x_13, x_4, x_30); @@ -15612,7 +13029,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean lean_dec(x_11); x_36 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_36, 0, x_2); -x_37 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; +x_37 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0; lean_inc(x_4); lean_inc(x_13); x_38 = l_List_takeTR_go___redArg(x_13, x_13, x_4, x_37); @@ -15714,7 +13131,7 @@ if (lean_is_exclusive(x_47)) { } x_61 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_61, 0, x_2); -x_62 = l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0; +x_62 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0; lean_inc(x_4); lean_inc(x_49); x_63 = l_List_takeTR_go___redArg(x_49, x_49, x_4, x_62); @@ -16013,23 +13430,31 @@ static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport__ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("header", 6, 6); +x_1 = lean_mk_string_unchecked("Module", 6, 6); return x_1; } } static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("header", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__0; -x_2 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_1 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1; +x_2 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2() { +static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3() { _start: { lean_object* x_1; @@ -16037,14 +13462,14 @@ x_1 = lean_mk_string_unchecked("open", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3() { +static lean_object* _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2; +x_1 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -16053,13 +13478,13 @@ LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleFoldingRange_isImport(lean_ob _start: { lean_object* x_2; uint8_t x_3; -x_2 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1; +x_2 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2; lean_inc(x_1); x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); if (x_3 == 0) { lean_object* x_4; uint8_t x_5; -x_4 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3; +x_4 = l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4; x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); return x_5; } @@ -16481,7 +13906,7 @@ lean_dec(x_12); x_18 = lean_ctor_get(x_13, 1); lean_inc_ref(x_18); lean_dec(x_13); -x_19 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_19 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_20 = lean_string_dec_eq(x_18, x_19); lean_dec_ref(x_18); if (x_20 == 0) @@ -16496,7 +13921,7 @@ goto block_9; else { lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; +x_21 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; x_22 = lean_string_dec_eq(x_17, x_21); lean_dec_ref(x_17); if (x_22 == 0) @@ -16788,8 +14213,8 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__0; x_2 = l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; -x_3 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1; -x_4 = l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0; +x_3 = l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -17982,7 +15407,7 @@ lean_dec_ref(x_2); return x_5; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0() { _start: { lean_object* x_1; @@ -17990,7 +15415,7 @@ x_1 = lean_mk_string_unchecked("Cannot parse request params: ", 29, 29); return x_1; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1() { _start: { lean_object* x_1; @@ -17998,7 +15423,7 @@ x_1 = lean_mk_string_unchecked("\n", 1, 1); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0(lean_object* x_1) { _start: { lean_object* x_2; @@ -18013,11 +15438,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -18034,11 +15459,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -18072,29 +15497,29 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -18144,7 +15569,7 @@ return x_11; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__0() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__0() { _start: { lean_object* x_1; lean_object* x_2; @@ -18153,17 +15578,17 @@ x_2 = l_Lean_Json_mkObj(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__0; +x_1 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__0; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18189,16 +15614,16 @@ else { lean_object* x_5; lean_dec_ref(x_1); -x_5 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__1; return x_5; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -18286,7 +15711,7 @@ return x_24; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0() { _start: { lean_object* x_1; @@ -18294,7 +15719,7 @@ x_1 = lean_mk_string_unchecked("Failed to register LSP request handler for '", 4 return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1() { _start: { lean_object* x_1; @@ -18302,7 +15727,7 @@ x_1 = lean_mk_string_unchecked("': only possible during initialization", 38, 38) return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2() { _start: { lean_object* x_1; @@ -18310,7 +15735,7 @@ x_1 = l_Lean_Server_requestHandlers; return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3() { _start: { lean_object* x_1; @@ -18318,7 +15743,7 @@ x_1 = lean_mk_string_unchecked("': already registered", 21, 21); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -18337,10 +15762,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -18354,10 +15779,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -18373,7 +15798,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -18393,9 +15818,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -18429,9 +15854,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -18465,10 +15890,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -18502,9 +15927,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -18541,10 +15966,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -18557,7 +15982,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__3(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__3(lean_object* x_1) { _start: { lean_object* x_2; @@ -18572,11 +15997,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -18593,11 +16018,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -18631,29 +16056,29 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__3(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__3(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__3(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__3(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -18703,7 +16128,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18751,11 +16176,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -18843,7 +16268,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -18862,10 +16287,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -18879,10 +16304,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -18898,7 +16323,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -18918,9 +16343,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -18954,9 +16379,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -18990,10 +16415,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -19027,9 +16452,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -19066,10 +16491,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -19082,7 +16507,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__6(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__6(lean_object* x_1) { _start: { lean_object* x_2; @@ -19097,11 +16522,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -19118,11 +16543,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -19156,29 +16581,29 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__6(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__6(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__6(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__6(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19224,7 +16649,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19272,11 +16697,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -19364,7 +16789,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -19383,10 +16808,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -19400,10 +16825,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -19419,7 +16844,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -19439,9 +16864,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -19475,9 +16900,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -19511,10 +16936,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -19548,9 +16973,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -19587,10 +17012,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -19603,7 +17028,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__9(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__9(lean_object* x_1) { _start: { lean_object* x_2; @@ -19618,11 +17043,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -19639,11 +17064,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -19677,25 +17102,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__9(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__9(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__11(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__11(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19715,11 +17140,11 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__9(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__9(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19769,7 +17194,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19799,7 +17224,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__11(x_6); +x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__11(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -19809,7 +17234,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__11(x_8); +x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__11(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -19817,11 +17242,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -19909,7 +17334,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -19928,10 +17353,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -19945,10 +17370,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -19964,7 +17389,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -19984,9 +17409,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -20020,9 +17445,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -20056,10 +17481,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -20093,9 +17518,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -20132,10 +17557,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -20148,7 +17573,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__13(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__13(lean_object* x_1) { _start: { lean_object* x_2; @@ -20163,11 +17588,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -20184,11 +17609,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -20222,25 +17647,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__13(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__13(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15_spec__15(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15_spec__15(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -20255,7 +17680,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x x_5 = lean_array_uget(x_3, x_2); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l_Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_383_(x_5); +x_8 = l_Lean_Lsp_toJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4706_(x_5); x_9 = 1; x_10 = lean_usize_add(x_2, x_9); x_11 = lean_array_uset(x_7, x_2, x_8); @@ -20265,23 +17690,23 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_array_size(x_1); x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15_spec__15(x_2, x_3, x_1); +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15_spec__15(x_2, x_3, x_1); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__13(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__13(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -20331,7 +17756,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -20361,7 +17786,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15(x_6); +x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -20371,7 +17796,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15(x_8); +x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -20379,11 +17804,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -20471,7 +17896,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -20490,10 +17915,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -20507,10 +17932,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -20526,7 +17951,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -20546,9 +17971,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -20582,9 +18007,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -20618,10 +18043,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -20655,9 +18080,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -20694,10 +18119,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -20710,7 +18135,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__18(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__18(lean_object* x_1) { _start: { lean_object* x_2; @@ -20725,11 +18150,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -20746,11 +18171,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -20784,25 +18209,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__18(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__18(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20_spec__20(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20_spec__20(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -20827,23 +18252,23 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_array_size(x_1); x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20_spec__20(x_2, x_3, x_1); +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20_spec__20(x_2, x_3, x_1); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__18(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__18(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -20893,7 +18318,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -20923,7 +18348,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20(x_6); +x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -20933,7 +18358,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20(x_8); +x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -20941,11 +18366,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -21033,7 +18458,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21052,10 +18477,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -21069,10 +18494,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -21088,7 +18513,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -21108,9 +18533,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -21144,9 +18569,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -21180,10 +18605,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -21217,9 +18642,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -21256,10 +18681,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -21272,7 +18697,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__23(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__23(lean_object* x_1) { _start: { lean_object* x_2; @@ -21287,11 +18712,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -21308,11 +18733,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -21346,25 +18771,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__23(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__23(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__25(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__25(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; @@ -21376,11 +18801,11 @@ lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__23(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__23(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -21421,7 +18846,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -21451,7 +18876,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__25(x_6); +x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__25(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -21461,7 +18886,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__25(x_8); +x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__25(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -21469,11 +18894,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -21561,7 +18986,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21580,10 +19005,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -21597,10 +19022,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -21616,7 +19041,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -21636,9 +19061,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -21672,9 +19097,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -21708,10 +19133,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -21745,9 +19170,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -21784,10 +19209,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -21800,7 +19225,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__27(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__27(lean_object* x_1) { _start: { lean_object* x_2; @@ -21815,11 +19240,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -21836,11 +19261,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -21874,25 +19299,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__27(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__27(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29_spec__29(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29_spec__29(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -21917,23 +19342,23 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_array_size(x_1); x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29_spec__29(x_2, x_3, x_1); +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29_spec__29(x_2, x_3, x_1); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__27(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__27(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -21974,7 +19399,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -22004,7 +19429,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29(x_6); +x_7 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -22014,7 +19439,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29(x_8); +x_9 = l_Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -22022,11 +19447,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -22114,7 +19539,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -22133,10 +19558,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -22150,10 +19575,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -22169,7 +19594,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -22189,9 +19614,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -22225,9 +19650,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -22261,10 +19686,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -22298,9 +19723,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -22337,10 +19762,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -22353,7 +19778,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__32(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__32(lean_object* x_1) { _start: { lean_object* x_2; @@ -22368,11 +19793,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -22389,11 +19814,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -22427,25 +19852,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__32(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__32(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__34(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__34(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -22465,11 +19890,11 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__32(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__32(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -22525,7 +19950,7 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -22555,7 +19980,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__34(x_6); +x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__34(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -22565,7 +19990,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__34(x_8); +x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__34(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -22573,11 +19998,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -22665,7 +20090,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -22684,10 +20109,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -22701,10 +20126,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -22720,7 +20145,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -22740,9 +20165,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -22776,9 +20201,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -22812,10 +20237,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -22849,9 +20274,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -22888,10 +20313,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -22904,7 +20329,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__36(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__36(lean_object* x_1) { _start: { lean_object* x_2; @@ -22919,11 +20344,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -22940,11 +20365,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -22978,25 +20403,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__36(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__36(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__38(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__38(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -23016,11 +20441,11 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__36(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__36(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -23070,7 +20495,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -23100,7 +20525,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__38(x_6); +x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__38(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -23110,7 +20535,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__38(x_8); +x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__38(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -23118,11 +20543,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -23210,7 +20635,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -23229,10 +20654,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -23246,10 +20671,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -23265,7 +20690,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -23285,9 +20710,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -23321,9 +20746,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -23357,10 +20782,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -23394,9 +20819,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -23433,10 +20858,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -23449,7 +20874,7 @@ return x_80; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__40(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__40(lean_object* x_1) { _start: { lean_object* x_2; @@ -23464,11 +20889,11 @@ if (x_3 == 0) lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_2, 0); x_5 = 3; -x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_6 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_7 = l_Lean_Json_compress(x_1); x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_9 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_10 = lean_string_append(x_8, x_9); x_11 = lean_string_append(x_10, x_4); lean_dec(x_4); @@ -23485,11 +20910,11 @@ x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); lean_dec(x_2); x_14 = 3; -x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0; +x_15 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0; x_16 = l_Lean_Json_compress(x_1); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); -x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1; +x_18 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_string_append(x_19, x_13); lean_dec(x_13); @@ -23523,25 +20948,25 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41___redArg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41___redArg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__40(x_1); +x_3 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__40(x_1); x_4 = l_EIO_ofExcept___redArg(x_3, x_2); lean_dec_ref(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41___redArg(x_1, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41___redArg(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__42(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__42(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -23561,11 +20986,11 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__40(x_1); +x_2 = l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__40(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -23615,7 +21040,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -23645,7 +21070,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__42(x_6); +x_7 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__42(x_6); lean_ctor_set(x_1, 0, x_7); return x_1; } @@ -23655,7 +21080,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__42(x_8); +x_9 = l_Option_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__42(x_8); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; @@ -23663,11 +21088,11 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41___redArg(x_3, x_5); +x_6 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41___redArg(x_3, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -23755,7 +21180,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -23774,10 +21199,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_9 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_10 = lean_string_append(x_9, x_1); lean_dec_ref(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -23791,10 +21216,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_15 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_16 = lean_string_append(x_15, x_1); lean_dec_ref(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -23810,7 +21235,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec_ref(x_4); -x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2; +x_22 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2; x_23 = lean_st_ref_get(x_22, x_21); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -23830,9 +21255,9 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_30 = lean_ctor_get(x_28, 0); x_31 = lean_ctor_get(x_28, 1); -x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__0), 1, 0); -x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__1), 1, 0); -x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__2), 5, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__0), 1, 0); +x_33 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__1), 1, 0); +x_34 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__2), 5, 2); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_33); lean_ctor_set(x_28, 1, x_34); @@ -23866,9 +21291,9 @@ x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_28); -x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__0), 1, 0); -x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__1), 1, 0); -x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__2), 5, 2); +x_43 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__0), 1, 0); +x_44 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__1), 1, 0); +x_45 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__2), 5, 2); lean_closure_set(x_45, 0, x_2); lean_closure_set(x_45, 1, x_44); x_46 = lean_alloc_ctor(0, 2, 0); @@ -23902,10 +21327,10 @@ else { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_2); -x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_53 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_54 = lean_string_append(x_53, x_1); lean_dec_ref(x_1); -x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_55 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_56 = lean_string_append(x_54, x_55); x_57 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_57, 0, x_56); @@ -23939,9 +21364,9 @@ if (lean_is_exclusive(x_61)) { lean_dec_ref(x_61); x_64 = lean_box(0); } -x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__0), 1, 0); -x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__1), 1, 0); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40___lam__2), 5, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__0), 1, 0); +x_66 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__1), 1, 0); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40___lam__2), 5, 2); lean_closure_set(x_67, 0, x_2); lean_closure_set(x_67, 1, x_66); if (lean_is_scalar(x_64)) { @@ -23978,10 +21403,10 @@ else { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_2); -x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0; +x_75 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0; x_76 = lean_string_append(x_75, x_1); lean_dec_ref(x_1); -x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3; +x_77 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3; x_78 = lean_string_append(x_76, x_77); x_79 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_79, 0, x_78); @@ -23994,7 +21419,7 @@ return x_80; } } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24002,7 +21427,7 @@ x_1 = lean_mk_string_unchecked("textDocument/waitForDiagnostics", 31, 31); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24010,7 +21435,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnosti return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24018,7 +21443,7 @@ x_1 = lean_mk_string_unchecked("textDocument/completion", 23, 23); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24026,7 +21451,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleCompletion), 3, return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24034,7 +21459,7 @@ x_1 = lean_mk_string_unchecked("completionItem/resolve", 22, 22); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24042,7 +21467,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleCompletionItemRe return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24050,7 +21475,7 @@ x_1 = lean_mk_string_unchecked("textDocument/hover", 18, 18); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24058,7 +21483,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover), 3, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24066,7 +21491,7 @@ x_1 = lean_mk_string_unchecked("textDocument/declaration", 24, 24); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -24077,7 +21502,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24085,7 +21510,7 @@ x_1 = lean_mk_string_unchecked("textDocument/definition", 23, 23); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -24096,7 +21521,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24104,7 +21529,7 @@ x_1 = lean_mk_string_unchecked("textDocument/typeDefinition", 27, 27); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -24115,7 +21540,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24123,7 +21548,7 @@ x_1 = lean_mk_string_unchecked("textDocument/documentHighlight", 30, 30); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24131,7 +21556,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentHighligh return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24139,7 +21564,7 @@ x_1 = lean_mk_string_unchecked("textDocument/documentSymbol", 27, 27); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24147,7 +21572,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol__ return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24155,7 +21580,7 @@ x_1 = lean_mk_string_unchecked("textDocument/foldingRange", 25, 25); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24163,7 +21588,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleFoldingRange___b return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24171,7 +21596,7 @@ x_1 = lean_mk_string_unchecked("textDocument/signatureHelp", 26, 26); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24179,7 +21604,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSignatureHelp), return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24187,7 +21612,7 @@ x_1 = lean_mk_string_unchecked("$/lean/plainGoal", 16, 16); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24195,7 +21620,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal), 3, 0 return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24203,7 +21628,7 @@ x_1 = lean_mk_string_unchecked("$/lean/plainTermGoal", 20, 20); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_() { _start: { lean_object* x_1; @@ -24211,121 +21636,121 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainTermGoal), return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_3 = l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_4 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0(x_2, x_3, x_1); +x_2 = l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_3 = l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_4 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec_ref(x_4); -x_6 = l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_7 = l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_8 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3(x_6, x_7, x_5); +x_6 = l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_7 = l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_8 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3(x_6, x_7, x_5); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec_ref(x_8); -x_10 = l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_11 = l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_12 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6(x_10, x_11, x_9); +x_10 = l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_11 = l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_12 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6(x_10, x_11, x_9); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec_ref(x_12); -x_14 = l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_15 = l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_16 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9(x_14, x_15, x_13); +x_14 = l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_15 = l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_16 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9(x_14, x_15, x_13); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec_ref(x_16); -x_18 = l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_19 = l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_20 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13(x_18, x_19, x_17); +x_18 = l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_19 = l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_20 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13(x_18, x_19, x_17); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec_ref(x_20); -x_22 = l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_23 = l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_24 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13(x_22, x_23, x_21); +x_22 = l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_23 = l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_24 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13(x_22, x_23, x_21); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec_ref(x_24); -x_26 = l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_27 = l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_28 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13(x_26, x_27, x_25); +x_26 = l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_27 = l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_28 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13(x_26, x_27, x_25); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_29 = lean_ctor_get(x_28, 1); lean_inc(x_29); lean_dec_ref(x_28); -x_30 = l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_31 = l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_32 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18(x_30, x_31, x_29); +x_30 = l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_31 = l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_32 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18(x_30, x_31, x_29); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec_ref(x_32); -x_34 = l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_35 = l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_36 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23(x_34, x_35, x_33); +x_34 = l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_35 = l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_36 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23(x_34, x_35, x_33); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec_ref(x_36); -x_38 = l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_39 = l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_40 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27(x_38, x_39, x_37); +x_38 = l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_39 = l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_40 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27(x_38, x_39, x_37); if (lean_obj_tag(x_40) == 0) { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec_ref(x_40); -x_42 = l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_43 = l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_44 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32(x_42, x_43, x_41); +x_42 = l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_43 = l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_44 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32(x_42, x_43, x_41); if (lean_obj_tag(x_44) == 0) { lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); lean_dec_ref(x_44); -x_46 = l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_47 = l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_48 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36(x_46, x_47, x_45); +x_46 = l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_47 = l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_48 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36(x_46, x_47, x_45); if (lean_obj_tag(x_48) == 0) { lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; x_49 = lean_ctor_get(x_48, 1); lean_inc(x_49); lean_dec_ref(x_48); -x_50 = l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_51 = l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_; -x_52 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40(x_50, x_51, x_49); +x_50 = l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_51 = l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_; +x_52 = l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40(x_50, x_51, x_49); return x_52; } else @@ -24389,52 +21814,52 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__1(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__1(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__3_spec__4(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__3_spec__4(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__6_spec__7(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__6_spec__7(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__9_spec__10(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__9_spec__10(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__14(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__14(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15_spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15_spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -24442,20 +21867,20 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__13_spec__15_spec__15(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__13_spec__15_spec__15(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__19(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__19(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20_spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20_spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -24463,29 +21888,29 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__18_spec__20_spec__20(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__18_spec__20_spec__20(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__23_spec__24(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__23_spec__24(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__28(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__28(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29_spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29_spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -24493,33 +21918,33 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__27_spec__29_spec__29(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__27_spec__29_spec__29(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__32_spec__33(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__32_spec__33(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__36_spec__37(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__36_spec__37(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__40_spec__41(x_1, x_2, x_3); +x_4 = l_Lean_Server_RequestM_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__40_spec__41(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } @@ -24561,68 +21986,42 @@ l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__0 = _init_l_Lean_Se lean_mark_persistent(l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__0); l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__1 = _init_l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleCompletion___lam__0___closed__1); -l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__0 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__0(); -lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__0); -l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__1 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__1(); -lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__1); -l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__2 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__2(); -lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__2); -l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3(); -lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__0___redArg___closed__3); -l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__0); -l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo_extractInstances___redArg___closed__1); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__0___closed__0); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__5___closed__0); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__0); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__1); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__2); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__3); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__4 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__4(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__4); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__5 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__5(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__5); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__6 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__6(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__6); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__7 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__7(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__7); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__8 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__8(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__8); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__9 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__9(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__9); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__10 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__10(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__10); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__11 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__11(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__11); -l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__12 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__12(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___lam__8___closed__12); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__0 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__0(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__0); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__1); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__2 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__2(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__2); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__3); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__4); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__5); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__6 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__6(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__6); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__7); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__8 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__8(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__8); -l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9 = _init_l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9(); -lean_mark_persistent(l_Lean_Server_FileWorker_locationLinksOfInfo___closed__9); +l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__0 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__0(); +lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__0); +l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__1 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__1(); +lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__1); +l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__2 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__2(); +lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__2); +l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3 = _init_l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3(); +lean_mark_persistent(l_List_findSomeM_x3f___at___Lean_Server_FileWorker_handleHover_spec__1___redArg___closed__3); +l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg___closed__0 = _init_l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg___closed__0(); +lean_mark_persistent(l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1_spec__1___redArg___closed__0); +l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__0 = _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__0); +l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__1 = _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__1); +l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__2 = _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__2(); +lean_mark_persistent(l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__2); +l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__3 = _init_l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__3(); +lean_mark_persistent(l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1_spec__1___redArg___closed__3); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__0); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__1 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__1); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__2); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__3); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__4 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__4(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__4); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__5 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__5(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__5); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__6 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__6(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__6); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__7 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__7(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Server_FileWorker_handleDefinition_spec__1___lam__2___closed__7); +l_Lean_Server_FileWorker_handleDefinition___closed__0 = _init_l_Lean_Server_FileWorker_handleDefinition___closed__0(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleDefinition___closed__0); l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__0 = _init_l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__0); l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__1 = _init_l_Lean_Server_FileWorker_findGoalsAt_x3f___lam__3___closed__1(); @@ -24675,6 +22074,10 @@ l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4 lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4); l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5 = _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__5); +l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6 = _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6); +l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7 = _init_l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7); l_Lean_Server_FileWorker_handleDocumentHighlight___lam__0___closed__0 = _init_l_Lean_Server_FileWorker_handleDocumentHighlight___lam__0___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentHighlight___lam__0___closed__0); l_Lean_Server_FileWorker_handleDocumentHighlight___closed__0 = _init_l_Lean_Server_FileWorker_handleDocumentHighlight___closed__0(); @@ -24687,10 +22090,6 @@ l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__2 = _init_l_Lean_Server lean_mark_persistent(l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__2); l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__3 = _init_l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__3(); lean_mark_persistent(l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__3); -l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__4 = _init_l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__4(); -lean_mark_persistent(l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__4); -l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__5 = _init_l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__5(); -lean_mark_persistent(l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__5); l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__0 = _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__0); l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__1 = _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lam__10___closed__1(); @@ -24743,6 +22142,8 @@ l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__20 = _ lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__20); l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__21 = _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__21(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__21); +l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0 = _init_l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_popStack___closed__0); l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__0 = _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__0); l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1 = _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__1(); @@ -24751,6 +22152,8 @@ l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2 = _init_l_Lean_ lean_mark_persistent(l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__2); l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3 = _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3(); lean_mark_persistent(l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__3); +l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4 = _init_l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4(); +lean_mark_persistent(l_Lean_Server_FileWorker_handleFoldingRange_isImport___closed__4); l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___redArg___closed__0 = _init_l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___redArg___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_handleFoldingRange_addCommandRange___redArg___closed__0); l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__0 = _init_l_Lean_Server_FileWorker_handleFoldingRange_addRanges___closed__0(); @@ -24761,75 +22164,75 @@ l_Lean_Server_FileWorker_handleFoldingRange___redArg___lam__0___closed__0 = _ini lean_mark_persistent(l_Lean_Server_FileWorker_handleFoldingRange___redArg___lam__0___closed__0); l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__0___closed__0 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__0___closed__0(); lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lam__0___closed__0); -l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0 = _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__0); -l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1 = _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0_spec__0___closed__1); -l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__0 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__0(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__0); -l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___lam__1___closed__1); -l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__0); -l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__1); -l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__2); -l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283__spec__0___closed__3); -l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_ = _init_l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_); -if (builtin) {res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_13283_(lean_io_mk_world()); +l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0 = _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__0); +l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1 = _init_l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at___Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0_spec__0___closed__1); +l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__0 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__0(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__0); +l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___lam__1___closed__1); +l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__0); +l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__1); +l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__2); +l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3 = _init_l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at___Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397__spec__0___closed__3); +l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__0____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__1____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__2____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__3____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__4____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__5____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__6____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__7____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__8____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__9____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__10____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__11____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__12____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__13____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__14____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__15____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__16____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__17____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__18____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__19____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__20____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__21____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__22____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__23____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__24____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_ = _init_l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn___closed__25____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_); +if (builtin) {res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10397_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c b/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c index d9de9b957d..bdf26143a5 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c +++ b/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c @@ -22,9 +22,10 @@ LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_regis extern lean_object* l_Lean_pp_sorrySource; LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__3___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_68_(lean_object*); lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1969_; +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0(lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_; lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -37,10 +38,13 @@ lean_object* l_Lean_Widget_ppExprTagged(lean_object*, lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__2(lean_object*, lean_object*); static lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_538_; static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__7____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1632__spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams; lean_object* l_Lean_PrettyPrinter_Delaborator_delabApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); static size_t l_Lean_Widget_instInhabitedMsgToInteractive___closed__1; uint8_t l_Array_isEmpty___redArg(lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0___closed__0; @@ -57,9 +61,10 @@ static lean_object* l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWork static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__9____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; static lean_object* l_Lean_Widget_initFn___closed__3____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_; static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_806_; static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612__spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0(lean_object*, lean_object*, lean_object*); uint8_t lean_uint64_dec_lt(uint64_t, uint64_t); @@ -73,22 +78,23 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_lazyTraceChil static lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1826_; static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; LEAN_EXPORT lean_object* l_Lean_Json_opt___at___Lean_Widget_toJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1746__spec__0(lean_object*, lean_object*); -lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28_(uint8_t); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_instRpcEncodableInteractiveTermGoal_enc____x40_Lean_Widget_InteractiveGoal___hyg_2275_(lean_object*, lean_object*); extern lean_object* l_Lean_pp_explicit; static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__8____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentArray_empty(lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedGetInteractiveDiagnosticsParams; LEAN_EXPORT uint8_t l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__0(lean_object*); lean_object* l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonRegistration____x40_Lean_Data_Lsp_Client___hyg_106__spec__0_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1_spec__1(size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonLineRange____x40_Lean_Data_Lsp_Extra___hyg_4410_(lean_object*); static lean_object* l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592_; lean_object* l_Lean_Server_RequestM_pureTask___redArg(lean_object*, lean_object*, lean_object*); @@ -105,10 +111,11 @@ static lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive___closed__2; lean_object* l_Lean_initializing(lean_object*); lean_object* l_Prod_map___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getStr_x3f(lean_object*); -lean_object* l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_67_(lean_object*); +lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29_(uint8_t); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1774_(lean_object*, lean_object*); +lean_object* l_Lean_Server_locationLinksOfInfo(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at___Lean_Widget_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5__spec__7___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_toJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_632____at___Lean_Widget_instRpcEncodableInteractiveHypothesisBundle_enc____x40_Lean_Widget_InteractiveGoal___hyg_5__spec__4(lean_object*); @@ -124,6 +131,7 @@ lean_object* l_Lean_Elab_Info_type_x3f(lean_object*, lean_object*, lean_object*, lean_object* l_Array_toJson___at___Lean_Json_opt___at___Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_676__spec__0_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679__spec__0(lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonPlainTermGoalParams____x40_Lean_Data_Lsp_Extra___hyg_1682_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_5_(lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592_; lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); @@ -131,13 +139,12 @@ static lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBu LEAN_EXPORT lean_object* l_Lean_Widget_makePopup_ppExprForPopup___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__4____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; LEAN_EXPORT lean_object* l_Lean_Widget_lazyTraceChildrenToInteractive___lam__0___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_GoToM_run___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive; LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedMsgToInteractive; -lean_object* l_Lean_Server_locationLinksFromDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_lazyTraceChildrenToInteractive_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_makePopup_ppExprForPopup___lam__0___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_(lean_object*); static lean_object* l_Lean_Widget_makePopup_ppExprForPopup___lam__0___closed__4; LEAN_EXPORT lean_object* l_Lean_Widget_lazyTraceChildrenToInteractive___lam__0(lean_object*, lean_object*, lean_object*); @@ -145,70 +152,70 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__6____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; extern lean_object* l_Lean_pp_tagAppFns; LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612__spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_; LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679__spec__0_spec__0(lean_object*); static lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1826_; lean_object* l_Lean_PrettyPrinter_Delaborator_delab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__4___closed__3; static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup___closed__0; LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_211_; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1826_(lean_object*); lean_object* l_Lean_Expr_constName_x3f(lean_object*); lean_object* l_List_flatMapTR_go___at___toJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_250__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup_maybeWithoutTopLevelHighlight___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive___closed__0; +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612_(lean_object*); +lean_object* l_Lean_Server_locationLinksFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1632__spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0_spec__0(lean_object*, lean_object*, uint64_t); static lean_object* l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612_; LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1632__spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_454_(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__2; LEAN_EXPORT lean_object* l_Lean_Widget_makePopup___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679__spec__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Widget_makePopup_ppExprForPopup___lam__0___closed__3; lean_object* l_Option_toJson___at___Lean_Lsp_toJsonRegistration____x40_Lean_Data_Lsp_Client___hyg_40__spec__0(lean_object*); static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__11____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; static lean_object* l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -static lean_object* l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_; LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_dec____x40_Lean_Server_FileWorker_WidgetRequests___hyg_454_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_instRpcEncodableWithRpcRefOfTypeName_rpcEncode___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0_spec__0(size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0___closed__2; LEAN_EXPORT lean_object* l_Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_214_(lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup_ppExprForPopup(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_withOptionAtCurrPos___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_makePopup_ppExprForPopup___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Widget_instImpl____x40_Lean_Widget_InteractiveDiagnostic___hyg_563_; +static lean_object* l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_; +static lean_object* l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; static lean_object* l_Lean_Widget_instRpcEncodableMsgToInteractive___closed__1; -static lean_object* l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1632_(lean_object*); static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0___closed__3; lean_object* l_Lean_Widget_instRpcEncodableInteractiveGoals_enc____x40_Lean_Widget_InteractiveGoal___hyg_3401_(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_; +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_pp_proofs; static lean_object* l_Lean_Widget_instToJsonGetInteractiveDiagnosticsParams___closed__0; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612_; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_makePopup_ppExprForPopup___lam__0___closed__1; lean_object* l_Lean_Widget_instRpcEncodableSubexprInfo_dec____x40_Lean_Widget_InteractiveCode___hyg_292_(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instInhabitedMsgToInteractive___closed__2; static lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__0; static lean_object* l_Option_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679__spec__0_spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_743____boxed(lean_object*); -static lean_object* l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_; -lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_538_(lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -222,18 +229,17 @@ LEAN_EXPORT lean_object* l_Lean_Widget_makePopup_maybeWithoutTopLevelHighlight(u LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableInfoPopup; static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; static lean_object* l_Lean_Widget_instFromJsonGetInteractiveDiagnosticsParams___closed__0; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0_spec__0___redArg(lean_object*, uint64_t); static lean_object* l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612_; static lean_object* l_Lean_Widget_instFromJsonRpcEncodablePacket___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_211_; lean_object* l_Lean_Server_RequestM_mapTaskCheap___redArg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0_spec__0(size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Widget_msgToInteractive(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_(lean_object*); static lean_object* l_Lean_Widget_toJsonRpcEncodablePacket___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_214_; static lean_object* l_Lean_Widget_makePopup___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_instInhabitedMsgToInteractive___closed__3; size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0___lam__4___closed__2; @@ -243,6 +249,7 @@ static lean_object* l_Lean_Widget_initFn___closed__4____x40_Lean_Server_FileWork lean_object* l_Lean_Server_instRpcEncodableWithRpcRefOfTypeName_rpcDecode___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_fromJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_418____at___Lean_Widget_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5__spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_68_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Info_lctx(lean_object*); lean_object* l_Lean_Widget_TaggedText_mapM___at___Lean_Widget_instRpcEncodableInteractiveHypothesisBundle_enc____x40_Lean_Widget_InteractiveGoal___hyg_5__spec__2___redArg(lean_object*, lean_object*, lean_object*); @@ -255,30 +262,31 @@ LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404__spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0_spec__0(size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_lazyTraceChildrenToInteractive(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Widget_instRpcEncodableInfoPopup_dec___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_454_; -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_fromJsonGetInteractiveDiagnosticsParams___closed__5____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1679_; +static lean_object* l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_; +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonGetInteractiveDiagnosticsParams; +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612__spec__0_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2021_; lean_object* l_Lean_Lsp_toJsonLineRange____x40_Lean_Data_Lsp_Extra___hyg_4516_(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodableGetGoToLocationParams_enc____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1774____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(size_t, size_t, lean_object*); extern lean_object* l_Lean_pp_mvars_anonymous; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_lazyTraceChildrenToInteractive_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0(lean_object*, lean_object*); lean_object* l_Lean_Server_RequestError_ofIoError(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1612__spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_; lean_object* l_Lean_Elab_ContextInfo_runMetaM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodablePacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_263_; +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Widget_instImpl____x40_Lean_Widget_Basic___hyg_5_; static lean_object* l_Lean_Widget_fromJsonRpcEncodablePacket___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_538_; @@ -6010,7 +6018,7 @@ if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_6, 0); -x_9 = l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28_(x_3); +x_9 = l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29_(x_3); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_8); @@ -6026,7 +6034,7 @@ x_13 = lean_ctor_get(x_6, 1); lean_inc(x_13); lean_inc(x_12); lean_dec(x_6); -x_14 = l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28_(x_3); +x_14 = l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29_(x_3); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_12); @@ -6060,7 +6068,7 @@ lean_inc(x_5); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); lean_dec(x_4); -x_7 = l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_67_(x_5); +x_7 = l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_68_(x_5); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -6181,7 +6189,34 @@ x_1 = l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__2; return x_1; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_ctor_get(x_5, 0); +lean_inc_ref(x_6); +lean_dec(x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_8, x_2, x_6); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1_spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -6210,7 +6245,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_3) == 0) @@ -6244,7 +6279,7 @@ lean_inc(x_13); lean_dec(x_10); x_14 = lean_array_size(x_8); x_15 = 0; -x_16 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0_spec__0(x_14, x_15, x_8, x_12); +x_16 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1_spec__1(x_14, x_15, x_8, x_12); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -6325,7 +6360,7 @@ return x_40; } } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint64_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint64_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; @@ -6418,7 +6453,7 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec_ref(x_35); -x_38 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3___boxed), 5, 2); +x_38 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3___boxed), 5, 2); lean_closure_set(x_38, 0, x_13); lean_closure_set(x_38, 1, x_4); x_39 = l_Lean_Server_RequestM_mapTaskCheap___redArg(x_36, x_38, x_7, x_37); @@ -6516,7 +6551,7 @@ lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); lean_dec_ref(x_64); -x_67 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3___boxed), 5, 2); +x_67 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3___boxed), 5, 2); lean_closure_set(x_67, 0, x_13); lean_closure_set(x_67, 1, x_4); x_68 = l_Lean_Server_RequestM_mapTaskCheap___redArg(x_65, x_67, x_7, x_66); @@ -6554,13 +6589,13 @@ return x_72; } } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_Lean_Widget_makePopup___closed__0; x_4 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___closed__0; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__0___boxed), 8, 4); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__0___boxed), 8, 4); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, x_3); lean_closure_set(x_5, 2, x_2); @@ -6568,7 +6603,7 @@ lean_closure_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -6628,7 +6663,7 @@ x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec_ref(x_25); lean_inc(x_1); -x_28 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0(x_1, x_2); +x_28 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1(x_1, x_2); x_29 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(x_26, x_1, x_28); x_30 = lean_st_ref_set(x_19, x_29, x_27); x_31 = !lean_is_exclusive(x_30); @@ -6684,7 +6719,7 @@ x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); lean_dec_ref(x_41); lean_inc(x_1); -x_44 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0(x_1, x_2); +x_44 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1(x_1, x_2); x_45 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(x_42, x_1, x_44); x_46 = lean_st_ref_set(x_19, x_45, x_43); x_47 = lean_ctor_get(x_46, 0); @@ -6788,7 +6823,7 @@ x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); lean_dec_ref(x_75); lean_inc(x_1); -x_78 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0(x_1, x_2); +x_78 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1(x_1, x_2); x_79 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(x_76, x_1, x_78); x_80 = lean_st_ref_set(x_69, x_79, x_77); x_81 = lean_ctor_get(x_80, 0); @@ -6835,7 +6870,65 @@ return x_88; } } } -static lean_object* _init_l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_() { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Server_locationLinksFromDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; size_t x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_array_size(x_11); +x_13 = l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(x_12, x_2, x_11); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; size_t x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_9, 0); +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_9); +x_16 = lean_array_size(x_14); +x_17 = l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(x_16, x_2, x_14); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_15); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_9); +if (x_19 == 0) +{ +return x_9; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_9, 0); +x_21 = lean_ctor_get(x_9, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_9); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_() { _start: { lean_object* x_1; lean_object* x_2; @@ -6844,325 +6937,498 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_() { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_box(0); -lean_inc_ref(x_3); -lean_inc(x_2); -x_6 = l_Lean_Server_FileWorker_locationLinksOfInfo(x_1, x_2, x_5, x_3, x_4); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -x_9 = l_Array_isEmpty___redArg(x_7); -lean_dec(x_7); -if (x_9 == 0) -{ -lean_dec(x_8); -lean_dec_ref(x_3); -lean_dec(x_2); -return x_6; +lean_object* x_1; +x_1 = l_Lean_PersistentArray_empty(lean_box(0)); +return x_1; } -else +} +static lean_object* _init_l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_() { +_start: +{ +size_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_box_usize(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_5); +lean_dec_ref(x_3); +x_6 = lean_ctor_get(x_5, 0); +lean_inc_ref(x_6); +lean_dec_ref(x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc_ref(x_7); +lean_dec_ref(x_6); +x_8 = lean_box(0); +lean_inc(x_2); +lean_inc_ref(x_7); +x_9 = l_Lean_Server_locationLinksOfInfo(x_7, x_1, x_2, x_8, x_4); +if (lean_obj_tag(x_9) == 0) { uint8_t x_10; -x_10 = !lean_is_exclusive(x_6); +x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_6, 1); -lean_dec(x_11); -x_12 = lean_ctor_get(x_6, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_2, 1); -lean_inc_ref(x_13); -if (lean_obj_tag(x_13) == 1) +lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_array_size(x_11); +x_14 = 0; +x_15 = l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(x_13, x_14, x_11); +x_16 = l_Array_isEmpty___redArg(x_15); +if (x_16 == 0) { -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_13, 0); -lean_inc_ref(x_14); -lean_dec_ref(x_13); -x_15 = lean_ctor_get(x_14, 3); -lean_inc_ref(x_15); -if (lean_obj_tag(x_15) == 5) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_16); +lean_dec_ref(x_7); lean_dec(x_2); -x_17 = lean_ctor_get(x_14, 1); -lean_inc_ref(x_17); -lean_dec_ref(x_14); -x_18 = l_Lean_Expr_getAppFn(x_15); +lean_ctor_set(x_9, 0, x_15); +return x_9; +} +else +{ +lean_object* x_17; lean_dec_ref(x_15); -x_19 = l_Lean_Expr_constName_x3f(x_18); -lean_dec_ref(x_18); -if (lean_obj_tag(x_19) == 0) +x_17 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_17); +if (lean_obj_tag(x_17) == 1) { -lean_object* x_20; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc_ref(x_18); lean_dec_ref(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_3); -x_20 = l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -lean_ctor_set(x_6, 0, x_20); -return x_6; -} -else +x_19 = lean_ctor_get(x_18, 3); +lean_inc_ref(x_19); +if (lean_obj_tag(x_19) == 5) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_free_object(x_6); -x_21 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_21); -lean_dec_ref(x_3); -x_22 = lean_ctor_get(x_21, 0); -lean_inc_ref(x_22); -lean_dec_ref(x_21); -x_23 = lean_ctor_get(x_22, 0); -lean_inc_ref(x_23); +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_20); +lean_dec(x_2); +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_18, 1); +x_23 = lean_ctor_get(x_18, 3); +lean_dec(x_23); +x_24 = lean_ctor_get(x_18, 2); +lean_dec(x_24); +x_25 = lean_ctor_get(x_18, 0); +lean_dec(x_25); +x_26 = l_Lean_Expr_getAppFn(x_19); +lean_dec_ref(x_19); +x_27 = l_Lean_Expr_constName_x3f(x_26); +lean_dec_ref(x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +lean_free_object(x_18); lean_dec_ref(x_22); -x_24 = lean_ctor_get(x_19, 0); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_ctor_get(x_23, 0); -lean_inc_ref(x_25); -lean_dec_ref(x_23); -x_26 = lean_box(0); -x_27 = lean_alloc_closure((void*)(l_Lean_Server_locationLinksFromDecl___boxed), 8, 3); -lean_closure_set(x_27, 0, x_25); -lean_closure_set(x_27, 1, x_24); -lean_closure_set(x_27, 2, x_26); -x_28 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_16, x_17, x_27, x_8); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -return x_28; +lean_dec_ref(x_20); +lean_dec_ref(x_7); +x_28 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +lean_ctor_set(x_9, 0, x_28); +return x_9; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_28); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_free_object(x_9); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_31 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed), 8, 2); +lean_closure_set(x_31, 0, x_29); +lean_closure_set(x_31, 1, x_30); +x_32 = lean_box(0); +x_33 = l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +lean_ctor_set(x_18, 3, x_33); +lean_ctor_set(x_18, 2, x_32); +lean_ctor_set(x_18, 1, x_8); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_1); +x_34 = l_Lean_Server_GoToM_run___redArg(x_18, x_20, x_22, x_31, x_12); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +return x_34; } else { -uint8_t x_33; -x_33 = !lean_is_exclusive(x_28); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_28, 0); -x_35 = l_Lean_Server_RequestError_ofIoError(x_34); -lean_ctor_set(x_28, 0, x_35); -return x_28; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_28, 0); -x_37 = lean_ctor_get(x_28, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); lean_inc(x_37); lean_inc(x_36); -lean_dec(x_28); -x_38 = l_Lean_Server_RequestError_ofIoError(x_36); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_34, 0); +x_41 = l_Lean_Server_RequestError_ofIoError(x_40); +lean_ctor_set(x_34, 0, x_41); +return x_34; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_34, 0); +x_43 = lean_ctor_get(x_34, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_34); +x_44 = l_Lean_Server_RequestError_ofIoError(x_42); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +return x_45; } } } } else { -lean_object* x_40; -lean_dec_ref(x_15); -lean_dec_ref(x_14); -lean_dec_ref(x_3); -lean_dec(x_2); -x_40 = l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -lean_ctor_set(x_6, 0, x_40); -return x_6; -} -} -else -{ -lean_object* x_41; -lean_dec_ref(x_13); -lean_dec_ref(x_3); -lean_dec(x_2); -x_41 = l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -lean_ctor_set(x_6, 0, x_41); -return x_6; -} -} -else -{ -lean_object* x_42; -lean_dec(x_6); -x_42 = lean_ctor_get(x_2, 1); -lean_inc_ref(x_42); -if (lean_obj_tag(x_42) == 1) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc_ref(x_43); -lean_dec_ref(x_42); -x_44 = lean_ctor_get(x_43, 3); -lean_inc_ref(x_44); -if (lean_obj_tag(x_44) == 5) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_45); -lean_dec(x_2); -x_46 = lean_ctor_get(x_43, 1); -lean_inc_ref(x_46); -lean_dec_ref(x_43); -x_47 = l_Lean_Expr_getAppFn(x_44); -lean_dec_ref(x_44); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_18, 1); +lean_inc(x_46); +lean_dec(x_18); +x_47 = l_Lean_Expr_getAppFn(x_19); +lean_dec_ref(x_19); x_48 = l_Lean_Expr_constName_x3f(x_47); lean_dec_ref(x_47); if (lean_obj_tag(x_48) == 0) { -lean_object* x_49; lean_object* x_50; +lean_object* x_49; lean_dec_ref(x_46); -lean_dec_ref(x_45); -lean_dec_ref(x_3); -x_49 = l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_8); -return x_50; +lean_dec_ref(x_20); +lean_dec_ref(x_7); +x_49 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +lean_ctor_set(x_9, 0, x_49); +return x_9; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_51 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_51); -lean_dec_ref(x_3); -x_52 = lean_ctor_get(x_51, 0); -lean_inc_ref(x_52); -lean_dec_ref(x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc_ref(x_53); -lean_dec_ref(x_52); -x_54 = lean_ctor_get(x_48, 0); -lean_inc(x_54); +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_free_object(x_9); +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); lean_dec(x_48); -x_55 = lean_ctor_get(x_53, 0); -lean_inc_ref(x_55); -lean_dec_ref(x_53); -x_56 = lean_box(0); -x_57 = lean_alloc_closure((void*)(l_Lean_Server_locationLinksFromDecl___boxed), 8, 3); -lean_closure_set(x_57, 0, x_55); -lean_closure_set(x_57, 1, x_54); -lean_closure_set(x_57, 2, x_56); -x_58 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_45, x_46, x_57, x_8); -if (lean_obj_tag(x_58) == 0) +x_51 = l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_52 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed), 8, 2); +lean_closure_set(x_52, 0, x_50); +lean_closure_set(x_52, 1, x_51); +x_53 = lean_box(0); +x_54 = l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_55 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_55, 0, x_7); +lean_ctor_set(x_55, 1, x_8); +lean_ctor_set(x_55, 2, x_53); +lean_ctor_set(x_55, 3, x_54); +lean_ctor_set_uint8(x_55, sizeof(void*)*4, x_1); +x_56 = l_Lean_Server_GoToM_run___redArg(x_55, x_20, x_46, x_52, x_12); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; } else { - lean_dec_ref(x_58); - x_61 = lean_box(0); + lean_dec_ref(x_56); + x_59 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_62 = x_61; + x_60 = x_59; } -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return x_62; +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_63 = lean_ctor_get(x_58, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_58, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_65 = x_58; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; } else { - lean_dec_ref(x_58); - x_65 = lean_box(0); + lean_dec_ref(x_56); + x_63 = lean_box(0); } -x_66 = l_Lean_Server_RequestError_ofIoError(x_63); -if (lean_is_scalar(x_65)) { - x_67 = lean_alloc_ctor(1, 2, 0); +x_64 = l_Lean_Server_RequestError_ofIoError(x_61); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(1, 2, 0); } else { - x_67 = x_65; + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_62); +return x_65; } -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_64); -return x_67; } } } else { -lean_object* x_68; lean_object* x_69; -lean_dec_ref(x_44); -lean_dec_ref(x_43); -lean_dec_ref(x_3); +lean_object* x_66; +lean_dec_ref(x_19); +lean_dec_ref(x_18); +lean_dec_ref(x_7); lean_dec(x_2); -x_68 = l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_8); -return x_69; +x_66 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +lean_ctor_set(x_9, 0, x_66); +return x_9; } } else { -lean_object* x_70; lean_object* x_71; -lean_dec_ref(x_42); -lean_dec_ref(x_3); +lean_object* x_67; +lean_dec_ref(x_17); +lean_dec_ref(x_7); lean_dec(x_2); -x_70 = l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_8); -return x_71; +x_67 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +lean_ctor_set(x_9, 0, x_67); +return x_9; +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; size_t x_70; size_t x_71; lean_object* x_72; uint8_t x_73; +x_68 = lean_ctor_get(x_9, 0); +x_69 = lean_ctor_get(x_9, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_9); +x_70 = lean_array_size(x_68); +x_71 = 0; +x_72 = l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(x_70, x_71, x_68); +x_73 = l_Array_isEmpty___redArg(x_72); +if (x_73 == 0) +{ +lean_object* x_74; +lean_dec_ref(x_7); +lean_dec(x_2); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_69); +return x_74; +} +else +{ +lean_object* x_75; +lean_dec_ref(x_72); +x_75 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_75); +if (lean_obj_tag(x_75) == 1) +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_75, 0); +lean_inc_ref(x_76); +lean_dec_ref(x_75); +x_77 = lean_ctor_get(x_76, 3); +lean_inc_ref(x_77); +if (lean_obj_tag(x_77) == 5) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_78); +lean_dec(x_2); +x_79 = lean_ctor_get(x_76, 1); +lean_inc_ref(x_79); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + lean_ctor_release(x_76, 3); + x_80 = x_76; +} else { + lean_dec_ref(x_76); + x_80 = lean_box(0); +} +x_81 = l_Lean_Expr_getAppFn(x_77); +lean_dec_ref(x_77); +x_82 = l_Lean_Expr_constName_x3f(x_81); +lean_dec_ref(x_81); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_80); +lean_dec_ref(x_79); +lean_dec_ref(x_78); +lean_dec_ref(x_7); +x_83 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_69); +return x_84; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_85 = lean_ctor_get(x_82, 0); +lean_inc(x_85); +lean_dec(x_82); +x_86 = l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_87 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed), 8, 2); +lean_closure_set(x_87, 0, x_85); +lean_closure_set(x_87, 1, x_86); +x_88 = lean_box(0); +x_89 = l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +if (lean_is_scalar(x_80)) { + x_90 = lean_alloc_ctor(0, 4, 1); +} else { + x_90 = x_80; +} +lean_ctor_set(x_90, 0, x_7); +lean_ctor_set(x_90, 1, x_8); +lean_ctor_set(x_90, 2, x_88); +lean_ctor_set(x_90, 3, x_89); +lean_ctor_set_uint8(x_90, sizeof(void*)*4, x_1); +x_91 = l_Lean_Server_GoToM_run___redArg(x_90, x_78, x_79, x_87, x_69); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_94 = x_91; +} else { + lean_dec_ref(x_91); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_96 = lean_ctor_get(x_91, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_98 = x_91; +} else { + lean_dec_ref(x_91); + x_98 = lean_box(0); +} +x_99 = l_Lean_Server_RequestError_ofIoError(x_96); +if (lean_is_scalar(x_98)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_98; +} +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_97); +return x_100; +} +} +} +else +{ +lean_object* x_101; lean_object* x_102; +lean_dec_ref(x_77); +lean_dec_ref(x_76); +lean_dec_ref(x_7); +lean_dec(x_2); +x_101 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_69); +return x_102; +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec_ref(x_75); +lean_dec_ref(x_7); +lean_dec(x_2); +x_103 = l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_69); +return x_104; } } } } else { -lean_dec_ref(x_3); +uint8_t x_105; +lean_dec_ref(x_7); lean_dec(x_2); -return x_6; +x_105 = !lean_is_exclusive(x_9); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_9, 0); +x_107 = l_Lean_Server_RequestError_ofIoError(x_106); +lean_ctor_set(x_9, 0, x_107); +return x_9; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_9, 0); +x_109 = lean_ctor_get(x_9, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_9); +x_110 = l_Lean_Server_RequestError_ofIoError(x_108); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -7174,7 +7440,7 @@ x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); lean_dec_ref(x_4); x_7 = lean_box(x_5); -x_8 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed), 4, 2); +x_8 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed), 4, 2); lean_closure_set(x_8, 0, x_7); lean_closure_set(x_8, 1, x_6); x_9 = l_Lean_Server_RequestM_pureTask___redArg(x_8, x_2, x_3); @@ -7204,13 +7470,25 @@ LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_Widg _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_), 3, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Widget_initFn___lam__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_), 3, 0); x_3 = l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_; -x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(x_3, x_2, x_1); +x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1(x_3, x_2, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -7218,36 +7496,50 @@ x_5 = lean_unbox_usize(x_1); lean_dec(x_1); x_6 = lean_unbox_usize(x_2); lean_dec(x_2); -x_7 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0_spec__0(x_5, x_6, x_3, x_4); +x_7 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1_spec__1(x_5, x_6, x_3, x_4); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__3(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__3(x_1, x_2, x_3, x_4, x_5); lean_dec_ref(x_4); lean_dec(x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint64_t x_9; lean_object* x_10; x_9 = lean_unbox_uint64(x_5); lean_dec(x_5); -x_10 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__0_spec__0___lam__0(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); +x_10 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162__spec__1_spec__1___lam__0(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +size_t x_9; lean_object* x_10; +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_1); -x_6 = l_Lean_Widget_initFn___lam__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(x_5, x_2, x_3, x_4); +x_6 = l_Lean_Widget_initFn___lam__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(x_5, x_2, x_3, x_4); return x_6; } } @@ -7394,7 +7686,7 @@ lean_dec_ref(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -7431,7 +7723,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_3) == 0) @@ -7465,7 +7757,7 @@ lean_inc(x_13); lean_dec(x_10); x_14 = lean_array_size(x_8); x_15 = 0; -x_16 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0_spec__0(x_14, x_15, x_8, x_12); +x_16 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0_spec__0(x_14, x_15, x_8, x_12); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -7546,7 +7838,7 @@ return x_40; } } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint64_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint64_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; @@ -7640,7 +7932,7 @@ lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); lean_dec_ref(x_36); -x_39 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3___boxed), 5, 2); +x_39 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3___boxed), 5, 2); lean_closure_set(x_39, 0, x_14); lean_closure_set(x_39, 1, x_5); x_40 = l_Lean_Server_RequestM_mapTaskCheap___redArg(x_37, x_39, x_8, x_38); @@ -7738,7 +8030,7 @@ lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); lean_inc(x_67); lean_dec_ref(x_65); -x_68 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3___boxed), 5, 2); +x_68 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3___boxed), 5, 2); lean_closure_set(x_68, 0, x_14); lean_closure_set(x_68, 1, x_5); x_69 = l_Lean_Server_RequestM_mapTaskCheap___redArg(x_66, x_68, x_8, x_67); @@ -7776,14 +8068,14 @@ return x_73; } } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1592__spec__0_spec__0___closed__0; x_4 = l_Lean_Widget_makePopup___closed__0; x_5 = l_Lean_Widget_instImpl____x40_Lean_Widget_InteractiveDiagnostic___hyg_563_; -x_6 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__0___boxed), 9, 5); +x_6 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__0___boxed), 9, 5); lean_closure_set(x_6, 0, x_5); lean_closure_set(x_6, 1, x_1); lean_closure_set(x_6, 2, x_4); @@ -7792,7 +8084,7 @@ lean_closure_set(x_6, 4, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -7852,7 +8144,7 @@ x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec_ref(x_25); lean_inc(x_1); -x_28 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0(x_1, x_2); +x_28 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0(x_1, x_2); x_29 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(x_26, x_1, x_28); x_30 = lean_st_ref_set(x_19, x_29, x_27); x_31 = !lean_is_exclusive(x_30); @@ -7908,7 +8200,7 @@ x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); lean_dec_ref(x_41); lean_inc(x_1); -x_44 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0(x_1, x_2); +x_44 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0(x_1, x_2); x_45 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(x_42, x_1, x_44); x_46 = lean_st_ref_set(x_19, x_45, x_43); x_47 = lean_ctor_get(x_46, 0); @@ -8012,7 +8304,7 @@ x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); lean_dec_ref(x_75); lean_inc(x_1); -x_78 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0(x_1, x_2); +x_78 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0(x_1, x_2); x_79 = l_Lean_PersistentHashMap_insert___at___Lean_SMap_insert___at_____private_Lean_Environment_0__Lean_Kernel_Environment_add_spec__0_spec__0___redArg(x_76, x_1, x_78); x_80 = lean_st_ref_set(x_69, x_79, x_77); x_81 = lean_ctor_get(x_80, 0); @@ -8059,7 +8351,7 @@ return x_88; } } } -static lean_object* _init_l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_() { +static lean_object* _init_l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_() { _start: { lean_object* x_1; @@ -8067,18 +8359,18 @@ x_1 = lean_mk_string_unchecked("lazyTraceChildrenToInteractive", 30, 30); return x_1; } } -static lean_object* _init_l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_() { +static lean_object* _init_l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_; +x_1 = l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_; x_2 = l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_; x_3 = l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_404_; x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_() { +static lean_object* _init_l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_() { _start: { lean_object* x_1; @@ -8086,17 +8378,17 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Widget_lazyTraceChildrenToInteractive), return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_; -x_3 = l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_; -x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0(x_2, x_3, x_1); +x_2 = l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_; +x_3 = l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_; +x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -8104,27 +8396,27 @@ x_5 = lean_unbox_usize(x_1); lean_dec(x_1); x_6 = lean_unbox_usize(x_2); lean_dec(x_2); -x_7 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0_spec__0(x_5, x_6, x_3, x_4); +x_7 = l_Array_mapMUnsafe_map___at___Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0_spec__0(x_5, x_6, x_3, x_4); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__3(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__3(x_1, x_2, x_3, x_4, x_5); lean_dec_ref(x_4); lean_dec(x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint64_t x_10; lean_object* x_11; x_10 = lean_unbox_uint64(x_6); lean_dec(x_6); -x_11 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466__spec__0_spec__0___lam__0(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +x_11 = l_Lean_Server_wrapRpcProcedure___at___Lean_Server_registerBuiltinRpcProcedure___at___Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521__spec__0_spec__0___lam__0(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); return x_11; } } @@ -8352,8 +8644,12 @@ l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__2 = _init_l_Lean_W lean_mark_persistent(l_Lean_Widget_instRpcEncodableGetGoToLocationParams___closed__2); l_Lean_Widget_instRpcEncodableGetGoToLocationParams = _init_l_Lean_Widget_instRpcEncodableGetGoToLocationParams(); lean_mark_persistent(l_Lean_Widget_instRpcEncodableGetGoToLocationParams); -l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_ = _init_l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(); -lean_mark_persistent(l_Lean_Widget_initFn___lam__0___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_); +l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_ = _init_l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(); +lean_mark_persistent(l_Lean_Widget_initFn___lam__1___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_); +l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_ = _init_l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(); +lean_mark_persistent(l_Lean_Widget_initFn___lam__1___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_); +l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_ = _init_l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(); +lean_mark_persistent(l_Lean_Widget_initFn___lam__1___boxed__const__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_); l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_ = _init_l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(); lean_mark_persistent(l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_); l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_ = _init_l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(); @@ -8361,13 +8657,13 @@ lean_mark_persistent(l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWor if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2162_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_ = _init_l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_(); -lean_mark_persistent(l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_); -l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_ = _init_l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_(); -lean_mark_persistent(l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_); -l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_ = _init_l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_(); -lean_mark_persistent(l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_); -if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2466_(lean_io_mk_world()); +}l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_ = _init_l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_(); +lean_mark_persistent(l_Lean_Widget_initFn___closed__0____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_); +l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_ = _init_l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_(); +lean_mark_persistent(l_Lean_Widget_initFn___closed__1____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_); +l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_ = _init_l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_(); +lean_mark_persistent(l_Lean_Widget_initFn___closed__2____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_); +if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_2521_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Server/GoTo.c b/stage0/stdlib/Lean/Server/GoTo.c index e6bf027683..d29659aeb5 100644 --- a/stage0/stdlib/Lean/Server/GoTo.c +++ b/stage0/stdlib/Lean/Server/GoTo.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Server.GoTo -// Imports: Lean.Data.Json.FromToJson.Basic Lean.Util.Path Lean.Server.Utils +// Imports: Lean.Data.Json.FromToJson.Basic Lean.Util.Path Lean.Server.Utils Lean.Data.Lsp.Internal Lean.Util.CollectFVars Lean.Util.ForEachExpr #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,78 +13,269 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_toCtorIdx(uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_68_(lean_object*); static lean_object* l_Lean_Server_instBEqGoToKind___closed__0; -static lean_object* l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_28_; +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextFull___at___Lean_Meta_recordSynthPendingFailure_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__12; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_isRec___at_____private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs_spec__0___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__0; +static lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isInstance___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_declRangeExt; +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_noConfusion___redArg___lam__0___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__0; +static lean_object* l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_68_; +uint8_t l_Array_isEmpty___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder___redArg(lean_object*, lean_object*, lean_object*); +size_t lean_uint64_to_usize(uint64_t); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl_declMod_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_68_; +lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_DeclarationRange_toLspRange(lean_object*); -static lean_object* l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_28_; +lean_object* l_Lean_Expr_sort___override(lean_object*); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__6; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28_(uint8_t); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_67_; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_68_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_68_; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*, uint8_t); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__9; +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_68____boxed(lean_object*); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__5; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromOptionInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__7; +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__5; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__3; +static lean_object* l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_68_; +static lean_object* l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_29_; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instBEqGoToKind; +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_67_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromTermInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29_(uint8_t); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor___redArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_toCtorIdx___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_67_; -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_; +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1(size_t, size_t, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__8; +static lean_object* l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_68_; lean_object* l_Lean_Server_documentUriFromModule_x3f(lean_object*, lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_is_aux_recursor(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0; -static lean_object* l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_67_; +lean_object* lean_nat_div(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___lam__0(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__2; extern lean_object* l_Lean_builtinDeclRanges; -lean_object* l_Lean_findModuleOf_x3f___at___Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_GoToM_run___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Lean_Server_locationLinksFromDecl___closed__1; lean_object* l_Lean_MessageData_ofFormat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instFromJsonGoToKind; -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_67_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__10; LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_noConfusion___redArg(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_67____boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_68____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3; +static lean_object* l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_; +lean_object* lean_st_mk_ref(lean_object*, lean_object*); uint8_t lean_is_no_confusion(lean_object*, lean_object*); +lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_instFromJsonGoToKind___closed__0; -static lean_object* l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__11; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_noConfusion___redArg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_67_; +lean_object* l_Lean_Expr_constName_x3f(lean_object*); +uint64_t l_Lean_Expr_hash(lean_object*); +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_SynthInstance_newSubgoal_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_noConfusion___redArg___lam__0(lean_object*); -static lean_object* l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_; -LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__5; LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl_declMod_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_instToJsonGoToKind; -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_67_(lean_object*); +uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Except_orElseLazy___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_28_; -LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28____boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_; +static lean_object* l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksFromTermInfo_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__1; +lean_object* l_String_Range_toLspRange(lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksFromTermInfo_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromOptionInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); +static lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1; +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__6; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_68____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11____boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_parseTagged(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_29_; static lean_object* l_Lean_Server_locationLinksFromDecl___closed__0; +LEAN_EXPORT lean_object* l_Lean_Server_GoToM_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_67____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_67_; +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_Meta_SynthInstance_findEntry_x3f_spec__0___redArg(lean_object*, lean_object*); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__0; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromFieldInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_29_; +lean_object* l_Lean_Environment_allImportedModuleNames(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDelabTermInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_67_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_67_; +lean_object* l_Lean_Expr_getAppFn_x27(lean_object*); +lean_object* l_Lean_getErrorExplanationRaw_x3f(lean_object*, lean_object*); +uint64_t lean_uint64_xor(uint64_t, uint64_t); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__2; +uint8_t l_Lean_Syntax_isNone(lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* l_Array_append___redArg(lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_range_x3f(lean_object*); +lean_object* l_Nat_nextPowerOfTwo(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedDeclarationRanges; -static lean_object* l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_67_; +lean_object* lean_erase_macro_scopes(lean_object*); +uint8_t l_Lean_isRecCore(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___boxed(lean_object*, lean_object*, lean_object*); +size_t lean_usize_sub(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectFVars_visit_spec__1___redArg(lean_object*); static lean_object* l_Lean_Server_instToJsonGoToKind___closed__0; +size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_Elab_Info_lctx(lean_object*); +size_t lean_array_size(lean_object*); +static lean_object* l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_68_; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Lean_CollectFVars_visit_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(uint8_t, uint8_t); -static lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0; -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_67____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_findInfo_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr1(lean_object*); +lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0; +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__7; +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__6; +lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_68_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_68_(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__0; +lean_object* lean_get_projection_info(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Info_toElabInfo_x3f(lean_object*); +static lean_object* l_Lean_Server_locationLinksFromImport___redArg___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg___lam__0(lean_object*, lean_object*); +lean_object* l_Lean_Elab_ContextInfo_runMetaM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_consumeMData(lean_object*); +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__1; +static lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__4; +static lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0; +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_GoToKind_determineTargetExprs___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_toCtorIdx(uint8_t x_1) { _start: { @@ -171,7 +362,7 @@ x_7 = l_Lean_Server_GoToKind_noConfusion(x_1, x_5, x_6, x_4); return x_7; } } -LEAN_EXPORT uint8_t l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(uint8_t x_1, uint8_t x_2) { +LEAN_EXPORT uint8_t l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(uint8_t x_1, uint8_t x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -183,13 +374,13 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_unbox(x_1); x_4 = lean_unbox(x_2); -x_5 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10_(x_3, x_4); +x_5 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -198,7 +389,7 @@ static lean_object* _init_l_Lean_Server_instBEqGoToKind___closed__0() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_10____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11____boxed), 2, 0); return x_1; } } @@ -210,7 +401,7 @@ x_1 = l_Lean_Server_instBEqGoToKind___closed__0; return x_1; } } -static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_() { +static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_() { _start: { lean_object* x_1; @@ -218,17 +409,17 @@ x_1 = lean_mk_string_unchecked("declaration", 11, 11); return x_1; } } -static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_28_() { +static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_29_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_; +x_1 = l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_() { +static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_() { _start: { lean_object* x_1; @@ -236,17 +427,17 @@ x_1 = lean_mk_string_unchecked("definition", 10, 10); return x_1; } } -static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_28_() { +static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_29_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_; +x_1 = l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_() { +static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_() { _start: { lean_object* x_1; @@ -254,47 +445,47 @@ x_1 = lean_mk_string_unchecked("type", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_28_() { +static lean_object* _init_l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_29_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_; +x_1 = l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28_(uint8_t x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29_(uint8_t x_1) { _start: { switch (x_1) { case 0: { lean_object* x_2; -x_2 = l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_28_; +x_2 = l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_29_; return x_2; } case 1: { lean_object* x_3; -x_3 = l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_28_; +x_3 = l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_29_; return x_3; } default: { lean_object* x_4; -x_4 = l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_28_; +x_4 = l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_29_; return x_4; } } } } -LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28____boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29____boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; x_2 = lean_unbox(x_1); -x_3 = l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28_(x_2); +x_3 = l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29_(x_2); return x_3; } } @@ -302,7 +493,7 @@ static lean_object* _init_l_Lean_Server_instToJsonGoToKind___closed__0() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_28____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_toJsonGoToKind____x40_Lean_Server_GoTo___hyg_29____boxed), 1, 0); return x_1; } } @@ -314,7 +505,7 @@ x_1 = l_Lean_Server_instToJsonGoToKind___closed__0; return x_1; } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_68_() { _start: { lean_object* x_1; @@ -322,25 +513,25 @@ x_1 = lean_mk_string_unchecked("no inductive constructor matched", 32, 32); return x_1; } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_68_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_67_; +x_1 = l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_68_; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_67_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_68_(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_67_; +x_2 = l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_68_; return x_2; } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_68_() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -351,11 +542,11 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_67_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_68_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_; +x_6 = l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_; x_7 = l_Lean_Json_parseTagged(x_1, x_6, x_2, x_3); if (lean_obj_tag(x_7) == 0) { @@ -385,13 +576,13 @@ else { lean_object* x_13; lean_object* x_14; lean_dec_ref(x_7); -x_13 = l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_67_; +x_13 = l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_68_; x_14 = l_Except_orElseLazy___redArg(x_13, x_4); return x_14; } } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_68_() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -402,11 +593,11 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_67_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_68_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_; +x_6 = l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_; x_7 = l_Lean_Json_parseTagged(x_1, x_6, x_2, x_3); if (lean_obj_tag(x_7) == 0) { @@ -436,13 +627,13 @@ else { lean_object* x_13; lean_object* x_14; lean_dec_ref(x_7); -x_13 = l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_67_; +x_13 = l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_68_; x_14 = l_Except_orElseLazy___redArg(x_13, x_4); return x_14; } } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_() { _start: { lean_object* x_1; lean_object* x_2; @@ -451,17 +642,17 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_68_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_67_; +x_1 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_67_() { +static lean_object* _init_l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_68_() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -472,22 +663,22 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_67_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_68_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_67____boxed), 1, 0); -x_3 = l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_; +x_2 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_68____boxed), 1, 0); +x_3 = l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_; x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_67_; +x_5 = l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_68_; lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_67____boxed), 5, 4); +x_6 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_68____boxed), 5, 4); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, x_4); lean_closure_set(x_6, 2, x_5); lean_closure_set(x_6, 3, x_2); lean_inc(x_1); -x_7 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_67____boxed), 5, 4); +x_7 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_68____boxed), 5, 4); lean_closure_set(x_7, 0, x_1); lean_closure_set(x_7, 1, x_4); lean_closure_set(x_7, 2, x_5); @@ -521,34 +712,34 @@ else { lean_object* x_14; lean_object* x_15; lean_dec_ref(x_8); -x_14 = l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_67_; +x_14 = l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_68_; x_15 = l_Except_orElseLazy___redArg(x_14, x_7); return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_67____boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_68____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_67_(x_1); +x_2 = l_Lean_Server_fromJsonGoToKind___lam__0____x40_Lean_Server_GoTo___hyg_68_(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_67____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_68____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_67_(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Server_fromJsonGoToKind___lam__1____x40_Lean_Server_GoTo___hyg_68_(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_67____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_68____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_67_(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Server_fromJsonGoToKind___lam__2____x40_Lean_Server_GoTo___hyg_68_(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); return x_6; } @@ -557,7 +748,7 @@ static lean_object* _init_l_Lean_Server_instFromJsonGoToKind___closed__0() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_67_), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_fromJsonGoToKind____x40_Lean_Server_GoTo___hyg_68_), 1, 0); return x_1; } } @@ -569,7 +760,3933 @@ x_1 = l_Lean_Server_instFromJsonGoToKind___closed__0; return x_1; } } -static lean_object* _init_l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0() { +LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_19; uint8_t x_20; +x_19 = lean_st_ref_get(x_3, x_9); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_19, 0); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; size_t x_34; size_t x_35; size_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_94; size_t x_99; size_t x_100; lean_object* x_101; lean_object* x_102; +x_23 = lean_ctor_get(x_19, 1); +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_ctor_get(x_21, 0); +lean_dec(x_25); +x_26 = lean_array_get_size(x_24); +x_27 = l_Lean_Expr_hash(x_2); +x_28 = 32; +x_29 = lean_uint64_shift_right(x_27, x_28); +x_30 = lean_uint64_xor(x_27, x_29); +x_31 = 16; +x_32 = lean_uint64_shift_right(x_30, x_31); +x_33 = lean_uint64_xor(x_30, x_32); +x_34 = lean_uint64_to_usize(x_33); +x_35 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_36 = 1; +x_99 = lean_usize_sub(x_35, x_36); +x_100 = lean_usize_land(x_34, x_99); +x_101 = lean_array_uget(x_24, x_100); +lean_dec_ref(x_24); +x_102 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_Meta_SynthInstance_findEntry_x3f_spec__0___redArg(x_2, x_101); +lean_dec(x_101); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; +lean_free_object(x_21); +lean_free_object(x_19); +lean_inc(x_1); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_2); +x_103 = lean_apply_7(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec_ref(x_103); +x_106 = !lean_is_exclusive(x_104); +if (x_106 == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_118; +x_107 = lean_ctor_get(x_104, 0); +x_108 = lean_ctor_get(x_104, 1); +x_118 = lean_unbox(x_107); +lean_dec(x_107); +if (x_118 == 0) +{ +lean_object* x_119; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_119 = lean_box(0); +lean_ctor_set(x_104, 0, x_119); +x_37 = x_104; +x_38 = x_119; +x_39 = x_105; +goto block_93; +} +else +{ +switch (lean_obj_tag(x_2)) { +case 5: +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_free_object(x_104); +x_120 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_120); +x_121 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_121); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_122 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_120, x_3, x_108, x_5, x_6, x_7, x_8, x_105); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec_ref(x_122); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_121, x_3, x_125, x_5, x_6, x_7, x_8, x_124); +x_94 = x_126; +goto block_98; +} +else +{ +lean_dec_ref(x_121); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_122; +goto block_98; +} +} +case 6: +{ +lean_object* x_127; lean_object* x_128; +lean_free_object(x_104); +x_127 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_127); +x_128 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_128); +x_109 = x_127; +x_110 = x_128; +x_111 = x_3; +goto block_117; +} +case 7: +{ +lean_object* x_129; lean_object* x_130; +lean_free_object(x_104); +x_129 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_129); +x_130 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_130); +x_109 = x_129; +x_110 = x_130; +x_111 = x_3; +goto block_117; +} +case 8: +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_free_object(x_104); +x_131 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_131); +x_132 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_132); +x_133 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_133); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_134 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_131, x_3, x_108, x_5, x_6, x_7, x_8, x_105); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec_ref(x_134); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_138 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_132, x_3, x_137, x_5, x_6, x_7, x_8, x_136); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec_ref(x_138); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec(x_139); +x_142 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_133, x_3, x_141, x_5, x_6, x_7, x_8, x_140); +x_94 = x_142; +goto block_98; +} +else +{ +lean_dec_ref(x_133); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_138; +goto block_98; +} +} +else +{ +lean_dec_ref(x_133); +lean_dec_ref(x_132); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_134; +goto block_98; +} +} +case 10: +{ +lean_object* x_143; lean_object* x_144; +lean_free_object(x_104); +x_143 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_143); +x_144 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_143, x_3, x_108, x_5, x_6, x_7, x_8, x_105); +x_94 = x_144; +goto block_98; +} +case 11: +{ +lean_object* x_145; lean_object* x_146; +lean_free_object(x_104); +x_145 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_145); +x_146 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_145, x_3, x_108, x_5, x_6, x_7, x_8, x_105); +x_94 = x_146; +goto block_98; +} +default: +{ +lean_object* x_147; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_147 = lean_box(0); +lean_ctor_set(x_104, 0, x_147); +x_37 = x_104; +x_38 = x_147; +x_39 = x_105; +goto block_93; +} +} +} +block_117: +{ +lean_object* x_112; +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_112 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_109, x_111, x_108, x_5, x_6, x_7, x_8, x_105); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec_ref(x_112); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_110, x_111, x_115, x_5, x_6, x_7, x_8, x_114); +x_94 = x_116; +goto block_98; +} +else +{ +lean_dec_ref(x_110); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_112; +goto block_98; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_159; +x_148 = lean_ctor_get(x_104, 0); +x_149 = lean_ctor_get(x_104, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_104); +x_159 = lean_unbox(x_148); +lean_dec(x_148); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_160 = lean_box(0); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_149); +x_37 = x_161; +x_38 = x_160; +x_39 = x_105; +goto block_93; +} +else +{ +switch (lean_obj_tag(x_2)) { +case 5: +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_162); +x_163 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_163); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_164 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_162, x_3, x_149, x_5, x_6, x_7, x_8, x_105); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec_ref(x_164); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +x_168 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_163, x_3, x_167, x_5, x_6, x_7, x_8, x_166); +x_94 = x_168; +goto block_98; +} +else +{ +lean_dec_ref(x_163); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_164; +goto block_98; +} +} +case 6: +{ +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_169); +x_170 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_170); +x_150 = x_169; +x_151 = x_170; +x_152 = x_3; +goto block_158; +} +case 7: +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_171); +x_172 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_172); +x_150 = x_171; +x_151 = x_172; +x_152 = x_3; +goto block_158; +} +case 8: +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_173 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_173); +x_174 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_174); +x_175 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_175); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_176 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_173, x_3, x_149, x_5, x_6, x_7, x_8, x_105); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_176, 1); +lean_inc(x_178); +lean_dec_ref(x_176); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_180 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_174, x_3, x_179, x_5, x_6, x_7, x_8, x_178); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec_ref(x_180); +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +lean_dec(x_181); +x_184 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_175, x_3, x_183, x_5, x_6, x_7, x_8, x_182); +x_94 = x_184; +goto block_98; +} +else +{ +lean_dec_ref(x_175); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_180; +goto block_98; +} +} +else +{ +lean_dec_ref(x_175); +lean_dec_ref(x_174); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_176; +goto block_98; +} +} +case 10: +{ +lean_object* x_185; lean_object* x_186; +x_185 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_185); +x_186 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_185, x_3, x_149, x_5, x_6, x_7, x_8, x_105); +x_94 = x_186; +goto block_98; +} +case 11: +{ +lean_object* x_187; lean_object* x_188; +x_187 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_187); +x_188 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_187, x_3, x_149, x_5, x_6, x_7, x_8, x_105); +x_94 = x_188; +goto block_98; +} +default: +{ +lean_object* x_189; lean_object* x_190; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_189 = lean_box(0); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_149); +x_37 = x_190; +x_38 = x_189; +x_39 = x_105; +goto block_93; +} +} +} +block_158: +{ +lean_object* x_153; +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_153 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_150, x_152, x_149, x_5, x_6, x_7, x_8, x_105); +if (lean_obj_tag(x_153) == 0) +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec_ref(x_153); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_157 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_151, x_152, x_156, x_5, x_6, x_7, x_8, x_155); +x_94 = x_157; +goto block_98; +} +else +{ +lean_dec_ref(x_151); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_94 = x_153; +goto block_98; +} +} +} +} +else +{ +uint8_t x_191; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +lean_dec(x_1); +x_191 = !lean_is_exclusive(x_103); +if (x_191 == 0) +{ +return x_103; +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_103, 0); +x_193 = lean_ctor_get(x_103, 1); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_103); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_193); +return x_194; +} +} +} +else +{ +lean_object* x_195; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +lean_dec(x_1); +x_195 = lean_ctor_get(x_102, 0); +lean_inc(x_195); +lean_dec(x_102); +lean_ctor_set(x_21, 1, x_4); +lean_ctor_set(x_21, 0, x_195); +return x_19; +} +block_93: +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_st_ref_take(x_3, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec_ref(x_40); +x_43 = !lean_is_exclusive(x_41); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; size_t x_49; lean_object* x_50; uint8_t x_51; +x_44 = lean_ctor_get(x_41, 0); +x_45 = lean_ctor_get(x_41, 1); +x_46 = lean_array_get_size(x_45); +x_47 = lean_usize_of_nat(x_46); +lean_dec(x_46); +x_48 = lean_usize_sub(x_47, x_36); +x_49 = lean_usize_land(x_34, x_48); +x_50 = lean_array_uget(x_45, x_49); +x_51 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_CollectFVars_visit_spec__0___redArg(x_2, x_50); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_52 = lean_unsigned_to_nat(1u); +x_53 = lean_nat_add(x_44, x_52); +lean_dec(x_44); +x_54 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_54, 0, x_2); +lean_ctor_set(x_54, 1, x_38); +lean_ctor_set(x_54, 2, x_50); +x_55 = lean_array_uset(x_45, x_49, x_54); +x_56 = lean_unsigned_to_nat(4u); +x_57 = lean_nat_mul(x_53, x_56); +x_58 = lean_unsigned_to_nat(3u); +x_59 = lean_nat_div(x_57, x_58); +lean_dec(x_57); +x_60 = lean_array_get_size(x_55); +x_61 = lean_nat_dec_le(x_59, x_60); +lean_dec(x_60); +lean_dec(x_59); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectFVars_visit_spec__1___redArg(x_55); +lean_ctor_set(x_41, 1, x_62); +lean_ctor_set(x_41, 0, x_53); +x_10 = x_37; +x_11 = x_42; +x_12 = x_41; +goto block_18; +} +else +{ +lean_ctor_set(x_41, 1, x_55); +lean_ctor_set(x_41, 0, x_53); +x_10 = x_37; +x_11 = x_42; +x_12 = x_41; +goto block_18; +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_box(0); +x_64 = lean_array_uset(x_45, x_49, x_63); +x_65 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_SynthInstance_newSubgoal_spec__0___redArg(x_2, x_38, x_50); +x_66 = lean_array_uset(x_64, x_49, x_65); +lean_ctor_set(x_41, 1, x_66); +x_10 = x_37; +x_11 = x_42; +x_12 = x_41; +goto block_18; +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; size_t x_70; size_t x_71; size_t x_72; lean_object* x_73; uint8_t x_74; +x_67 = lean_ctor_get(x_41, 0); +x_68 = lean_ctor_get(x_41, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_41); +x_69 = lean_array_get_size(x_68); +x_70 = lean_usize_of_nat(x_69); +lean_dec(x_69); +x_71 = lean_usize_sub(x_70, x_36); +x_72 = lean_usize_land(x_34, x_71); +x_73 = lean_array_uget(x_68, x_72); +x_74 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_CollectFVars_visit_spec__0___redArg(x_2, x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_75 = lean_unsigned_to_nat(1u); +x_76 = lean_nat_add(x_67, x_75); +lean_dec(x_67); +x_77 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_77, 0, x_2); +lean_ctor_set(x_77, 1, x_38); +lean_ctor_set(x_77, 2, x_73); +x_78 = lean_array_uset(x_68, x_72, x_77); +x_79 = lean_unsigned_to_nat(4u); +x_80 = lean_nat_mul(x_76, x_79); +x_81 = lean_unsigned_to_nat(3u); +x_82 = lean_nat_div(x_80, x_81); +lean_dec(x_80); +x_83 = lean_array_get_size(x_78); +x_84 = lean_nat_dec_le(x_82, x_83); +lean_dec(x_83); +lean_dec(x_82); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +x_85 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectFVars_visit_spec__1___redArg(x_78); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_76); +lean_ctor_set(x_86, 1, x_85); +x_10 = x_37; +x_11 = x_42; +x_12 = x_86; +goto block_18; +} +else +{ +lean_object* x_87; +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_76); +lean_ctor_set(x_87, 1, x_78); +x_10 = x_37; +x_11 = x_42; +x_12 = x_87; +goto block_18; +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_box(0); +x_89 = lean_array_uset(x_68, x_72, x_88); +x_90 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_SynthInstance_newSubgoal_spec__0___redArg(x_2, x_38, x_73); +x_91 = lean_array_uset(x_89, x_72, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_67); +lean_ctor_set(x_92, 1, x_91); +x_10 = x_37; +x_11 = x_42; +x_12 = x_92; +goto block_18; +} +} +} +block_98: +{ +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec_ref(x_94); +x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_97); +x_37 = x_95; +x_38 = x_97; +x_39 = x_96; +goto block_93; +} +else +{ +lean_dec_ref(x_2); +return x_94; +} +} +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; uint64_t x_199; uint64_t x_200; uint64_t x_201; uint64_t x_202; uint64_t x_203; uint64_t x_204; uint64_t x_205; size_t x_206; size_t x_207; size_t x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_243; size_t x_248; size_t x_249; lean_object* x_250; lean_object* x_251; +x_196 = lean_ctor_get(x_19, 1); +x_197 = lean_ctor_get(x_21, 1); +lean_inc(x_197); +lean_dec(x_21); +x_198 = lean_array_get_size(x_197); +x_199 = l_Lean_Expr_hash(x_2); +x_200 = 32; +x_201 = lean_uint64_shift_right(x_199, x_200); +x_202 = lean_uint64_xor(x_199, x_201); +x_203 = 16; +x_204 = lean_uint64_shift_right(x_202, x_203); +x_205 = lean_uint64_xor(x_202, x_204); +x_206 = lean_uint64_to_usize(x_205); +x_207 = lean_usize_of_nat(x_198); +lean_dec(x_198); +x_208 = 1; +x_248 = lean_usize_sub(x_207, x_208); +x_249 = lean_usize_land(x_206, x_248); +x_250 = lean_array_uget(x_197, x_249); +lean_dec_ref(x_197); +x_251 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_Meta_SynthInstance_findEntry_x3f_spec__0___redArg(x_2, x_250); +lean_dec(x_250); +if (lean_obj_tag(x_251) == 0) +{ +lean_object* x_252; +lean_free_object(x_19); +lean_inc(x_1); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_2); +x_252 = lean_apply_7(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_196); +if (lean_obj_tag(x_252) == 0) +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_267; +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_252, 1); +lean_inc(x_254); +lean_dec_ref(x_252); +x_255 = lean_ctor_get(x_253, 0); +lean_inc(x_255); +x_256 = lean_ctor_get(x_253, 1); +lean_inc(x_256); +if (lean_is_exclusive(x_253)) { + lean_ctor_release(x_253, 0); + lean_ctor_release(x_253, 1); + x_257 = x_253; +} else { + lean_dec_ref(x_253); + x_257 = lean_box(0); +} +x_267 = lean_unbox(x_255); +lean_dec(x_255); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_268 = lean_box(0); +if (lean_is_scalar(x_257)) { + x_269 = lean_alloc_ctor(0, 2, 0); +} else { + x_269 = x_257; +} +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_256); +x_209 = x_269; +x_210 = x_268; +x_211 = x_254; +goto block_242; +} +else +{ +switch (lean_obj_tag(x_2)) { +case 5: +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; +lean_dec(x_257); +x_270 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_270); +x_271 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_271); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_272 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_270, x_3, x_256, x_5, x_6, x_7, x_8, x_254); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_273 = lean_ctor_get(x_272, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +lean_dec_ref(x_272); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +lean_dec(x_273); +x_276 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_271, x_3, x_275, x_5, x_6, x_7, x_8, x_274); +x_243 = x_276; +goto block_247; +} +else +{ +lean_dec_ref(x_271); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_243 = x_272; +goto block_247; +} +} +case 6: +{ +lean_object* x_277; lean_object* x_278; +lean_dec(x_257); +x_277 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_277); +x_278 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_278); +x_258 = x_277; +x_259 = x_278; +x_260 = x_3; +goto block_266; +} +case 7: +{ +lean_object* x_279; lean_object* x_280; +lean_dec(x_257); +x_279 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_279); +x_280 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_280); +x_258 = x_279; +x_259 = x_280; +x_260 = x_3; +goto block_266; +} +case 8: +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +lean_dec(x_257); +x_281 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_281); +x_282 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_282); +x_283 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_283); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_284 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_281, x_3, x_256, x_5, x_6, x_7, x_8, x_254); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_285 = lean_ctor_get(x_284, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_284, 1); +lean_inc(x_286); +lean_dec_ref(x_284); +x_287 = lean_ctor_get(x_285, 1); +lean_inc(x_287); +lean_dec(x_285); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_288 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_282, x_3, x_287, x_5, x_6, x_7, x_8, x_286); +if (lean_obj_tag(x_288) == 0) +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 1); +lean_inc(x_290); +lean_dec_ref(x_288); +x_291 = lean_ctor_get(x_289, 1); +lean_inc(x_291); +lean_dec(x_289); +x_292 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_283, x_3, x_291, x_5, x_6, x_7, x_8, x_290); +x_243 = x_292; +goto block_247; +} +else +{ +lean_dec_ref(x_283); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_243 = x_288; +goto block_247; +} +} +else +{ +lean_dec_ref(x_283); +lean_dec_ref(x_282); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_243 = x_284; +goto block_247; +} +} +case 10: +{ +lean_object* x_293; lean_object* x_294; +lean_dec(x_257); +x_293 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_293); +x_294 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_293, x_3, x_256, x_5, x_6, x_7, x_8, x_254); +x_243 = x_294; +goto block_247; +} +case 11: +{ +lean_object* x_295; lean_object* x_296; +lean_dec(x_257); +x_295 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_295); +x_296 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_295, x_3, x_256, x_5, x_6, x_7, x_8, x_254); +x_243 = x_296; +goto block_247; +} +default: +{ +lean_object* x_297; lean_object* x_298; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_297 = lean_box(0); +if (lean_is_scalar(x_257)) { + x_298 = lean_alloc_ctor(0, 2, 0); +} else { + x_298 = x_257; +} +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_256); +x_209 = x_298; +x_210 = x_297; +x_211 = x_254; +goto block_242; +} +} +} +block_266: +{ +lean_object* x_261; +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_261 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_258, x_260, x_256, x_5, x_6, x_7, x_8, x_254); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec_ref(x_261); +x_264 = lean_ctor_get(x_262, 1); +lean_inc(x_264); +lean_dec(x_262); +x_265 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_259, x_260, x_264, x_5, x_6, x_7, x_8, x_263); +x_243 = x_265; +goto block_247; +} +else +{ +lean_dec_ref(x_259); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_243 = x_261; +goto block_247; +} +} +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +lean_dec(x_1); +x_299 = lean_ctor_get(x_252, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_252, 1); +lean_inc(x_300); +if (lean_is_exclusive(x_252)) { + lean_ctor_release(x_252, 0); + lean_ctor_release(x_252, 1); + x_301 = x_252; +} else { + lean_dec_ref(x_252); + x_301 = lean_box(0); +} +if (lean_is_scalar(x_301)) { + x_302 = lean_alloc_ctor(1, 2, 0); +} else { + x_302 = x_301; +} +lean_ctor_set(x_302, 0, x_299); +lean_ctor_set(x_302, 1, x_300); +return x_302; +} +} +else +{ +lean_object* x_303; lean_object* x_304; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +lean_dec(x_1); +x_303 = lean_ctor_get(x_251, 0); +lean_inc(x_303); +lean_dec(x_251); +x_304 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_4); +lean_ctor_set(x_19, 0, x_304); +return x_19; +} +block_242: +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; size_t x_219; size_t x_220; size_t x_221; lean_object* x_222; uint8_t x_223; +x_212 = lean_st_ref_take(x_3, x_211); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec_ref(x_212); +x_215 = lean_ctor_get(x_213, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_213, 1); +lean_inc_ref(x_216); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_217 = x_213; +} else { + lean_dec_ref(x_213); + x_217 = lean_box(0); +} +x_218 = lean_array_get_size(x_216); +x_219 = lean_usize_of_nat(x_218); +lean_dec(x_218); +x_220 = lean_usize_sub(x_219, x_208); +x_221 = lean_usize_land(x_206, x_220); +x_222 = lean_array_uget(x_216, x_221); +x_223 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_CollectFVars_visit_spec__0___redArg(x_2, x_222); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; +x_224 = lean_unsigned_to_nat(1u); +x_225 = lean_nat_add(x_215, x_224); +lean_dec(x_215); +x_226 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_226, 0, x_2); +lean_ctor_set(x_226, 1, x_210); +lean_ctor_set(x_226, 2, x_222); +x_227 = lean_array_uset(x_216, x_221, x_226); +x_228 = lean_unsigned_to_nat(4u); +x_229 = lean_nat_mul(x_225, x_228); +x_230 = lean_unsigned_to_nat(3u); +x_231 = lean_nat_div(x_229, x_230); +lean_dec(x_229); +x_232 = lean_array_get_size(x_227); +x_233 = lean_nat_dec_le(x_231, x_232); +lean_dec(x_232); +lean_dec(x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectFVars_visit_spec__1___redArg(x_227); +if (lean_is_scalar(x_217)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_217; +} +lean_ctor_set(x_235, 0, x_225); +lean_ctor_set(x_235, 1, x_234); +x_10 = x_209; +x_11 = x_214; +x_12 = x_235; +goto block_18; +} +else +{ +lean_object* x_236; +if (lean_is_scalar(x_217)) { + x_236 = lean_alloc_ctor(0, 2, 0); +} else { + x_236 = x_217; +} +lean_ctor_set(x_236, 0, x_225); +lean_ctor_set(x_236, 1, x_227); +x_10 = x_209; +x_11 = x_214; +x_12 = x_236; +goto block_18; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_237 = lean_box(0); +x_238 = lean_array_uset(x_216, x_221, x_237); +x_239 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_SynthInstance_newSubgoal_spec__0___redArg(x_2, x_210, x_222); +x_240 = lean_array_uset(x_238, x_221, x_239); +if (lean_is_scalar(x_217)) { + x_241 = lean_alloc_ctor(0, 2, 0); +} else { + x_241 = x_217; +} +lean_ctor_set(x_241, 0, x_215); +lean_ctor_set(x_241, 1, x_240); +x_10 = x_209; +x_11 = x_214; +x_12 = x_241; +goto block_18; +} +} +block_247: +{ +if (lean_obj_tag(x_243) == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +lean_dec_ref(x_243); +x_246 = lean_ctor_get(x_244, 0); +lean_inc(x_246); +x_209 = x_244; +x_210 = x_246; +x_211 = x_245; +goto block_242; +} +else +{ +lean_dec_ref(x_2); +return x_243; +} +} +} +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; uint64_t x_310; uint64_t x_311; uint64_t x_312; uint64_t x_313; uint64_t x_314; uint64_t x_315; uint64_t x_316; size_t x_317; size_t x_318; size_t x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_354; size_t x_359; size_t x_360; lean_object* x_361; lean_object* x_362; +x_305 = lean_ctor_get(x_19, 0); +x_306 = lean_ctor_get(x_19, 1); +lean_inc(x_306); +lean_inc(x_305); +lean_dec(x_19); +x_307 = lean_ctor_get(x_305, 1); +lean_inc_ref(x_307); +if (lean_is_exclusive(x_305)) { + lean_ctor_release(x_305, 0); + lean_ctor_release(x_305, 1); + x_308 = x_305; +} else { + lean_dec_ref(x_305); + x_308 = lean_box(0); +} +x_309 = lean_array_get_size(x_307); +x_310 = l_Lean_Expr_hash(x_2); +x_311 = 32; +x_312 = lean_uint64_shift_right(x_310, x_311); +x_313 = lean_uint64_xor(x_310, x_312); +x_314 = 16; +x_315 = lean_uint64_shift_right(x_313, x_314); +x_316 = lean_uint64_xor(x_313, x_315); +x_317 = lean_uint64_to_usize(x_316); +x_318 = lean_usize_of_nat(x_309); +lean_dec(x_309); +x_319 = 1; +x_359 = lean_usize_sub(x_318, x_319); +x_360 = lean_usize_land(x_317, x_359); +x_361 = lean_array_uget(x_307, x_360); +lean_dec_ref(x_307); +x_362 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_Meta_SynthInstance_findEntry_x3f_spec__0___redArg(x_2, x_361); +lean_dec(x_361); +if (lean_obj_tag(x_362) == 0) +{ +lean_object* x_363; +lean_dec(x_308); +lean_inc(x_1); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_2); +x_363 = lean_apply_7(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_306); +if (lean_obj_tag(x_363) == 0) +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_378; +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_363, 1); +lean_inc(x_365); +lean_dec_ref(x_363); +x_366 = lean_ctor_get(x_364, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_364, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_364)) { + lean_ctor_release(x_364, 0); + lean_ctor_release(x_364, 1); + x_368 = x_364; +} else { + lean_dec_ref(x_364); + x_368 = lean_box(0); +} +x_378 = lean_unbox(x_366); +lean_dec(x_366); +if (x_378 == 0) +{ +lean_object* x_379; lean_object* x_380; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_379 = lean_box(0); +if (lean_is_scalar(x_368)) { + x_380 = lean_alloc_ctor(0, 2, 0); +} else { + x_380 = x_368; +} +lean_ctor_set(x_380, 0, x_379); +lean_ctor_set(x_380, 1, x_367); +x_320 = x_380; +x_321 = x_379; +x_322 = x_365; +goto block_353; +} +else +{ +switch (lean_obj_tag(x_2)) { +case 5: +{ +lean_object* x_381; lean_object* x_382; lean_object* x_383; +lean_dec(x_368); +x_381 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_381); +x_382 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_382); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_383 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_381, x_3, x_367, x_5, x_6, x_7, x_8, x_365); +if (lean_obj_tag(x_383) == 0) +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_384 = lean_ctor_get(x_383, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_383, 1); +lean_inc(x_385); +lean_dec_ref(x_383); +x_386 = lean_ctor_get(x_384, 1); +lean_inc(x_386); +lean_dec(x_384); +x_387 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_382, x_3, x_386, x_5, x_6, x_7, x_8, x_385); +x_354 = x_387; +goto block_358; +} +else +{ +lean_dec_ref(x_382); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_354 = x_383; +goto block_358; +} +} +case 6: +{ +lean_object* x_388; lean_object* x_389; +lean_dec(x_368); +x_388 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_388); +x_389 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_389); +x_369 = x_388; +x_370 = x_389; +x_371 = x_3; +goto block_377; +} +case 7: +{ +lean_object* x_390; lean_object* x_391; +lean_dec(x_368); +x_390 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_390); +x_391 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_391); +x_369 = x_390; +x_370 = x_391; +x_371 = x_3; +goto block_377; +} +case 8: +{ +lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +lean_dec(x_368); +x_392 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_392); +x_393 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_393); +x_394 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_394); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_395 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_392, x_3, x_367, x_5, x_6, x_7, x_8, x_365); +if (lean_obj_tag(x_395) == 0) +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_396 = lean_ctor_get(x_395, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_395, 1); +lean_inc(x_397); +lean_dec_ref(x_395); +x_398 = lean_ctor_get(x_396, 1); +lean_inc(x_398); +lean_dec(x_396); +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_399 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_393, x_3, x_398, x_5, x_6, x_7, x_8, x_397); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_400 = lean_ctor_get(x_399, 0); +lean_inc(x_400); +x_401 = lean_ctor_get(x_399, 1); +lean_inc(x_401); +lean_dec_ref(x_399); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +lean_dec(x_400); +x_403 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_394, x_3, x_402, x_5, x_6, x_7, x_8, x_401); +x_354 = x_403; +goto block_358; +} +else +{ +lean_dec_ref(x_394); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_354 = x_399; +goto block_358; +} +} +else +{ +lean_dec_ref(x_394); +lean_dec_ref(x_393); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_354 = x_395; +goto block_358; +} +} +case 10: +{ +lean_object* x_404; lean_object* x_405; +lean_dec(x_368); +x_404 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_404); +x_405 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_404, x_3, x_367, x_5, x_6, x_7, x_8, x_365); +x_354 = x_405; +goto block_358; +} +case 11: +{ +lean_object* x_406; lean_object* x_407; +lean_dec(x_368); +x_406 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_406); +x_407 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_406, x_3, x_367, x_5, x_6, x_7, x_8, x_365); +x_354 = x_407; +goto block_358; +} +default: +{ +lean_object* x_408; lean_object* x_409; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_408 = lean_box(0); +if (lean_is_scalar(x_368)) { + x_409 = lean_alloc_ctor(0, 2, 0); +} else { + x_409 = x_368; +} +lean_ctor_set(x_409, 0, x_408); +lean_ctor_set(x_409, 1, x_367); +x_320 = x_409; +x_321 = x_408; +x_322 = x_365; +goto block_353; +} +} +} +block_377: +{ +lean_object* x_372; +lean_inc(x_8); +lean_inc_ref(x_7); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_1); +x_372 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_369, x_371, x_367, x_5, x_6, x_7, x_8, x_365); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_373 = lean_ctor_get(x_372, 0); +lean_inc(x_373); +x_374 = lean_ctor_get(x_372, 1); +lean_inc(x_374); +lean_dec_ref(x_372); +x_375 = lean_ctor_get(x_373, 1); +lean_inc(x_375); +lean_dec(x_373); +x_376 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_370, x_371, x_375, x_5, x_6, x_7, x_8, x_374); +x_354 = x_376; +goto block_358; +} +else +{ +lean_dec_ref(x_370); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_1); +x_354 = x_372; +goto block_358; +} +} +} +else +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +lean_dec(x_1); +x_410 = lean_ctor_get(x_363, 0); +lean_inc(x_410); +x_411 = lean_ctor_get(x_363, 1); +lean_inc(x_411); +if (lean_is_exclusive(x_363)) { + lean_ctor_release(x_363, 0); + lean_ctor_release(x_363, 1); + x_412 = x_363; +} else { + lean_dec_ref(x_363); + x_412 = lean_box(0); +} +if (lean_is_scalar(x_412)) { + x_413 = lean_alloc_ctor(1, 2, 0); +} else { + x_413 = x_412; +} +lean_ctor_set(x_413, 0, x_410); +lean_ctor_set(x_413, 1, x_411); +return x_413; +} +} +else +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_2); +lean_dec(x_1); +x_414 = lean_ctor_get(x_362, 0); +lean_inc(x_414); +lean_dec(x_362); +if (lean_is_scalar(x_308)) { + x_415 = lean_alloc_ctor(0, 2, 0); +} else { + x_415 = x_308; +} +lean_ctor_set(x_415, 0, x_414); +lean_ctor_set(x_415, 1, x_4); +x_416 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_416, 0, x_415); +lean_ctor_set(x_416, 1, x_306); +return x_416; +} +block_353: +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; size_t x_330; size_t x_331; size_t x_332; lean_object* x_333; uint8_t x_334; +x_323 = lean_st_ref_take(x_3, x_322); +x_324 = lean_ctor_get(x_323, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_323, 1); +lean_inc(x_325); +lean_dec_ref(x_323); +x_326 = lean_ctor_get(x_324, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_324, 1); +lean_inc_ref(x_327); +if (lean_is_exclusive(x_324)) { + lean_ctor_release(x_324, 0); + lean_ctor_release(x_324, 1); + x_328 = x_324; +} else { + lean_dec_ref(x_324); + x_328 = lean_box(0); +} +x_329 = lean_array_get_size(x_327); +x_330 = lean_usize_of_nat(x_329); +lean_dec(x_329); +x_331 = lean_usize_sub(x_330, x_319); +x_332 = lean_usize_land(x_317, x_331); +x_333 = lean_array_uget(x_327, x_332); +x_334 = l_Std_DHashMap_Internal_AssocList_contains___at___Lean_CollectFVars_visit_spec__0___redArg(x_2, x_333); +if (x_334 == 0) +{ +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; +x_335 = lean_unsigned_to_nat(1u); +x_336 = lean_nat_add(x_326, x_335); +lean_dec(x_326); +x_337 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_337, 0, x_2); +lean_ctor_set(x_337, 1, x_321); +lean_ctor_set(x_337, 2, x_333); +x_338 = lean_array_uset(x_327, x_332, x_337); +x_339 = lean_unsigned_to_nat(4u); +x_340 = lean_nat_mul(x_336, x_339); +x_341 = lean_unsigned_to_nat(3u); +x_342 = lean_nat_div(x_340, x_341); +lean_dec(x_340); +x_343 = lean_array_get_size(x_338); +x_344 = lean_nat_dec_le(x_342, x_343); +lean_dec(x_343); +lean_dec(x_342); +if (x_344 == 0) +{ +lean_object* x_345; lean_object* x_346; +x_345 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_CollectFVars_visit_spec__1___redArg(x_338); +if (lean_is_scalar(x_328)) { + x_346 = lean_alloc_ctor(0, 2, 0); +} else { + x_346 = x_328; +} +lean_ctor_set(x_346, 0, x_336); +lean_ctor_set(x_346, 1, x_345); +x_10 = x_320; +x_11 = x_325; +x_12 = x_346; +goto block_18; +} +else +{ +lean_object* x_347; +if (lean_is_scalar(x_328)) { + x_347 = lean_alloc_ctor(0, 2, 0); +} else { + x_347 = x_328; +} +lean_ctor_set(x_347, 0, x_336); +lean_ctor_set(x_347, 1, x_338); +x_10 = x_320; +x_11 = x_325; +x_12 = x_347; +goto block_18; +} +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +x_348 = lean_box(0); +x_349 = lean_array_uset(x_327, x_332, x_348); +x_350 = l_Std_DHashMap_Internal_AssocList_replace___at___Lean_Meta_SynthInstance_newSubgoal_spec__0___redArg(x_2, x_321, x_333); +x_351 = lean_array_uset(x_349, x_332, x_350); +if (lean_is_scalar(x_328)) { + x_352 = lean_alloc_ctor(0, 2, 0); +} else { + x_352 = x_328; +} +lean_ctor_set(x_352, 0, x_326); +lean_ctor_set(x_352, 1, x_351); +x_10 = x_320; +x_11 = x_325; +x_12 = x_352; +goto block_18; +} +} +block_358: +{ +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_355 = lean_ctor_get(x_354, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); +lean_dec_ref(x_354); +x_357 = lean_ctor_get(x_355, 0); +lean_inc(x_357); +x_320 = x_355; +x_321 = x_357; +x_322 = x_356; +goto block_353; +} +else +{ +lean_dec_ref(x_2); +return x_354; +} +} +} +block_18: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_st_ref_set(x_3, x_12, x_11); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_10); +return x_13; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_14; +x_14 = lean_array_push(x_2, x_1); +x_8 = x_14; +goto block_13; +} +case 4: +{ +lean_object* x_15; +x_15 = lean_array_push(x_2, x_1); +x_8 = x_15; +goto block_13; +} +default: +{ +lean_dec_ref(x_1); +x_8 = x_2; +goto block_13; +} +} +block_13: +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = 1; +x_10 = lean_box(x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_7); +return x_12; +} +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(4u); +x_2 = lean_unsigned_to_nat(8u); +x_3 = lean_nat_mul(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(3u); +x_2 = l_Lean_Server_GoToKind_determineTargetExprs___closed__0; +x_3 = lean_nat_div(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Server_GoToKind_determineTargetExprs___closed__1; +x_2 = l_Nat_nextPowerOfTwo(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Server_GoToKind_determineTargetExprs___closed__2; +x_3 = lean_mk_array(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Server_GoToKind_determineTargetExprs___closed__3; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = lean_box(x_1); +if (lean_obj_tag(x_8) == 2) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_9); +lean_dec_ref(x_2); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +lean_inc_ref(x_3); +x_10 = lean_infer_type(x_9, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec_ref(x_10); +x_13 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_11, x_4, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec_ref(x_13); +x_16 = l_Lean_Server_GoToKind_determineTargetExprs___closed__4; +x_17 = lean_st_mk_ref(x_16, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec_ref(x_17); +x_20 = lean_alloc_closure((void*)(l_Lean_Server_GoToKind_determineTargetExprs___lam__0___boxed), 7, 0); +x_21 = l_Lean_Server_GoToKind_determineTargetExprs___closed__5; +x_22 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_20, x_14, x_18, x_21, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec_ref(x_22); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_st_ref_get(x_18, x_24); +lean_dec(x_18); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_25); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +lean_dec(x_18); +x_31 = !lean_is_exclusive(x_22); +if (x_31 == 0) +{ +return x_22; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_22, 0); +x_33 = lean_ctor_get(x_22, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_22); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +x_35 = !lean_is_exclusive(x_10); +if (x_35 == 0) +{ +return x_10; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_10, 0); +x_37 = lean_ctor_get(x_10, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_10); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_dec(x_8); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_3); +x_39 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_39); +lean_dec_ref(x_2); +x_40 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_39, x_4, x_7); +lean_dec(x_4); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +x_43 = l_Lean_Server_GoToKind_determineTargetExprs___closed__6; +x_44 = lean_array_push(x_43, x_42); +lean_ctor_set(x_40, 0, x_44); +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_40); +x_47 = l_Lean_Server_GoToKind_determineTargetExprs___closed__6; +x_48 = lean_array_push(x_47, x_45); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_ForEachExpr_visit___at___Lean_Server_GoToKind_determineTargetExprs_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_GoToKind_determineTargetExprs___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_GoToKind_determineTargetExprs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +x_9 = l_Lean_Server_GoToKind_determineTargetExprs(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +static lean_object* _init_l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_sort___override(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_st_ref_get(x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = l_Lean_Expr_getAppFn_x27(x_1); +if (lean_obj_tag(x_7) == 4) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec_ref(x_7); +x_9 = lean_ctor_get(x_6, 0); +lean_inc_ref(x_9); +lean_dec(x_6); +x_10 = lean_get_projection_info(x_9, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +lean_dec_ref(x_1); +x_11 = lean_box(0); +lean_ctor_set(x_4, 0, x_11); +return x_4; +} +else +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_13 = lean_ctor_get(x_10, 0); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0; +x_16 = l_Lean_Expr_getAppNumArgs(x_1); +lean_inc(x_16); +x_17 = lean_mk_array(x_16, x_15); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_sub(x_16, x_18); +lean_dec(x_16); +x_20 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_17, x_19); +x_21 = lean_array_get_size(x_20); +x_22 = lean_nat_dec_lt(x_14, x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec_ref(x_20); +lean_dec(x_14); +lean_free_object(x_10); +x_23 = lean_box(0); +lean_ctor_set(x_4, 0, x_23); +return x_4; +} +else +{ +lean_object* x_24; +x_24 = lean_array_fget(x_20, x_14); +lean_dec(x_14); +lean_dec_ref(x_20); +lean_ctor_set(x_10, 0, x_24); +lean_ctor_set(x_4, 0, x_10); +return x_4; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_25 = lean_ctor_get(x_10, 0); +lean_inc(x_25); +lean_dec(x_10); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0; +x_28 = l_Lean_Expr_getAppNumArgs(x_1); +lean_inc(x_28); +x_29 = lean_mk_array(x_28, x_27); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_sub(x_28, x_30); +lean_dec(x_28); +x_32 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_29, x_31); +x_33 = lean_array_get_size(x_32); +x_34 = lean_nat_dec_lt(x_26, x_33); +lean_dec(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +lean_dec_ref(x_32); +lean_dec(x_26); +x_35 = lean_box(0); +lean_ctor_set(x_4, 0, x_35); +return x_4; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_array_fget(x_32, x_26); +lean_dec(x_26); +lean_dec_ref(x_32); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_4, 0, x_37); +return x_4; +} +} +} +} +else +{ +lean_object* x_38; +lean_dec_ref(x_7); +lean_dec(x_6); +lean_dec_ref(x_1); +x_38 = lean_box(0); +lean_ctor_set(x_4, 0, x_38); +return x_4; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_4, 0); +x_40 = lean_ctor_get(x_4, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_4); +x_41 = l_Lean_Expr_getAppFn_x27(x_1); +if (lean_obj_tag(x_41) == 4) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +lean_dec_ref(x_41); +x_43 = lean_ctor_get(x_39, 0); +lean_inc_ref(x_43); +lean_dec(x_39); +x_44 = lean_get_projection_info(x_43, x_42); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec_ref(x_1); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_40); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_47 = lean_ctor_get(x_44, 0); +lean_inc(x_47); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + x_48 = x_44; +} else { + lean_dec_ref(x_44); + x_48 = lean_box(0); +} +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0; +x_51 = l_Lean_Expr_getAppNumArgs(x_1); +lean_inc(x_51); +x_52 = lean_mk_array(x_51, x_50); +x_53 = lean_unsigned_to_nat(1u); +x_54 = lean_nat_sub(x_51, x_53); +lean_dec(x_51); +x_55 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_52, x_54); +x_56 = lean_array_get_size(x_55); +x_57 = lean_nat_dec_lt(x_49, x_56); +lean_dec(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; +lean_dec_ref(x_55); +lean_dec(x_49); +lean_dec(x_48); +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_40); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_array_fget(x_55, x_49); +lean_dec(x_49); +lean_dec_ref(x_55); +if (lean_is_scalar(x_48)) { + x_61 = lean_alloc_ctor(1, 1, 0); +} else { + x_61 = x_48; +} +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +} +else +{ +lean_object* x_63; lean_object* x_64; +lean_dec_ref(x_41); +lean_dec(x_39); +lean_dec_ref(x_1); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_40); +return x_64; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg(x_1, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_getInstanceProjectionArg_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_getInstanceProjectionArg_x3f(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg(x_1, x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_4, 0); +lean_dec(x_7); +x_8 = 0; +x_9 = lean_box(x_8); +lean_ctor_set(x_4, 0, x_9); +return x_4; +} +else +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +lean_dec(x_4); +x_11 = 0; +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_10); +return x_13; +} +} +else +{ +uint8_t x_14; +lean_dec(x_5); +x_14 = !lean_is_exclusive(x_4); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_4, 0); +lean_dec(x_15); +x_16 = 1; +x_17 = lean_box(x_16); +lean_ctor_set(x_4, 0, x_17); +return x_4; +} +else +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_4, 1); +lean_inc(x_18); +lean_dec(x_4); +x_19 = 1; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_isInstanceProjection___redArg(x_1, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_isInstanceProjection___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjection___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_isInstanceProjection(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor___redArg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; uint8_t x_8; +x_7 = 2; +x_8 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(x_1, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_9); +x_10 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_10); +lean_dec_ref(x_2); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_9, 0); +lean_dec(x_13); +x_14 = 1; +x_15 = l_Lean_Syntax_getPos_x3f(x_12, x_14); +lean_dec(x_12); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +lean_dec_ref(x_10); +lean_dec_ref(x_3); +x_16 = lean_box(x_8); +lean_ctor_set(x_9, 1, x_6); +lean_ctor_set(x_9, 0, x_16); +return x_9; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_free_object(x_9); +x_17 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_17); +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_3, 3); +lean_inc_ref(x_19); +lean_dec_ref(x_3); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_17, 1); +x_22 = lean_ctor_get(x_17, 0); +lean_dec(x_22); +x_23 = l_Lean_Syntax_getPos_x3f(x_21, x_14); +lean_dec(x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +lean_dec_ref(x_19); +lean_dec(x_18); +lean_dec_ref(x_10); +x_24 = lean_box(x_8); +lean_ctor_set(x_17, 1, x_6); +lean_ctor_set(x_17, 0, x_24); +return x_17; +} +else +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_nat_dec_eq(x_18, x_25); +lean_dec(x_25); +lean_dec(x_18); +if (x_26 == 0) +{ +lean_object* x_27; +lean_dec_ref(x_19); +lean_dec_ref(x_10); +x_27 = lean_box(x_8); +lean_ctor_set(x_17, 1, x_6); +lean_ctor_set(x_17, 0, x_27); +return x_17; +} +else +{ +if (x_8 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_53; +lean_free_object(x_17); +x_28 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_10, x_4, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec_ref(x_28); +x_31 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_19, x_4, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec_ref(x_31); +lean_inc(x_29); +x_34 = l_Lean_Server_isInstanceProjection___redArg(x_29, x_5, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec_ref(x_34); +lean_inc(x_32); +x_37 = l_Lean_Server_isInstanceProjection___redArg(x_32, x_5, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_53 = lean_unbox(x_35); +lean_dec(x_35); +if (x_53 == 0) +{ +x_41 = x_26; +goto block_52; +} +else +{ +x_41 = x_8; +goto block_52; +} +block_52: +{ +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = lean_unbox(x_38); +lean_dec(x_38); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_43 = l_Lean_Expr_getAppFn_x27(x_29); +lean_dec(x_29); +x_44 = l_Lean_Expr_getAppFn_x27(x_32); +lean_dec(x_32); +x_45 = lean_expr_eqv(x_43, x_44); +lean_dec_ref(x_44); +lean_dec_ref(x_43); +x_46 = lean_box(x_45); +if (lean_is_scalar(x_40)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_40; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_39); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_32); +lean_dec(x_29); +x_48 = lean_box(x_8); +if (lean_is_scalar(x_40)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_40; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_39); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_29); +x_50 = lean_box(x_8); +if (lean_is_scalar(x_40)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_40; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_39); +return x_51; +} +} +} +else +{ +lean_object* x_54; +lean_dec_ref(x_19); +lean_dec_ref(x_10); +x_54 = lean_box(x_8); +lean_ctor_set(x_17, 1, x_6); +lean_ctor_set(x_17, 0, x_54); +return x_17; +} +} +} +} +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_17, 1); +lean_inc(x_55); +lean_dec(x_17); +x_56 = l_Lean_Syntax_getPos_x3f(x_55, x_14); +lean_dec(x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec_ref(x_19); +lean_dec(x_18); +lean_dec_ref(x_10); +x_57 = lean_box(x_8); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_6); +return x_58; +} +else +{ +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_56, 0); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_nat_dec_eq(x_18, x_59); +lean_dec(x_59); +lean_dec(x_18); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; +lean_dec_ref(x_19); +lean_dec_ref(x_10); +x_61 = lean_box(x_8); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_6); +return x_62; +} +else +{ +if (x_8 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_88; +x_63 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_10, x_4, x_6); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec_ref(x_63); +x_66 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_19, x_4, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec_ref(x_66); +lean_inc(x_64); +x_69 = l_Lean_Server_isInstanceProjection___redArg(x_64, x_5, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec_ref(x_69); +lean_inc(x_67); +x_72 = l_Lean_Server_isInstanceProjection___redArg(x_67, x_5, x_71); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; +} else { + lean_dec_ref(x_72); + x_75 = lean_box(0); +} +x_88 = lean_unbox(x_70); +lean_dec(x_70); +if (x_88 == 0) +{ +x_76 = x_60; +goto block_87; +} +else +{ +x_76 = x_8; +goto block_87; +} +block_87: +{ +if (x_76 == 0) +{ +uint8_t x_77; +x_77 = lean_unbox(x_73); +lean_dec(x_73); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; +x_78 = l_Lean_Expr_getAppFn_x27(x_64); +lean_dec(x_64); +x_79 = l_Lean_Expr_getAppFn_x27(x_67); +lean_dec(x_67); +x_80 = lean_expr_eqv(x_78, x_79); +lean_dec_ref(x_79); +lean_dec_ref(x_78); +x_81 = lean_box(x_80); +if (lean_is_scalar(x_75)) { + x_82 = lean_alloc_ctor(0, 2, 0); +} else { + x_82 = x_75; +} +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_74); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_67); +lean_dec(x_64); +x_83 = lean_box(x_8); +if (lean_is_scalar(x_75)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_75; +} +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_74); +return x_84; +} +} +else +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_73); +lean_dec(x_67); +lean_dec(x_64); +x_85 = lean_box(x_8); +if (lean_is_scalar(x_75)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_75; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_74); +return x_86; +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; +lean_dec_ref(x_19); +lean_dec_ref(x_10); +x_89 = lean_box(x_8); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_6); +return x_90; +} +} +} +} +} +} +else +{ +lean_object* x_91; uint8_t x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_9, 1); +lean_inc(x_91); +lean_dec(x_9); +x_92 = 1; +x_93 = l_Lean_Syntax_getPos_x3f(x_91, x_92); +lean_dec(x_91); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; +lean_dec_ref(x_10); +lean_dec_ref(x_3); +x_94 = lean_box(x_8); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_6); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_96 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_96); +x_97 = lean_ctor_get(x_93, 0); +lean_inc(x_97); +lean_dec(x_93); +x_98 = lean_ctor_get(x_3, 3); +lean_inc_ref(x_98); +lean_dec_ref(x_3); +x_99 = lean_ctor_get(x_96, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_100 = x_96; +} else { + lean_dec_ref(x_96); + x_100 = lean_box(0); +} +x_101 = l_Lean_Syntax_getPos_x3f(x_99, x_92); +lean_dec(x_99); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; +lean_dec_ref(x_98); +lean_dec(x_97); +lean_dec_ref(x_10); +x_102 = lean_box(x_8); +if (lean_is_scalar(x_100)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_100; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_6); +return x_103; +} +else +{ +lean_object* x_104; uint8_t x_105; +x_104 = lean_ctor_get(x_101, 0); +lean_inc(x_104); +lean_dec(x_101); +x_105 = lean_nat_dec_eq(x_97, x_104); +lean_dec(x_104); +lean_dec(x_97); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; +lean_dec_ref(x_98); +lean_dec_ref(x_10); +x_106 = lean_box(x_8); +if (lean_is_scalar(x_100)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_100; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_6); +return x_107; +} +else +{ +if (x_8 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t x_133; +lean_dec(x_100); +x_108 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_10, x_4, x_6); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec_ref(x_108); +x_111 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(x_98, x_4, x_110); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec_ref(x_111); +lean_inc(x_109); +x_114 = l_Lean_Server_isInstanceProjection___redArg(x_109, x_5, x_113); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec_ref(x_114); +lean_inc(x_112); +x_117 = l_Lean_Server_isInstanceProjection___redArg(x_112, x_5, x_116); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; +} else { + lean_dec_ref(x_117); + x_120 = lean_box(0); +} +x_133 = lean_unbox(x_115); +lean_dec(x_115); +if (x_133 == 0) +{ +x_121 = x_105; +goto block_132; +} +else +{ +x_121 = x_8; +goto block_132; +} +block_132: +{ +if (x_121 == 0) +{ +uint8_t x_122; +x_122 = lean_unbox(x_118); +lean_dec(x_118); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; +x_123 = l_Lean_Expr_getAppFn_x27(x_109); +lean_dec(x_109); +x_124 = l_Lean_Expr_getAppFn_x27(x_112); +lean_dec(x_112); +x_125 = lean_expr_eqv(x_123, x_124); +lean_dec_ref(x_124); +lean_dec_ref(x_123); +x_126 = lean_box(x_125); +if (lean_is_scalar(x_120)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_120; +} +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_119); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_112); +lean_dec(x_109); +x_128 = lean_box(x_8); +if (lean_is_scalar(x_120)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_120; +} +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_119); +return x_129; +} +} +else +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_118); +lean_dec(x_112); +lean_dec(x_109); +x_130 = lean_box(x_8); +if (lean_is_scalar(x_120)) { + x_131 = lean_alloc_ctor(0, 2, 0); +} else { + x_131 = x_120; +} +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_119); +return x_131; +} +} +} +else +{ +lean_object* x_134; lean_object* x_135; +lean_dec_ref(x_98); +lean_dec_ref(x_10); +x_134 = lean_box(x_8); +if (lean_is_scalar(x_100)) { + x_135 = lean_alloc_ctor(0, 2, 0); +} else { + x_135 = x_100; +} +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_6); +return x_135; +} +} +} +} +} +} +else +{ +uint8_t x_136; lean_object* x_137; lean_object* x_138; +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_136 = 0; +x_137 = lean_box(x_136); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_6); +return x_138; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Server_isInstanceProjectionInfoFor___redArg(x_1, x_2, x_3, x_5, x_7, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +x_8 = l_Lean_Server_isInstanceProjectionInfoFor___redArg(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_isInstanceProjectionInfoFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +x_10 = l_Lean_Server_isInstanceProjectionInfoFor(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_GoToM_run___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_apply_1(x_4, x_1); +x_7 = l_Lean_Elab_ContextInfo_runMetaM___redArg(x_2, x_3, x_6, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_GoToM_run(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_GoToM_run___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 5); +x_8 = l_Lean_addMessageContextFull___at___Lean_Meta_recordSynthPendingFailure_spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg(x_2, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Unknown constant `", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__0; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = lean_ctor_get(x_10, 0); +lean_inc_ref(x_12); +lean_dec(x_10); +x_13 = 0; +lean_inc(x_1); +x_14 = l_Lean_Environment_find_x3f(x_12, x_1, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_free_object(x_8); +x_15 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1; +x_16 = l_Lean_MessageData_ofConstName(x_1, x_13); +x_17 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3; +x_19 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg(x_19, x_3, x_4, x_5, x_6, x_11); +return x_20; +} +else +{ +lean_object* x_21; +lean_dec(x_1); +x_21 = lean_ctor_get(x_14, 0); +lean_inc(x_21); +lean_dec(x_14); +lean_ctor_set(x_8, 0, x_21); +return x_8; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_ctor_get(x_22, 0); +lean_inc_ref(x_24); +lean_dec(x_22); +x_25 = 0; +lean_inc(x_1); +x_26 = l_Lean_Environment_find_x3f(x_24, x_1, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1; +x_28 = l_Lean_MessageData_ofConstName(x_1, x_25); +x_29 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3; +x_31 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg(x_31, x_3, x_4, x_5, x_6, x_23); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_1); +x_33 = lean_ctor_get(x_26, 0); +lean_inc(x_33); +lean_dec(x_26); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_23); +return x_34; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_1); +x_8 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec_ref(x_8); +x_10 = lean_st_ref_get(x_6, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = lean_ctor_get(x_12, 0); +lean_inc_ref(x_14); +lean_dec(x_12); +x_15 = l_Lean_Environment_getModuleIdxFor_x3f(x_14, x_1); +lean_dec(x_1); +lean_dec_ref(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_box(0); +lean_ctor_set(x_10, 0, x_16); +return x_10; +} +else +{ +uint8_t x_17; +lean_free_object(x_10); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_st_ref_get(x_6, x_13); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_21, 0); +lean_inc_ref(x_22); +lean_dec(x_21); +x_23 = lean_box(0); +x_24 = l_Lean_Environment_allImportedModuleNames(x_22); +lean_dec_ref(x_22); +x_25 = lean_array_get(x_23, x_24, x_18); +lean_dec(x_18); +lean_dec_ref(x_24); +lean_ctor_set(x_15, 0, x_25); +lean_ctor_set(x_19, 0, x_15); +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +x_28 = lean_ctor_get(x_26, 0); +lean_inc_ref(x_28); +lean_dec(x_26); +x_29 = lean_box(0); +x_30 = l_Lean_Environment_allImportedModuleNames(x_28); +lean_dec_ref(x_28); +x_31 = lean_array_get(x_29, x_30, x_18); +lean_dec(x_18); +lean_dec_ref(x_30); +lean_ctor_set(x_15, 0, x_31); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_15); +lean_ctor_set(x_32, 1, x_27); +return x_32; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_33 = lean_ctor_get(x_15, 0); +lean_inc(x_33); +lean_dec(x_15); +x_34 = lean_st_ref_get(x_6, x_13); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +x_38 = lean_ctor_get(x_35, 0); +lean_inc_ref(x_38); +lean_dec(x_35); +x_39 = lean_box(0); +x_40 = l_Lean_Environment_allImportedModuleNames(x_38); +lean_dec_ref(x_38); +x_41 = lean_array_get(x_39, x_40, x_33); +lean_dec(x_33); +lean_dec_ref(x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +if (lean_is_scalar(x_37)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_37; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_36); +return x_43; +} +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_10, 0); +x_45 = lean_ctor_get(x_10, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_10); +x_46 = lean_ctor_get(x_44, 0); +lean_inc_ref(x_46); +lean_dec(x_44); +x_47 = l_Lean_Environment_getModuleIdxFor_x3f(x_46, x_1); +lean_dec(x_1); +lean_dec_ref(x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_50 = lean_ctor_get(x_47, 0); +lean_inc(x_50); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + x_51 = x_47; +} else { + lean_dec_ref(x_47); + x_51 = lean_box(0); +} +x_52 = lean_st_ref_get(x_6, x_45); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_55 = x_52; +} else { + lean_dec_ref(x_52); + x_55 = lean_box(0); +} +x_56 = lean_ctor_get(x_53, 0); +lean_inc_ref(x_56); +lean_dec(x_53); +x_57 = lean_box(0); +x_58 = l_Lean_Environment_allImportedModuleNames(x_56); +lean_dec_ref(x_56); +x_59 = lean_array_get(x_57, x_58, x_50); +lean_dec(x_50); +lean_dec_ref(x_58); +if (lean_is_scalar(x_51)) { + x_60 = lean_alloc_ctor(1, 1, 0); +} else { + x_60 = x_51; +} +lean_ctor_set(x_60, 0, x_59); +if (lean_is_scalar(x_55)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_55; +} +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_54); +return x_61; +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_8); +if (x_62 == 0) +{ +return x_8; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_8, 0); +x_64 = lean_ctor_get(x_8, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_8); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl_declMod_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_8, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +lean_inc_ref(x_13); +lean_inc(x_14); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_2, 0); +x_18 = lean_ctor_get(x_8, 1); +lean_inc(x_18); +lean_dec(x_8); +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +lean_inc_ref(x_19); +lean_inc(x_20); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_18); +return x_23; +} +} +else +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_8, 1); +lean_inc(x_24); +lean_dec_ref(x_8); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_9, 0); +lean_inc(x_26); +x_27 = l_Lean_Server_documentUriFromModule_x3f(x_26, x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +lean_free_object(x_9); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +x_31 = lean_box(0); +lean_ctor_set(x_27, 0, x_31); +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_dec(x_27); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_27); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_27, 0); +lean_dec(x_36); +x_37 = !lean_is_exclusive(x_28); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_28, 0); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_26); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_28, 0, x_39); +return x_27; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_28, 0); +lean_inc(x_40); +lean_dec(x_28); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_27, 0, x_42); +return x_27; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); +lean_dec(x_27); +x_44 = lean_ctor_get(x_28, 0); +lean_inc(x_44); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + x_45 = x_28; +} else { + lean_dec_ref(x_28); + x_45 = lean_box(0); +} +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_26); +lean_ctor_set(x_46, 1, x_44); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(1, 1, 0); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_43); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_26); +x_49 = !lean_is_exclusive(x_27); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_27, 0); +x_51 = lean_ctor_get(x_5, 5); +x_52 = lean_io_error_to_string(x_50); +lean_ctor_set_tag(x_9, 3); +lean_ctor_set(x_9, 0, x_52); +x_53 = l_Lean_MessageData_ofFormat(x_9); +lean_inc(x_51); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_27, 0, x_54); +return x_27; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_55 = lean_ctor_get(x_27, 0); +x_56 = lean_ctor_get(x_27, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_27); +x_57 = lean_ctor_get(x_5, 5); +x_58 = lean_io_error_to_string(x_55); +lean_ctor_set_tag(x_9, 3); +lean_ctor_set(x_9, 0, x_58); +x_59 = l_Lean_MessageData_ofFormat(x_9); +lean_inc(x_57); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_56); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_9, 0); +lean_inc(x_62); +lean_dec(x_9); +lean_inc(x_62); +x_63 = l_Lean_Server_documentUriFromModule_x3f(x_62, x_24); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; +} else { + lean_dec_ref(x_63); + x_66 = lean_box(0); +} +x_67 = lean_box(0); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_66; +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_69 = lean_ctor_get(x_63, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_70 = x_63; +} else { + lean_dec_ref(x_63); + x_70 = lean_box(0); +} +x_71 = lean_ctor_get(x_64, 0); +lean_inc(x_71); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + x_72 = x_64; +} else { + lean_dec_ref(x_64); + x_72 = lean_box(0); +} +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_62); +lean_ctor_set(x_73, 1, x_71); +if (lean_is_scalar(x_72)) { + x_74 = lean_alloc_ctor(1, 1, 0); +} else { + x_74 = x_72; +} +lean_ctor_set(x_74, 0, x_73); +if (lean_is_scalar(x_70)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_70; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_69); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_62); +x_76 = lean_ctor_get(x_63, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_63, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_78 = x_63; +} else { + lean_dec_ref(x_63); + x_78 = lean_box(0); +} +x_79 = lean_ctor_get(x_5, 5); +x_80 = lean_io_error_to_string(x_76); +x_81 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_81, 0, x_80); +x_82 = l_Lean_MessageData_ofFormat(x_81); +lean_inc(x_79); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_82); +if (lean_is_scalar(x_78)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_78; +} +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_77); +return x_84; +} +} +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_8); +if (x_85 == 0) +{ +return x_8; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_8, 0); +x_87 = lean_ctor_get(x_8, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_8); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl_declMod_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromDecl_declMod_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_st_ref_get(x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_6, 0); +lean_inc_ref(x_7); +lean_dec(x_6); +x_8 = l_Lean_isRecCore(x_7, x_1); +x_9 = lean_box(x_8); +lean_ctor_set(x_4, 0, x_9); +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +x_12 = lean_ctor_get(x_10, 0); +lean_inc_ref(x_12); +lean_dec(x_10); +x_13 = l_Lean_isRecCore(x_12, x_1); +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_11); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_1, x_6, x_7); +return x_8; +} +} +static lean_object* _init_l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0() { _start: { lean_object* x_1; @@ -577,7 +4694,7 @@ x_1 = l_Lean_declRangeExt; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -591,7 +4708,7 @@ x_7 = lean_ctor_get(x_6, 0); lean_inc_ref(x_7); lean_dec(x_6); x_8 = l_Lean_instInhabitedDeclarationRanges; -x_9 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0; +x_9 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0; x_10 = 1; x_11 = l_Lean_MapDeclarationExtension_find_x3f___redArg(x_8, x_9, x_7, x_1, x_10); lean_ctor_set(x_4, 0, x_11); @@ -609,7 +4726,7 @@ x_14 = lean_ctor_get(x_12, 0); lean_inc_ref(x_14); lean_dec(x_12); x_15 = l_Lean_instInhabitedDeclarationRanges; -x_16 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0; +x_16 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0; x_17 = 1; x_18 = l_Lean_MapDeclarationExtension_find_x3f___redArg(x_15, x_16, x_14, x_1, x_17); x_19 = lean_alloc_ctor(0, 2, 0); @@ -619,12 +4736,12 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; -x_7 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_1, x_5, x_6); -return x_7; +lean_object* x_8; +x_8 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg(x_1, x_6, x_7); +return x_8; } } static lean_object* _init_l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0() { @@ -635,146 +4752,146 @@ x_1 = l_Lean_builtinDeclRanges; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { if (lean_obj_tag(x_2) == 0) { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0; -x_9 = lean_st_ref_get(x_8, x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0; +x_10 = lean_st_ref_get(x_9, x_8); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(x_11, x_1); -lean_dec(x_11); -lean_ctor_set(x_9, 0, x_12); -return x_9; +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(x_12, x_1); +lean_dec(x_12); +lean_ctor_set(x_10, 0, x_13); +return x_10; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -x_15 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(x_13, x_1); -lean_dec(x_13); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -lean_object* x_17; +lean_dec(x_10); +x_16 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(x_14, x_1); +lean_dec(x_14); x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_7); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); return x_17; } } +else +{ +lean_object* x_18; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_8); +return x_18; } -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +} +} +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_22; uint8_t x_29; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_23; uint8_t x_30; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -lean_dec_ref(x_7); -x_10 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_10); -lean_dec(x_8); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec_ref(x_8); +x_11 = lean_ctor_get(x_9, 0); +lean_inc_ref(x_11); +lean_dec(x_9); lean_inc(x_1); -x_11 = l_Lean_isRec___at_____private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_getKeyArgs_spec__0___redArg(x_1, x_5, x_9); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +x_12 = l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_1, x_6, x_10); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec_ref(x_11); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec_ref(x_12); lean_inc(x_1); -lean_inc_ref(x_10); -x_29 = lean_is_aux_recursor(x_10, x_1); -if (x_29 == 0) +lean_inc_ref(x_11); +x_30 = lean_is_aux_recursor(x_11, x_1); +if (x_30 == 0) { -uint8_t x_30; +uint8_t x_31; lean_inc(x_1); -x_30 = lean_is_no_confusion(x_10, x_1); -x_22 = x_30; -goto block_28; +x_31 = lean_is_no_confusion(x_11, x_1); +x_23 = x_31; +goto block_29; } else { -lean_dec_ref(x_10); -x_22 = x_29; -goto block_28; +lean_dec_ref(x_11); +x_23 = x_30; +goto block_29; } -block_19: +block_20: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_14, x_5, x_13); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg(x_15, x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec_ref(x_15); -x_18 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(x_1, x_16, x_2, x_3, x_4, x_5, x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); +x_19 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_18); lean_dec(x_1); -return x_18; +return x_19; } -block_21: +block_22: { if (lean_obj_tag(x_1) == 0) { -x_14 = x_1; -goto block_19; +x_15 = x_1; +goto block_20; } else { -lean_object* x_20; -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -x_14 = x_20; -goto block_19; +lean_object* x_21; +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +x_15 = x_21; +goto block_20; } } -block_28: +block_29: { -if (x_22 == 0) -{ -uint8_t x_23; -x_23 = lean_unbox(x_12); -lean_dec(x_12); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +uint8_t x_24; +x_24 = lean_unbox(x_13); +lean_dec(x_13); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_inc(x_1); -x_24 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_1, x_5, x_13); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +x_25 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg(x_1, x_6, x_14); +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec_ref(x_24); -x_27 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(x_1, x_25, x_2, x_3, x_4, x_5, x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec_ref(x_25); +x_28 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(x_1, x_26, x_2, x_3, x_4, x_5, x_6, x_27); lean_dec(x_1); -return x_27; +return x_28; } else { -goto block_21; +goto block_22; } } else { -lean_dec(x_12); -goto block_21; +lean_dec(x_13); +goto block_22; } } } @@ -797,524 +4914,1855 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_9; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_45; uint8_t x_46; -x_45 = lean_st_ref_get(x_7, x_8); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_st_ref_get(x_6, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; -x_47 = lean_ctor_get(x_45, 0); -x_48 = lean_ctor_get(x_45, 1); -x_49 = lean_ctor_get(x_47, 0); -lean_inc_ref(x_49); -lean_dec(x_47); -x_50 = 1; -lean_inc(x_2); -x_51 = l_Lean_Environment_contains(x_49, x_2, x_50); -if (x_51 == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; uint8_t x_14; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = lean_ctor_get(x_10, 0); +lean_inc_ref(x_12); +lean_dec(x_10); +x_13 = 1; +lean_inc(x_1); +x_14 = l_Lean_Environment_contains(x_12, x_1, x_13); +if (x_14 == 0) { -lean_object* x_52; -lean_dec(x_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_52 = l_Lean_Server_locationLinksFromDecl___closed__0; -lean_ctor_set(x_45, 0, x_52); -return x_45; +lean_object* x_15; +lean_dec_ref(x_2); +lean_dec(x_1); +x_15 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_8, 0, x_15); +return x_8; } else { -lean_object* x_53; -lean_free_object(x_45); -lean_inc(x_2); -x_53 = l_Lean_findModuleOf_x3f___at___Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f_spec__0(x_2, x_4, x_5, x_6, x_7, x_48); -if (lean_obj_tag(x_53) == 0) +lean_object* x_16; +lean_free_object(x_8); +lean_inc(x_1); +x_16 = l_Lean_Server_locationLinksFromDecl_declMod_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_11); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_54; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec_ref(x_53); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_1); -x_13 = x_56; -x_14 = x_4; -x_15 = x_5; -x_16 = x_6; -x_17 = x_7; -x_18 = x_55; -goto block_44; +uint8_t x_18; +lean_dec_ref(x_2); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 0); +lean_dec(x_19); +x_20 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_16, 0, x_20); +return x_16; } else { -lean_object* x_57; uint8_t x_58; -lean_dec_ref(x_1); -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -lean_dec_ref(x_53); -x_58 = !lean_is_exclusive(x_54); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_54, 0); -x_60 = l_Lean_Server_documentUriFromModule_x3f(x_59, x_57); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; -lean_free_object(x_54); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec_ref(x_60); -x_13 = x_61; -x_14 = x_4; -x_15 = x_5; -x_16 = x_6; -x_17 = x_7; -x_18 = x_62; -goto block_44; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_22 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} } else { -uint8_t x_63; -lean_dec(x_3); -lean_dec(x_2); -x_63 = !lean_is_exclusive(x_60); -if (x_63 == 0) +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_17, 0); +lean_inc(x_24); +lean_dec(x_17); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_dec_ref(x_16); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +lean_inc(x_1); +x_28 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_25); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_64 = lean_ctor_get(x_60, 0); -x_65 = lean_ctor_get(x_6, 5); -x_66 = lean_io_error_to_string(x_64); -lean_ctor_set_tag(x_54, 3); -lean_ctor_set(x_54, 0, x_66); -x_67 = l_Lean_MessageData_ofFormat(x_54); -lean_inc(x_65); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_67); -lean_ctor_set(x_60, 0, x_68); -return x_60; +uint8_t x_30; +lean_dec(x_27); +lean_dec(x_26); +lean_dec_ref(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +x_32 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_28, 0, x_32); +return x_28; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_69 = lean_ctor_get(x_60, 0); -x_70 = lean_ctor_get(x_60, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_dec(x_28); +x_34 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_37 = x_28; +} else { + lean_dec_ref(x_28); + x_37 = lean_box(0); +} +x_38 = lean_ctor_get(x_29, 0); +lean_inc(x_38); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + x_39 = x_29; +} else { + lean_dec_ref(x_29); + x_39 = lean_box(0); +} +x_40 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_40); +x_41 = lean_ctor_get(x_2, 2); +lean_inc(x_41); +lean_dec_ref(x_2); +x_42 = 0; +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_69; +lean_dec_ref(x_40); +x_69 = lean_box(0); +x_43 = x_69; +goto block_68; +} +else +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_41, 0); lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_60); -x_71 = lean_ctor_get(x_6, 5); -x_72 = lean_io_error_to_string(x_69); -lean_ctor_set_tag(x_54, 3); -lean_ctor_set(x_54, 0, x_72); -x_73 = l_Lean_MessageData_ofFormat(x_54); -lean_inc(x_71); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_70); -return x_75; -} -} +lean_dec(x_41); +x_71 = l_Lean_Elab_Info_range_x3f(x_70); +lean_dec(x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +lean_dec_ref(x_40); +x_72 = lean_box(0); +x_43 = x_72; +goto block_68; } else { -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_54, 0); -lean_inc(x_76); -lean_dec(x_54); -x_77 = l_Lean_Server_documentUriFromModule_x3f(x_76, x_57); -if (lean_obj_tag(x_77) == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_71); +if (x_73 == 0) { -lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec_ref(x_77); -x_13 = x_78; -x_14 = x_4; -x_15 = x_5; -x_16 = x_6; -x_17 = x_7; -x_18 = x_79; -goto block_44; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_71, 0); +x_75 = lean_ctor_get(x_40, 3); +lean_inc_ref(x_75); +lean_dec_ref(x_40); +x_76 = l_String_Range_toLspRange(x_75, x_74); +lean_ctor_set(x_71, 0, x_76); +x_43 = x_71; +goto block_68; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_3); -lean_dec(x_2); -x_80 = lean_ctor_get(x_77, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_77, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_82 = x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_77 = lean_ctor_get(x_71, 0); +lean_inc(x_77); +lean_dec(x_71); +x_78 = lean_ctor_get(x_40, 3); +lean_inc_ref(x_78); +lean_dec_ref(x_40); +x_79 = l_String_Range_toLspRange(x_78, x_77); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +x_43 = x_80; +goto block_68; +} +} +} +block_68: +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_38); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_45 = lean_ctor_get(x_38, 0); +x_46 = lean_ctor_get(x_38, 1); +x_47 = l_Lean_DeclarationRange_toLspRange(x_45); +x_48 = l_Lean_DeclarationRange_toLspRange(x_46); +x_49 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_49, 0, x_43); +lean_ctor_set(x_49, 1, x_27); +lean_ctor_set(x_49, 2, x_47); +lean_ctor_set(x_49, 3, x_48); +x_50 = lean_erase_macro_scopes(x_1); +lean_ctor_set(x_38, 1, x_50); +lean_ctor_set(x_38, 0, x_26); +if (lean_is_scalar(x_39)) { + x_51 = lean_alloc_ctor(1, 1, 0); } else { - lean_dec_ref(x_77); - x_82 = lean_box(0); + x_51 = x_39; } -x_83 = lean_ctor_get(x_6, 5); -x_84 = lean_io_error_to_string(x_80); -x_85 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_85, 0, x_84); -x_86 = l_Lean_MessageData_ofFormat(x_85); +lean_ctor_set(x_51, 0, x_38); +x_52 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_51); +lean_ctor_set_uint8(x_52, sizeof(void*)*2, x_42); +x_53 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_54 = lean_array_push(x_53, x_52); +if (lean_is_scalar(x_37)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_37; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_36); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_56 = lean_ctor_get(x_38, 0); +x_57 = lean_ctor_get(x_38, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_38); +x_58 = l_Lean_DeclarationRange_toLspRange(x_56); +x_59 = l_Lean_DeclarationRange_toLspRange(x_57); +x_60 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_60, 0, x_43); +lean_ctor_set(x_60, 1, x_27); +lean_ctor_set(x_60, 2, x_58); +lean_ctor_set(x_60, 3, x_59); +x_61 = lean_erase_macro_scopes(x_1); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_26); +lean_ctor_set(x_62, 1, x_61); +if (lean_is_scalar(x_39)) { + x_63 = lean_alloc_ctor(1, 1, 0); +} else { + x_63 = x_39; +} +lean_ctor_set(x_63, 0, x_62); +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_60); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_42); +x_65 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_66 = lean_array_push(x_65, x_64); +if (lean_is_scalar(x_37)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_37; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_36); +return x_67; +} +} +} +} +} +else +{ +uint8_t x_81; +lean_dec_ref(x_2); +lean_dec(x_1); +x_81 = !lean_is_exclusive(x_16); +if (x_81 == 0) +{ +return x_16; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_16, 0); +x_83 = lean_ctor_get(x_16, 1); lean_inc(x_83); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_83); -lean_ctor_set(x_87, 1, x_86); -if (lean_is_scalar(x_82)) { - x_88 = lean_alloc_ctor(1, 2, 0); -} else { - x_88 = x_82; -} -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_81); -return x_88; +lean_inc(x_82); +lean_dec(x_16); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; } } } } else { -uint8_t x_89; -lean_dec(x_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_89 = !lean_is_exclusive(x_53); +lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; +x_85 = lean_ctor_get(x_8, 0); +x_86 = lean_ctor_get(x_8, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_8); +x_87 = lean_ctor_get(x_85, 0); +lean_inc_ref(x_87); +lean_dec(x_85); +x_88 = 1; +lean_inc(x_1); +x_89 = l_Lean_Environment_contains(x_87, x_1, x_88); if (x_89 == 0) { -return x_53; +lean_object* x_90; lean_object* x_91; +lean_dec_ref(x_2); +lean_dec(x_1); +x_90 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_86); +return x_91; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_53, 0); -x_91 = lean_ctor_get(x_53, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_53); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -} -else +lean_object* x_92; +lean_inc(x_1); +x_92 = l_Lean_Server_locationLinksFromDecl_declMod_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_86); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; -x_93 = lean_ctor_get(x_45, 0); -x_94 = lean_ctor_get(x_45, 1); -lean_inc(x_94); +lean_object* x_93; +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec(x_45); -x_95 = lean_ctor_get(x_93, 0); -lean_inc_ref(x_95); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec_ref(x_2); +lean_dec(x_1); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_95 = x_92; +} else { + lean_dec_ref(x_92); + x_95 = lean_box(0); +} +x_96 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_95)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_95; +} +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_94); +return x_97; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_98 = lean_ctor_get(x_93, 0); +lean_inc(x_98); lean_dec(x_93); -x_96 = 1; -lean_inc(x_2); -x_97 = l_Lean_Environment_contains(x_95, x_2, x_96); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; -lean_dec(x_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_98 = l_Lean_Server_locationLinksFromDecl___closed__0; -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_94); -return x_99; -} -else -{ -lean_object* x_100; -lean_inc(x_2); -x_100 = l_Lean_findModuleOf_x3f___at___Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f_spec__0(x_2, x_4, x_5, x_6, x_7, x_94); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; -x_101 = lean_ctor_get(x_100, 0); +x_99 = lean_ctor_get(x_92, 1); +lean_inc(x_99); +lean_dec_ref(x_92); +x_100 = lean_ctor_get(x_98, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_98, 1); lean_inc(x_101); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec_ref(x_100); -x_103 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_103, 0, x_1); -x_13 = x_103; -x_14 = x_4; -x_15 = x_5; -x_16 = x_6; -x_17 = x_7; -x_18 = x_102; -goto block_44; -} -else +lean_dec(x_98); +lean_inc(x_1); +x_102 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_99); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +if (lean_obj_tag(x_103) == 0) { lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec_ref(x_1); -x_104 = lean_ctor_get(x_100, 1); +lean_dec(x_101); +lean_dec(x_100); +lean_dec_ref(x_2); +lean_dec(x_1); +x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); -lean_dec_ref(x_100); -x_105 = lean_ctor_get(x_101, 0); -lean_inc(x_105); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - x_106 = x_101; +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; } else { - lean_dec_ref(x_101); - x_106 = lean_box(0); + lean_dec_ref(x_102); + x_105 = lean_box(0); } -x_107 = l_Lean_Server_documentUriFromModule_x3f(x_105, x_104); -if (lean_obj_tag(x_107) == 0) +x_106 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_105; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; +} +else { -lean_object* x_108; lean_object* x_109; -lean_dec(x_106); -x_108 = lean_ctor_get(x_107, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; +x_108 = lean_ctor_get(x_102, 1); lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec_ref(x_107); -x_13 = x_108; -x_14 = x_4; -x_15 = x_5; -x_16 = x_6; -x_17 = x_7; -x_18 = x_109; -goto block_44; +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_109 = x_102; +} else { + lean_dec_ref(x_102); + x_109 = lean_box(0); } -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_3); -lean_dec(x_2); -x_110 = lean_ctor_get(x_107, 0); +x_110 = lean_ctor_get(x_103, 0); lean_inc(x_110); -x_111 = lean_ctor_get(x_107, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_112 = x_107; +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + x_111 = x_103; } else { - lean_dec_ref(x_107); - x_112 = lean_box(0); + lean_dec_ref(x_103); + x_111 = lean_box(0); } -x_113 = lean_ctor_get(x_6, 5); -x_114 = lean_io_error_to_string(x_110); -if (lean_is_scalar(x_106)) { - x_115 = lean_alloc_ctor(3, 1, 0); -} else { - x_115 = x_106; - lean_ctor_set_tag(x_115, 3); -} -lean_ctor_set(x_115, 0, x_114); -x_116 = l_Lean_MessageData_ofFormat(x_115); +x_112 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_112); +x_113 = lean_ctor_get(x_2, 2); lean_inc(x_113); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_113); -lean_ctor_set(x_117, 1, x_116); -if (lean_is_scalar(x_112)) { - x_118 = lean_alloc_ctor(1, 2, 0); -} else { - x_118 = x_112; +lean_dec_ref(x_2); +x_114 = 0; +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_130; +lean_dec_ref(x_112); +x_130 = lean_box(0); +x_115 = x_130; +goto block_129; +} +else +{ +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_113, 0); +lean_inc(x_131); +lean_dec(x_113); +x_132 = l_Lean_Elab_Info_range_x3f(x_131); +lean_dec(x_131); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; +lean_dec_ref(x_112); +x_133 = lean_box(0); +x_115 = x_133; +goto block_129; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_134 = lean_ctor_get(x_132, 0); +lean_inc(x_134); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + x_135 = x_132; +} else { + lean_dec_ref(x_132); + x_135 = lean_box(0); +} +x_136 = lean_ctor_get(x_112, 3); +lean_inc_ref(x_136); +lean_dec_ref(x_112); +x_137 = l_String_Range_toLspRange(x_136, x_134); +if (lean_is_scalar(x_135)) { + x_138 = lean_alloc_ctor(1, 1, 0); +} else { + x_138 = x_135; +} +lean_ctor_set(x_138, 0, x_137); +x_115 = x_138; +goto block_129; +} +} +block_129: +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_116 = lean_ctor_get(x_110, 0); +lean_inc_ref(x_116); +x_117 = lean_ctor_get(x_110, 1); +lean_inc_ref(x_117); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_118 = x_110; +} else { + lean_dec_ref(x_110); + x_118 = lean_box(0); +} +x_119 = l_Lean_DeclarationRange_toLspRange(x_116); +x_120 = l_Lean_DeclarationRange_toLspRange(x_117); +x_121 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_121, 0, x_115); +lean_ctor_set(x_121, 1, x_101); +lean_ctor_set(x_121, 2, x_119); +lean_ctor_set(x_121, 3, x_120); +x_122 = lean_erase_macro_scopes(x_1); +if (lean_is_scalar(x_118)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_118; +} +lean_ctor_set(x_123, 0, x_100); +lean_ctor_set(x_123, 1, x_122); +if (lean_is_scalar(x_111)) { + x_124 = lean_alloc_ctor(1, 1, 0); +} else { + x_124 = x_111; +} +lean_ctor_set(x_124, 0, x_123); +x_125 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_125, 0, x_121); +lean_ctor_set(x_125, 1, x_124); +lean_ctor_set_uint8(x_125, sizeof(void*)*2, x_114); +x_126 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_127 = lean_array_push(x_126, x_125); +if (lean_is_scalar(x_109)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_109; +} +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_108); +return x_128; } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_111); -return x_118; } } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_3); -lean_dec(x_2); -lean_dec_ref(x_1); -x_119 = lean_ctor_get(x_100, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_100, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_121 = x_100; +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec_ref(x_2); +lean_dec(x_1); +x_139 = lean_ctor_get(x_92, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_92, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_141 = x_92; } else { - lean_dec_ref(x_100); - x_121 = lean_box(0); + lean_dec_ref(x_92); + x_141 = lean_box(0); } -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); } else { - x_122 = x_121; + x_142 = x_141; } -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); -return x_122; +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; } } } -block_12: +} +} +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_10; lean_object* x_11; +lean_object* x_4; +x_4 = l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_isRec___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromDecl(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT uint8_t l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_3, 3); +if (lean_obj_tag(x_4) == 1) +{ +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_3, sizeof(void*)*4); +if (x_5 == 0) +{ +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_name_eq(x_6, x_1); +return x_7; +} +} +else +{ +uint8_t x_8; +x_8 = 0; +return x_8; +} +} +else +{ +uint8_t x_9; +x_9 = 0; +return x_9; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec_ref(x_2); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_1); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_alloc_closure((void*)(l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg___lam__0___boxed), 2, 1); +lean_closure_set(x_8, 0, x_1); +x_9 = l_Lean_Elab_InfoTree_findInfo_x3f(x_8, x_7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_3); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg(x_1, x_2, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg___lam__0(x_1, x_2); +lean_dec_ref(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromBinder_binderInfo_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +lean_inc_ref(x_2); +x_4 = l_Lean_Server_locationLinksFromBinder_binderInfo_x3f___redArg(x_1, x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +lean_dec_ref(x_2); +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 0); +lean_dec(x_7); +x_8 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_4, 0, x_8); +return x_4; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_dec(x_4); x_10 = l_Lean_Server_locationLinksFromDecl___closed__0; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); return x_11; } -block_44: +} +else { -lean_object* x_19; lean_object* x_20; -x_19 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(x_2, x_14, x_15, x_16, x_17, x_18); -x_20 = lean_ctor_get(x_19, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + x_13 = x_4; +} else { + lean_dec_ref(x_4); + x_13 = lean_box(0); +} +x_14 = lean_ctor_get(x_5, 0); +lean_inc(x_14); +lean_dec(x_5); +x_15 = l_Lean_Elab_Info_range_x3f(x_14); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec_ref(x_2); +x_16 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_13)) { + x_17 = lean_alloc_ctor(0, 2, 0); +} else { + x_17 = x_13; +} +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_12); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_18 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_18); +x_19 = lean_ctor_get(x_15, 0); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_ctor_get(x_2, 2); lean_inc(x_20); +lean_dec_ref(x_2); +x_21 = lean_ctor_get(x_18, 0); +lean_inc_ref(x_21); +x_22 = lean_ctor_get(x_18, 3); +lean_inc_ref(x_22); +lean_dec_ref(x_18); +lean_inc_ref(x_22); +x_23 = l_String_Range_toLspRange(x_22, x_19); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; -lean_dec(x_13); -lean_dec(x_3); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec_ref(x_19); -x_9 = x_21; -goto block_12; +lean_object* x_33; +lean_dec_ref(x_22); +x_33 = lean_box(0); +x_24 = x_33; +goto block_32; } else { -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_22; -lean_dec(x_20); -lean_dec(x_3); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec_ref(x_19); -x_9 = x_22; -goto block_12; -} -else -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_20, 0); -lean_inc(x_23); -lean_dec(x_20); -x_24 = !lean_is_exclusive(x_19); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_25 = lean_ctor_get(x_19, 0); -lean_dec(x_25); -x_26 = lean_ctor_get(x_13, 0); -lean_inc(x_26); -lean_dec(x_13); -x_27 = lean_ctor_get(x_23, 0); -lean_inc_ref(x_27); -x_28 = lean_ctor_get(x_23, 1); -lean_inc_ref(x_28); -lean_dec(x_23); -x_29 = l_Lean_DeclarationRange_toLspRange(x_27); -x_30 = l_Lean_DeclarationRange_toLspRange(x_28); -x_31 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_31, 0, x_3); -lean_ctor_set(x_31, 1, x_26); -lean_ctor_set(x_31, 2, x_29); -lean_ctor_set(x_31, 3, x_30); -x_32 = l_Lean_Server_locationLinksFromDecl___closed__1; -x_33 = lean_array_push(x_32, x_31); -lean_ctor_set(x_19, 0, x_33); -return x_19; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_34 = lean_ctor_get(x_19, 1); +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_20, 0); lean_inc(x_34); -lean_dec(x_19); -x_35 = lean_ctor_get(x_13, 0); -lean_inc(x_35); -lean_dec(x_13); -x_36 = lean_ctor_get(x_23, 0); -lean_inc_ref(x_36); -x_37 = lean_ctor_get(x_23, 1); -lean_inc_ref(x_37); -lean_dec(x_23); -x_38 = l_Lean_DeclarationRange_toLspRange(x_36); -x_39 = l_Lean_DeclarationRange_toLspRange(x_37); -x_40 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_40, 0, x_3); -lean_ctor_set(x_40, 1, x_35); -lean_ctor_set(x_40, 2, x_38); -lean_ctor_set(x_40, 3, x_39); -x_41 = l_Lean_Server_locationLinksFromDecl___closed__1; -x_42 = lean_array_push(x_41, x_40); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_34); -return x_43; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: +lean_dec(x_20); +x_35 = l_Lean_Elab_Info_range_x3f(x_34); +lean_dec(x_34); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_4; -x_4 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; +lean_object* x_36; +lean_dec_ref(x_22); +x_36 = lean_box(0); +x_24 = x_36; +goto block_32; } -} -LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: +else { -lean_object* x_7; -x_7 = l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -return x_7; +uint8_t x_37; +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 0); +x_39 = l_String_Range_toLspRange(x_22, x_38); +lean_ctor_set(x_35, 0, x_39); +x_24 = x_35; +goto block_32; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 0); +lean_inc(x_40); +lean_dec(x_35); +x_41 = l_String_Range_toLspRange(x_22, x_40); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_24 = x_42; +goto block_32; } } -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +} +block_32: +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_inc_ref(x_23); +x_25 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +lean_ctor_set(x_25, 2, x_23); +lean_ctor_set(x_25, 3, x_23); +x_26 = lean_box(0); +x_27 = 0; +x_28 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_28, 1, x_26); +lean_ctor_set_uint8(x_28, sizeof(void*)*2, x_27); +x_29 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_30 = lean_array_push(x_29, x_28); +if (lean_is_scalar(x_13)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_13; +} +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_12); +return x_31; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Server_locationLinksFromBinder___redArg(x_1, x_2, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromBinder___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromBinder(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec_ref(x_5); lean_dec(x_4); lean_dec_ref(x_3); -lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Parser", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Module", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("import", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_locationLinksFromImport___redArg___closed__3; +x_2 = l_Lean_Server_locationLinksFromImport___redArg___closed__2; +x_3 = l_Lean_Server_locationLinksFromImport___redArg___closed__1; +x_4 = l_Lean_Server_locationLinksFromImport___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Server_locationLinksFromImport___redArg___closed__5; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("all", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_locationLinksFromImport___redArg___closed__7; +x_2 = l_Lean_Server_locationLinksFromImport___redArg___closed__2; +x_3 = l_Lean_Server_locationLinksFromImport___redArg___closed__1; +x_4 = l_Lean_Server_locationLinksFromImport___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("meta", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_locationLinksFromImport___redArg___closed__9; +x_2 = l_Lean_Server_locationLinksFromImport___redArg___closed__2; +x_3 = l_Lean_Server_locationLinksFromImport___redArg___closed__1; +x_4 = l_Lean_Server_locationLinksFromImport___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("public", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromImport___redArg___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_locationLinksFromImport___redArg___closed__11; +x_2 = l_Lean_Server_locationLinksFromImport___redArg___closed__2; +x_3 = l_Lean_Server_locationLinksFromImport___redArg___closed__1; +x_4 = l_Lean_Server_locationLinksFromImport___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_18 = x_1; +} else { + lean_dec_ref(x_1); + x_18 = lean_box(0); +} +x_19 = l_Lean_Server_locationLinksFromImport___redArg___closed__4; +lean_inc(x_17); +x_20 = l_Lean_Syntax_isOfKind(x_17, x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_17); +lean_dec_ref(x_2); +x_21 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_18)) { + x_22 = lean_alloc_ctor(0, 2, 0); +} else { + x_22 = x_18; +} +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_4); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_87; lean_object* x_88; lean_object* x_101; uint8_t x_102; +x_23 = lean_unsigned_to_nat(0u); +x_101 = l_Lean_Syntax_getArg(x_17, x_23); +x_102 = l_Lean_Syntax_isNone(x_101); +if (x_102 == 0) +{ +lean_object* x_103; uint8_t x_104; +x_103 = lean_unsigned_to_nat(1u); +lean_inc(x_101); +x_104 = l_Lean_Syntax_matchesNull(x_101, x_103); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_101); +lean_dec(x_18); +lean_dec(x_17); +lean_dec_ref(x_2); +x_105 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_4); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_107 = l_Lean_Syntax_getArg(x_101, x_23); +lean_dec(x_101); +x_108 = l_Lean_Server_locationLinksFromImport___redArg___closed__12; +x_109 = l_Lean_Syntax_isOfKind(x_107, x_108); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_18); +lean_dec(x_17); +lean_dec_ref(x_2); +x_110 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_4); +return x_111; +} +else +{ +x_87 = x_3; +x_88 = x_4; +goto block_100; +} +} +} +else +{ +lean_dec(x_101); +x_87 = x_3; +x_88 = x_4; +goto block_100; +} +block_71: +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_unsigned_to_nat(5u); +x_27 = l_Lean_Syntax_getArg(x_17, x_26); +x_28 = l_Lean_Syntax_matchesNull(x_27, x_23); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_17); +lean_dec_ref(x_2); +x_29 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_18)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_18; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_25); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_unsigned_to_nat(4u); +x_32 = l_Lean_Syntax_getArg(x_17, x_31); +lean_dec(x_17); +x_33 = l_Lean_Syntax_getId(x_32); +x_34 = l_Lean_Server_documentUriFromModule_x3f(x_33, x_25); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; +lean_dec(x_18); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +uint8_t x_36; +lean_dec(x_32); +lean_dec_ref(x_2); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 0); +lean_dec(x_37); +x_38 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_34, 0, x_38); +return x_34; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); +lean_dec(x_34); +x_40 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_34, 1); +lean_inc(x_42); +lean_dec_ref(x_34); +x_43 = lean_ctor_get(x_35, 0); +lean_inc(x_43); +lean_dec(x_35); +x_44 = l_Lean_Server_locationLinksFromImport___redArg___closed__6; +x_45 = l_Lean_Syntax_getRange_x3f(x_32, x_20); +lean_dec(x_32); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; +lean_dec_ref(x_2); +x_46 = lean_box(0); +x_5 = x_42; +x_6 = x_43; +x_7 = x_44; +x_8 = x_46; +goto block_16; +} +else +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_47); +lean_dec_ref(x_2); +x_48 = !lean_is_exclusive(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_45, 0); +x_50 = lean_ctor_get(x_47, 3); +lean_inc_ref(x_50); +lean_dec_ref(x_47); +x_51 = l_String_Range_toLspRange(x_50, x_49); +lean_ctor_set(x_45, 0, x_51); +x_5 = x_42; +x_6 = x_43; +x_7 = x_44; +x_8 = x_45; +goto block_16; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_45, 0); +lean_inc(x_52); +lean_dec(x_45); +x_53 = lean_ctor_get(x_47, 3); +lean_inc_ref(x_53); +lean_dec_ref(x_47); +x_54 = l_String_Range_toLspRange(x_53, x_52); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_5 = x_42; +x_6 = x_43; +x_7 = x_44; +x_8 = x_55; +goto block_16; +} +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_32); +lean_dec_ref(x_2); +x_56 = !lean_is_exclusive(x_34); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_57 = lean_ctor_get(x_34, 0); +x_58 = lean_ctor_get(x_24, 5); +x_59 = lean_io_error_to_string(x_57); +x_60 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_60, 0, x_59); +x_61 = l_Lean_MessageData_ofFormat(x_60); +lean_inc(x_58); +if (lean_is_scalar(x_18)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_18; +} +lean_ctor_set(x_62, 0, x_58); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_34, 0, x_62); +return x_34; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_63 = lean_ctor_get(x_34, 0); +x_64 = lean_ctor_get(x_34, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_34); +x_65 = lean_ctor_get(x_24, 5); +x_66 = lean_io_error_to_string(x_63); +x_67 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_68 = l_Lean_MessageData_ofFormat(x_67); +lean_inc(x_65); +if (lean_is_scalar(x_18)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_18; +} +lean_ctor_set(x_69, 0, x_65); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_64); +return x_70; +} +} +} +} +block_86: +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_75 = lean_unsigned_to_nat(3u); +x_76 = l_Lean_Syntax_getArg(x_17, x_75); +x_77 = l_Lean_Syntax_isNone(x_76); +if (x_77 == 0) +{ +uint8_t x_78; +lean_inc(x_76); +x_78 = l_Lean_Syntax_matchesNull(x_76, x_72); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; +lean_dec(x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec_ref(x_2); +x_79 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_74); +return x_80; +} +else +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_81 = l_Lean_Syntax_getArg(x_76, x_23); +lean_dec(x_76); +x_82 = l_Lean_Server_locationLinksFromImport___redArg___closed__8; +x_83 = l_Lean_Syntax_isOfKind(x_81, x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_18); +lean_dec(x_17); +lean_dec_ref(x_2); +x_84 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_74); +return x_85; +} +else +{ +x_24 = x_73; +x_25 = x_74; +goto block_71; +} +} +} +else +{ +lean_dec(x_76); +x_24 = x_73; +x_25 = x_74; +goto block_71; +} +} +block_100: +{ +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_unsigned_to_nat(1u); +x_90 = l_Lean_Syntax_getArg(x_17, x_89); +x_91 = l_Lean_Syntax_isNone(x_90); +if (x_91 == 0) +{ +uint8_t x_92; +lean_inc(x_90); +x_92 = l_Lean_Syntax_matchesNull(x_90, x_89); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; +lean_dec(x_90); +lean_dec(x_18); +lean_dec(x_17); +lean_dec_ref(x_2); +x_93 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_88); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = l_Lean_Syntax_getArg(x_90, x_23); +lean_dec(x_90); +x_96 = l_Lean_Server_locationLinksFromImport___redArg___closed__10; +x_97 = l_Lean_Syntax_isOfKind(x_95, x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_18); +lean_dec(x_17); +lean_dec_ref(x_2); +x_98 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_88); +return x_99; +} +else +{ +x_72 = x_89; +x_73 = x_87; +x_74 = x_88; +goto block_86; +} +} +} +else +{ +lean_dec(x_90); +x_72 = x_89; +x_73 = x_87; +x_74 = x_88; +goto block_86; +} +} +} +block_16: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_inc_ref(x_7); +x_9 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +lean_ctor_set(x_9, 2, x_7); +lean_ctor_set(x_9, 3, x_7); +x_10 = lean_box(0); +x_11 = 0; +x_12 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_11); +x_13 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_14 = lean_array_push(x_13, x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_5); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromImport___redArg(x_1, x_2, x_5, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Server_locationLinksFromImport___redArg(x_1, x_2, x_3, x_4); +lean_dec_ref(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromImport___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromImport(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Delab", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__0; +x_2 = l_Lean_Name_mkStr1(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Elab", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Term", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("elabApp", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__4; +x_2 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3; +x_3 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2; +x_4 = l_Lean_Server_locationLinksFromImport___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("elabIdent", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__6; +x_2 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3; +x_3 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2; +x_4 = l_Lean_Server_locationLinksFromImport___redArg___closed__0; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_st_ref_get(x_2, x_3); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +lean_dec_ref(x_1); +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 0); +lean_dec(x_7); +x_8 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +lean_ctor_set(x_4, 0, x_8); +return x_4; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_dec(x_4); +x_10 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_4, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_4, 1); +lean_inc(x_13); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + x_14 = x_4; +} else { + lean_dec_ref(x_4); + x_14 = lean_box(0); +} +x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +lean_dec_ref(x_1); +x_16 = lean_ctor_get(x_5, 0); +lean_inc(x_16); +lean_dec(x_5); +x_17 = l_Lean_Elab_Info_toElabInfo_x3f(x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_12); +x_18 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +if (lean_is_scalar(x_14)) { + x_19 = lean_alloc_ctor(0, 2, 0); +} else { + x_19 = x_14; +} +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_13); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_32; uint8_t x_33; +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_23 = x_20; +} else { + lean_dec_ref(x_20); + x_23 = lean_box(0); +} +x_32 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__1; +x_33 = lean_name_eq(x_21, x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_42; lean_object* x_50; uint8_t x_51; +x_34 = lean_ctor_get(x_12, 0); +lean_inc_ref(x_34); +lean_dec(x_12); +x_50 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__5; +x_51 = lean_name_eq(x_21, x_50); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__7; +x_53 = lean_name_eq(x_21, x_52); +x_42 = x_53; +goto block_49; +} +else +{ +x_42 = x_51; +goto block_49; +} +block_41: +{ +uint8_t x_37; uint8_t x_38; +x_37 = 0; +x_38 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(x_15, x_37); +if (x_38 == 0) +{ +lean_dec_ref(x_34); +x_24 = x_36; +x_25 = x_35; +x_26 = x_38; +goto block_31; +} +else +{ +lean_object* x_39; uint8_t x_40; +lean_inc(x_22); +x_39 = l_Lean_Syntax_getKind(x_22); +x_40 = l_Lean_Environment_contains(x_34, x_39, x_38); +x_24 = x_36; +x_25 = x_35; +x_26 = x_40; +goto block_31; +} +} +block_49: +{ +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; uint8_t x_45; +lean_dec(x_23); +x_43 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +x_44 = 1; +lean_inc(x_21); +lean_inc_ref(x_34); +x_45 = l_Lean_Environment_contains(x_34, x_21, x_44); +if (x_45 == 0) +{ +lean_dec(x_21); +x_35 = x_43; +x_36 = x_13; +goto block_41; +} +else +{ +lean_object* x_46; +x_46 = lean_array_push(x_43, x_21); +x_35 = x_46; +x_36 = x_13; +goto block_41; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec_ref(x_34); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_14); +x_47 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +if (lean_is_scalar(x_23)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_23; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_13); +return x_48; +} +} +} +else +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_12); +x_54 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +if (lean_is_scalar(x_23)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_23; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_13); +return x_55; +} +block_31: +{ +if (x_26 == 0) +{ +lean_object* x_27; +lean_dec(x_22); +if (lean_is_scalar(x_14)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_14; +} +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = l_Lean_Syntax_getKind(x_22); +x_29 = lean_array_push(x_25, x_28); +if (lean_is_scalar(x_14)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_14; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_24); +return x_30; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg(x_1, x_5, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault_defaultDeclNames___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_locationLinksDefault_defaultDeclNames(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec_ref(x_4); lean_dec(x_3); @@ -1322,21 +6770,2906 @@ lean_dec_ref(x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_3, x_2); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec_ref(x_5); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_4); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_uget(x_1, x_3); +lean_inc_ref(x_5); +x_14 = l_Lean_Server_locationLinksFromDecl(x_13, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec_ref(x_14); +x_17 = l_Array_append___redArg(x_4, x_15); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_3, x_18); +x_3 = x_19; +x_4 = x_17; +x_10 = x_16; +goto _start; +} +else +{ +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_uget(x_3, x_2); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_4); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_8, x_2, x_5); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_5, 0); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_5); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_array_uset(x_3, x_2, x_15); +x_17 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_14); +lean_ctor_set_uint8(x_17, sizeof(void*)*2, x_4); +x_18 = 1; +x_19 = lean_usize_add(x_2, x_18); +x_20 = lean_array_uset(x_16, x_2, x_17); +x_2 = x_19; +x_3 = x_20; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; +lean_inc_ref(x_1); +x_7 = l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg(x_1, x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec_ref(x_7); +x_10 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_11 = lean_array_size(x_8); +x_12 = 0; +x_13 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0(x_8, x_11, x_12, x_10, x_1, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_8); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; size_t x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_array_size(x_15); +x_17 = l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1(x_16, x_12, x_15); +lean_ctor_set(x_13, 0, x_17); +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; size_t x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_13); +x_20 = lean_array_size(x_18); +x_21 = l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1(x_20, x_12, x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +} +else +{ +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Lean_Server_locationLinksDefault_spec__1(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksDefault___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Server_locationLinksDefault(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_st_ref_get(x_4, x_5); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc_ref(x_10); +lean_dec(x_8); +x_11 = lean_ctor_get(x_1, 0); +x_12 = lean_ctor_get(x_1, 1); +x_13 = l_Lean_getErrorExplanationRaw_x3f(x_10, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +lean_dec_ref(x_2); +x_14 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_6, 0, x_14); +return x_6; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_15, 2); +lean_inc(x_16); +lean_dec(x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +lean_dec_ref(x_2); +x_17 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_6, 0, x_17); +return x_6; +} +else +{ +uint8_t x_18; +lean_free_object(x_6); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_16, 0); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +x_23 = l_Lean_Server_documentUriFromModule_x3f(x_21, x_9); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +lean_free_object(x_19); +lean_free_object(x_16); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +lean_dec_ref(x_22); +lean_dec_ref(x_2); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +x_27 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_23, 0, x_27); +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +x_29 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_44; lean_object* x_45; +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_32 = x_23; +} else { + lean_dec_ref(x_23); + x_32 = lean_box(0); +} +x_33 = lean_ctor_get(x_24, 0); +lean_inc(x_33); +lean_dec(x_24); +x_34 = l_Lean_DeclarationRange_toLspRange(x_22); +x_44 = 1; +x_45 = l_Lean_Syntax_getRange_x3f(x_11, x_44); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; +lean_dec_ref(x_2); +x_46 = lean_box(0); +x_35 = x_46; +goto block_43; +} +else +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_47); +lean_dec_ref(x_2); +x_48 = !lean_is_exclusive(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_45, 0); +x_50 = lean_ctor_get(x_47, 3); +lean_inc_ref(x_50); +lean_dec_ref(x_47); +x_51 = l_String_Range_toLspRange(x_50, x_49); +lean_ctor_set(x_45, 0, x_51); +x_35 = x_45; +goto block_43; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_45, 0); +lean_inc(x_52); +lean_dec(x_45); +x_53 = lean_ctor_get(x_47, 3); +lean_inc_ref(x_53); +lean_dec_ref(x_47); +x_54 = l_String_Range_toLspRange(x_53, x_52); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_35 = x_55; +goto block_43; +} +} +block_43: +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_inc_ref(x_34); +x_36 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +lean_ctor_set(x_36, 2, x_34); +lean_ctor_set(x_36, 3, x_34); +x_37 = lean_box(0); +x_38 = 0; +x_39 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_37); +lean_ctor_set_uint8(x_39, sizeof(void*)*2, x_38); +x_40 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_41 = lean_array_push(x_40, x_39); +if (lean_is_scalar(x_32)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_32; +} +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_31); +return x_42; +} +} +} +else +{ +uint8_t x_56; +lean_dec_ref(x_22); +lean_dec_ref(x_2); +x_56 = !lean_is_exclusive(x_23); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_23, 0); +x_58 = lean_ctor_get(x_3, 5); +x_59 = lean_io_error_to_string(x_57); +lean_ctor_set_tag(x_16, 3); +lean_ctor_set(x_16, 0, x_59); +x_60 = l_Lean_MessageData_ofFormat(x_16); +lean_inc(x_58); +lean_ctor_set(x_19, 1, x_60); +lean_ctor_set(x_19, 0, x_58); +lean_ctor_set(x_23, 0, x_19); +return x_23; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_61 = lean_ctor_get(x_23, 0); +x_62 = lean_ctor_get(x_23, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_23); +x_63 = lean_ctor_get(x_3, 5); +x_64 = lean_io_error_to_string(x_61); +lean_ctor_set_tag(x_16, 3); +lean_ctor_set(x_16, 0, x_64); +x_65 = l_Lean_MessageData_ofFormat(x_16); +lean_inc(x_63); +lean_ctor_set(x_19, 1, x_65); +lean_ctor_set(x_19, 0, x_63); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_19); +lean_ctor_set(x_66, 1, x_62); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_19, 0); +x_68 = lean_ctor_get(x_19, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_19); +x_69 = l_Lean_Server_documentUriFromModule_x3f(x_67, x_9); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; +lean_free_object(x_16); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec_ref(x_68); +lean_dec_ref(x_2); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_72 = x_69; +} else { + lean_dec_ref(x_69); + x_72 = lean_box(0); +} +x_73 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_72)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_72; +} +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_71); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_88; lean_object* x_89; +x_75 = lean_ctor_get(x_69, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_76 = x_69; +} else { + lean_dec_ref(x_69); + x_76 = lean_box(0); +} +x_77 = lean_ctor_get(x_70, 0); +lean_inc(x_77); +lean_dec(x_70); +x_78 = l_Lean_DeclarationRange_toLspRange(x_68); +x_88 = 1; +x_89 = l_Lean_Syntax_getRange_x3f(x_11, x_88); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; +lean_dec_ref(x_2); +x_90 = lean_box(0); +x_79 = x_90; +goto block_87; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_91 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_91); +lean_dec_ref(x_2); +x_92 = lean_ctor_get(x_89, 0); +lean_inc(x_92); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + x_93 = x_89; +} else { + lean_dec_ref(x_89); + x_93 = lean_box(0); +} +x_94 = lean_ctor_get(x_91, 3); +lean_inc_ref(x_94); +lean_dec_ref(x_91); +x_95 = l_String_Range_toLspRange(x_94, x_92); +if (lean_is_scalar(x_93)) { + x_96 = lean_alloc_ctor(1, 1, 0); +} else { + x_96 = x_93; +} +lean_ctor_set(x_96, 0, x_95); +x_79 = x_96; +goto block_87; +} +block_87: +{ +lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_inc_ref(x_78); +x_80 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_77); +lean_ctor_set(x_80, 2, x_78); +lean_ctor_set(x_80, 3, x_78); +x_81 = lean_box(0); +x_82 = 0; +x_83 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +lean_ctor_set_uint8(x_83, sizeof(void*)*2, x_82); +x_84 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_85 = lean_array_push(x_84, x_83); +if (lean_is_scalar(x_76)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_76; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_75); +return x_86; +} +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec_ref(x_68); +lean_dec_ref(x_2); +x_97 = lean_ctor_get(x_69, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_69, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_99 = x_69; +} else { + lean_dec_ref(x_69); + x_99 = lean_box(0); +} +x_100 = lean_ctor_get(x_3, 5); +x_101 = lean_io_error_to_string(x_97); +lean_ctor_set_tag(x_16, 3); +lean_ctor_set(x_16, 0, x_101); +x_102 = l_Lean_MessageData_ofFormat(x_16); +lean_inc(x_100); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_102); +if (lean_is_scalar(x_99)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_99; +} +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_98); +return x_104; +} +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_105 = lean_ctor_get(x_16, 0); +lean_inc(x_105); +lean_dec(x_16); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc_ref(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; +} else { + lean_dec_ref(x_105); + x_108 = lean_box(0); +} +x_109 = l_Lean_Server_documentUriFromModule_x3f(x_106, x_9); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; +lean_dec(x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec_ref(x_107); +lean_dec_ref(x_2); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; +} else { + lean_dec_ref(x_109); + x_112 = lean_box(0); +} +x_113 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_112; +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_128; lean_object* x_129; +x_115 = lean_ctor_get(x_109, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_116 = x_109; +} else { + lean_dec_ref(x_109); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_110, 0); +lean_inc(x_117); +lean_dec(x_110); +x_118 = l_Lean_DeclarationRange_toLspRange(x_107); +x_128 = 1; +x_129 = l_Lean_Syntax_getRange_x3f(x_11, x_128); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; +lean_dec_ref(x_2); +x_130 = lean_box(0); +x_119 = x_130; +goto block_127; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_131 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_131); +lean_dec_ref(x_2); +x_132 = lean_ctor_get(x_129, 0); +lean_inc(x_132); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + x_133 = x_129; +} else { + lean_dec_ref(x_129); + x_133 = lean_box(0); +} +x_134 = lean_ctor_get(x_131, 3); +lean_inc_ref(x_134); +lean_dec_ref(x_131); +x_135 = l_String_Range_toLspRange(x_134, x_132); +if (lean_is_scalar(x_133)) { + x_136 = lean_alloc_ctor(1, 1, 0); +} else { + x_136 = x_133; +} +lean_ctor_set(x_136, 0, x_135); +x_119 = x_136; +goto block_127; +} +block_127: +{ +lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_inc_ref(x_118); +x_120 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_117); +lean_ctor_set(x_120, 2, x_118); +lean_ctor_set(x_120, 3, x_118); +x_121 = lean_box(0); +x_122 = 0; +x_123 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +lean_ctor_set_uint8(x_123, sizeof(void*)*2, x_122); +x_124 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_125 = lean_array_push(x_124, x_123); +if (lean_is_scalar(x_116)) { + x_126 = lean_alloc_ctor(0, 2, 0); +} else { + x_126 = x_116; +} +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_115); +return x_126; +} +} +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec_ref(x_107); +lean_dec_ref(x_2); +x_137 = lean_ctor_get(x_109, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_109, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_139 = x_109; +} else { + lean_dec_ref(x_109); + x_139 = lean_box(0); +} +x_140 = lean_ctor_get(x_3, 5); +x_141 = lean_io_error_to_string(x_137); +x_142 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_142, 0, x_141); +x_143 = l_Lean_MessageData_ofFormat(x_142); +lean_inc(x_140); +if (lean_is_scalar(x_108)) { + x_144 = lean_alloc_ctor(0, 2, 0); +} else { + x_144 = x_108; +} +lean_ctor_set(x_144, 0, x_140); +lean_ctor_set(x_144, 1, x_143); +if (lean_is_scalar(x_139)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_139; +} +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_138); +return x_145; +} +} +} +} +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_146 = lean_ctor_get(x_6, 0); +x_147 = lean_ctor_get(x_6, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_6); +x_148 = lean_ctor_get(x_146, 0); +lean_inc_ref(x_148); +lean_dec(x_146); +x_149 = lean_ctor_get(x_1, 0); +x_150 = lean_ctor_get(x_1, 1); +x_151 = l_Lean_getErrorExplanationRaw_x3f(x_148, x_150); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; lean_object* x_153; +lean_dec_ref(x_2); +x_152 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_147); +return x_153; +} +else +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_151, 0); +lean_inc(x_154); +lean_dec(x_151); +x_155 = lean_ctor_get(x_154, 2); +lean_inc(x_155); +lean_dec(x_154); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; +lean_dec_ref(x_2); +x_156 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_147); +return x_157; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_158 = lean_ctor_get(x_155, 0); +lean_inc(x_158); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + x_159 = x_155; +} else { + lean_dec_ref(x_155); + x_159 = lean_box(0); +} +x_160 = lean_ctor_get(x_158, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_158, 1); +lean_inc_ref(x_161); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_162 = x_158; +} else { + lean_dec_ref(x_158); + x_162 = lean_box(0); +} +x_163 = l_Lean_Server_documentUriFromModule_x3f(x_160, x_147); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; +lean_dec(x_162); +lean_dec(x_159); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec_ref(x_161); +lean_dec_ref(x_2); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; +} else { + lean_dec_ref(x_163); + x_166 = lean_box(0); +} +x_167 = l_Lean_Server_locationLinksFromDecl___closed__0; +if (lean_is_scalar(x_166)) { + x_168 = lean_alloc_ctor(0, 2, 0); +} else { + x_168 = x_166; +} +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_165); +return x_168; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_182; lean_object* x_183; +x_169 = lean_ctor_get(x_163, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_170 = x_163; +} else { + lean_dec_ref(x_163); + x_170 = lean_box(0); +} +x_171 = lean_ctor_get(x_164, 0); +lean_inc(x_171); +lean_dec(x_164); +x_172 = l_Lean_DeclarationRange_toLspRange(x_161); +x_182 = 1; +x_183 = l_Lean_Syntax_getRange_x3f(x_149, x_182); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; +lean_dec_ref(x_2); +x_184 = lean_box(0); +x_173 = x_184; +goto block_181; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_185 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_185); +lean_dec_ref(x_2); +x_186 = lean_ctor_get(x_183, 0); +lean_inc(x_186); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + x_187 = x_183; +} else { + lean_dec_ref(x_183); + x_187 = lean_box(0); +} +x_188 = lean_ctor_get(x_185, 3); +lean_inc_ref(x_188); +lean_dec_ref(x_185); +x_189 = l_String_Range_toLspRange(x_188, x_186); +if (lean_is_scalar(x_187)) { + x_190 = lean_alloc_ctor(1, 1, 0); +} else { + x_190 = x_187; +} +lean_ctor_set(x_190, 0, x_189); +x_173 = x_190; +goto block_181; +} +block_181: +{ +lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_inc_ref(x_172); +x_174 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_171); +lean_ctor_set(x_174, 2, x_172); +lean_ctor_set(x_174, 3, x_172); +x_175 = lean_box(0); +x_176 = 0; +x_177 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*2, x_176); +x_178 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_179 = lean_array_push(x_178, x_177); +if (lean_is_scalar(x_170)) { + x_180 = lean_alloc_ctor(0, 2, 0); +} else { + x_180 = x_170; +} +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_169); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec_ref(x_161); +lean_dec_ref(x_2); +x_191 = lean_ctor_get(x_163, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_163, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_193 = x_163; +} else { + lean_dec_ref(x_163); + x_193 = lean_box(0); +} +x_194 = lean_ctor_get(x_3, 5); +x_195 = lean_io_error_to_string(x_191); +if (lean_is_scalar(x_159)) { + x_196 = lean_alloc_ctor(3, 1, 0); +} else { + x_196 = x_159; + lean_ctor_set_tag(x_196, 3); +} +lean_ctor_set(x_196, 0, x_195); +x_197 = l_Lean_MessageData_ofFormat(x_196); +lean_inc(x_194); +if (lean_is_scalar(x_162)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_162; +} +lean_ctor_set(x_198, 0, x_194); +lean_ctor_set(x_198, 1, x_197); +if (lean_is_scalar(x_193)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_193; +} +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_192); +return x_199; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromErrorNameInfo___redArg(x_1, x_2, x_5, x_6, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Server_locationLinksFromErrorNameInfo___redArg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromErrorNameInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromErrorNameInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +return x_8; +} +} +static lean_object* _init_l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec_ref(x_1); +x_5 = l_Lean_Meta_isInstance___redArg(x_4, x_2, x_3); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_unbox(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_4); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_5, 0); +lean_dec(x_9); +x_10 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +lean_ctor_set(x_5, 0, x_10); +return x_5; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_dec(x_5); +x_12 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_5); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_5, 0); +lean_dec(x_15); +x_16 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0; +x_17 = lean_array_push(x_16, x_4); +lean_ctor_set(x_5, 0, x_17); +return x_5; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +lean_dec(x_5); +x_19 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0; +x_20 = lean_array_push(x_19, x_4); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +} +} +case 5: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_22 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_22); +x_23 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_23); +lean_dec_ref(x_1); +x_24 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(x_22, x_2, x_3); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec_ref(x_24); +x_27 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(x_23, x_2, x_26); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +x_30 = l_Array_append___redArg(x_29, x_25); +lean_dec(x_25); +lean_ctor_set(x_27, 0, x_30); +return x_27; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_27); +x_33 = l_Array_append___redArg(x_31, x_25); +lean_dec(x_25); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +case 10: +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_35); +lean_dec_ref(x_1); +x_1 = x_35; +goto _start; +} +default: +{ +lean_object* x_37; lean_object* x_38; +lean_dec_ref(x_1); +x_37 = l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_3); +return x_38; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(x_1, x_6, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = l_Lean_Expr_getAppFn(x_1); +x_9 = l_Lean_Expr_consumeMData(x_8); +lean_dec_ref(x_8); +if (lean_obj_tag(x_9) == 4) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec_ref(x_9); +x_11 = l_Lean_Server_getInstanceProjectionArg_x3f___redArg(x_1, x_6, x_7); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec(x_10); +lean_dec_ref(x_2); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec_ref(x_11); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +x_21 = l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg(x_20, x_6, x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec_ref(x_21); +x_24 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_25 = lean_array_size(x_22); +x_26 = 0; +lean_inc_ref(x_2); +x_27 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksDefault_spec__0(x_22, x_25, x_26, x_24, x_2, x_3, x_4, x_5, x_6, x_23); +lean_dec(x_22); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec_ref(x_27); +x_30 = l_Lean_Server_locationLinksFromDecl(x_10, x_2, x_3, x_4, x_5, x_6, x_29); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 0); +x_33 = l_Array_append___redArg(x_28, x_32); +lean_dec(x_32); +lean_ctor_set(x_30, 0, x_33); +return x_30; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_30); +x_36 = l_Array_append___redArg(x_28, x_34); +lean_dec(x_34); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; +} +} +else +{ +lean_dec(x_28); +return x_30; +} +} +else +{ +lean_dec(x_10); +lean_dec_ref(x_2); +return x_27; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; +lean_dec_ref(x_9); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_38 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_7); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromInstanceProjection___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromInstanceProjection(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksFromTermInfo_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_19; +x_19 = lean_usize_dec_lt(x_3, x_2); +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec_ref(x_5); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_10); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_array_uget(x_1, x_3); +x_22 = l_Lean_Expr_consumeMData(x_21); +switch (lean_obj_tag(x_22)) { +case 1: +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec_ref(x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +lean_dec_ref(x_22); +lean_inc_ref(x_5); +x_24 = l_Lean_Server_locationLinksFromBinder___redArg(x_23, x_5, x_10); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec_ref(x_24); +x_11 = x_4; +x_12 = x_25; +x_13 = x_26; +goto block_18; +} +case 4: +{ +lean_object* x_27; lean_object* x_28; +lean_dec_ref(x_21); +x_27 = lean_ctor_get(x_22, 0); +lean_inc(x_27); +lean_dec_ref(x_22); +lean_inc_ref(x_5); +x_28 = l_Lean_Server_locationLinksFromDecl(x_27, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec_ref(x_28); +x_11 = x_4; +x_12 = x_29; +x_13 = x_30; +goto block_18; +} +else +{ +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_28; +} +} +default: +{ +lean_object* x_31; +lean_dec_ref(x_22); +lean_inc_ref(x_5); +x_31 = l_Lean_Server_locationLinksFromInstanceProjection(x_21, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec_ref(x_31); +x_11 = x_4; +x_12 = x_32; +x_13 = x_33; +goto block_18; +} +else +{ +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_31; +} +} +} +} +block_18: +{ +lean_object* x_14; size_t x_15; size_t x_16; +x_14 = l_Array_append___redArg(x_11, x_12); +lean_dec_ref(x_12); +x_15 = 1; +x_16 = lean_usize_add(x_3, x_15); +x_3 = x_16; +x_4 = x_14; +x_10 = x_13; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromTermInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +lean_inc_ref(x_3); +x_9 = l_Lean_Server_GoToKind_determineTargetExprs(x_8, x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec_ref(x_9); +x_12 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_13 = lean_array_size(x_10); +x_14 = 0; +x_15 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksFromTermInfo_spec__0(x_10, x_13, x_14, x_12, x_2, x_3, x_4, x_5, x_6, x_11); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec(x_10); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_16 = !lean_is_exclusive(x_9); +if (x_16 == 0) +{ +return x_9; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 0); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_9); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksFromTermInfo_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_locationLinksFromTermInfo_spec__0(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromDelabTermInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_9); +lean_dec_ref(x_1); +x_10 = l_Lean_Server_locationLinksFromTermInfo(x_9, x_2, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_13); +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 0); +x_16 = lean_ctor_get(x_12, 1); +x_17 = l_Lean_Server_documentUriFromModule_x3f(x_15, x_7); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +lean_free_object(x_12); +lean_free_object(x_8); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec_ref(x_17); +x_20 = l_Lean_Server_locationLinksFromTermInfo(x_13, x_2, x_3, x_4, x_5, x_6, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec_ref(x_13); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_22 = x_17; +} else { + lean_dec_ref(x_17); + x_22 = lean_box(0); +} +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_35; +x_24 = lean_ctor_get(x_18, 0); +x_25 = l_Lean_DeclarationRange_toLspRange(x_16); +lean_ctor_set_tag(x_18, 13); +lean_ctor_set(x_18, 0, x_1); +x_35 = l_Lean_Elab_Info_range_x3f(x_18); +lean_dec_ref(x_18); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +lean_dec_ref(x_2); +x_36 = lean_box(0); +x_26 = x_36; +goto block_34; +} +else +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_37); +lean_dec_ref(x_2); +x_38 = !lean_is_exclusive(x_35); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_35, 0); +x_40 = lean_ctor_get(x_37, 3); +lean_inc_ref(x_40); +lean_dec_ref(x_37); +x_41 = l_String_Range_toLspRange(x_40, x_39); +lean_ctor_set(x_35, 0, x_41); +x_26 = x_35; +goto block_34; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_35, 0); +lean_inc(x_42); +lean_dec(x_35); +x_43 = lean_ctor_get(x_37, 3); +lean_inc_ref(x_43); +lean_dec_ref(x_37); +x_44 = l_String_Range_toLspRange(x_43, x_42); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_26 = x_45; +goto block_34; +} +} +block_34: +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_inc_ref(x_25); +x_27 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +lean_ctor_set(x_27, 2, x_25); +lean_ctor_set(x_27, 3, x_25); +x_28 = lean_box(0); +x_29 = 0; +x_30 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_30, 0, x_27); +lean_ctor_set(x_30, 1, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*2, x_29); +x_31 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_32 = lean_array_push(x_31, x_30); +if (lean_is_scalar(x_22)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_22; +} +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_21); +return x_33; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_57; lean_object* x_58; +x_46 = lean_ctor_get(x_18, 0); +lean_inc(x_46); +lean_dec(x_18); +x_47 = l_Lean_DeclarationRange_toLspRange(x_16); +x_57 = lean_alloc_ctor(13, 1, 0); +lean_ctor_set(x_57, 0, x_1); +x_58 = l_Lean_Elab_Info_range_x3f(x_57); +lean_dec_ref(x_57); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; +lean_dec_ref(x_2); +x_59 = lean_box(0); +x_48 = x_59; +goto block_56; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_60 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_60); +lean_dec_ref(x_2); +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_62 = x_58; +} else { + lean_dec_ref(x_58); + x_62 = lean_box(0); +} +x_63 = lean_ctor_get(x_60, 3); +lean_inc_ref(x_63); +lean_dec_ref(x_60); +x_64 = l_String_Range_toLspRange(x_63, x_61); +if (lean_is_scalar(x_62)) { + x_65 = lean_alloc_ctor(1, 1, 0); +} else { + x_65 = x_62; +} +lean_ctor_set(x_65, 0, x_64); +x_48 = x_65; +goto block_56; +} +block_56: +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_inc_ref(x_47); +x_49 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +lean_ctor_set(x_49, 2, x_47); +lean_ctor_set(x_49, 3, x_47); +x_50 = lean_box(0); +x_51 = 0; +x_52 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +lean_ctor_set_uint8(x_52, sizeof(void*)*2, x_51); +x_53 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_54 = lean_array_push(x_53, x_52); +if (lean_is_scalar(x_22)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_22; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_21); +return x_55; +} +} +} +} +else +{ +uint8_t x_66; +lean_dec_ref(x_16); +lean_dec_ref(x_13); +lean_dec(x_6); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_66 = !lean_is_exclusive(x_17); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_17, 0); +x_68 = lean_ctor_get(x_5, 5); +lean_inc(x_68); +lean_dec_ref(x_5); +x_69 = lean_io_error_to_string(x_67); +lean_ctor_set_tag(x_8, 3); +lean_ctor_set(x_8, 0, x_69); +x_70 = l_Lean_MessageData_ofFormat(x_8); +lean_ctor_set(x_12, 1, x_70); +lean_ctor_set(x_12, 0, x_68); +lean_ctor_set(x_17, 0, x_12); +return x_17; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_71 = lean_ctor_get(x_17, 0); +x_72 = lean_ctor_get(x_17, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_17); +x_73 = lean_ctor_get(x_5, 5); +lean_inc(x_73); +lean_dec_ref(x_5); +x_74 = lean_io_error_to_string(x_71); +lean_ctor_set_tag(x_8, 3); +lean_ctor_set(x_8, 0, x_74); +x_75 = l_Lean_MessageData_ofFormat(x_8); +lean_ctor_set(x_12, 1, x_75); +lean_ctor_set(x_12, 0, x_73); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_12); +lean_ctor_set(x_76, 1, x_72); +return x_76; +} +} +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_12, 0); +x_78 = lean_ctor_get(x_12, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_12); +x_79 = l_Lean_Server_documentUriFromModule_x3f(x_77, x_7); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; +lean_free_object(x_8); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; +lean_dec_ref(x_78); +lean_dec_ref(x_1); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec_ref(x_79); +x_82 = l_Lean_Server_locationLinksFromTermInfo(x_13, x_2, x_3, x_4, x_5, x_6, x_81); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_97; lean_object* x_98; +lean_dec_ref(x_13); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +x_83 = lean_ctor_get(x_79, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_84 = x_79; +} else { + lean_dec_ref(x_79); + x_84 = lean_box(0); +} +x_85 = lean_ctor_get(x_80, 0); +lean_inc(x_85); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + x_86 = x_80; +} else { + lean_dec_ref(x_80); + x_86 = lean_box(0); +} +x_87 = l_Lean_DeclarationRange_toLspRange(x_78); +if (lean_is_scalar(x_86)) { + x_97 = lean_alloc_ctor(13, 1, 0); +} else { + x_97 = x_86; + lean_ctor_set_tag(x_97, 13); +} +lean_ctor_set(x_97, 0, x_1); +x_98 = l_Lean_Elab_Info_range_x3f(x_97); +lean_dec_ref(x_97); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; +lean_dec_ref(x_2); +x_99 = lean_box(0); +x_88 = x_99; +goto block_96; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_100 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_100); +lean_dec_ref(x_2); +x_101 = lean_ctor_get(x_98, 0); +lean_inc(x_101); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + x_102 = x_98; +} else { + lean_dec_ref(x_98); + x_102 = lean_box(0); +} +x_103 = lean_ctor_get(x_100, 3); +lean_inc_ref(x_103); +lean_dec_ref(x_100); +x_104 = l_String_Range_toLspRange(x_103, x_101); +if (lean_is_scalar(x_102)) { + x_105 = lean_alloc_ctor(1, 1, 0); +} else { + x_105 = x_102; +} +lean_ctor_set(x_105, 0, x_104); +x_88 = x_105; +goto block_96; +} +block_96: +{ +lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_inc_ref(x_87); +x_89 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_85); +lean_ctor_set(x_89, 2, x_87); +lean_ctor_set(x_89, 3, x_87); +x_90 = lean_box(0); +x_91 = 0; +x_92 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*2, x_91); +x_93 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_94 = lean_array_push(x_93, x_92); +if (lean_is_scalar(x_84)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_84; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_83); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec_ref(x_78); +lean_dec_ref(x_13); +lean_dec(x_6); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_106 = lean_ctor_get(x_79, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_79, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_108 = x_79; +} else { + lean_dec_ref(x_79); + x_108 = lean_box(0); +} +x_109 = lean_ctor_get(x_5, 5); +lean_inc(x_109); +lean_dec_ref(x_5); +x_110 = lean_io_error_to_string(x_106); +lean_ctor_set_tag(x_8, 3); +lean_ctor_set(x_8, 0, x_110); +x_111 = l_Lean_MessageData_ofFormat(x_8); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_109); +lean_ctor_set(x_112, 1, x_111); +if (lean_is_scalar(x_108)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_108; +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_107); +return x_113; +} +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_114 = lean_ctor_get(x_8, 0); +lean_inc(x_114); +lean_dec(x_8); +x_115 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_115); +x_116 = lean_ctor_get(x_114, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_114, 1); +lean_inc_ref(x_117); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_118 = x_114; +} else { + lean_dec_ref(x_114); + x_118 = lean_box(0); +} +x_119 = l_Lean_Server_documentUriFromModule_x3f(x_116, x_7); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; +lean_dec(x_118); +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +if (lean_obj_tag(x_120) == 0) +{ +lean_object* x_121; lean_object* x_122; +lean_dec_ref(x_117); +lean_dec_ref(x_1); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec_ref(x_119); +x_122 = l_Lean_Server_locationLinksFromTermInfo(x_115, x_2, x_3, x_4, x_5, x_6, x_121); +return x_122; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_137; lean_object* x_138; +lean_dec_ref(x_115); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +x_123 = lean_ctor_get(x_119, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_124 = x_119; +} else { + lean_dec_ref(x_119); + x_124 = lean_box(0); +} +x_125 = lean_ctor_get(x_120, 0); +lean_inc(x_125); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + x_126 = x_120; +} else { + lean_dec_ref(x_120); + x_126 = lean_box(0); +} +x_127 = l_Lean_DeclarationRange_toLspRange(x_117); +if (lean_is_scalar(x_126)) { + x_137 = lean_alloc_ctor(13, 1, 0); +} else { + x_137 = x_126; + lean_ctor_set_tag(x_137, 13); +} +lean_ctor_set(x_137, 0, x_1); +x_138 = l_Lean_Elab_Info_range_x3f(x_137); +lean_dec_ref(x_137); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; +lean_dec_ref(x_2); +x_139 = lean_box(0); +x_128 = x_139; +goto block_136; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_140 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_140); +lean_dec_ref(x_2); +x_141 = lean_ctor_get(x_138, 0); +lean_inc(x_141); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + x_142 = x_138; +} else { + lean_dec_ref(x_138); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_140, 3); +lean_inc_ref(x_143); +lean_dec_ref(x_140); +x_144 = l_String_Range_toLspRange(x_143, x_141); +if (lean_is_scalar(x_142)) { + x_145 = lean_alloc_ctor(1, 1, 0); +} else { + x_145 = x_142; +} +lean_ctor_set(x_145, 0, x_144); +x_128 = x_145; +goto block_136; +} +block_136: +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_inc_ref(x_127); +x_129 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +lean_ctor_set(x_129, 2, x_127); +lean_ctor_set(x_129, 3, x_127); +x_130 = lean_box(0); +x_131 = 0; +x_132 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +lean_ctor_set_uint8(x_132, sizeof(void*)*2, x_131); +x_133 = l_Lean_Server_locationLinksFromDecl___closed__1; +x_134 = lean_array_push(x_133, x_132); +if (lean_is_scalar(x_124)) { + x_135 = lean_alloc_ctor(0, 2, 0); +} else { + x_135 = x_124; +} +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_123); +return x_135; +} +} +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec_ref(x_117); +lean_dec_ref(x_115); +lean_dec(x_6); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_146 = lean_ctor_get(x_119, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_119, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_148 = x_119; +} else { + lean_dec_ref(x_119); + x_148 = lean_box(0); +} +x_149 = lean_ctor_get(x_5, 5); +lean_inc(x_149); +lean_dec_ref(x_5); +x_150 = lean_io_error_to_string(x_146); +x_151 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_151, 0, x_150); +x_152 = l_Lean_MessageData_ofFormat(x_151); +if (lean_is_scalar(x_118)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_118; +} +lean_ctor_set(x_153, 0, x_149); +lean_ctor_set(x_153, 1, x_152); +if (lean_is_scalar(x_148)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_148; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_147); +return x_154; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l_Lean_Expr_hasMVar(x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_6 = lean_st_ref_get(x_2, x_3); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec_ref(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc_ref(x_9); +lean_dec(x_7); +x_10 = l_Lean_instantiateMVarsCore(x_9, x_1); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec_ref(x_10); +x_13 = lean_st_ref_take(x_2, x_8); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec_ref(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +lean_ctor_set(x_14, 0, x_12); +x_18 = lean_st_ref_set(x_2, x_14, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_11); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_11); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_23 = lean_ctor_get(x_14, 1); +x_24 = lean_ctor_get(x_14, 2); +x_25 = lean_ctor_get(x_14, 3); +x_26 = lean_ctor_get(x_14, 4); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_27 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_23); +lean_ctor_set(x_27, 2, x_24); +lean_ctor_set(x_27, 3, x_25); +lean_ctor_set(x_27, 4, x_26); +x_28 = lean_st_ref_set(x_2, x_27, x_15); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_30 = x_28; +} else { + lean_dec_ref(x_28); + x_30 = lean_box(0); +} +if (lean_is_scalar(x_30)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_30; +} +lean_ctor_set(x_31, 0, x_11); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg(x_1, x_4, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromFieldInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; uint8_t x_9; uint8_t x_10; +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +x_9 = 2; +x_10 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(x_8, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec_ref(x_1); +x_12 = l_Lean_Server_locationLinksFromDecl(x_11, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_1, 3); +lean_inc_ref(x_13); +lean_dec_ref(x_1); +lean_inc(x_6); +lean_inc_ref(x_5); +lean_inc(x_4); +lean_inc_ref(x_3); +x_14 = lean_infer_type(x_13, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec_ref(x_14); +x_17 = l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg(x_15, x_4, x_16); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = l_Lean_Expr_getAppFn(x_19); +lean_dec(x_19); +x_22 = l_Lean_Expr_constName_x3f(x_21); +lean_dec_ref(x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_23 = l_Lean_Server_locationLinksFromDecl___closed__0; +lean_ctor_set(x_17, 0, x_23); +return x_17; +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_free_object(x_17); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Server_locationLinksFromDecl(x_24, x_2, x_3, x_4, x_5, x_6, x_20); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_17, 0); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_17); +x_28 = l_Lean_Expr_getAppFn(x_26); +lean_dec(x_26); +x_29 = l_Lean_Expr_constName_x3f(x_28); +lean_dec_ref(x_28); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_30 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 0); +lean_inc(x_32); +lean_dec(x_29); +x_33 = l_Lean_Server_locationLinksFromDecl(x_32, x_2, x_3, x_4, x_5, x_6, x_27); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_33; +} +} +} +else +{ +uint8_t x_34; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_34 = !lean_is_exclusive(x_14); +if (x_34 == 0) +{ +return x_14; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_14, 0); +x_36 = lean_ctor_get(x_14, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_14); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___redArg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_instantiateMVars___at___Lean_Server_locationLinksFromFieldInfo_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromOptionInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_1, 2); +lean_inc(x_8); +lean_dec_ref(x_1); +x_9 = l_Lean_Server_locationLinksFromDecl(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromOptionInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromOptionInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 1) +{ lean_object* x_9; -x_9 = l_Lean_Server_locationLinksFromDecl(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc_ref(x_10); +lean_dec(x_8); +x_11 = l_Lean_Server_locationLinksFromImport___redArg___closed__3; +x_12 = lean_string_dec_eq(x_10, x_11); +lean_dec_ref(x_10); +if (x_12 == 0) +{ +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_7; +} +else +{ +uint8_t x_13; uint8_t x_14; uint8_t x_15; +x_13 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +x_14 = 2; +x_15 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = l_Lean_Server_locationLinksFromImport___redArg(x_1, x_2, x_3, x_4); +return x_16; +} +else +{ +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_7; +} +} +} +else +{ +lean_dec(x_9); +lean_dec(x_8); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_7; +} +} +else +{ +lean_dec(x_8); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +goto block_7; +} +block_7: +{ +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromCommandInfo___redArg(x_1, x_2, x_5, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Server_locationLinksFromCommandInfo___redArg(x_1, x_2, x_3, x_4); +lean_dec_ref(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksFromCommandInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Server_locationLinksFromCommandInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___lam__0(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; uint8_t x_20; uint8_t x_21; +x_20 = 0; +x_21 = l_Lean_Server_beqGoToKind____x40_Lean_Server_GoTo___hyg_11_(x_1, x_20); +if (x_21 == 0) +{ +uint8_t x_22; +x_22 = l_Array_isEmpty___redArg(x_2); +x_9 = x_22; +goto block_19; +} +else +{ +x_9 = x_21; +goto block_19; +} +block_19: +{ +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec_ref(x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_2); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +lean_object* x_11; +x_11 = l_Lean_Server_locationLinksDefault(x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +x_14 = l_Array_append___redArg(x_2, x_13); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +x_17 = l_Array_append___redArg(x_2, x_15); +lean_dec(x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +lean_dec_ref(x_2); +return x_11; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_9); +lean_dec_ref(x_1); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_10 = l_Lean_Server_locationLinksFromTermInfo(x_9, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec_ref(x_10); +x_13 = lean_apply_7(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_12); +return x_13; +} +else +{ lean_dec(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_4); -return x_9; +lean_dec_ref(x_3); +lean_dec(x_2); +return x_10; +} +} +case 3: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_14); +lean_dec_ref(x_1); +lean_inc_ref(x_3); +x_15 = l_Lean_Server_locationLinksFromCommandInfo___redArg(x_14, x_3, x_6, x_8); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec_ref(x_15); +x_18 = lean_apply_7(x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_17); +return x_18; +} +else +{ +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +return x_15; +} +} +case 5: +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_19); +lean_dec_ref(x_1); +lean_inc_ref(x_3); +x_20 = l_Lean_Server_locationLinksFromOptionInfo(x_19, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec_ref(x_20); +x_23 = lean_apply_7(x_2, x_21, x_3, x_4, x_5, x_6, x_7, x_22); +return x_23; +} +else +{ +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +return x_20; +} +} +case 6: +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_24); +lean_dec_ref(x_1); +lean_inc_ref(x_3); +x_25 = l_Lean_Server_locationLinksFromErrorNameInfo___redArg(x_24, x_3, x_6, x_7, x_8); +lean_dec_ref(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec_ref(x_25); +x_28 = lean_apply_7(x_2, x_26, x_3, x_4, x_5, x_6, x_7, x_27); +return x_28; +} +else +{ +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +return x_25; +} +} +case 7: +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_29); +lean_dec_ref(x_1); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_30 = l_Lean_Server_locationLinksFromFieldInfo(x_29, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec_ref(x_30); +x_33 = lean_apply_7(x_2, x_31, x_3, x_4, x_5, x_6, x_7, x_32); +return x_33; +} +else +{ +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +return x_30; +} +} +case 13: +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_34); +lean_dec_ref(x_1); +lean_inc(x_7); +lean_inc_ref(x_6); +lean_inc(x_5); +lean_inc_ref(x_4); +lean_inc_ref(x_3); +x_35 = l_Lean_Server_locationLinksFromDelabTermInfo(x_34, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec_ref(x_35); +x_38 = lean_apply_7(x_2, x_36, x_3, x_4, x_5, x_6, x_7, x_37); +return x_38; +} +else +{ +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +return x_35; +} +} +default: +{ +lean_object* x_39; lean_object* x_40; +lean_dec_ref(x_1); +x_39 = l_Lean_Server_locationLinksFromDecl___closed__0; +x_40 = lean_apply_7(x_2, x_39, x_3, x_4, x_5, x_6, x_7, x_8); +return x_40; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_6 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_6); +x_7 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_7); +x_8 = lean_ctor_get(x_3, 2); +lean_inc_ref(x_8); +lean_dec_ref(x_3); +x_9 = lean_box(x_2); +x_10 = lean_alloc_closure((void*)(l_Lean_Server_locationLinksOfInfo___lam__0___boxed), 8, 1); +lean_closure_set(x_10, 0, x_9); +lean_inc_ref(x_7); +x_11 = lean_alloc_closure((void*)(l_Lean_Server_locationLinksOfInfo___lam__1), 8, 2); +lean_closure_set(x_11, 0, x_7); +lean_closure_set(x_11, 1, x_10); +lean_inc_ref(x_7); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_7); +x_13 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_4); +lean_ctor_set(x_13, 2, x_12); +lean_ctor_set(x_13, 3, x_8); +lean_ctor_set_uint8(x_13, sizeof(void*)*4, x_2); +x_14 = l_Lean_Elab_Info_lctx(x_7); +lean_dec_ref(x_7); +x_15 = l_Lean_Server_GoToM_run___redArg(x_13, x_6, x_14, x_11, x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +x_10 = l_Lean_Server_locationLinksOfInfo___lam__0(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_locationLinksOfInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +x_7 = l_Lean_Server_locationLinksOfInfo(x_1, x_6, x_3, x_4, x_5); +return x_7; } } lean_object* initialize_Lean_Data_Json_FromToJson_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Util_Path(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Server_Utils(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Data_Lsp_Internal(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Util_CollectFVars(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Util_ForEachExpr(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Server_GoTo(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1351,52 +9684,129 @@ lean_dec_ref(res); res = initialize_Lean_Server_Utils(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Data_Lsp_Internal(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_CollectFVars(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_ForEachExpr(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Server_instBEqGoToKind___closed__0 = _init_l_Lean_Server_instBEqGoToKind___closed__0(); lean_mark_persistent(l_Lean_Server_instBEqGoToKind___closed__0); l_Lean_Server_instBEqGoToKind = _init_l_Lean_Server_instBEqGoToKind(); lean_mark_persistent(l_Lean_Server_instBEqGoToKind); -l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_ = _init_l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_(); -lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_28_); -l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_28_ = _init_l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_28_(); -lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_28_); -l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_ = _init_l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_(); -lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_28_); -l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_28_ = _init_l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_28_(); -lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_28_); -l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_ = _init_l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_(); -lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_28_); -l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_28_ = _init_l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_28_(); -lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_28_); +l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_ = _init_l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_(); +lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_29_); +l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_29_ = _init_l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_29_(); +lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_29_); +l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_ = _init_l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_(); +lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_29_); +l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_29_ = _init_l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_29_(); +lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__3____x40_Lean_Server_GoTo___hyg_29_); +l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_ = _init_l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_(); +lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__4____x40_Lean_Server_GoTo___hyg_29_); +l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_29_ = _init_l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_29_(); +lean_mark_persistent(l_Lean_Server_toJsonGoToKind___closed__5____x40_Lean_Server_GoTo___hyg_29_); l_Lean_Server_instToJsonGoToKind___closed__0 = _init_l_Lean_Server_instToJsonGoToKind___closed__0(); lean_mark_persistent(l_Lean_Server_instToJsonGoToKind___closed__0); l_Lean_Server_instToJsonGoToKind = _init_l_Lean_Server_instToJsonGoToKind(); lean_mark_persistent(l_Lean_Server_instToJsonGoToKind); -l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_67_); -l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_67_); -l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_67_); -l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_67_); -l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_67_); -l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_67_); -l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_67_ = _init_l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_67_(); -lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_67_); +l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__0___closed__0____x40_Lean_Server_GoTo___hyg_68_); +l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__0___closed__1____x40_Lean_Server_GoTo___hyg_68_); +l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__1___closed__0____x40_Lean_Server_GoTo___hyg_68_); +l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___lam__2___closed__0____x40_Lean_Server_GoTo___hyg_68_); +l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___closed__0____x40_Lean_Server_GoTo___hyg_68_); +l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___closed__1____x40_Lean_Server_GoTo___hyg_68_); +l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_68_ = _init_l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_68_(); +lean_mark_persistent(l_Lean_Server_fromJsonGoToKind___closed__2____x40_Lean_Server_GoTo___hyg_68_); l_Lean_Server_instFromJsonGoToKind___closed__0 = _init_l_Lean_Server_instFromJsonGoToKind___closed__0(); lean_mark_persistent(l_Lean_Server_instFromJsonGoToKind___closed__0); l_Lean_Server_instFromJsonGoToKind = _init_l_Lean_Server_instFromJsonGoToKind(); lean_mark_persistent(l_Lean_Server_instFromJsonGoToKind); -l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0(); -lean_mark_persistent(l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__0___redArg___closed__0); +l_Lean_Server_GoToKind_determineTargetExprs___closed__0 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__0(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__0); +l_Lean_Server_GoToKind_determineTargetExprs___closed__1 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__1(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__1); +l_Lean_Server_GoToKind_determineTargetExprs___closed__2 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__2(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__2); +l_Lean_Server_GoToKind_determineTargetExprs___closed__3 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__3(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__3); +l_Lean_Server_GoToKind_determineTargetExprs___closed__4 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__4(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__4); +l_Lean_Server_GoToKind_determineTargetExprs___closed__5 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__5(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__5); +l_Lean_Server_GoToKind_determineTargetExprs___closed__6 = _init_l_Lean_Server_GoToKind_determineTargetExprs___closed__6(); +lean_mark_persistent(l_Lean_Server_GoToKind_determineTargetExprs___closed__6); +l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0 = _init_l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0(); +lean_mark_persistent(l_Lean_Server_getInstanceProjectionArg_x3f___redArg___closed__0); +l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__0 = _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__0(); +lean_mark_persistent(l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__0); +l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1 = _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1(); +lean_mark_persistent(l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__1); +l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__2 = _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__2(); +lean_mark_persistent(l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__2); +l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3 = _init_l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3(); +lean_mark_persistent(l_Lean_getConstInfo___at___Lean_findModuleOf_x3f___at___Lean_Server_locationLinksFromDecl_declMod_x3f_spec__0_spec__0___closed__3); +l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0 = _init_l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0(); +lean_mark_persistent(l_Lean_findDeclarationRangesCore_x3f___at___Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0_spec__1___redArg___closed__0); l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0 = _init_l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0(); lean_mark_persistent(l_Lean_findDeclarationRanges_x3f___at___Lean_Server_locationLinksFromDecl_spec__0___lam__0___closed__0); l_Lean_Server_locationLinksFromDecl___closed__0 = _init_l_Lean_Server_locationLinksFromDecl___closed__0(); lean_mark_persistent(l_Lean_Server_locationLinksFromDecl___closed__0); l_Lean_Server_locationLinksFromDecl___closed__1 = _init_l_Lean_Server_locationLinksFromDecl___closed__1(); lean_mark_persistent(l_Lean_Server_locationLinksFromDecl___closed__1); +l_Lean_Server_locationLinksFromImport___redArg___closed__0 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__0(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__0); +l_Lean_Server_locationLinksFromImport___redArg___closed__1 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__1(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__1); +l_Lean_Server_locationLinksFromImport___redArg___closed__2 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__2(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__2); +l_Lean_Server_locationLinksFromImport___redArg___closed__3 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__3(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__3); +l_Lean_Server_locationLinksFromImport___redArg___closed__4 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__4(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__4); +l_Lean_Server_locationLinksFromImport___redArg___closed__5 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__5(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__5); +l_Lean_Server_locationLinksFromImport___redArg___closed__6 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__6(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__6); +l_Lean_Server_locationLinksFromImport___redArg___closed__7 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__7(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__7); +l_Lean_Server_locationLinksFromImport___redArg___closed__8 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__8(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__8); +l_Lean_Server_locationLinksFromImport___redArg___closed__9 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__9(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__9); +l_Lean_Server_locationLinksFromImport___redArg___closed__10 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__10(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__10); +l_Lean_Server_locationLinksFromImport___redArg___closed__11 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__11(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__11); +l_Lean_Server_locationLinksFromImport___redArg___closed__12 = _init_l_Lean_Server_locationLinksFromImport___redArg___closed__12(); +lean_mark_persistent(l_Lean_Server_locationLinksFromImport___redArg___closed__12); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__0 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__0(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__0); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__1 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__1(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__1); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__2); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__3); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__4 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__4(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__4); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__5 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__5(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__5); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__6 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__6(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__6); +l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__7 = _init_l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__7(); +lean_mark_persistent(l_Lean_Server_locationLinksDefault_defaultDeclNames___redArg___closed__7); +l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0 = _init_l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0(); +lean_mark_persistent(l_Lean_Server_locationLinksFromInstanceProjection_extractInstances___redArg___closed__0); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Server/InfoUtils.c b/stage0/stdlib/Lean/Server/InfoUtils.c index a3fe4d2548..fe30dd3b14 100644 --- a/stage0/stdlib/Lean/Server/InfoUtils.c +++ b/stage0/stdlib/Lean/Server/InfoUtils.c @@ -13,13 +13,17 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_List_max_x3f___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3_spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_ppExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_getCompletionInfos___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_isEmptyBy(lean_object*); +LEAN_EXPORT lean_object* l_List_filterMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__1___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodes___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_ppSignature(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -28,14 +32,15 @@ LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Elab_InfoTree_goalsAt_x3f lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at___Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_getMax_x3f___at___Lean_Elab_InfoTree_smallestInfo_x3f_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg(lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_Info_isTerm___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_occursInside_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfo___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__2; @@ -43,19 +48,21 @@ LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___redArg(lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed__6; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfo_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_lexOrd___redArg(lean_object*, lean_object*); +lean_object* l_List_mapTR_loop___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_getCompletionInfos(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoM_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*); -uint8_t l_Lean_Expr_isApp(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_docString_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f___lam__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__1(lean_object*); LEAN_EXPORT lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__1(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___closed__1; @@ -65,19 +72,25 @@ LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___redArg___lam__0___ LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Elab_instLEHoverableInfoPrio; LEAN_EXPORT lean_object* l_Lean_Elab_Info_size_x3f___boxed(lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__7; LEAN_EXPORT uint8_t l_Lean_Elab_Info_isTerm(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__5(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectTermInfoM___redArg___lam__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__0___boxed(lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); +LEAN_EXPORT uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterMapTR_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__0___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__1___closed__1; +LEAN_EXPORT uint8_t l_Lean_Elab_instOrdHoverableInfoPrio___lam__0(lean_object*, lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__8; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_isEmptyBy___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodes(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -85,17 +98,18 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_Pe static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_size_x3f(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___closed__2; static lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0___redArg___closed__0; -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__5; +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__2(lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_empty; LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_panic___redArg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__3; uint8_t l_List_isEmpty___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instMaxHoverableInfoPrio; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentArrayNode(lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__1; @@ -105,24 +119,28 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree LEAN_EXPORT lean_object* l_Lean_Elab_Info_docString_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_Info_tailPos_x3f___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_occursInOrOnBoundary___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instMaxHoverableInfoPrio___lam__0(lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Elab_CompletionInfo_stx(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectTermInfoM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_id___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_x27___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__0; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___at___Array_appendList_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f_isAtomicFormat___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_isCompletion___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___at___Lean_Elab_InfoTree_deepestNodes_spec__0___redArg(lean_object*, lean_object*); @@ -148,40 +166,39 @@ static lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___closed__3; lean_object* l_Lean_Elab_Info_updateContext_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_type_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodes___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at___Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__3___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_isSmaller___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterMapTR_go___at___Lean_Elab_InfoTree_smallestInfo_x3f_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoM_go___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__4; lean_object* l_Lean_Elab_CompletionInfo_lctx(lean_object*); lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__0___boxed(lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed__0; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoTree(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabitedOfMonad___redArg(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13; +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__0; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_List_flatMapTR_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getOptionDecls(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); lean_object* l_Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_String_instInhabitedRange; LEAN_EXPORT lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__1___boxed(lean_object*); uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Meta_beqInfoCacheKey____x40_Lean_Meta_Basic___hyg_1405__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___at___Lean_Elab_InfoTree_deepestNodes_spec__0(lean_object*, lean_object*, lean_object*); @@ -190,36 +207,40 @@ uint8_t l_Lean_Syntax_isMissing(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_contains___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_lctx___boxed(lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___closed__0; lean_object* l_Lean_Expr_constName_x3f(lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__6; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); +static lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_PersistentArray_anyMAux___at___Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__3; -LEAN_EXPORT lean_object* l_List_flatMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__2(lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterMapTR_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__0(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__3(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM_loop___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__1_spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instBEqHoverableInfoPrio___closed__0; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoM_go___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___closed__0; -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_flatMapTR_go___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__2; uint8_t l_Lean_Syntax_isIdent(lean_object*); +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__0(lean_object*); -LEAN_EXPORT lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__15; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Info_pos_x3f___boxed(lean_object*); @@ -236,7 +257,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lam__0(lean_obj LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed__9; uint8_t l_Lean_Syntax_isToken(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_docString_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -247,58 +267,64 @@ LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___lam__1(lean_o LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__0(lean_object*); uint8_t l_String_Range_contains(lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Elab_instOrdHoverableInfoPrio___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f___closed__0; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__0; +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoTree_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__1; +LEAN_EXPORT lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__1; LEAN_EXPORT lean_object* l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__1_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_isEmptyBy___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfoM_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__0(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Environment_allImportedModuleNames(lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__0; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectTermInfoM___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_getErrorExplanationRaw_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__3; lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_getMax_x3f___at___Lean_Elab_InfoTree_smallestInfo_x3f_spec__1_spec__1(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_List_reverse___redArg(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Info_fmtHover_x3f_isAtomicFormat(lean_object*); lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ErrorExplanation_summaryWithSeverity(lean_object*); -lean_object* l_instOrdInt___lam__0___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_range_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___at___Lean_Elab_InfoTree_deepestNodes_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectTermInfoM___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfo_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_foldlM___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__0; lean_object* l_Std_Format_joinSep___at___Lean_Syntax_formatStxAux_spec__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Info_isCompletion(lean_object*); @@ -306,7 +332,6 @@ size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectTermInfoM___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUp___redArg(lean_object*, lean_object*); @@ -316,23 +341,28 @@ static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed_ static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed__2; static lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__1___closed__0; LEAN_EXPORT uint8_t l_Lean_Elab_Info_isSmaller(lean_object*, lean_object*); +uint8_t l_Option_beqOption___redArg____x40_Init_Data_Option_Basic___hyg_161_(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_deepestNodesM___redArg___lam__0(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__2(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Info_lctx(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3___closed__0; +LEAN_EXPORT lean_object* l_Lean_Elab_instMaxHoverableInfoPrio___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instOrdHoverableInfoPrio; lean_object* l_Lean_Name_mkStr1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*); size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0___redArg___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUp___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_int_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___lam__0(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__11; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2_spec__2___redArg___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115_(lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,41 +370,34 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_getMax_x3f___at___Lean_Elab_InfoTree_smallestInfo_x3f_spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfo_go_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__9; +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Info_stx(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instBEqHoverableInfoPrio; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); static lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtTermAndModule_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Info_occursInside_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_____private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___Lean_PersistentArray_foldlM___at___Lean_Elab_InfoTree_foldInfoTree_go_spec__0_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_instOrdNat___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Info_occursInOrOnBoundary(lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_toElabInfo_x3f(lean_object*); -LEAN_EXPORT lean_object* l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__5_spec__5(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__2; lean_object* l_Lean_Elab_ContextInfo_runMetaM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_getCompletionInfos___lam__0___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Int_negOfNat(lean_object*); LEAN_EXPORT lean_object* l_List_flatMapTR_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__1___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__4; -static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6; +static lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___closed__0; lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); lean_object* l_Lean_LocalContext_findFVar_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_stx___boxed(lean_object*); lean_object* l_Lean_PersistentArray_toList___redArg(lean_object*); +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___lam__0___boxed(lean_object*); -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__1(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Info_fmtHover_x3f___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_foldInfo(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__7___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at___List_filterTR_loop___at___Lean_Elab_InfoTree_goalsAt_x3f_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Info_contains(lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_x27___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___redArg___lam__0(lean_object* x_1, lean_object* x_2) { _start: @@ -3919,481 +3942,699 @@ lean_dec_ref(x_4); return x_5; } } -LEAN_EXPORT lean_object* l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(lean_object* x_1) { +LEAN_EXPORT uint8_t l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115_(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_String_instInhabitedRange; -x_3 = lean_panic_fn(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_5; -x_5 = l_List_reverse___redArg(x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -x_8 = !lean_is_exclusive(x_3); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_9 = lean_ctor_get(x_3, 1); -x_10 = lean_ctor_get(x_3, 0); -lean_dec(x_10); -x_11 = lean_ctor_get(x_7, 1); -lean_inc_ref(x_11); -lean_dec(x_7); -x_12 = l_Lean_Elab_Info_stx(x_11); -lean_dec_ref(x_11); -x_13 = l_Lean_Elab_Info_stx(x_1); -x_14 = l_Lean_Syntax_structEq(x_12, x_13); -if (x_14 == 0) -{ -if (x_2 == 0) -{ -lean_free_object(x_3); -lean_dec(x_6); -x_3 = x_9; -goto _start; -} -else -{ -lean_ctor_set(x_3, 1, x_4); -{ -lean_object* _tmp_2 = x_9; -lean_object* _tmp_3 = x_3; -x_3 = _tmp_2; -x_4 = _tmp_3; -} -goto _start; -} -} -else -{ -lean_free_object(x_3); -lean_dec(x_6); -x_3 = x_9; -goto _start; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_18 = lean_ctor_get(x_3, 1); -lean_inc(x_18); -lean_dec(x_3); -x_19 = lean_ctor_get(x_7, 1); -lean_inc_ref(x_19); -lean_dec(x_7); -x_20 = l_Lean_Elab_Info_stx(x_19); -lean_dec_ref(x_19); -x_21 = l_Lean_Elab_Info_stx(x_1); -x_22 = l_Lean_Syntax_structEq(x_20, x_21); -if (x_22 == 0) -{ -if (x_2 == 0) -{ -lean_dec(x_6); -x_3 = x_18; -goto _start; -} -else -{ -lean_object* x_24; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_6); -lean_ctor_set(x_24, 1, x_4); -x_3 = x_18; -x_4 = x_24; -goto _start; -} -} -else -{ -lean_dec(x_6); -x_3 = x_18; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_flatMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = lean_array_to_list(x_2); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; +uint8_t x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -lean_dec(x_1); -if (lean_obj_tag(x_4) == 0) +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1); +x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 1); +if (x_3 == 0) { -lean_object* x_10; -x_10 = lean_box(0); -x_6 = x_10; -goto block_9; +if (x_6 == 0) +{ +goto block_10; } else { -lean_object* x_11; -x_11 = lean_ctor_get(x_4, 0); -lean_inc(x_11); -lean_dec(x_4); -x_6 = x_11; -goto block_9; +return x_3; } -block_9: -{ -lean_object* x_7; -x_7 = l_List_foldl___at___Array_appendList_spec__0___redArg(x_2, x_6); -x_1 = x_5; -x_2 = x_7; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_5; -x_5 = l_List_reverse___redArg(x_4); -return x_5; } else { -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -x_8 = !lean_is_exclusive(x_3); +if (x_6 == 0) +{ +return x_6; +} +else +{ +goto block_10; +} +} +block_10: +{ +uint8_t x_9; +x_9 = lean_nat_dec_eq(x_4, x_7); +if (x_9 == 0) +{ +return x_9; +} +else +{ +if (x_5 == 0) +{ if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_9 = lean_ctor_get(x_3, 1); -x_10 = lean_ctor_get(x_3, 0); -lean_dec(x_10); -x_11 = lean_ctor_get(x_7, 1); -lean_inc_ref(x_11); -lean_dec(x_7); -x_12 = l_Lean_Elab_Info_stx(x_11); -lean_dec_ref(x_11); -x_13 = l_Lean_Elab_Info_stx(x_1); -x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Lean_Syntax_getArg(x_13, x_14); -lean_dec(x_13); -x_16 = l_Lean_Syntax_structEq(x_12, x_15); -if (x_16 == 0) -{ -if (x_2 == 0) -{ -lean_free_object(x_3); -lean_dec(x_6); -x_3 = x_9; -goto _start; +return x_9; } else { -lean_ctor_set(x_3, 1, x_4); -{ -lean_object* _tmp_2 = x_9; -lean_object* _tmp_3 = x_3; -x_3 = _tmp_2; -x_4 = _tmp_3; -} -goto _start; +return x_5; } } else { -lean_free_object(x_3); -lean_dec(x_6); -x_3 = x_9; -goto _start; +return x_8; } } +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115_(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_instBEqHoverableInfoPrio___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_instBEqHoverableInfoPrio() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_instBEqHoverableInfoPrio___closed__0; +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_Elab_instOrdHoverableInfoPrio___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; uint8_t x_5; uint8_t x_22; +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1); +if (x_3 == 0) +{ +goto block_25; +} else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -lean_dec(x_3); -x_21 = lean_ctor_get(x_7, 1); -lean_inc_ref(x_21); -lean_dec(x_7); -x_22 = l_Lean_Elab_Info_stx(x_21); -lean_dec_ref(x_21); -x_23 = l_Lean_Elab_Info_stx(x_1); -x_24 = lean_unsigned_to_nat(0u); -x_25 = l_Lean_Syntax_getArg(x_23, x_24); -lean_dec(x_23); -x_26 = l_Lean_Syntax_structEq(x_22, x_25); +uint8_t x_26; +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); if (x_26 == 0) { -if (x_2 == 0) -{ -lean_dec(x_6); -x_3 = x_20; -goto _start; +goto block_25; } else { -lean_object* x_28; -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_6); -lean_ctor_set(x_28, 1, x_4); -x_3 = x_20; -x_4 = x_28; -goto _start; +uint8_t x_27; +x_27 = 0; +x_22 = x_27; +goto block_23; +} +} +block_10: +{ +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 1); +if (x_6 == 0) +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +else +{ +uint8_t x_8; +x_8 = 2; +return x_8; } } else { -lean_dec(x_6); -x_3 = x_20; -goto _start; +uint8_t x_9; +x_9 = 1; +return x_9; +} +} +block_18: +{ +lean_object* x_11; uint8_t x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 1); +x_13 = lean_nat_dec_lt(x_11, x_4); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = lean_nat_dec_lt(x_4, x_11); +if (x_14 == 0) +{ +if (x_5 == 0) +{ +goto block_10; +} +else +{ +if (x_12 == 0) +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +else +{ +goto block_10; +} +} +} +else +{ +uint8_t x_16; +x_16 = 2; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +block_21: +{ +uint8_t x_19; +x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +if (x_19 == 0) +{ +goto block_18; +} +else +{ +uint8_t x_20; +x_20 = 2; +return x_20; +} +} +block_23: +{ +if (x_3 == 0) +{ +goto block_21; +} +else +{ +if (x_22 == 0) +{ +goto block_18; +} +else +{ +goto block_21; +} +} +} +block_25: +{ +if (x_3 == 0) +{ +x_22 = x_3; +goto block_23; +} +else +{ +uint8_t x_24; +x_24 = 0; +return x_24; } } } } +static lean_object* _init_l_Lean_Elab_instOrdHoverableInfoPrio() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_instOrdHoverableInfoPrio___lam__0___boxed), 2, 0); +return x_1; } -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__4(lean_object* x_1, lean_object* x_2) { +} +LEAN_EXPORT lean_object* l_Lean_Elab_instOrdHoverableInfoPrio___lam__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_instOrdHoverableInfoPrio___lam__0(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_instLEHoverableInfoPrio() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instMaxHoverableInfoPrio___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_instOrdHoverableInfoPrio___lam__0(x_1, x_2); +x_4 = lean_box(x_3); +if (lean_obj_tag(x_4) == 2) +{ +lean_inc_ref(x_1); +return x_1; +} +else +{ +lean_dec(x_4); +lean_inc_ref(x_2); +return x_2; +} +} +} +static lean_object* _init_l_Lean_Elab_instMaxHoverableInfoPrio() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_instMaxHoverableInfoPrio___lam__0___boxed), 2, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instMaxHoverableInfoPrio___lam__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_instMaxHoverableInfoPrio___lam__0(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__0(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_3; -x_3 = l_List_reverse___redArg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__5_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_1); +lean_object* x_2; +x_2 = lean_box(0); return x_2; } else { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_3, 1); -lean_inc(x_5); -lean_dec(x_3); -lean_inc(x_1); -lean_inc(x_4); -lean_inc_ref(x_2); -x_6 = lean_apply_2(x_1, x_2, x_4); -if (lean_obj_tag(x_6) == 2) -{ -lean_dec(x_4); -x_3 = x_5; -goto _start; -} -else -{ -lean_dec_ref(x_2); -x_2 = x_4; -x_3 = x_5; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ lean_object* x_3; -lean_dec(x_1); -x_3 = lean_box(0); +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); return x_3; } -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_2, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__5_spec__5(x_1, x_4, x_5); -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_6); -return x_7; } } -} -LEAN_EXPORT uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__7(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__1(lean_object* x_1) { _start: { -if (lean_obj_tag(x_1) == 0) -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +return x_2; } -else +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -uint8_t x_4; -x_4 = 0; +lean_object* x_4; +x_4 = lean_apply_2(x_1, lean_box(0), x_2); return x_4; } } -else +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_3) == 0) { -uint8_t x_5; -x_5 = 0; -return x_5; +goto block_9; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_6, 1); -x_10 = lean_ctor_get(x_7, 0); -x_11 = lean_ctor_get(x_7, 1); -x_12 = lean_nat_dec_eq(x_8, x_10); -if (x_12 == 0) +lean_object* x_10; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +if (lean_obj_tag(x_10) == 0) { -return x_12; +goto block_9; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -x_17 = lean_int_dec_eq(x_13, x_15); +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc_ref(x_14); +lean_ctor_set(x_10, 0, x_13); +if (lean_obj_tag(x_14) == 1) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc_ref(x_15); +lean_dec_ref(x_14); +x_16 = lean_ctor_get(x_15, 3); +lean_inc_ref(x_16); +lean_dec_ref(x_15); +x_17 = l_Lean_Expr_isSyntheticSorry(x_16); +lean_dec_ref(x_16); if (x_17 == 0) { -return x_17; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_inc(x_1); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed), 3, 2); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_10); +x_19 = lean_box(0); +x_20 = lean_apply_2(x_1, lean_box(0), x_19); +x_21 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_20, x_18); +return x_21; } else { -uint8_t x_18; -x_18 = lean_nat_dec_eq(x_14, x_16); -return x_18; +lean_object* x_22; lean_object* x_23; +lean_dec_ref(x_10); +lean_dec(x_2); +x_22 = lean_box(0); +x_23 = lean_apply_2(x_1, lean_box(0), x_22); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec_ref(x_14); +lean_inc(x_1); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed), 3, 2); +lean_closure_set(x_24, 0, x_1); +lean_closure_set(x_24, 1, x_10); +x_25 = lean_box(0); +x_26 = lean_apply_2(x_1, lean_box(0), x_25); +x_27 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_26, x_24); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_10, 0); +lean_inc(x_28); +lean_dec(x_10); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_ctor_get(x_29, 1); +lean_inc_ref(x_30); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_29); +if (lean_obj_tag(x_30) == 1) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_30, 0); +lean_inc_ref(x_32); +lean_dec_ref(x_30); +x_33 = lean_ctor_get(x_32, 3); +lean_inc_ref(x_33); +lean_dec_ref(x_32); +x_34 = l_Lean_Expr_isSyntheticSorry(x_33); +lean_dec_ref(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_inc(x_1); +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed), 3, 2); +lean_closure_set(x_35, 0, x_1); +lean_closure_set(x_35, 1, x_31); +x_36 = lean_box(0); +x_37 = lean_apply_2(x_1, lean_box(0), x_36); +x_38 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_37, x_35); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec_ref(x_31); +lean_dec(x_2); +x_39 = lean_box(0); +x_40 = lean_apply_2(x_1, lean_box(0), x_39); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec_ref(x_30); +lean_inc(x_1); +x_41 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed), 3, 2); +lean_closure_set(x_41, 0, x_1); +lean_closure_set(x_41, 1, x_31); +x_42 = lean_box(0); +x_43 = lean_apply_2(x_1, lean_box(0), x_42); +x_44 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_43, x_41); +return x_44; } } } } +block_9: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_box(0); +lean_inc(x_1); +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed), 3, 2); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_4); +x_6 = lean_box(0); +x_7 = lean_apply_2(x_1, lean_box(0), x_6); +x_8 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_7, x_5); +return x_8; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__0() { +} +LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Init.Data.Option.BasicAux", 25, 25); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Option.get!", 11, 11); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("value is none", 13, 13); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__2; -x_2 = lean_unsigned_to_nat(14u); -x_3 = lean_unsigned_to_nat(23u); -x_4 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__1; -x_5 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__0; -x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +x_6 = l_Option_beqOption___redArg____x40_Init_Data_Option_Basic___hyg_161_(x_1, x_5, x_2); return x_6; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__4() { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_12 = x_1; +} else { + lean_dec_ref(x_1); + x_12 = lean_box(0); +} +x_13 = lean_nat_dec_eq(x_11, x_2); +x_14 = lean_nat_sub(x_11, x_10); +lean_dec(x_10); +lean_dec(x_11); +if (lean_obj_tag(x_4) == 1) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_4, 0); +lean_inc_ref(x_22); +x_23 = lean_ctor_get(x_22, 3); +lean_inc_ref(x_23); +lean_dec_ref(x_22); +if (lean_obj_tag(x_23) == 1) +{ +lean_dec_ref(x_23); +x_15 = x_7; +goto block_21; +} +else +{ +lean_dec_ref(x_23); +x_15 = x_8; +goto block_21; +} +} +else +{ +x_15 = x_8; +goto block_21; +} +block_21: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*1, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*1 + 1, x_15); +x_17 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_4); +lean_ctor_set(x_17, 2, x_5); +if (lean_is_scalar(x_12)) { + x_18 = lean_alloc_ctor(0, 2, 0); +} else { + x_18 = x_12; +} +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = lean_apply_2(x_6, lean_box(0), x_19); +return x_20; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +switch (lean_obj_tag(x_7)) { +case 5: +{ +uint8_t x_27; +x_27 = 1; +x_12 = x_27; +goto block_26; +} +case 6: +{ +uint8_t x_28; +x_28 = 1; +x_12 = x_28; +goto block_26; +} +case 7: +{ +uint8_t x_29; +x_29 = 1; +x_12 = x_29; +goto block_26; +} +default: +{ +lean_object* x_30; +lean_inc_ref(x_7); +x_30 = l_Lean_Elab_Info_toElabInfo_x3f(x_7); +if (lean_obj_tag(x_30) == 0) +{ +x_12 = x_9; +goto block_26; +} +else +{ +uint8_t x_31; +lean_dec(x_30); +x_31 = 1; +x_12 = x_31; +goto block_26; +} +} +} +block_26: +{ +uint8_t x_13; lean_object* x_14; +x_13 = 1; +x_14 = l_Lean_Syntax_getRange_x3f(x_1, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +lean_dec(x_10); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +x_15 = lean_apply_2(x_2, lean_box(0), x_3); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_String_Range_contains(x_16, x_4, x_5); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_16); +lean_dec(x_10); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +x_18 = lean_apply_2(x_2, lean_box(0), x_3); +return x_18; +} +else +{ +if (x_12 == 0) +{ +lean_object* x_19; +lean_dec(x_16); +lean_dec(x_10); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +x_19 = lean_apply_2(x_2, lean_box(0), x_3); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_3); +x_20 = lean_box(x_12); +x_21 = lean_box(x_9); +lean_inc(x_2); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__3___boxed), 9, 8); +lean_closure_set(x_22, 0, x_16); +lean_closure_set(x_22, 1, x_4); +lean_closure_set(x_22, 2, x_6); +lean_closure_set(x_22, 3, x_7); +lean_closure_set(x_22, 4, x_8); +lean_closure_set(x_22, 5, x_2); +lean_closure_set(x_22, 6, x_20); +lean_closure_set(x_22, 7, x_21); +x_23 = lean_box(0); +x_24 = lean_apply_2(x_2, lean_box(0), x_23); +x_25 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_24, x_22); +return x_25; +} +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__0() { _start: { lean_object* x_1; @@ -4401,16 +4642,16 @@ x_1 = lean_mk_string_unchecked("null", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__5() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__4; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__0; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2() { _start: { lean_object* x_1; @@ -4418,7 +4659,7 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__7() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__3() { _start: { lean_object* x_1; @@ -4426,7 +4667,7 @@ x_1 = lean_mk_string_unchecked("Elab", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__8() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__4() { _start: { lean_object* x_1; @@ -4434,7 +4675,7 @@ x_1 = lean_mk_string_unchecked("Tactic", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__9() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__5() { _start: { lean_object* x_1; @@ -4442,19 +4683,143 @@ x_1 = lean_mk_string_unchecked("evalWithAnnotateState", 21, 21); return x_1; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__10() { +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__9; -x_2 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__8; -x_3 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__7; -x_4 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6; +x_1 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__5; +x_2 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__4; +x_3 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__3; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__11() { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; lean_object* x_20; uint8_t x_21; +x_10 = l_Lean_Elab_Info_stx(x_1); +x_20 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1; +lean_inc(x_10); +x_21 = l_Lean_Syntax_isOfKind(x_10, x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_inc_ref(x_1); +x_22 = l_Lean_Elab_Info_toElabInfo_x3f(x_1); +if (lean_obj_tag(x_22) == 0) +{ +x_11 = x_21; +goto block_19; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6; +x_26 = lean_name_eq(x_24, x_25); +lean_dec(x_24); +x_11 = x_26; +goto block_19; +} +} +else +{ +x_11 = x_21; +goto block_19; +} +block_19: +{ +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_12 = lean_box(x_5); +x_13 = lean_box(x_11); +lean_inc(x_8); +lean_inc(x_2); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__6___boxed), 11, 10); +lean_closure_set(x_14, 0, x_10); +lean_closure_set(x_14, 1, x_2); +lean_closure_set(x_14, 2, x_3); +lean_closure_set(x_14, 3, x_4); +lean_closure_set(x_14, 4, x_12); +lean_closure_set(x_14, 5, x_6); +lean_closure_set(x_14, 6, x_1); +lean_closure_set(x_14, 7, x_7); +lean_closure_set(x_14, 8, x_13); +lean_closure_set(x_14, 9, x_8); +x_15 = lean_box(0); +x_16 = lean_apply_2(x_2, lean_box(0), x_15); +x_17 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_16, x_14); +return x_17; +} +else +{ +lean_object* x_18; +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec(x_4); +lean_dec_ref(x_1); +x_18 = lean_apply_2(x_2, lean_box(0), x_3); +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_box(0); +lean_inc(x_11); +x_13 = l_List_mapTR_loop___redArg(x_1, x_11, x_12); +x_14 = l_List_max_x3f___redArg(x_2, x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__4___boxed), 3, 2); +lean_closure_set(x_15, 0, x_3); +lean_closure_set(x_15, 1, x_14); +x_16 = l_List_find_x3f___redArg(x_15, x_11); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_box(x_7); +lean_inc(x_10); +lean_inc(x_5); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___boxed), 9, 8); +lean_closure_set(x_18, 0, x_4); +lean_closure_set(x_18, 1, x_5); +lean_closure_set(x_18, 2, x_16); +lean_closure_set(x_18, 3, x_6); +lean_closure_set(x_18, 4, x_17); +lean_closure_set(x_18, 5, x_8); +lean_closure_set(x_18, 6, x_9); +lean_closure_set(x_18, 7, x_10); +x_19 = lean_box(0); +x_20 = lean_apply_2(x_5, lean_box(0), x_19); +x_21 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_20, x_18); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_8); +lean_dec(x_6); +lean_dec_ref(x_4); +x_22 = lean_apply_2(x_5, lean_box(0), x_16); +return x_22; +} +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0() { _start: { lean_object* x_1; lean_object* x_2; @@ -4463,703 +4828,191 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12() { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_box(x_6); +lean_inc(x_7); +lean_inc_ref(x_12); +lean_inc_ref(x_10); +lean_inc_ref(x_11); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__8___boxed), 11, 10); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_11); +lean_closure_set(x_15, 4, x_4); +lean_closure_set(x_15, 5, x_5); +lean_closure_set(x_15, 6, x_14); +lean_closure_set(x_15, 7, x_10); +lean_closure_set(x_15, 8, x_12); +lean_closure_set(x_15, 9, x_7); +x_16 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0; +x_17 = l_List_filterMapTR_go___redArg(x_8, x_13, x_16); +x_18 = lean_apply_4(x_9, x_10, x_11, x_12, x_17); +x_19 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_18, x_15); +return x_19; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Parser", 6, 6); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_instMaxHoverableInfoPrio___lam__0___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13() { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Term", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__14() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("app", 3, 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__14; -x_2 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13; -x_3 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12; -x_4 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6; -x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0(lean_object* x_1, uint8_t x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_35; uint8_t x_36; lean_object* x_37; uint8_t x_44; lean_object* x_45; uint8_t x_52; lean_object* x_53; uint8_t x_54; uint8_t x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; lean_object* x_62; uint8_t x_63; uint8_t x_64; lean_object* x_66; lean_object* x_77; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_unsigned_to_nat(0u); -x_87 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__11; -x_88 = l_List_flatMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__2(x_8, x_87); -if (x_4 == 0) -{ -x_77 = x_88; -goto block_85; -} -else -{ -lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_89 = l_Lean_Elab_Info_stx(x_6); -x_90 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__15; -lean_inc(x_89); -x_91 = l_Lean_Syntax_isOfKind(x_89, x_90); -if (x_91 == 0) -{ -lean_dec(x_89); -x_77 = x_88; -goto block_85; -} -else -{ -lean_object* x_92; uint8_t x_93; -x_92 = l_Lean_Syntax_getArg(x_89, x_86); -lean_dec(x_89); -x_93 = l_Lean_Syntax_isIdent(x_92); -lean_dec(x_92); -if (x_93 == 0) -{ -x_77 = x_88; -goto block_85; -} -else -{ -lean_object* x_94; lean_object* x_95; -x_94 = lean_box(0); -x_95 = l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__3(x_6, x_93, x_88, x_94); -x_77 = x_95; -goto block_85; -} -} -} -block_18: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_9); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_10); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_14, 0, x_5); -lean_ctor_set(x_14, 1, x_6); -lean_ctor_set(x_14, 2, x_7); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -block_24: -{ -if (x_21 == 0) -{ -lean_object* x_22; -x_22 = lean_unsigned_to_nat(1u); -x_9 = x_19; -x_10 = x_20; -x_11 = x_22; -goto block_18; -} -else -{ -lean_object* x_23; -x_23 = lean_unsigned_to_nat(0u); -x_9 = x_19; -x_10 = x_20; -x_11 = x_23; -goto block_18; -} -} -block_34: -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_nat_sub(x_28, x_27); -lean_dec(x_27); -lean_dec(x_28); -x_31 = l_Int_negOfNat(x_30); -lean_dec(x_30); -if (lean_obj_tag(x_6) == 1) -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_6, 0); -lean_inc_ref(x_32); -x_33 = lean_ctor_get(x_32, 3); -lean_inc_ref(x_33); -lean_dec_ref(x_32); -if (lean_obj_tag(x_33) == 1) -{ -lean_dec_ref(x_33); -x_19 = x_31; -x_20 = x_29; -x_21 = x_26; -goto block_24; -} -else -{ -lean_dec_ref(x_33); -x_19 = x_31; -x_20 = x_29; -x_21 = x_25; -goto block_24; -} -} -else -{ -x_19 = x_31; -x_20 = x_29; -x_21 = x_25; -goto block_24; -} -} -block_43: -{ -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec_ref(x_37); -x_40 = lean_nat_dec_eq(x_39, x_1); -if (x_40 == 0) -{ -lean_object* x_41; -x_41 = lean_unsigned_to_nat(1u); -x_25 = x_35; -x_26 = x_36; -x_27 = x_38; -x_28 = x_39; -x_29 = x_41; -goto block_34; -} -else -{ -lean_object* x_42; -x_42 = lean_unsigned_to_nat(0u); -x_25 = x_35; -x_26 = x_36; -x_27 = x_38; -x_28 = x_39; -x_29 = x_42; -goto block_34; -} -} -block_51: -{ -uint8_t x_46; -x_46 = l_Lean_Elab_Info_contains(x_6, x_1, x_2); -if (x_46 == 0) -{ -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_45; -} -else -{ -lean_object* x_47; -lean_dec(x_45); -x_47 = l_Lean_Elab_Info_range_x3f(x_6); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__3; -x_49 = l_panic___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__0(x_48); -x_35 = x_44; -x_36 = x_46; -x_37 = x_49; -goto block_43; -} -else -{ -lean_object* x_50; -x_50 = lean_ctor_get(x_47, 0); -lean_inc(x_50); -lean_dec(x_47); -x_35 = x_44; -x_36 = x_46; -x_37 = x_50; -goto block_43; -} -} -} -block_56: -{ -lean_object* x_55; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_6 = lean_ctor_get(x_1, 0); lean_inc_ref(x_6); -x_55 = l_Lean_Elab_Info_toElabInfo_x3f(x_6); -if (lean_obj_tag(x_55) == 0) -{ -lean_dec_ref(x_7); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_53; -} -else -{ -lean_dec(x_55); -if (x_54 == 0) -{ -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_53; -} -else -{ -x_44 = x_52; -x_45 = x_53; -goto block_51; +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__0___boxed), 1, 0); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__1___boxed), 1, 0); +x_11 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___closed__0; +x_12 = l_Lean_Elab_instBEqHoverableInfoPrio___closed__0; +lean_inc(x_7); +lean_inc(x_8); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__5), 3, 2); +lean_closure_set(x_13, 0, x_8); +lean_closure_set(x_13, 1, x_7); +lean_inc(x_8); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_collectNodesBottomUpM___redArg___lam__2___boxed), 4, 1); +lean_closure_set(x_14, 0, x_8); +x_15 = lean_box(x_4); +lean_inc(x_7); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___boxed), 13, 9); +lean_closure_set(x_16, 0, x_10); +lean_closure_set(x_16, 1, x_11); +lean_closure_set(x_16, 2, x_12); +lean_closure_set(x_16, 3, x_8); +lean_closure_set(x_16, 4, x_3); +lean_closure_set(x_16, 5, x_15); +lean_closure_set(x_16, 6, x_7); +lean_closure_set(x_16, 7, x_9); +lean_closure_set(x_16, 8, x_5); +x_17 = lean_box(0); +x_18 = l_Lean_Elab_InfoTree_visitM_go___redArg(x_1, x_14, x_16, x_17, x_2); +x_19 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_18, x_13); +return x_19; } } -} -block_61: -{ -if (x_60 == 0) -{ -x_52 = x_57; -x_53 = x_58; -x_54 = x_59; -goto block_56; -} -else -{ -x_44 = x_57; -x_45 = x_58; -goto block_51; -} -} -block_65: -{ -if (x_64 == 0) -{ -switch (lean_obj_tag(x_6)) { -case 5: -{ -x_57 = x_64; -x_58 = x_62; -x_59 = x_63; -x_60 = x_63; -goto block_61; -} -case 6: -{ -x_57 = x_64; -x_58 = x_62; -x_59 = x_63; -x_60 = x_63; -goto block_61; -} -case 7: -{ -x_57 = x_64; -x_58 = x_62; -x_59 = x_63; -x_60 = x_63; -goto block_61; -} -default: -{ -x_52 = x_64; -x_53 = x_62; -x_54 = x_63; -goto block_56; -} -} -} -else -{ -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_62; -} -} -block_76: -{ -uint8_t x_67; -x_67 = l_List_isEmpty___redArg(x_66); -if (x_67 == 0) -{ -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_66; -} -else -{ -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = l_Lean_Elab_Info_stx(x_6); -x_69 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__5; -x_70 = l_Lean_Syntax_isOfKind(x_68, x_69); -if (x_70 == 0) -{ -lean_object* x_71; -lean_inc_ref(x_6); -x_71 = l_Lean_Elab_Info_toElabInfo_x3f(x_6); -if (lean_obj_tag(x_71) == 0) -{ -x_62 = x_66; -x_63 = x_67; -x_64 = x_70; -goto block_65; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -lean_dec(x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -lean_dec(x_72); -x_74 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__10; -x_75 = lean_name_eq(x_73, x_74); -lean_dec(x_73); -x_62 = x_66; -x_63 = x_67; -x_64 = x_75; -goto block_65; -} -} -else -{ -x_62 = x_66; -x_63 = x_67; -x_64 = x_70; -goto block_65; -} -} -} -block_85: -{ -if (x_3 == 0) -{ -x_66 = x_77; -goto block_76; -} -else -{ -lean_object* x_78; uint8_t x_79; -x_78 = l_Lean_Elab_Info_stx(x_6); -x_79 = l_Lean_Syntax_isIdent(x_78); -lean_dec(x_78); -if (x_79 == 0) -{ -x_66 = x_77; -goto block_76; -} -else -{ -if (lean_obj_tag(x_6) == 1) -{ -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_6, 0); -lean_inc_ref(x_80); -x_81 = lean_ctor_get(x_80, 3); -lean_inc_ref(x_81); -lean_dec_ref(x_80); -x_82 = l_Lean_Expr_isApp(x_81); -lean_dec_ref(x_81); -if (x_82 == 0) -{ -x_66 = x_77; -goto block_76; -} -else -{ -lean_object* x_83; lean_object* x_84; -x_83 = lean_box(0); -x_84 = l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__1(x_6, x_82, x_77, x_83); -x_66 = x_84; -goto block_76; -} -} -else -{ -x_66 = x_77; -goto block_76; -} -} -} -} -} -} -LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { _start: { -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_4, 0, x_3); -x_5 = l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__7(x_4, x_1); -lean_dec_ref(x_4); -return x_5; +lean_object* x_7; +x_7 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg(x_2, x_3, x_4, x_5, x_6); +return x_7; } } -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__0() { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__0___boxed(lean_object* x_1) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0___redArg___lam__1___boxed), 3, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_instOrdNat___lam__0___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_instOrdInt___lam__0___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1; -x_2 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__2; -x_3 = l_lexOrd___redArg(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__3; -x_2 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1; -x_3 = l_lexOrd___redArg(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_36; lean_object* x_37; -x_6 = lean_box(x_3); -x_7 = lean_box(x_5); -x_8 = lean_box(x_4); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___boxed), 8, 4); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_6); -lean_closure_set(x_9, 2, x_7); -lean_closure_set(x_9, 3, x_8); -x_10 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__0; -x_11 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__4; -x_36 = lean_box(0); -x_37 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2___redArg(x_10, x_9, x_36, x_1); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; -x_38 = lean_box(0); -x_12 = x_38; -goto block_35; -} -else -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -lean_dec(x_37); -x_12 = x_39; -goto block_35; -} -block_35: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_box(0); -lean_inc(x_12); -x_14 = l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__4(x_12, x_13); -x_15 = l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__5(x_11, x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__2___boxed), 2, 1); -lean_closure_set(x_16, 0, x_15); -x_17 = l_List_find_x3f___redArg(x_16, x_12); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; -x_18 = lean_box(0); -return x_18; -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_17, 0); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_ctor_get(x_21, 1); -lean_inc_ref(x_22); -lean_ctor_set(x_17, 0, x_21); -if (lean_obj_tag(x_22) == 1) -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_22, 0); -lean_inc_ref(x_23); -lean_dec_ref(x_22); -x_24 = lean_ctor_get(x_23, 3); -lean_inc_ref(x_24); -lean_dec_ref(x_23); -x_25 = l_Lean_Expr_isSyntheticSorry(x_24); -lean_dec_ref(x_24); -if (x_25 == 0) -{ -return x_17; -} -else -{ -lean_object* x_26; -lean_dec_ref(x_17); -x_26 = lean_box(0); -return x_26; -} -} -else -{ -lean_dec_ref(x_22); -return x_17; -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_17, 0); -lean_inc(x_27); -lean_dec(x_17); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_ctor_get(x_28, 1); -lean_inc_ref(x_29); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_28); -if (lean_obj_tag(x_29) == 1) -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_29, 0); -lean_inc_ref(x_31); -lean_dec_ref(x_29); -x_32 = lean_ctor_get(x_31, 3); -lean_inc_ref(x_32); -lean_dec_ref(x_31); -x_33 = l_Lean_Expr_isSyntheticSorry(x_32); -lean_dec_ref(x_32); -if (x_33 == 0) -{ -return x_30; -} -else -{ -lean_object* x_34; -lean_dec_ref(x_30); -x_34 = lean_box(0); -return x_34; -} -} -else -{ -lean_dec_ref(x_29); -return x_30; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_2); -x_6 = l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__1(x_1, x_5, x_3, x_4); -lean_dec_ref(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_2); -x_6 = l_List_filterTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__3(x_1, x_5, x_3, x_4); -lean_dec_ref(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__7___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAt_x3f_spec__7(x_1, x_2); -lean_dec(x_2); +lean_object* x_2; +x_2 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__0(x_1); lean_dec(x_1); -x_4 = lean_box(x_3); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__1(x_1); +lean_dec_ref(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__2(x_1, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; -x_9 = lean_unbox(x_2); -x_10 = lean_unbox(x_3); -x_11 = lean_unbox(x_4); -x_12 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0(x_1, x_9, x_10, x_11, x_5, x_6, x_7, x_8); -lean_dec(x_1); +uint8_t x_4; lean_object* x_5; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__4(x_1, x_2, x_3); +lean_dec_ref(x_3); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_7); +x_11 = lean_unbox(x_8); +x_12 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9); +lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__2___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__2(x_1, x_2); -lean_dec_ref(x_2); +uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_5); +x_13 = lean_unbox(x_9); +x_14 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__6(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_13, x_10, x_11); lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; +return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_6; uint8_t x_7; uint8_t x_8; lean_object* x_9; -x_6 = lean_unbox(x_3); -x_7 = lean_unbox(x_4); -x_8 = lean_unbox(x_5); -x_9 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_1, x_2, x_6, x_7, x_8); -return x_9; +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +x_11 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_7); +x_13 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__8(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_6); +x_15 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9(x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_4); +x_7 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg(x_1, x_2, x_3, x_6, x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_5); +x_8 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f(x_1, x_2, x_3, x_4, x_7, x_6); +return x_8; } } LEAN_EXPORT lean_object* l_Lean_Elab_Info_type_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { @@ -8257,12 +8110,12 @@ block_48: if (x_45 == 0) { lean_object* x_46; -lean_dec_ref(x_44); +lean_dec_ref(x_43); x_46 = lean_box(0); x_29 = x_46; x_30 = x_2; x_31 = x_3; -x_32 = x_43; +x_32 = x_44; goto block_42; } else @@ -8274,8 +8127,8 @@ lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_43); +lean_ctor_set(x_47, 0, x_43); +lean_ctor_set(x_47, 1, x_44); return x_47; } } @@ -8287,15 +8140,15 @@ if (x_51 == 0) { uint8_t x_52; x_52 = l_Lean_Exception_isRuntime(x_49); -x_43 = x_50; -x_44 = x_49; +x_43 = x_49; +x_44 = x_50; x_45 = x_52; goto block_48; } else { -x_43 = x_50; -x_44 = x_49; +x_43 = x_49; +x_44 = x_50; x_45 = x_51; goto block_48; } @@ -8537,18 +8390,34 @@ static lean_object* _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("byTactic", 8, 8); +x_1 = lean_mk_string_unchecked("Parser", 6, 6); return x_1; } } static lean_object* _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Term", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("byTactic", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__0; -x_2 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13; -x_3 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12; -x_4 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6; +x_1 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__2; +x_2 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1; +x_3 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__0; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } @@ -8566,7 +8435,7 @@ case 0: { lean_object* x_10; lean_object* x_11; uint8_t x_12; x_10 = l_Lean_Elab_Info_stx(x_5); -x_11 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1; +x_11 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__3; x_12 = l_Lean_Syntax_isOfKind(x_10, x_11); if (x_12 == 0) { @@ -9174,8 +9043,8 @@ if (x_27 == 0) { lean_object* x_28; x_28 = lean_unsigned_to_nat(1u); -x_9 = x_26; -x_10 = x_25; +x_9 = x_25; +x_10 = x_26; x_11 = x_28; goto block_15; } @@ -9183,8 +9052,8 @@ else { lean_object* x_29; x_29 = lean_unsigned_to_nat(0u); -x_9 = x_26; -x_10 = x_25; +x_9 = x_25; +x_10 = x_26; x_11 = x_29; goto block_15; } @@ -9347,8 +9216,8 @@ x_12 = lean_alloc_ctor(0, 3, 2); lean_ctor_set(x_12, 0, x_4); lean_ctor_set(x_12, 1, x_8); lean_ctor_set(x_12, 2, x_11); -lean_ctor_set_uint8(x_12, sizeof(void*)*3, x_10); -lean_ctor_set_uint8(x_12, sizeof(void*)*3 + 1, x_9); +lean_ctor_set_uint8(x_12, sizeof(void*)*3, x_9); +lean_ctor_set_uint8(x_12, sizeof(void*)*3 + 1, x_10); x_13 = lean_box(0); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); @@ -9444,13 +9313,823 @@ lean_dec(x_2); return x_8; } } +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_5; +x_5 = l_List_reverse___redArg(x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_9 = lean_ctor_get(x_3, 1); +x_10 = lean_ctor_get(x_3, 0); +lean_dec(x_10); +x_11 = lean_ctor_get(x_7, 1); +lean_inc_ref(x_11); +lean_dec(x_7); +x_12 = l_Lean_Elab_Info_stx(x_11); +lean_dec_ref(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Syntax_getArg(x_1, x_13); +x_15 = l_Lean_Syntax_structEq(x_12, x_14); +if (x_15 == 0) +{ +if (x_2 == 0) +{ +lean_free_object(x_3); +lean_dec(x_6); +x_3 = x_9; +goto _start; +} +else +{ +lean_ctor_set(x_3, 1, x_4); +{ +lean_object* _tmp_2 = x_9; +lean_object* _tmp_3 = x_3; +x_3 = _tmp_2; +x_4 = _tmp_3; +} +goto _start; +} +} +else +{ +lean_free_object(x_3); +lean_dec(x_6); +x_3 = x_9; +goto _start; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_19 = lean_ctor_get(x_3, 1); +lean_inc(x_19); +lean_dec(x_3); +x_20 = lean_ctor_get(x_7, 1); +lean_inc_ref(x_20); +lean_dec(x_7); +x_21 = l_Lean_Elab_Info_stx(x_20); +lean_dec_ref(x_20); +x_22 = lean_unsigned_to_nat(0u); +x_23 = l_Lean_Syntax_getArg(x_1, x_22); +x_24 = l_Lean_Syntax_structEq(x_21, x_23); +if (x_24 == 0) +{ +if (x_2 == 0) +{ +lean_dec(x_6); +x_3 = x_19; +goto _start; +} +else +{ +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_6); +lean_ctor_set(x_26, 1, x_4); +x_3 = x_19; +x_4 = x_26; +goto _start; +} +} +else +{ +lean_dec(x_6); +x_3 = x_19; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_filterMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = lean_array_to_list(x_2); +return x_3; +} +else +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_1 = x_5; +goto _start; +} +else +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_dec(x_4); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_1 = x_8; +goto _start; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = lean_array_push(x_2, x_11); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___redArg(x_2); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +lean_inc(x_1); +lean_inc(x_4); +lean_inc_ref(x_2); +x_6 = lean_apply_2(x_1, x_2, x_4); +if (lean_obj_tag(x_6) == 2) +{ +lean_dec(x_4); +x_3 = x_5; +goto _start; +} +else +{ +lean_dec_ref(x_2); +x_2 = x_4; +x_3 = x_5; +goto _start; +} +} +} +} +static lean_object* _init_l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_instOrdHoverableInfoPrio___lam__0___boxed), 2, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3___closed__0; +x_6 = l_List_foldl___at___List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3_spec__3(x_5, x_3, x_4); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +LEAN_EXPORT uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = l_Lean_Elab_beqHoverableInfoPrio____x40_Lean_Server_InfoUtils___hyg_2115_(x_6, x_7); +return x_8; +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5(x_4, x_1); +lean_dec_ref(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; uint8_t x_10; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_16 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0; +x_17 = l_List_filterMapTR_go___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__1(x_7, x_16); +lean_inc_ref(x_6); +lean_inc_ref(x_5); +lean_inc_ref(x_4); +x_18 = lean_apply_4(x_1, x_4, x_5, x_6, x_17); +x_19 = lean_box(0); +lean_inc(x_18); +x_20 = l_List_mapTR_loop___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__2(x_18, x_19); +x_21 = l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3(x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__0___boxed), 2, 1); +lean_closure_set(x_22, 0, x_21); +x_23 = l_List_find_x3f___redArg(x_22, x_18); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_38; lean_object* x_45; uint8_t x_46; +x_24 = l_Lean_Elab_Info_stx(x_5); +x_45 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1; +lean_inc(x_24); +x_46 = l_Lean_Syntax_isOfKind(x_24, x_45); +if (x_46 == 0) +{ +lean_object* x_47; +lean_inc_ref(x_5); +x_47 = l_Lean_Elab_Info_toElabInfo_x3f(x_5); +if (lean_obj_tag(x_47) == 0) +{ +x_38 = x_46; +goto block_44; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +lean_dec(x_48); +x_50 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6; +x_51 = lean_name_eq(x_49, x_50); +lean_dec(x_49); +x_38 = x_51; +goto block_44; +} +} +else +{ +x_38 = x_46; +goto block_44; +} +block_37: +{ +uint8_t x_27; lean_object* x_28; +x_27 = 1; +x_28 = l_Lean_Syntax_getRange_x3f(x_24, x_27); +lean_dec(x_24); +if (lean_obj_tag(x_28) == 0) +{ +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_23; +} +else +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_String_Range_contains(x_29, x_2, x_3); +if (x_30 == 0) +{ +lean_dec(x_29); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_23; +} +else +{ +if (x_26 == 0) +{ +lean_dec(x_29); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_23; +} +else +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_nat_dec_eq(x_32, x_2); +x_34 = lean_nat_sub(x_32, x_31); +lean_dec(x_31); +lean_dec(x_32); +if (lean_obj_tag(x_5) == 1) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_5, 0); +lean_inc_ref(x_35); +x_36 = lean_ctor_get(x_35, 3); +lean_inc_ref(x_36); +lean_dec_ref(x_35); +if (lean_obj_tag(x_36) == 1) +{ +lean_dec_ref(x_36); +x_8 = x_34; +x_9 = x_33; +x_10 = x_26; +goto block_15; +} +else +{ +lean_dec_ref(x_36); +x_8 = x_34; +x_9 = x_33; +x_10 = x_25; +goto block_15; +} +} +else +{ +x_8 = x_34; +x_9 = x_33; +x_10 = x_25; +goto block_15; +} +} +} +} +} +block_44: +{ +if (x_38 == 0) +{ +switch (lean_obj_tag(x_5)) { +case 5: +{ +uint8_t x_39; +x_39 = 1; +x_25 = x_38; +x_26 = x_39; +goto block_37; +} +case 6: +{ +uint8_t x_40; +x_40 = 1; +x_25 = x_38; +x_26 = x_40; +goto block_37; +} +case 7: +{ +uint8_t x_41; +x_41 = 1; +x_25 = x_38; +x_26 = x_41; +goto block_37; +} +default: +{ +lean_object* x_42; +lean_inc_ref(x_5); +x_42 = l_Lean_Elab_Info_toElabInfo_x3f(x_5); +if (lean_obj_tag(x_42) == 0) +{ +x_25 = x_38; +x_26 = x_38; +goto block_37; +} +else +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = 1; +x_25 = x_38; +x_26 = x_43; +goto block_37; +} +} +} +} +else +{ +lean_dec(x_24); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_23; +} +} +} +else +{ +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +return x_23; +} +block_15: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_9); +lean_ctor_set_uint8(x_11, sizeof(void*)*1 + 1, x_10); +x_12 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_12, 0, x_4); +lean_ctor_set(x_12, 1, x_5); +lean_ctor_set(x_12, 2, x_6); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0___redArg___lam__1___boxed), 3, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_box(x_3); +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__1___boxed), 7, 3); +lean_closure_set(x_6, 0, x_4); +lean_closure_set(x_6, 1, x_2); +lean_closure_set(x_6, 2, x_5); +x_7 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___closed__0; +x_8 = lean_box(0); +x_9 = l_Lean_Elab_InfoTree_visitM_go___at___Lean_Elab_InfoTree_collectNodesBottomUpM___at___Lean_Elab_InfoTree_collectNodesBottomUp_spec__0_spec__2___redArg(x_7, x_6, x_8, x_1); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_box(0); +return x_10; +} +else +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_box(0); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get(x_15, 1); +lean_inc_ref(x_16); +lean_ctor_set(x_11, 0, x_15); +if (lean_obj_tag(x_16) == 1) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc_ref(x_17); +lean_dec_ref(x_16); +x_18 = lean_ctor_get(x_17, 3); +lean_inc_ref(x_18); +lean_dec_ref(x_17); +x_19 = l_Lean_Expr_isSyntheticSorry(x_18); +lean_dec_ref(x_18); +if (x_19 == 0) +{ +return x_11; +} +else +{ +lean_object* x_20; +lean_dec_ref(x_11); +x_20 = lean_box(0); +return x_20; +} +} +else +{ +lean_dec_ref(x_16); +return x_11; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_11, 0); +lean_inc(x_21); +lean_dec(x_11); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc_ref(x_23); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_22); +if (lean_obj_tag(x_23) == 1) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc_ref(x_25); +lean_dec_ref(x_23); +x_26 = lean_ctor_get(x_25, 3); +lean_inc_ref(x_26); +lean_dec_ref(x_25); +x_27 = l_Lean_Expr_isSyntheticSorry(x_26); +lean_dec_ref(x_26); +if (x_27 == 0) +{ +return x_24; +} +else +{ +lean_object* x_28; +lean_dec_ref(x_24); +x_28 = lean_box(0); +return x_28; +} +} +else +{ +lean_dec_ref(x_23); +return x_24; +} +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("app", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__0; +x_2 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1; +x_3 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__0; +x_4 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2; +x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; lean_object* x_10; uint8_t x_11; +x_5 = l_Lean_Elab_Info_stx(x_2); +x_10 = l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__1; +lean_inc(x_5); +x_11 = l_Lean_Syntax_isOfKind(x_5, x_10); +if (x_11 == 0) +{ +x_6 = x_11; +goto block_9; +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Lean_Syntax_getArg(x_5, x_12); +x_14 = l_Lean_Syntax_isIdent(x_13); +lean_dec(x_13); +x_6 = x_14; +goto block_9; +} +block_9: +{ +if (x_6 == 0) +{ +lean_dec(x_5); +return x_4; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_box(0); +x_8 = l_List_filterTR_loop___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__0(x_5, x_6, x_4, x_7); +lean_dec(x_5); +return x_8; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_3; uint8_t x_4; lean_object* x_5; -x_3 = 1; -x_4 = 0; -x_5 = l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(x_1, x_2, x_3, x_3, x_4); +lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___boxed), 4, 0); +x_4 = 1; +x_5 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1(x_1, x_2, x_4, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_List_filterTR_loop___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +x_6 = l_List_filterTR_loop___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__0(x_1, x_5, x_3, x_4); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__5(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__0(x_1, x_2); +lean_dec_ref(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_3); +x_9 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___lam__1(x_1, x_2, x_8, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_3); +x_6 = l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1(x_1, x_2, x_5, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0(x_1, x_2, x_3, x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); return x_5; } } @@ -9503,48 +10182,34 @@ l_Lean_Elab_InfoTree_getCompletionInfos___closed__0 = _init_l_Lean_Elab_InfoTree lean_mark_persistent(l_Lean_Elab_InfoTree_getCompletionInfos___closed__0); l_Lean_Elab_InfoTree_smallestInfo_x3f___closed__0 = _init_l_Lean_Elab_InfoTree_smallestInfo_x3f___closed__0(); lean_mark_persistent(l_Lean_Elab_InfoTree_smallestInfo_x3f___closed__0); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__0(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__0); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__1 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__1(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__1); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__2 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__2(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__2); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__3 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__3(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__3); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__4 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__4(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__4); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__5 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__5(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__5); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__6); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__7 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__7(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__7); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__8 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__8(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__8); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__9 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__9(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__9); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__10 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__10(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__10); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__11 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__11(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__11); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__12); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__13); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__14 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__14(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__14); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__15 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__15(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lam__0___closed__15); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__0(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__0); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__1); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__2 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__2(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__2); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__3 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__3(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__3); -l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__4 = _init_l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__4(); -lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___closed__4); +l_Lean_Elab_instBEqHoverableInfoPrio___closed__0 = _init_l_Lean_Elab_instBEqHoverableInfoPrio___closed__0(); +lean_mark_persistent(l_Lean_Elab_instBEqHoverableInfoPrio___closed__0); +l_Lean_Elab_instBEqHoverableInfoPrio = _init_l_Lean_Elab_instBEqHoverableInfoPrio(); +lean_mark_persistent(l_Lean_Elab_instBEqHoverableInfoPrio); +l_Lean_Elab_instOrdHoverableInfoPrio = _init_l_Lean_Elab_instOrdHoverableInfoPrio(); +lean_mark_persistent(l_Lean_Elab_instOrdHoverableInfoPrio); +l_Lean_Elab_instLEHoverableInfoPrio = _init_l_Lean_Elab_instLEHoverableInfoPrio(); +lean_mark_persistent(l_Lean_Elab_instLEHoverableInfoPrio); +l_Lean_Elab_instMaxHoverableInfoPrio = _init_l_Lean_Elab_instMaxHoverableInfoPrio(); +lean_mark_persistent(l_Lean_Elab_instMaxHoverableInfoPrio); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__0); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__1); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__2); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__3 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__3(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__3); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__4 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__4(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__4); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__5 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__5(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__5); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__7___closed__6); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___lam__9___closed__0); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___redArg___closed__0); l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__0 = _init_l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__0(); lean_mark_persistent(l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__0); l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__1 = _init_l_Lean_Elab_Info_fmtHover_x3f_fmtModule_x3f___closed__1(); @@ -9583,8 +10248,20 @@ l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__0 = _init_l_Lean_Elab lean_mark_persistent(l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__0); l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1 = _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1(); lean_mark_persistent(l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__1); +l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__2 = _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__2(); +lean_mark_persistent(l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__2); +l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__3 = _init_l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__3(); +lean_mark_persistent(l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___closed__3); l_Lean_Elab_InfoTree_goalsAt_x3f_isEmptyBy___closed__0 = _init_l_Lean_Elab_InfoTree_goalsAt_x3f_isEmptyBy___closed__0(); lean_mark_persistent(l_Lean_Elab_InfoTree_goalsAt_x3f_isEmptyBy___closed__0); +l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3___closed__0 = _init_l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3___closed__0(); +lean_mark_persistent(l_List_max_x3f___at___Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1_spec__3___closed__0); +l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___closed__0 = _init_l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_hoverableInfoAtM_x3f___at___Lean_Elab_InfoTree_termGoalAt_x3f_spec__1___closed__0); +l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__0 = _init_l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__0(); +lean_mark_persistent(l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__0); +l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__1 = _init_l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__1(); +lean_mark_persistent(l_Lean_Elab_InfoTree_termGoalAt_x3f___lam__0___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Server/Watchdog.c b/stage0/stdlib/Lean/Server/Watchdog.c index 0a3dde3029..d8bc655fed 100644 --- a/stage0/stdlib/Lean/Server/Watchdog.c +++ b/stage0/stdlib/Lean/Server/Watchdog.c @@ -20,6 +20,7 @@ static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__15; static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__0; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_PrettyPrinter_Delaborator_OptionsPerPos_insertAt_spec__0___redArg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_WorkerState_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleQueryModule___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -27,13 +28,17 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__29; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_matchAgainstQuery_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12419_(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26_spec__26(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_13606_; static lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___closed__4; +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__2___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleWorkspaceSymbol___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_erase___at___Lean_IR_LocalContext_eraseJoinPointDecl_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___at___Lean_Server_Watchdog_handleQueryModule_spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRename___closed__5; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestQueueMap_contains_spec__0___redArg___boxed(lean_object*, lean_object*); @@ -42,34 +47,38 @@ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Serv LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getUri_x3f(lean_object*, lean_object*); static lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___closed__1; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__1; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_startLoadingReferences___lam__0___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_13606_; lean_object* l_StateRefT_x27_get(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls(lean_object*); lean_object* l_Lean_Server_References_updateWorkerImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseGetPendingRequest(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Mutex_atomically___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Option_toJson___at___Lean_Json_toStructured_x3f___at___IO_FS_Stream_writeLspRequest___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__3_spec__3_spec__3(lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_errorPendingRequests_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_References_findAt(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lean_Server_Watchdog_handleWorkspaceSymbol_spec__0(lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_sortModuleImports___lam__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__34; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__16; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleRename_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_13606_; lean_object* l_Lean_JsonNumber_toString(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__1; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__6; LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleReference_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__1; uint8_t l_instDecidableEqOrdering(uint8_t, uint8_t); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_13606_; lean_object* l_Lean_Lsp_fromJsonRpcReleaseParams____x40_Lean_Data_Lsp_Extra___hyg_3922_(lean_object*); -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase___at___Lean_Server_Watchdog_RequestData_clearWorkerRequestData_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonCallHierarchyIncomingCallsParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7427_(lean_object*); @@ -81,6 +90,7 @@ static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLs LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoFinal___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleQueryModule___boxed__const__1; lean_object* l_System_FilePath_join(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__6(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__6___boxed(lean_object*, lean_object*); lean_object* lean_private_to_user_name(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase___at___Lean_Server_Watchdog_RequestData_clearWorkerRequestData_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -91,28 +101,29 @@ static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__18; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_clearWorkerRequestData___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_qsort_sort___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__2___redArg___lam__0(lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5_spec__5___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_FileWorker_waitForProc_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleQueryModule_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__16; lean_object* l_instBEqOfDecidableEq___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_sortModuleImports(lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__0___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls___boxed(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleImportClosure___closed__0; -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__5; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31_spec__31___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__0; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10_spec__10(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__6___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__16(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__18; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ServerRequestData_trackOutboundRequest(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_handleCancelRequest_spec__0(lean_object*); lean_object* l_Lean_Lsp_toJsonWaitForILeans____x40_Lean_Data_Lsp_Extra___hyg_788_(lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__10(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___closed__0; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_____private_Lean_DocString_Links_0__Lean_domainMap_spec__0___redArg(lean_object*, lean_object*); @@ -122,6 +133,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReference(lean_object*, le lean_object* l_Lean_Server_ServerTask_hasFinished___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_matchAgainstQuery_x3f_matchDecl_x3f___lam__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_handleRename_spec__2___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRename(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_CancelParams___hyg_128_(lean_object*); @@ -130,31 +142,27 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handlePrepareModuleHierarchy(lea static lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__7___redArg___lam__0___closed__0; static lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__8_spec__8___closed__0; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_handleDidChange_spec__0(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1_spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleResponseError(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleModuleHierarchyImports___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14_spec__14(size_t, size_t, lean_object*); size_t lean_uint64_to_usize(uint64_t); -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleQueryModule___lam__2___boxed(lean_object*); lean_object* l_Lean_Lsp_fromJsonRpcConnectParams____x40_Lean_Data_Lsp_Extra___hyg_3301_(lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__8___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleRename_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__0_spec__0(uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestData_enqueue___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_JsonRpc_ordRequestID____x40_Lean_Data_JsonRpc___hyg_135_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestData_enqueue___closed__0; +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__2; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__26; lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_12419_; lean_object* l_Lean_Lsp_toJsonLeanDidOpenTextDocumentParams____x40_Lean_Data_Lsp_Extra___hyg_314_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_contains(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleRequest_spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__20; -LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handlePrepareCallHierarchy(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_getD___at___Lean_Server_Watchdog_handleRename_spec__1___redArg(lean_object*, lean_object*, lean_object*); @@ -164,33 +172,38 @@ static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLs static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__6; static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__13; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyFinalizedWorkerILeanVersions(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__9; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_shutdown_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__0_spec__0___redArg___closed__0; static lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__2; static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__7; static lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleRename_spec__5_spec__5___redArg___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21_spec__21(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_shutdown_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__30(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__7; LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_ModuleQueryMatch_fastCompare(lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleQueryModule_spec__1_spec__1___closed__0; uint8_t l_Lean_Name_isAnonymous(lean_object*); static lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__3; lean_object* l_System_FilePath_extension(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_contains___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_matchAgainstQuery_x3f_matchDecl_x3f___lam__0(uint8_t, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_ImportData_update___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_13606_; uint64_t l_Lean_Lsp_hashCallHierarchyItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7299_(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__2___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__7; static lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__1___closed__0; lean_object* l_Lean_Lsp_toJsonCallHierarchyItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7023_(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleReference_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleQueryModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__61; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -209,44 +222,44 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRequest___lam__0(lean_obje lean_object* l_Lean_Lsp_toJsonLeanImport____x40_Lean_Data_Lsp_Extra___hyg_2991_(lean_object*); static lean_object* l_Lean_Server_Watchdog_findWorkerPath___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyReferencesM___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_getenv(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_instInhabitedRequestQueueMap___closed__0; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__19; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyReferencesM___at___Lean_Server_Watchdog_startLoadingReferences_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_getReferences___lam__0___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__11; -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30_spec__30___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5___closed__0; static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__5; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__3; uint8_t lean_float_decLt(double, double); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__16; lean_object* l_Lean_Lsp_fromJsonLeanPrepareModuleHierarchyParams____x40_Lean_Data_Lsp_Extra___hyg_2334_(lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestData_enqueue___closed__2; LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__1_spec__1___closed__0; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_eraseFileWorker_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_Lsp_beqCallHierarchyItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7129_(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__8(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__18; LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__0; +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36(lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__54; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_erase(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__20(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(lean_object*); static lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__4; lean_object* l_Lean_Server_ServerTask_mapCheap___redArg(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__9; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_13606_; uint64_t lean_string_hash(lean_object*); static lean_object* l_List_mapTR_loop___at___Lean_Server_Watchdog_handleWorkspaceSymbol_spec__0___closed__0; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__13; lean_object* l_Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_353_(lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__18; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_TreeSet_ofList___redArg(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mainLoop___closed__4; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleRename_spec__3_spec__3___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -263,16 +276,17 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdo static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__8; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__9; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__0(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_errorPendingRequests___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__4_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__5; static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__27; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_notifyAboutStaleDependency_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__2___lam__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRename___closed__1; lean_object* l_Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_116_(lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Json_mkObj_spec__0___redArg(lean_object*, lean_object*, lean_object*); @@ -288,8 +302,6 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___Ar LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___IO_FS_Stream_writeLspRequest___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__3_spec__3(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_handleDidSave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_findWorkerPath(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Json_opt___at___Lean_Widget_toJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_564__spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleRename_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -300,14 +312,17 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_mainLoop(lean_object*, lean_obje static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__11; LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_handleWorkspaceSymbol___lam__0(lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10_spec__10___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_startLoadingReferences___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_erase___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_12419_; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13606_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__40(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_runClientTask___lam__1(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9_spec__9___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__6_spec__6___closed__0; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_modifyReferencesIO___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -316,11 +331,10 @@ LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_sortModuleImports___lam__1(lean_objec LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_WorkerState_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleDidChange(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonLeanQueryModuleResponse____x40_Lean_Data_Lsp_Internal___hyg_4178_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__39(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__35(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ModuleQueryMatch_compare___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__58; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoFinal___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_modifyReferences(lean_object*, lean_object*, lean_object*); @@ -328,6 +342,7 @@ lean_object* l_String_crlfToLf(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_FileWorker_killProcAndWait(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__0; lean_object* lean_get_stdout(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_emitServerRequestResponseError___lam__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_parseParams___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls___lam__0___boxed(lean_object*); @@ -338,6 +353,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_clearWorkerRequestDa lean_object* l_Lean_Json_getStr_x3f(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_startLoadingReferences_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6_spec__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4___boxed(lean_object*, lean_object*); @@ -350,16 +366,15 @@ static lean_object* l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls___cl static lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__5; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonLeanModuleHierarchyImportedByParams____x40_Lean_Data_Lsp_Extra___hyg_3180_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_13606_; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__10; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleDidChangeWatchedFiles___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__1_spec__1(lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleWorkspaceSymbol(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonLeanFileProgressParams____x40_Lean_Data_Lsp_Extra___hyg_1256_(lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_ModuleQueryMatchScore_compare(lean_object*, lean_object*); @@ -375,7 +390,6 @@ static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLs LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_RequestData_clearWorkerRequestData_spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonCallHierarchyOutgoingCall____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7980_(lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__5; -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_FileWorker_stdin(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__10; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -384,13 +398,14 @@ LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___Lean_Server_Watchdog_init LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestQueueMap_contains_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__6_spec__6(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_JsonNumber_fromInt(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_References_empty; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_terminateFileWorker(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_setWorkerState(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444_(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRename___closed__4; +LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44_spec__44(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleQueryModule___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_updateFileWorkers___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -407,28 +422,28 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_hand LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_eraseFileWorker_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseGetPendingRequest___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__2___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__4; +lean_object* l_Lean_JsonRpc_Request_ofMessage_x3f(lean_object*); lean_object* l_Std_DHashMap_Internal_AssocList_replace___at_____private_Lean_DocString_Links_0__Lean_domainMap_spec__4___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__25; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6_spec__6(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__2_spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyReferencesM___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__1___closed__2; +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_13606_; lean_object* l_Lean_Lsp_fromJsonLeanIleanInfoParams____x40_Lean_Data_Lsp_Internal___hyg_2751_(lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__12; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleModuleHierarchyImportedBy(lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_matchAgainstQuery_x3f_chooseBestMatch_x3f(lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__4; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleRename_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_FileWorker_killProcAndWait___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); @@ -448,11 +463,11 @@ static lean_object* l_Lean_Server_Watchdog_mainLoop___closed__5; static lean_object* l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at___Lean_Server_Watchdog_ImportData_update_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__5(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__0; LEAN_EXPORT lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonCallHierarchyIncomingCall____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7664_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_FileWorker_waitForProc___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4_spec__4(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__12; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__12; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__1; @@ -473,31 +488,24 @@ lean_object* l_Lean_Lsp_fromJsonWorkspaceSymbolParams____x40_Lean_Data_Lsp_Langu LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_instMonadEIO(lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__2; lean_object* l_Lean_Lsp_fromJsonWaitForILeansParams____x40_Lean_Data_Lsp_Extra___hyg_596_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18_spec__18(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleDidSave(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_notifyAboutStaleDependency(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_erasePendingRequest___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_WorkerState_toCtorIdx(uint8_t); -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4; LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__2___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleQueryModule_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__56; +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__2; static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__0___redArg___closed__0; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__14; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__4(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_forwardRequestToWorker_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_mainLoop_spec__0___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestQueueMap_contains_spec__0___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_12419_; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleRequest_spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__3___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__7; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ImportData_update(lean_object*, lean_object*, lean_object*); @@ -511,25 +519,24 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_modifyReferencesIO___lam__0(lean static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__10; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at___Lean_Server_Watchdog_ImportData_update_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleQueryModule___closed__0; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_12419_; lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_getFileWorkerMod_x3f___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_instInhabitedOfMonad___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_emitServerRequestResponseError(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_References_removeWorkerRefs(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_instInhabitedRequestQueueMap; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_erasePendingRequest___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequest_x3f___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__48; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoFinal___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_forwardNotification(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_server_watchdog_main(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___at___Lean_Server_Watchdog_handleQueryModule_spec__3___closed__0; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleILeanHeaderInfo___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__0(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Server_routeLspRequest(lean_object*, lean_object*, lean_object*); @@ -546,44 +553,44 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instEmptyCollect LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonWorkspaceEdit____x40_Lean_Data_Lsp_Basic___hyg_3542_(lean_object*); lean_object* lean_array_to_list(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21_spec__21___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_errorPendingRequests(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonReferenceParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_4156_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_modifyReferences___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleImportClosure___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_modifyReferences___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__29(lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__0___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_839_(lean_object*); static lean_object* l_Lean_Server_Watchdog_terminateFileWorker___closed__2; lean_object* l_IO_FS_Stream_writeLspResponse___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40(lean_object*); -static lean_object* l_Lean_Server_Watchdog_forwardRequestToWorker___closed__2; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_stream_of_handle(lean_object*); lean_object* l_Lean_Lsp_toJsonRpcReleaseParams____x40_Lean_Data_Lsp_Extra___hyg_4067_(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__11; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_handleRename_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36_spec__36___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_WorkerState_noConfusion___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_startLoadingReferences___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__7; lean_object* lean_io_process_spawn(lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonRpcKeepAliveParams____x40_Lean_Data_Lsp_Extra___hyg_4158_(lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_startLoadingReferences_spec__1___lam__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__9; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__39; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_matchAgainstQuery_x3f_matchDecl_x3f___lam__0___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30_spec__30(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_setWorkerState___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleNotification(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17(lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__6___redArg___lam__0___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__18____x40_Lean_Server_Watchdog___hyg_12419_; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__6; +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__0(lean_object*, lean_object*); lean_object* l_Lean_FuzzyMatching_fuzzyMatchScoreWithThreshold_x3f(lean_object*, lean_object*, double); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_log(lean_object*, lean_object*, lean_object*); @@ -599,7 +606,6 @@ lean_object* lean_get_stdin(lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panic___at___Lean_Server_References_importedBy_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequestQueue(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25_spec__25(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__11___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__20; lean_object* l_List_flatMapTR_go___at___toJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_250__spec__0(lean_object*, lean_object*); @@ -612,17 +618,17 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyReferencesM( LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__3(lean_object*, lean_object*); static lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___closed__3; static lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__2___closed__0; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35_spec__35___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspNotification___at___Lean_Server_Watchdog_startFileWorker_spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_CancelParams___hyg_90_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyReferencesM___at___Lean_Server_Watchdog_modifyReferencesIO_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRequest___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_matchAgainstQuery_x3f_matchDecl_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_minView___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6_spec__6(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__5; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_shutdown_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_mainLoop_spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__0; LEAN_EXPORT lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__23; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__3(lean_object*, lean_object*); @@ -633,30 +639,27 @@ lean_object* l_Lean_Server_References_referringTo(lean_object*, lean_object*, ui static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__55; uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_forwardNotification___at___Lean_Server_Watchdog_handleNotification_spec__0_spec__0___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_emitServerRequestResponse___at___Lean_Server_Watchdog_handleQueryModule_spec__3_spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__19; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__42; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_tryWriteMessage(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__3___redArg(lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EStateM_tryCatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestData_enqueue_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__0___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__6; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_terminateFileWorker_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__9(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_forwardRequestToWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__24; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_471_(lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__7; lean_object* l_Lean_Server_RequestError_toLspResponseError(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_workerCfg; lean_object* l_Lean_Server_Ilean_load(lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_emitServerRequestResponseError___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_setWorkerState___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Mutex_new___redArg(lean_object*, lean_object*); @@ -670,20 +673,24 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_instInhabitedRequestData; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleModuleHierarchyImports(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_tryWriteMessage___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ImportData_update___lam__0___boxed(lean_object*, lean_object*); -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoFinal___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__41(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__5(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__4(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___closed__5; static lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__7; +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__5; lean_object* l_List_takeTR_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__2___redArg(lean_object*, lean_object*, lean_object*); @@ -694,7 +701,6 @@ static lean_object* l_Lean_Server_Watchdog_mainLoop___closed__2; lean_object* l_Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_BasicAux___hyg_624_(lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_startLoadingReferences___closed__0; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40_spec__40___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_References_removeIlean(lean_object*, lean_object*); lean_object* l_List_appendTR___redArg(lean_object*, lean_object*); lean_object* l_Lean_Server_References_getDirectImports_x3f(lean_object*, lean_object*); @@ -704,8 +710,10 @@ static lean_object* l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData___c LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__14; lean_object* l_Lean_Server_References_findRange_x3f(lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_get_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__8; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleQueryModule___lam__2(lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__47; static lean_object* l_Lean_Server_Watchdog_mainLoop___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -717,8 +725,8 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fol static lean_object* l_Lean_Server_Watchdog_findWorkerPath___closed__2; LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__4_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestData_enqueue_spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___IO_FS_Stream_writeLspRequest___at___Lean_Server_Watchdog_startFileWorker_spec__0_spec__0(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__6; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_runClientTask___lam__0(lean_object*, lean_object*); @@ -730,20 +738,17 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdo static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__6; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__11(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35(lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_startLoadingReferences_spec__1___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__6; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__15; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_12419_; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__34(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__10; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1___closed__0; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__0; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_; -LEAN_EXPORT lean_object* l_panic___at___Lean_Server_Watchdog_RequestData_enqueue_spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_FileWorker_stdout(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_forwardNotification___at___Lean_Server_Watchdog_handleNotification_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleQueryModule_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -755,6 +760,7 @@ lean_object* l_Lean_Json_opt___at___IO_FS_Stream_writeMessage_spec__0(lean_objec LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__8; lean_object* l_Lean_Server_References_definitionsMatching___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26_spec__26___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleReference_spec__0(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at___fromJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_144__spec__1(lean_object*, lean_object*); @@ -763,17 +769,16 @@ static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__1; static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__5; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleReference_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readMessage(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__62; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__12; -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21___boxed(lean_object*); uint8_t l_Option_beqOption____x40_Init_Data_Option_Basic___hyg_161____at___Lean_SearchPath_findAllWithExt_spec__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonRpcKeepAliveParams____x40_Lean_Data_Lsp_Extra___hyg_4264_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleQueryModule_spec__0(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__4; uint8_t l_Array_contains___at___Lean_registerInternalExceptionId_spec__0(lean_object*, lean_object*); static lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__1; -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__11(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspMessage(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__11; lean_object* lean_array_fget(lean_object*, lean_object*); @@ -781,6 +786,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdo static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__17; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_setWorkerState___lam__0(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_empty; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_beqCallHierarchyItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7129____boxed(lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_eraseFileWorker_spec__1___redArg___closed__1; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__6; @@ -789,27 +795,25 @@ LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___IO_FS_Stream_writeL static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__59; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ServerRequestData_translateInboundResponse(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ReferenceData_modifyReferencesM___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_13606_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__2_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__1_spec__1(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__4___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__13(lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_ServerTask_IO_asTask___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_543_(lean_object*); -lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_searchModuleNameOfFileName(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__16; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_WorkerState_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handlePrepareRename(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_contains___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35_spec__35(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__23; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36_spec__36(size_t, size_t, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__10; +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__8; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_getWorkerState___lam__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); LEAN_EXPORT uint8_t l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__2___redArg___lam__0(lean_object*, lean_object*); @@ -825,6 +829,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__20; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__24; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequestQueue___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_startLoadingReferences___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -841,11 +846,14 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_handleDidSave_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); extern lean_object* l_Lean_searchPathRef; +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_13606_; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleImportClosure(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__51; static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_SemanticTokenModifier_names; lean_object* l_Array_groupByKey___at___Lean_Server_DirectImports_convertImportInfos_spec__3___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__1(size_t, size_t, lean_object*); @@ -867,25 +875,22 @@ LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleDi LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_contains___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__0___closed__0; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14_spec__14___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRequest___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__4_spec__4_spec__4___redArg(lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_enqueue(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__1; LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRename___closed__6; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__11; uint8_t l_String_isPrefixOf(lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_clearWorkerRequestData___boxed(lean_object*, lean_object*); -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__49; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; static lean_object* l_Lean_Server_Watchdog_workerCfg___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_getUri_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson(lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage_spec__0___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__0; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_handleDidSave_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -903,6 +908,7 @@ lean_object* l_Lean_Server_ModuleImport_collapseIdenticalImports_x3f(lean_object uint8_t lean_float_beq(double, double); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__12; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__50; +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_; LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_String_toName(lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handlePrepareCallHierarchy_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*); @@ -910,10 +916,9 @@ uint64_t lean_uint64_xor(uint64_t, uint64_t); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__7; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__17; LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_FileWorker_waitForProc_spec__0___redArg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__24; lean_object* lean_panic_fn(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31_spec__31(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData; -static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__6; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleDidOpen(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___redArg(lean_object*, lean_object*); @@ -924,9 +929,9 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_enqueue___lam__ LEAN_EXPORT lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls___lam__0___boxed(lean_object*); lean_object* l_List_reverse___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_WorkerState_noConfusion___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequest_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__8; @@ -937,17 +942,17 @@ static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__21 lean_object* l_Array_append___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__7___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3___redArg___closed__6; -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonRenameParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11308_(lean_object*); lean_object* l_Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_555_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__0(size_t, size_t, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__0___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_float_decLe(double, double); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleRename_spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_maxView___redArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonLeanStaleDependencyParams____x40_Lean_Data_Lsp_Internal___hyg_3114_(lean_object*); uint8_t l_Lean_isPrivateName(lean_object*); @@ -955,9 +960,10 @@ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Serv LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonLeanModule____x40_Lean_Data_Lsp_Extra___hyg_2262_(lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__32; -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__2(lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_383_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleNotification___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__20; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_matchAgainstQuery_x3f_spec__0(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); @@ -971,11 +977,8 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_getFileWorker_x3f(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__28; lean_object* l_Lean_Lsp_fromJsonPrepareRenameParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11535_(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25_spec__25___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__3; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__12; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls___lam__0(lean_object*); -lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_Structured_fromJson_x3f(lean_object*); static lean_object* l_Lean_Server_Watchdog_terminateFileWorker___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(lean_object*, lean_object*, lean_object*); @@ -985,28 +988,28 @@ lean_object* l_EStateM_instMonadFinally___lam__0(lean_object*, lean_object*, lea lean_object* l_IO_FS_Stream_writeLspResponseError(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_erase(lean_object*, lean_object*, lean_object*); lean_object* l_instMonadLiftT___lam__0___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_modify___at___Lean_Server_Watchdog_RequestData_enqueue_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_empty; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_updateFileWorkers(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__38; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__17; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__15; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5_spec__5(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_handleRename_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__17; static lean_object* l_Lean_Server_Watchdog_mainLoop___closed__0; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); +LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4(lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(lean_object*); lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_matchAgainstQuery_x3f_chooseBestMatch_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_eraseFileWorker_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__7; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__31; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__27; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__1(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__16; static lean_object* l_Lean_Server_Watchdog_emitServerRequestResponse___redArg___closed__3; static lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__0; @@ -1017,6 +1020,7 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleIleanInfoFinal_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_shutdown(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__41; +static lean_object* l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8_spec__8___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1028,19 +1032,17 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_enqueue___lam__ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_getD___at___Lean_Server_Watchdog_handleRename_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__28; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__4; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_; static lean_object* l_Lean_Server_Watchdog_mainLoop___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_forwardNotification___at___Lean_Server_Watchdog_handleNotification_spec__0_spec__0(lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__9; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_CallHierarchyItemData_fromItem_x3f(lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__4; size_t lean_array_size(lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__5; -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoFinal___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_contains___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__4; @@ -1048,9 +1050,7 @@ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Serv LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoFinal(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_eraseFileWorker___lam__2___closed__1; static lean_object* l_Lean_Server_Watchdog_handleDidChangeWatchedFiles___closed__0; -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_RequestData_clearWorkerRequestData_spec__1_spec__1(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleRename_spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1064,11 +1064,11 @@ static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__5; static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__3; LEAN_EXPORT lean_object* l_IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__4_spec__4_spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_findDefinitions___closed__0; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__24(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__1___redArg(lean_object*, lean_object*); lean_object* l_IO_throwServerError___redArg(lean_object*, lean_object*); lean_object* l_Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_607_(lean_object*); @@ -1077,10 +1077,11 @@ lean_object* l_IO_FS_Stream_putStrLn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__2___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleDidClose(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_startLoadingReferences(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRename___closed__2; -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_12419_; static lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__0; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_fromJsonDidSaveTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_781_(lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__19; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1088,18 +1089,18 @@ static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__7; static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__13; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__25(lean_object*, lean_object*); lean_object* l_Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_958_(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_erase___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__0; lean_object* l_Lean_Server_References_addIlean(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8(lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_13606_; lean_object* lean_io_wait(lean_object*, lean_object*); uint8_t l_Lean_Name_isSuffixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_forwardNotification___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleReference_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_callHierarchyItemOf_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(lean_object*); -LEAN_EXPORT lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1(lean_object*); lean_object* l_Lean_Server_References_finalizeWorkerRefs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instInhabitedCallHierarchyOutgoingCall; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleCancelRequest(lean_object*, lean_object*, lean_object*); @@ -1108,7 +1109,6 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Server_moduleFromDocumentUri(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4_spec__4___redArg___closed__0; -lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleNotification___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instInhabitedCallHierarchyIncomingCall; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_modifyReferencesIO(lean_object*, lean_object*, lean_object*); @@ -1123,11 +1123,14 @@ static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__30 static lean_object* l_Lean_Server_Watchdog_notifyAboutStaleDependency___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_getReferences(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestQueueMap_contains_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3_spec__3(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___Lean_Server_Watchdog_RequestDataMutex_clearWorkerRequestData_spec__0___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_hashCallHierarchyItem____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7299____boxed(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__2; static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__10; static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__23; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_getD___at___Lean_Server_Watchdog_handleRename_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1144,31 +1147,30 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_getUri_x3f___la LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ModuleQueryMatchScore_compare___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_forwardNotification___at___Lean_Server_Watchdog_handleNotification_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_getD___at___Lean_Server_Watchdog_handleRename_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at___Lean_Server_Watchdog_ImportData_update_spec__0___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__8; static lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__1; static lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___redArg___closed__0; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleDidChangeWatchedFiles(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40_spec__40(size_t, size_t, lean_object*); static lean_object* l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__35; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__21; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_startLoadingReferences_spec__1___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__3; static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_12419_; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_parseParams___redArg___closed__1; lean_object* l___private_Lean_Data_Lsp_Communication_0__IO_FS_Stream_readLspHeader(lean_object*, lean_object*); +static lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___closed__0; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_FileWorker_killProcAndWait___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_; static lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__9; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_clearWorkerRequestData(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__4; @@ -1181,7 +1183,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRequest___lam__1(lean_obje lean_object* l_EStateM_nonBacktrackable(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_groupByKey___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__3_spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__12(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(lean_object*); +LEAN_EXPORT lean_object* l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11(lean_object*); lean_object* lean_io_process_child_kill(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_ModuleQueryMatch_fastCompare___boxed(lean_object*, lean_object*); lean_object* l_Lean_Server_References_getModuleRefs_x3f(lean_object*, lean_object*); @@ -1190,17 +1192,21 @@ LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Serv LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleIleanInfoUpdate(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestDataMutex_clearWorkerRequestData___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleRename_spec__5_spec__5___redArg___closed__1; -static lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0; lean_object* l_List_drop___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseGetPendingRequest___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_ImportData_update_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__4; LEAN_EXPORT uint8_t l_Lean_Server_Watchdog_RequestQueueMap_contains(lean_object*, lean_object*); +static lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__1; lean_object* l_Lean_Lsp_fromJsonCallHierarchyOutgoingCallsParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7743_(lean_object*); lean_object* l_Lean_SearchPath_findAllWithExt(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__0___closed__0; +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14_spec__14(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleModuleHierarchyImports_spec__2(lean_object*, size_t, size_t, lean_object*); +lean_object* l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleResponse(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instDecidableEqString___boxed(lean_object*, lean_object*); static lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_AssocList_foldlM___at___Lean_Server_Watchdog_handleRename_spec__5_spec__5___redArg___closed__0; @@ -1211,7 +1217,8 @@ LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handlePr LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleRename_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30(lean_object*); +static lean_object* l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9_spec__9(size_t, size_t, lean_object*); lean_object* l_IO_instMonadLiftSTRealWorldBaseIO___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__6___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(lean_object*, lean_object*, lean_object*); @@ -1219,15 +1226,15 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdo lean_object* l_Lean_Server_maybeTee(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleResponseError___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_errorPendingRequests___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__6; static lean_object* l_Lean_Server_Watchdog_handleRequest___closed__6; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_spec__4_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); double lean_float_sub(double, double); -static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_; lean_object* l_Lean_Json_getInt_x3f(lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__8; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls_spec__1(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__7(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__3; +static lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_13606_; static lean_object* l_Lean_Server_Watchdog_handleNotification___closed__8; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Server_Watchdog_handleDidChangeWatchedFiles_spec__6_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Server_Watchdog_workerCfg___closed__0() { @@ -1343,6 +1350,67 @@ x_7 = l_Lean_Server_Watchdog_WorkerState_noConfusion(x_1, x_5, x_6, x_4); return x_7; } } +static lean_object* _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Got param with wrong structure: ", 32, 32); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\n", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +lean_inc(x_2); +x_4 = lean_apply_1(x_1, x_2); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec_ref(x_4); +x_6 = l_Lean_Server_Watchdog_parseParams___redArg___closed__0; +x_7 = l_Lean_Json_compress(x_2); +x_8 = lean_string_append(x_6, x_7); +lean_dec_ref(x_7); +x_9 = l_Lean_Server_Watchdog_parseParams___redArg___closed__1; +x_10 = lean_string_append(x_8, x_9); +x_11 = lean_string_append(x_10, x_5); +lean_dec(x_5); +x_12 = l_IO_throwServerError___redArg(x_11, x_3); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +x_13 = lean_ctor_get(x_4, 0); +lean_inc(x_13); +lean_dec_ref(x_4); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_3); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Server_Watchdog_parseParams___redArg(x_2, x_3, x_4); +return x_5; +} +} static lean_object* _init_l_Lean_Server_Watchdog_instInhabitedRequestQueueMap___closed__0() { _start: { @@ -2018,9 +2086,9 @@ goto block_154; block_147: { lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_nat_add(x_142, x_143); +x_144 = lean_nat_add(x_141, x_143); lean_dec(x_143); -lean_dec(x_142); +lean_dec(x_141); if (lean_is_scalar(x_138)) { x_145 = lean_alloc_ctor(0, 5, 0); } else { @@ -2039,7 +2107,7 @@ if (lean_is_scalar(x_128)) { lean_ctor_set(x_146, 0, x_140); lean_ctor_set(x_146, 1, x_130); lean_ctor_set(x_146, 2, x_131); -lean_ctor_set(x_146, 3, x_141); +lean_ctor_set(x_146, 3, x_142); lean_ctor_set(x_146, 4, x_145); return x_146; } @@ -2066,8 +2134,8 @@ if (lean_obj_tag(x_133) == 0) lean_object* x_152; x_152 = lean_ctor_get(x_133, 0); lean_inc(x_152); -x_141 = x_150; -x_142 = x_151; +x_141 = x_151; +x_142 = x_150; x_143 = x_152; goto block_147; } @@ -2075,8 +2143,8 @@ else { lean_object* x_153; x_153 = lean_unsigned_to_nat(0u); -x_141 = x_150; -x_142 = x_151; +x_141 = x_151; +x_142 = x_150; x_143 = x_153; goto block_147; } @@ -2393,156 +2461,32 @@ x_6 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQue return x_6; } } -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0); -return x_1; -} -} -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0); -return x_1; -} -} -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0); -return x_1; -} -} -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0); -return x_1; -} -} -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0); -return x_1; -} -} -static lean_object* _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_2 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0; -x_3 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1; -x_4 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2; -x_5 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3; -x_6 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4; -x_7 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5; -x_8 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_2); -lean_ctor_set(x_9, 1, x_3); -x_10 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -lean_ctor_set(x_10, 2, x_5); -lean_ctor_set(x_10, 3, x_6); -lean_ctor_set(x_10, 4, x_7); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_8); -x_12 = l_Lean_Server_Watchdog_instInhabitedRequestQueueMap; -x_13 = l_instInhabitedOfMonad___redArg(x_11, x_12); -x_14 = lean_panic_fn(x_13, x_1); -return x_14; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Server.Watchdog", 20, 20); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Server.Watchdog.RequestQueueMap.enqueue", 44, 44); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Got non-request in `RequestQueueMap.enqueue`.", 45, 45); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__2; -x_2 = lean_unsigned_to_nat(10u); -x_3 = lean_unsigned_to_nat(115u); -x_4 = l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__1; -x_5 = l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0; -x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_enqueue(lean_object* x_1, lean_object* x_2) { _start: { -if (lean_obj_tag(x_2) == 0) +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) { -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_ctor_get(x_1, 2); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); x_8 = lean_unsigned_to_nat(1u); -x_9 = lean_nat_add(x_5, x_8); +x_9 = lean_nat_add(x_4, x_8); lean_inc_ref(x_2); -lean_inc(x_5); +lean_inc(x_4); x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 0, x_4); lean_ctor_set(x_10, 1, x_2); -lean_inc(x_3); -x_11 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(x_3, x_10, x_6); +lean_inc(x_7); +x_11 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(x_7, x_10, x_5); x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 0, x_7); lean_ctor_set(x_12, 1, x_2); -x_13 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_PrettyPrinter_Delaborator_OptionsPerPos_insertAt_spec__0___redArg(x_5, x_12, x_7); +x_13 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_PrettyPrinter_Delaborator_OptionsPerPos_insertAt_spec__0___redArg(x_4, x_12, x_6); lean_ctor_set(x_1, 2, x_13); lean_ctor_set(x_1, 1, x_11); lean_ctor_set(x_1, 0, x_9); @@ -2550,7 +2494,7 @@ return x_1; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_14 = lean_ctor_get(x_1, 0); x_15 = lean_ctor_get(x_1, 1); x_16 = lean_ctor_get(x_1, 2); @@ -2558,34 +2502,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_1); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_14, x_17); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_14, x_18); lean_inc_ref(x_2); lean_inc(x_14); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_2); -lean_inc(x_3); -x_20 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(x_3, x_19, x_15); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_3); -lean_ctor_set(x_21, 1, x_2); -x_22 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_PrettyPrinter_Delaborator_OptionsPerPos_insertAt_spec__0___redArg(x_14, x_21, x_16); -x_23 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_23, 0, x_18); -lean_ctor_set(x_23, 1, x_20); -lean_ctor_set(x_23, 2, x_22); -return x_23; -} -} -else -{ -lean_object* x_24; lean_object* x_25; -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_24 = l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__3; -x_25 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1(x_24); -return x_25; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_2); +lean_inc(x_17); +x_21 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(x_17, x_20, x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_17); +lean_ctor_set(x_22, 1, x_2); +x_23 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_PrettyPrinter_Delaborator_OptionsPerPos_insertAt_spec__0___redArg(x_14, x_22, x_16); +x_24 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_24, 0, x_19); +lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 2, x_23); +return x_24; } } } @@ -2796,9 +2732,9 @@ goto block_49; block_42: { lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_nat_add(x_36, x_38); +x_39 = lean_nat_add(x_37, x_38); lean_dec(x_38); -lean_dec(x_36); +lean_dec(x_37); if (lean_is_scalar(x_33)) { x_40 = lean_alloc_ctor(0, 5, 0); } else { @@ -2817,7 +2753,7 @@ if (lean_is_scalar(x_23)) { lean_ctor_set(x_41, 0, x_35); lean_ctor_set(x_41, 1, x_25); lean_ctor_set(x_41, 2, x_26); -lean_ctor_set(x_41, 3, x_37); +lean_ctor_set(x_41, 3, x_36); lean_ctor_set(x_41, 4, x_40); return x_41; } @@ -2844,8 +2780,8 @@ if (lean_obj_tag(x_28) == 0) lean_object* x_47; x_47 = lean_ctor_get(x_28, 0); lean_inc(x_47); -x_36 = x_46; -x_37 = x_45; +x_36 = x_45; +x_37 = x_46; x_38 = x_47; goto block_42; } @@ -2853,8 +2789,8 @@ else { lean_object* x_48; x_48 = lean_unsigned_to_nat(0u); -x_36 = x_46; -x_37 = x_45; +x_36 = x_45; +x_37 = x_46; x_38 = x_48; goto block_42; } @@ -5295,6 +5231,50 @@ return x_19; } } } +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_get_x3f(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec_ref(x_1); +x_4 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__0___redArg(x_3, x_2); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +x_5 = lean_box(0); +return x_5; +} +else +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 0); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +lean_ctor_set(x_4, 0, x_8); +return x_4; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +lean_dec(x_4); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +} +} +} LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestQueueMap_contains_spec__0___redArg(lean_object* x_1, lean_object* x_2) { _start: { @@ -5389,7 +5369,7 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -5397,7 +5377,7 @@ x_5 = lean_apply_2(x_1, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -5408,7 +5388,7 @@ x_4 = lean_apply_2(x_1, lean_box(0), x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -5422,28 +5402,28 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_6, 1); lean_inc(x_9); lean_dec_ref(x_6); -x_10 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__0___boxed), 4, 1); +x_10 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__0___boxed), 4, 1); lean_closure_set(x_10, 0, x_5); x_11 = l_Std_DTreeMap_Internal_Impl_forInStep___redArg(x_2, x_10, x_4, x_7); -x_12 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__1), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__1), 2, 1); lean_closure_set(x_12, 0, x_9); x_13 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_11, x_12); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__2), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__2), 5, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDMessage___lam__0(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_Watchdog_RequestQueueMap_instForInProdRequestIDRequestJson___lam__0(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } @@ -5625,9 +5605,9 @@ goto block_51; block_43: { lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_nat_add(x_37, x_39); +x_40 = lean_nat_add(x_38, x_39); lean_dec(x_39); -lean_dec(x_37); +lean_dec(x_38); if (lean_is_scalar(x_34)) { x_41 = lean_alloc_ctor(0, 5, 0); } else { @@ -5646,7 +5626,7 @@ if (lean_is_scalar(x_24)) { lean_ctor_set(x_42, 0, x_36); lean_ctor_set(x_42, 1, x_27); lean_ctor_set(x_42, 2, x_28); -lean_ctor_set(x_42, 3, x_38); +lean_ctor_set(x_42, 3, x_37); lean_ctor_set(x_42, 4, x_41); return x_42; } @@ -5673,8 +5653,8 @@ if (lean_obj_tag(x_30) == 0) lean_object* x_49; x_49 = lean_ctor_get(x_30, 0); lean_inc(x_49); -x_37 = x_48; -x_38 = x_47; +x_37 = x_47; +x_38 = x_48; x_39 = x_49; goto block_43; } @@ -5682,8 +5662,8 @@ else { lean_object* x_50; x_50 = lean_unsigned_to_nat(0u); -x_37 = x_48; -x_38 = x_47; +x_37 = x_47; +x_38 = x_48; x_39 = x_50; goto block_43; } @@ -6248,9 +6228,9 @@ goto block_184; block_177: { lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_nat_add(x_171, x_173); +x_174 = lean_nat_add(x_172, x_173); lean_dec(x_173); -lean_dec(x_171); +lean_dec(x_172); if (lean_is_scalar(x_168)) { x_175 = lean_alloc_ctor(0, 5, 0); } else { @@ -6269,7 +6249,7 @@ if (lean_is_scalar(x_158)) { lean_ctor_set(x_176, 0, x_170); lean_ctor_set(x_176, 1, x_160); lean_ctor_set(x_176, 2, x_161); -lean_ctor_set(x_176, 3, x_172); +lean_ctor_set(x_176, 3, x_171); lean_ctor_set(x_176, 4, x_175); return x_176; } @@ -6296,8 +6276,8 @@ if (lean_obj_tag(x_163) == 0) lean_object* x_182; x_182 = lean_ctor_get(x_163, 0); lean_inc(x_182); -x_171 = x_181; -x_172 = x_180; +x_171 = x_180; +x_172 = x_181; x_173 = x_182; goto block_177; } @@ -6305,8 +6285,8 @@ else { lean_object* x_183; x_183 = lean_unsigned_to_nat(0u); -x_171 = x_181; -x_172 = x_180; +x_171 = x_180; +x_172 = x_181; x_173 = x_183; goto block_177; } @@ -8345,126 +8325,55 @@ x_4 = l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestD return x_4; } } -LEAN_EXPORT lean_object* l_panic___at___Lean_Server_Watchdog_RequestData_enqueue_spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_2 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0; -x_3 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1; -x_4 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2; -x_5 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3; -x_6 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4; -x_7 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5; -x_8 = l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_2); -lean_ctor_set(x_9, 1, x_3); -x_10 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -lean_ctor_set(x_10, 2, x_5); -lean_ctor_set(x_10, 3, x_6); -lean_ctor_set(x_10, 4, x_7); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_8); -x_12 = l_Lean_Server_Watchdog_instInhabitedRequestData; -x_13 = l_instInhabitedOfMonad___redArg(x_11, x_12); -x_14 = lean_panic_fn(x_13, x_1); -return x_14; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestData_enqueue___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Server.Watchdog.RequestData.enqueue", 40, 40); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestData_enqueue___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Got non-request in `RequestData.enqueue`.", 41, 41); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_RequestData_enqueue___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Server_Watchdog_RequestData_enqueue___closed__1; -x_2 = lean_unsigned_to_nat(10u); -x_3 = lean_unsigned_to_nat(164u); -x_4 = l_Lean_Server_Watchdog_RequestData_enqueue___closed__0; -x_5 = l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0; -x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_enqueue(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_13; -x_4 = lean_ctor_get(x_3, 0); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_13; +x_4 = lean_ctor_get(x_1, 0); lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_7 = x_1; + x_6 = x_1; } else { lean_dec_ref(x_1); - x_7 = lean_box(0); + x_6 = lean_box(0); } -x_13 = l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestData_enqueue_spec__1___redArg(x_2, x_5); +x_13 = l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestData_enqueue_spec__1___redArg(x_2, x_4); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; x_14 = l_Lean_Server_Watchdog_RequestQueueMap_empty; lean_inc_ref(x_2); -x_15 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Json_mkObj_spec__0___redArg(x_2, x_14, x_5); -x_8 = x_15; +x_15 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Json_mkObj_spec__0___redArg(x_2, x_14, x_4); +x_7 = x_15; goto block_12; } else { -x_8 = x_5; +x_7 = x_4; goto block_12; } block_12: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); lean_inc_ref(x_2); -x_9 = l_Std_DTreeMap_Internal_Impl_Const_modify___at___Lean_Server_Watchdog_RequestData_enqueue_spec__0(x_3, x_2, x_8); -x_10 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(x_4, x_2, x_6); -if (lean_is_scalar(x_7)) { +x_9 = l_Std_DTreeMap_Internal_Impl_Const_modify___at___Lean_Server_Watchdog_RequestData_enqueue_spec__0(x_3, x_2, x_7); +x_10 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__0___redArg(x_8, x_2, x_5); +if (lean_is_scalar(x_6)) { x_11 = lean_alloc_ctor(0, 2, 0); } else { - x_11 = x_7; + x_11 = x_6; } lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); return x_11; } } -else -{ -lean_object* x_16; lean_object* x_17; -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_16 = l_Lean_Server_Watchdog_RequestData_enqueue___closed__2; -x_17 = l_panic___at___Lean_Server_Watchdog_RequestData_enqueue_spec__2(x_16); -return x_17; -} -} } LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at___Lean_Server_Watchdog_RequestData_enqueue_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2) { _start: @@ -8681,6 +8590,40 @@ x_4 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_Watchdog_Req return x_4; } } +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequest_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 0); +x_5 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_____private_Lean_Data_Json_Basic_0__Lean_Json_beq_x27_spec__3___redArg(x_4, x_2); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Server_Watchdog_RequestQueueMap_get_x3f(x_7, x_3); +return x_8; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequest_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_Watchdog_RequestData_getRequest_x3f(x_1, x_2, x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_RequestData_getRequestQueue(lean_object* x_1, lean_object* x_2) { _start: { @@ -12007,7 +11950,7 @@ x_7 = l_Lean_Server_Watchdog_errorPendingRequests(x_1, x_6, x_3, x_4, x_5); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_erasePendingRequest___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseGetPendingRequest___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -12025,54 +11968,146 @@ x_10 = lean_st_ref_set(x_3, x_9, x_8); x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { -lean_object* x_12; uint8_t x_13; lean_object* x_14; +lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_10, 0); lean_dec(x_12); -x_13 = l_Lean_Server_Watchdog_RequestData_contains(x_7, x_1, x_2); +x_13 = l_Lean_Server_Watchdog_RequestData_getRequest_x3f(x_7, x_1, x_2); lean_dec_ref(x_1); -x_14 = lean_box(x_13); -lean_ctor_set(x_10, 0, x_14); +lean_dec(x_7); +lean_ctor_set(x_10, 0, x_13); return x_10; } else { -lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); lean_dec(x_10); -x_16 = l_Lean_Server_Watchdog_RequestData_contains(x_7, x_1, x_2); +x_15 = l_Lean_Server_Watchdog_RequestData_getRequest_x3f(x_7, x_1, x_2); lean_dec_ref(x_1); -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_15); -return x_18; +lean_dec(x_7); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_erasePendingRequest(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseGetPendingRequest(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 10); lean_inc_ref(x_5); -x_6 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_erasePendingRequest___lam__0___boxed), 5, 2); +x_6 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_eraseGetPendingRequest___lam__0___boxed), 5, 2); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, x_2); x_7 = l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg(x_5, x_6, x_3, x_4); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_erasePendingRequest___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_eraseGetPendingRequest___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Server_Watchdog_erasePendingRequest___lam__0(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Server_Watchdog_eraseGetPendingRequest___lam__0(x_1, x_2, x_3, x_4, x_5); lean_dec_ref(x_4); lean_dec(x_3); return x_6; } } +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_erasePendingRequest(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Server_Watchdog_eraseGetPendingRequest(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_5, 0); +lean_dec(x_8); +x_9 = 0; +x_10 = lean_box(x_9); +lean_ctor_set(x_5, 0, x_10); +return x_5; +} +else +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_dec(x_5); +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_11); +return x_14; +} +} +else +{ +uint8_t x_15; +lean_dec(x_6); +x_15 = !lean_is_exclusive(x_5); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_5, 0); +lean_dec(x_16); +x_17 = 1; +x_18 = lean_box(x_17); +lean_ctor_set(x_5, 0, x_18); +return x_5; +} +else +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_5, 1); +lean_inc(x_19); +lean_dec(x_5); +x_20 = 1; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_5); +if (x_23 == 0) +{ +return x_5; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_5, 0); +x_25 = lean_ctor_get(x_5, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_5); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_log(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -14631,6 +14666,1351 @@ lean_dec_ref(x_3); return x_5; } } +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_13; +x_13 = lean_usize_dec_lt(x_4, x_3); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec_ref(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_6); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_uget(x_2, x_4); +lean_inc_ref(x_1); +x_16 = l_Lean_Server_References_definitionOf_x3f(x_1, x_15); +if (lean_obj_tag(x_16) == 0) +{ +x_7 = x_5; +x_8 = x_6; +goto block_12; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc_ref(x_18); +lean_dec(x_17); +x_19 = lean_array_push(x_5, x_18); +x_7 = x_19; +x_8 = x_6; +goto block_12; +} +} +block_12: +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_4, x_9); +x_4 = x_10; +x_5 = x_7; +x_6 = x_8; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_7); +return x_8; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_findDefinitions___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_findDefinitions(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l_Lean_Server_Watchdog_getFileWorkerMod_x3f(x_4, x_2, x_3); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +lean_dec_ref(x_2); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_6, 0); +lean_dec(x_9); +x_10 = l_Lean_Server_Watchdog_findDefinitions___closed__0; +lean_ctor_set(x_6, 0, x_10); +return x_6; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_dec(x_6); +x_12 = l_Lean_Server_Watchdog_findDefinitions___closed__0; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_6, 1); +lean_inc(x_14); +lean_dec_ref(x_6); +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +lean_dec(x_7); +x_16 = l_Lean_Server_Watchdog_getReferences(x_2, x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec_ref(x_16); +x_19 = l_Lean_Server_Watchdog_findDefinitions___closed__0; +x_20 = 1; +lean_inc(x_17); +x_21 = l_Lean_Server_References_findAt(x_17, x_15, x_5, x_20); +lean_dec(x_15); +x_22 = lean_array_size(x_21); +x_23 = 0; +x_24 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(x_17, x_21, x_22, x_23, x_19, x_18); +lean_dec_ref(x_21); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_15); +x_25 = !lean_is_exclusive(x_16); +if (x_25 == 0) +{ +return x_16; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_16, 0); +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_16); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_9 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(x_1, x_2, x_7, x_8, x_5, x_6); +lean_dec_ref(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0(x_1, x_2, x_8, x_9, x_5, x_6, x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_findDefinitions___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Server_Watchdog_findDefinitions(x_1, x_2, x_3); +lean_dec_ref(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_12; +x_12 = lean_usize_dec_eq(x_4, x_5); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_uget(x_3, x_4); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_array_push(x_6, x_13); +x_7 = x_15; +goto block_11; +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_13, 0); +lean_inc_ref(x_17); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_19 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +x_22 = 1; +lean_inc(x_1); +x_23 = l_Lean_Name_toString(x_20, x_22, x_1); +lean_inc(x_1); +x_24 = l_Lean_Name_toString(x_21, x_22, x_1); +lean_ctor_set(x_16, 1, x_24); +lean_ctor_set(x_16, 0, x_23); +lean_inc_ref(x_2); +x_25 = l_Lean_Server_References_definitionOf_x3f(x_2, x_16); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +lean_dec_ref(x_17); +lean_dec(x_14); +x_26 = lean_array_push(x_6, x_13); +x_7 = x_26; +goto block_11; +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_13); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_28 = lean_ctor_get(x_13, 1); +lean_dec(x_28); +x_29 = lean_ctor_get(x_13, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_25, 0); +lean_inc(x_30); +lean_dec(x_25); +x_31 = lean_ctor_get(x_30, 0); +lean_inc_ref(x_31); +lean_dec(x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc_ref(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc_ref(x_33); +lean_dec_ref(x_31); +x_34 = !lean_is_exclusive(x_17); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_17, 3); +lean_dec(x_35); +x_36 = lean_ctor_get(x_17, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_17, 1); +lean_dec(x_37); +lean_inc_ref(x_33); +lean_ctor_set(x_17, 3, x_33); +lean_ctor_set(x_17, 2, x_33); +lean_ctor_set(x_17, 1, x_32); +x_38 = lean_array_push(x_6, x_13); +x_7 = x_38; +goto block_11; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_17, 0); +lean_inc(x_39); +lean_dec(x_17); +lean_inc_ref(x_33); +x_40 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_32); +lean_ctor_set(x_40, 2, x_33); +lean_ctor_set(x_40, 3, x_33); +lean_ctor_set(x_13, 0, x_40); +x_41 = lean_array_push(x_6, x_13); +x_7 = x_41; +goto block_11; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_13); +x_42 = lean_ctor_get(x_25, 0); +lean_inc(x_42); +lean_dec(x_25); +x_43 = lean_ctor_get(x_42, 0); +lean_inc_ref(x_43); +lean_dec(x_42); +x_44 = lean_ctor_get(x_43, 0); +lean_inc_ref(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc_ref(x_45); +lean_dec_ref(x_43); +x_46 = lean_ctor_get(x_17, 0); +lean_inc(x_46); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + lean_ctor_release(x_17, 2); + lean_ctor_release(x_17, 3); + x_47 = x_17; +} else { + lean_dec_ref(x_17); + x_47 = lean_box(0); +} +lean_inc_ref(x_45); +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(0, 4, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_44); +lean_ctor_set(x_48, 2, x_45); +lean_ctor_set(x_48, 3, x_45); +x_49 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_14); +lean_ctor_set_uint8(x_49, sizeof(void*)*2, x_19); +x_50 = lean_array_push(x_6, x_49); +x_7 = x_50; +goto block_11; +} +} +} +else +{ +uint8_t x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_51 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +x_52 = lean_ctor_get(x_16, 0); +x_53 = lean_ctor_get(x_16, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_16); +x_54 = 1; +lean_inc(x_1); +x_55 = l_Lean_Name_toString(x_52, x_54, x_1); +lean_inc(x_1); +x_56 = l_Lean_Name_toString(x_53, x_54, x_1); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_inc_ref(x_2); +x_58 = l_Lean_Server_References_definitionOf_x3f(x_2, x_57); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; +lean_dec_ref(x_17); +lean_dec(x_14); +x_59 = lean_array_push(x_6, x_13); +x_7 = x_59; +goto block_11; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + x_60 = x_13; +} else { + lean_dec_ref(x_13); + x_60 = lean_box(0); +} +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_ctor_get(x_61, 0); +lean_inc_ref(x_62); +lean_dec(x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc_ref(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc_ref(x_64); +lean_dec_ref(x_62); +x_65 = lean_ctor_get(x_17, 0); +lean_inc(x_65); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + lean_ctor_release(x_17, 2); + lean_ctor_release(x_17, 3); + x_66 = x_17; +} else { + lean_dec_ref(x_17); + x_66 = lean_box(0); +} +lean_inc_ref(x_64); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 4, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_63); +lean_ctor_set(x_67, 2, x_64); +lean_ctor_set(x_67, 3, x_64); +if (lean_is_scalar(x_60)) { + x_68 = lean_alloc_ctor(0, 2, 1); +} else { + x_68 = x_60; +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_14); +lean_ctor_set_uint8(x_68, sizeof(void*)*2, x_51); +x_69 = lean_array_push(x_6, x_68); +x_7 = x_69; +goto block_11; +} +} +} +} +else +{ +lean_dec_ref(x_2); +lean_dec(x_1); +return x_6; +} +block_11: +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = lean_usize_add(x_4, x_8); +x_4 = x_9; +x_6 = x_7; +goto _start; +} +} +} +static lean_object* _init_l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___closed__0; +x_7 = lean_nat_dec_lt(x_4, x_5); +if (x_7 == 0) +{ +lean_dec_ref(x_2); +lean_dec(x_1); +return x_6; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_le(x_5, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec_ref(x_2); +lean_dec(x_1); +return x_6; +} +else +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_usize_of_nat(x_4); +x_11 = lean_usize_of_nat(x_5); +x_12 = l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0_spec__0(x_1, x_2, x_3, x_10, x_11, x_6); +return x_12; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_ctor_get(x_5, 0); +lean_inc_ref(x_6); +lean_dec(x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_8, x_2, x_6); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3_spec__3(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l_Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_383_(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_array_size(x_1); +x_3 = 0; +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3_spec__3(x_2, x_3, x_1); +x_5 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +lean_inc(x_1); +x_3 = l_Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_4477_(x_1); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec_ref(x_3); +x_5 = l_Lean_Server_Watchdog_parseParams___redArg___closed__0; +x_6 = l_Lean_Json_compress(x_1); +x_7 = lean_string_append(x_5, x_6); +lean_dec_ref(x_6); +x_8 = l_Lean_Server_Watchdog_parseParams___redArg___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = lean_string_append(x_9, x_4); +lean_dec(x_4); +x_11 = l_IO_throwServerError___redArg(x_10, x_2); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +lean_dec_ref(x_3); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_2); +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6_spec__6(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l_Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_116_(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_array_size(x_1); +x_3 = 0; +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6_spec__6(x_2, x_3, x_1); +x_5 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; +} +} +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__8(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; uint8_t x_7; +x_5 = lean_array_uget(x_1, x_2); +x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*2); +lean_dec_ref(x_5); +x_7 = 1; +if (x_6 == 0) +{ +return x_7; +} +else +{ +if (x_4 == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = lean_usize_add(x_2, x_8); +x_2 = x_9; +goto _start; +} +else +{ +return x_7; +} +} +} +else +{ +uint8_t x_11; +x_11 = 0; +return x_11; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9_spec__9(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_array_uget(x_3, x_2); +x_7 = l_Lean_Lsp_fromJsonLeanLocationLink____x40_Lean_Data_Lsp_Internal___hyg_4444_(x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +lean_dec_ref(x_3); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +return x_7; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec_ref(x_7); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_array_uset(x_3, x_2, x_12); +x_14 = 1; +x_15 = lean_usize_add(x_2, x_14); +x_16 = lean_array_uset(x_13, x_2, x_11); +x_2 = x_15; +x_3 = x_16; +goto _start; +} +} +} +} +static lean_object* _init_l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("expected JSON array, got '", 26, 26); +return x_1; +} +} +static lean_object* _init_l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("'", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; +x_2 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_2); +lean_dec(x_1); +x_3 = lean_array_size(x_2); +x_4 = 0; +x_5 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9_spec__9(x_3, x_4, x_2); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_6 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0; +x_7 = lean_unsigned_to_nat(80u); +x_8 = l_Lean_Json_pretty(x_1, x_7); +x_9 = lean_string_append(x_6, x_8); +lean_dec_ref(x_8); +x_10 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; +x_11 = lean_string_append(x_9, x_10); +x_12 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_12, 0, x_11); +return x_12; +} +} +} +static lean_object* _init_l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty(lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11___closed__0; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_matchAgainstQuery_x3f_matchDecl_x3f___lam__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Server.Watchdog", 20, 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Server.Watchdog.handleResponseSpecialCases", 47, 47); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Expected `LeanLocationLink` in file worker response to definition request. Error: ", 82, 82); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(". Got: ", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(".", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("textDocument/definition", 23, 23); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("textDocument/declaration", 24, 24); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("textDocument/typeDefinition", 27, 27); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleResponseSpecialCases(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_78; lean_object* x_79; lean_object* x_99; uint8_t x_100; +x_22 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_22); +x_23 = lean_ctor_get(x_1, 2); +lean_inc(x_23); +lean_dec_ref(x_1); +x_58 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; +x_99 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__6; +x_100 = lean_string_dec_eq(x_22, x_99); +if (x_100 == 0) +{ +lean_object* x_101; uint8_t x_102; +x_101 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__7; +x_102 = lean_string_dec_eq(x_22, x_101); +if (x_102 == 0) +{ +lean_object* x_103; uint8_t x_104; +x_103 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__8; +x_104 = lean_string_dec_eq(x_22, x_103); +lean_dec_ref(x_22); +if (x_104 == 0) +{ +lean_object* x_105; +lean_dec(x_23); +lean_dec_ref(x_3); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_2); +lean_ctor_set(x_105, 1, x_4); +return x_105; +} +else +{ +x_78 = x_3; +x_79 = x_4; +goto block_98; +} +} +else +{ +lean_dec_ref(x_22); +x_78 = x_3; +x_79 = x_4; +goto block_98; +} +} +else +{ +lean_dec_ref(x_22); +x_78 = x_3; +x_79 = x_4; +goto block_98; +} +block_21: +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_2, 1); +lean_dec(x_8); +x_9 = lean_array_size(x_5); +x_10 = 0; +x_11 = l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2(x_9, x_10, x_5); +x_12 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3(x_11); +lean_ctor_set(x_2, 1, x_12); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_2); +lean_ctor_set(x_13, 1, x_6); +return x_13; +} +else +{ +lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +lean_dec(x_2); +x_15 = lean_array_size(x_5); +x_16 = 0; +x_17 = l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2(x_15, x_16, x_5); +x_18 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3(x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_6); +return x_20; +} +} +block_57: +{ +lean_object* x_27; +x_27 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__5(x_23, x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec_ref(x_27); +x_30 = l_Lean_Server_Watchdog_findDefinitions(x_28, x_26, x_29); +lean_dec(x_28); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +x_34 = l_Array_isEmpty___redArg(x_32); +if (x_34 == 0) +{ +uint8_t x_35; +lean_dec_ref(x_25); +x_35 = !lean_is_exclusive(x_2); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_2, 1); +lean_dec(x_36); +x_37 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(x_32); +lean_ctor_set(x_2, 1, x_37); +lean_ctor_set(x_30, 0, x_2); +return x_30; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_2, 0); +lean_inc(x_38); +lean_dec(x_2); +x_39 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(x_32); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_30, 0, x_40); +return x_30; +} +} +else +{ +lean_free_object(x_30); +lean_dec(x_32); +x_5 = x_25; +x_6 = x_33; +goto block_21; +} +} +else +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_30, 0); +x_42 = lean_ctor_get(x_30, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_30); +x_43 = l_Array_isEmpty___redArg(x_41); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec_ref(x_25); +x_44 = lean_ctor_get(x_2, 0); +lean_inc(x_44); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + x_45 = x_2; +} else { + lean_dec_ref(x_2); + x_45 = lean_box(0); +} +x_46 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(x_41); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_42); +return x_48; +} +else +{ +lean_dec(x_41); +x_5 = x_25; +x_6 = x_42; +goto block_21; +} +} +} +else +{ +uint8_t x_49; +lean_dec_ref(x_25); +lean_dec_ref(x_2); +x_49 = !lean_is_exclusive(x_30); +if (x_49 == 0) +{ +return x_30; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_30, 0); +x_51 = lean_ctor_get(x_30, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_30); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec_ref(x_26); +lean_dec_ref(x_25); +lean_dec_ref(x_2); +x_53 = !lean_is_exclusive(x_27); +if (x_53 == 0) +{ +return x_27; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_27, 0); +x_55 = lean_ctor_get(x_27, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_27); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +block_77: +{ +lean_object* x_62; +lean_inc_ref(x_60); +x_62 = l_Lean_Server_Watchdog_getReferences(x_60, x_59); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec_ref(x_62); +x_65 = lean_unsigned_to_nat(0u); +x_66 = lean_array_get_size(x_61); +x_67 = l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0(x_58, x_63, x_61, x_65, x_66); +lean_dec(x_66); +lean_dec_ref(x_61); +x_68 = lean_array_get_size(x_67); +x_69 = lean_nat_dec_lt(x_65, x_68); +if (x_69 == 0) +{ +lean_dec(x_68); +x_24 = x_64; +x_25 = x_67; +x_26 = x_60; +goto block_57; +} +else +{ +if (x_69 == 0) +{ +lean_dec(x_68); +x_24 = x_64; +x_25 = x_67; +x_26 = x_60; +goto block_57; +} +else +{ +size_t x_70; size_t x_71; uint8_t x_72; +x_70 = 0; +x_71 = lean_usize_of_nat(x_68); +lean_dec(x_68); +x_72 = l_Array_anyMUnsafe_any___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__8(x_67, x_70, x_71); +if (x_72 == 0) +{ +x_24 = x_64; +x_25 = x_67; +x_26 = x_60; +goto block_57; +} +else +{ +lean_dec_ref(x_60); +lean_dec(x_23); +x_5 = x_67; +x_6 = x_64; +goto block_21; +} +} +} +} +else +{ +uint8_t x_73; +lean_dec_ref(x_61); +lean_dec_ref(x_60); +lean_dec(x_23); +lean_dec_ref(x_2); +x_73 = !lean_is_exclusive(x_62); +if (x_73 == 0) +{ +return x_62; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_62, 0); +x_75 = lean_ctor_get(x_62, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_62); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +block_98: +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_2, 1); +lean_inc(x_80); +lean_inc(x_80); +x_81 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9(x_80); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +lean_dec_ref(x_81); +x_83 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__1; +x_84 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__2; +x_85 = lean_unsigned_to_nat(662u); +x_86 = lean_unsigned_to_nat(22u); +x_87 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__3; +x_88 = lean_string_append(x_87, x_82); +lean_dec(x_82); +x_89 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__4; +x_90 = lean_string_append(x_88, x_89); +x_91 = l_Lean_Json_compress(x_80); +x_92 = lean_string_append(x_90, x_91); +lean_dec_ref(x_91); +x_93 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5; +x_94 = lean_string_append(x_92, x_93); +x_95 = l_mkPanicMessageWithDecl(x_83, x_84, x_85, x_86, x_94); +lean_dec_ref(x_94); +x_96 = l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11(x_95); +x_59 = x_79; +x_60 = x_78; +x_61 = x_96; +goto block_77; +} +else +{ +lean_object* x_97; +lean_dec(x_80); +x_97 = lean_ctor_get(x_81, 0); +lean_inc(x_97); +lean_dec_ref(x_81); +x_59 = x_79; +x_60 = x_78; +x_61 = x_97; +goto block_77; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = l_Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0_spec__0(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec_ref(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__2(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__3_spec__3(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6_spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6_spec__6(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Array_anyMUnsafe_any___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__8(x_1, x_4, x_5); +lean_dec_ref(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9_spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9_spec__9(x_4, x_5, x_3); +return x_6; +} +} LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at_____private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage_spec__0___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -16768,7 +18148,7 @@ return x_396; } case 2: { -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_dec_ref(x_3); x_397 = lean_ctor_get(x_8, 1); lean_inc(x_397); @@ -16778,159 +18158,155 @@ lean_inc_ref(x_398); x_399 = lean_ctor_get(x_1, 0); lean_inc_ref(x_399); lean_dec_ref(x_1); -x_400 = lean_ctor_get(x_2, 0); -lean_inc(x_400); -x_401 = l_Lean_Server_Watchdog_erasePendingRequest(x_399, x_400, x_6, x_397); -if (lean_obj_tag(x_401) == 0) +x_400 = !lean_is_exclusive(x_2); +if (x_400 == 0) { -lean_object* x_402; uint8_t x_403; -x_402 = lean_ctor_get(x_401, 0); -lean_inc(x_402); -x_403 = lean_unbox(x_402); +lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_401 = lean_ctor_get(x_2, 0); +x_402 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_6); +lean_inc(x_401); +x_403 = l_Lean_Server_Watchdog_eraseGetPendingRequest(x_399, x_401, x_6, x_397); +if (lean_obj_tag(x_403) == 0) +{ +lean_object* x_404; +x_404 = lean_ctor_get(x_403, 0); +lean_inc(x_404); +if (lean_obj_tag(x_404) == 0) +{ +uint8_t x_405; +lean_free_object(x_2); lean_dec(x_402); -if (x_403 == 0) -{ -uint8_t x_404; +lean_dec(x_401); lean_dec_ref(x_398); -lean_dec_ref(x_2); -x_404 = !lean_is_exclusive(x_401); -if (x_404 == 0) +lean_dec_ref(x_6); +x_405 = !lean_is_exclusive(x_403); +if (x_405 == 0) { -lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_405 = lean_ctor_get(x_401, 0); -lean_dec(x_405); -x_406 = lean_box(0); -x_407 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_407, 0, x_406); -lean_ctor_set(x_407, 1, x_5); -lean_ctor_set(x_401, 0, x_407); -return x_401; +lean_object* x_406; lean_object* x_407; lean_object* x_408; +x_406 = lean_ctor_get(x_403, 0); +lean_dec(x_406); +x_407 = lean_box(0); +x_408 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_408, 0, x_407); +lean_ctor_set(x_408, 1, x_5); +lean_ctor_set(x_403, 0, x_408); +return x_403; } else { -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; -x_408 = lean_ctor_get(x_401, 1); -lean_inc(x_408); -lean_dec(x_401); -x_409 = lean_box(0); -x_410 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_5); +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_409 = lean_ctor_get(x_403, 1); +lean_inc(x_409); +lean_dec(x_403); +x_410 = lean_box(0); x_411 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_411, 0, x_410); -lean_ctor_set(x_411, 1, x_408); -return x_411; +lean_ctor_set(x_411, 1, x_5); +x_412 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_412, 0, x_411); +lean_ctor_set(x_412, 1, x_409); +return x_412; } } else { -lean_object* x_412; lean_object* x_413; -x_412 = lean_ctor_get(x_401, 1); -lean_inc(x_412); -lean_dec_ref(x_401); -x_413 = l_IO_FS_Stream_writeLspMessage(x_398, x_2, x_412); -if (lean_obj_tag(x_413) == 0) +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_413 = lean_ctor_get(x_403, 1); +lean_inc(x_413); +lean_dec_ref(x_403); +x_414 = lean_ctor_get(x_404, 0); +lean_inc(x_414); +lean_dec(x_404); +x_415 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_415, 0, x_401); +lean_ctor_set(x_415, 1, x_402); +x_416 = l_Lean_Server_Watchdog_handleResponseSpecialCases(x_414, x_415, x_6, x_413); +if (lean_obj_tag(x_416) == 0) { -uint8_t x_414; -x_414 = !lean_is_exclusive(x_413); -if (x_414 == 0) -{ -lean_object* x_415; lean_object* x_416; -x_415 = lean_ctor_get(x_413, 0); -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_5); -lean_ctor_set(x_413, 0, x_416); -return x_413; -} -else -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_417 = lean_ctor_get(x_413, 0); -x_418 = lean_ctor_get(x_413, 1); -lean_inc(x_418); +lean_object* x_417; lean_object* x_418; uint8_t x_419; +x_417 = lean_ctor_get(x_416, 0); lean_inc(x_417); -lean_dec(x_413); -x_419 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_419, 0, x_417); -lean_ctor_set(x_419, 1, x_5); -x_420 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_418); -return x_420; -} +x_418 = lean_ctor_get(x_416, 1); +lean_inc(x_418); +lean_dec_ref(x_416); +x_419 = !lean_is_exclusive(x_417); +if (x_419 == 0) +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_420 = lean_ctor_get(x_417, 0); +x_421 = lean_ctor_get(x_417, 1); +lean_ctor_set(x_2, 1, x_421); +lean_ctor_set(x_2, 0, x_420); +x_422 = l_IO_FS_Stream_writeLspMessage(x_398, x_2, x_418); +if (lean_obj_tag(x_422) == 0) +{ +uint8_t x_423; +x_423 = !lean_is_exclusive(x_422); +if (x_423 == 0) +{ +lean_object* x_424; +x_424 = lean_ctor_get(x_422, 0); +lean_ctor_set(x_417, 1, x_5); +lean_ctor_set(x_417, 0, x_424); +lean_ctor_set(x_422, 0, x_417); +return x_422; } else { -uint8_t x_421; -lean_dec(x_5); -x_421 = !lean_is_exclusive(x_413); -if (x_421 == 0) -{ -return x_413; -} -else -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_422 = lean_ctor_get(x_413, 0); -x_423 = lean_ctor_get(x_413, 1); -lean_inc(x_423); -lean_inc(x_422); -lean_dec(x_413); -x_424 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_423); -return x_424; -} -} -} -} -else -{ -uint8_t x_425; -lean_dec_ref(x_398); -lean_dec(x_5); -lean_dec_ref(x_2); -x_425 = !lean_is_exclusive(x_401); -if (x_425 == 0) -{ -return x_401; -} -else -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = lean_ctor_get(x_401, 0); -x_427 = lean_ctor_get(x_401, 1); -lean_inc(x_427); +lean_object* x_425; lean_object* x_426; lean_object* x_427; +x_425 = lean_ctor_get(x_422, 0); +x_426 = lean_ctor_get(x_422, 1); lean_inc(x_426); -lean_dec(x_401); -x_428 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_428, 0, x_426); -lean_ctor_set(x_428, 1, x_427); -return x_428; +lean_inc(x_425); +lean_dec(x_422); +lean_ctor_set(x_417, 1, x_5); +lean_ctor_set(x_417, 0, x_425); +x_427 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_427, 0, x_417); +lean_ctor_set(x_427, 1, x_426); +return x_427; } } -} -default: +else { -lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; uint8_t x_433; lean_object* x_434; -lean_dec_ref(x_3); -x_429 = lean_ctor_get(x_8, 1); +uint8_t x_428; +lean_free_object(x_417); +lean_dec(x_5); +x_428 = !lean_is_exclusive(x_422); +if (x_428 == 0) +{ +return x_422; +} +else +{ +lean_object* x_429; lean_object* x_430; lean_object* x_431; +x_429 = lean_ctor_get(x_422, 0); +x_430 = lean_ctor_get(x_422, 1); +lean_inc(x_430); lean_inc(x_429); -lean_dec_ref(x_8); -x_430 = lean_ctor_get(x_6, 1); -lean_inc_ref(x_430); -x_431 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_431); -lean_dec_ref(x_1); -x_432 = lean_ctor_get(x_2, 0); +lean_dec(x_422); +x_431 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_431, 0, x_429); +lean_ctor_set(x_431, 1, x_430); +return x_431; +} +} +} +else +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_432 = lean_ctor_get(x_417, 0); +x_433 = lean_ctor_get(x_417, 1); +lean_inc(x_433); lean_inc(x_432); -x_433 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -lean_inc(x_432); -x_434 = l_Lean_Server_Watchdog_erasePendingRequest(x_431, x_432, x_6, x_429); +lean_dec(x_417); +lean_ctor_set(x_2, 1, x_433); +lean_ctor_set(x_2, 0, x_432); +x_434 = l_IO_FS_Stream_writeLspMessage(x_398, x_2, x_418); if (lean_obj_tag(x_434) == 0) { -lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_457; +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; x_435 = lean_ctor_get(x_434, 0); lean_inc(x_435); x_436 = lean_ctor_get(x_434, 1); @@ -16943,125 +18319,452 @@ if (lean_is_exclusive(x_434)) { lean_dec_ref(x_434); x_437 = lean_box(0); } -x_457 = lean_box(x_433); -if (lean_obj_tag(x_457) == 8) -{ -lean_object* x_458; -lean_inc(x_5); -x_458 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__0___redArg(x_5, x_432); -if (lean_obj_tag(x_458) == 0) -{ -x_438 = x_5; -x_439 = x_436; -goto block_456; -} -else -{ -lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; -x_459 = lean_ctor_get(x_458, 0); -lean_inc(x_459); -lean_dec(x_458); -x_460 = lean_ctor_get(x_459, 1); -lean_inc(x_460); -lean_dec(x_459); -x_461 = l_IO_CancelToken_set(x_460, x_436); -lean_dec(x_460); -x_462 = lean_ctor_get(x_461, 1); -lean_inc(x_462); -lean_dec_ref(x_461); -x_438 = x_5; -x_439 = x_462; -goto block_456; -} -} -else -{ -lean_dec(x_457); -lean_dec(x_432); -x_438 = x_5; -x_439 = x_436; -goto block_456; -} -block_456: -{ -uint8_t x_440; -x_440 = lean_unbox(x_435); -lean_dec(x_435); -if (x_440 == 0) -{ -lean_object* x_441; lean_object* x_442; lean_object* x_443; -lean_dec_ref(x_430); -lean_dec_ref(x_2); -x_441 = lean_box(0); -x_442 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_442, 0, x_441); -lean_ctor_set(x_442, 1, x_438); +x_438 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_438, 0, x_435); +lean_ctor_set(x_438, 1, x_5); if (lean_is_scalar(x_437)) { - x_443 = lean_alloc_ctor(0, 2, 0); + x_439 = lean_alloc_ctor(0, 2, 0); } else { - x_443 = x_437; + x_439 = x_437; } -lean_ctor_set(x_443, 0, x_442); -lean_ctor_set(x_443, 1, x_439); +lean_ctor_set(x_439, 0, x_438); +lean_ctor_set(x_439, 1, x_436); +return x_439; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; +lean_dec(x_5); +x_440 = lean_ctor_get(x_434, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_434, 1); +lean_inc(x_441); +if (lean_is_exclusive(x_434)) { + lean_ctor_release(x_434, 0); + lean_ctor_release(x_434, 1); + x_442 = x_434; +} else { + lean_dec_ref(x_434); + x_442 = lean_box(0); +} +if (lean_is_scalar(x_442)) { + x_443 = lean_alloc_ctor(1, 2, 0); +} else { + x_443 = x_442; +} +lean_ctor_set(x_443, 0, x_440); +lean_ctor_set(x_443, 1, x_441); return x_443; } -else -{ -lean_object* x_444; -lean_dec(x_437); -x_444 = l_IO_FS_Stream_writeLspMessage(x_430, x_2, x_439); -if (lean_obj_tag(x_444) == 0) -{ -uint8_t x_445; -x_445 = !lean_is_exclusive(x_444); -if (x_445 == 0) -{ -lean_object* x_446; lean_object* x_447; -x_446 = lean_ctor_get(x_444, 0); -x_447 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_447, 0, x_446); -lean_ctor_set(x_447, 1, x_438); -lean_ctor_set(x_444, 0, x_447); -return x_444; +} } else { -lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_448 = lean_ctor_get(x_444, 0); -x_449 = lean_ctor_get(x_444, 1); +uint8_t x_444; +lean_free_object(x_2); +lean_dec_ref(x_398); +lean_dec(x_5); +x_444 = !lean_is_exclusive(x_416); +if (x_444 == 0) +{ +return x_416; +} +else +{ +lean_object* x_445; lean_object* x_446; lean_object* x_447; +x_445 = lean_ctor_get(x_416, 0); +x_446 = lean_ctor_get(x_416, 1); +lean_inc(x_446); +lean_inc(x_445); +lean_dec(x_416); +x_447 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_447, 0, x_445); +lean_ctor_set(x_447, 1, x_446); +return x_447; +} +} +} +} +else +{ +uint8_t x_448; +lean_free_object(x_2); +lean_dec(x_402); +lean_dec(x_401); +lean_dec_ref(x_398); +lean_dec_ref(x_6); +lean_dec(x_5); +x_448 = !lean_is_exclusive(x_403); +if (x_448 == 0) +{ +return x_403; +} +else +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_449 = lean_ctor_get(x_403, 0); +x_450 = lean_ctor_get(x_403, 1); +lean_inc(x_450); lean_inc(x_449); -lean_inc(x_448); -lean_dec(x_444); -x_450 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_450, 0, x_448); -lean_ctor_set(x_450, 1, x_438); -x_451 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_451, 0, x_450); -lean_ctor_set(x_451, 1, x_449); +lean_dec(x_403); +x_451 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_451, 0, x_449); +lean_ctor_set(x_451, 1, x_450); return x_451; } } -else -{ -uint8_t x_452; -lean_dec(x_438); -x_452 = !lean_is_exclusive(x_444); -if (x_452 == 0) -{ -return x_444; } else { -lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_453 = lean_ctor_get(x_444, 0); -x_454 = lean_ctor_get(x_444, 1); -lean_inc(x_454); +lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_452 = lean_ctor_get(x_2, 0); +x_453 = lean_ctor_get(x_2, 1); lean_inc(x_453); -lean_dec(x_444); -x_455 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_455, 0, x_453); -lean_ctor_set(x_455, 1, x_454); -return x_455; +lean_inc(x_452); +lean_dec(x_2); +lean_inc_ref(x_6); +lean_inc(x_452); +x_454 = l_Lean_Server_Watchdog_eraseGetPendingRequest(x_399, x_452, x_6, x_397); +if (lean_obj_tag(x_454) == 0) +{ +lean_object* x_455; +x_455 = lean_ctor_get(x_454, 0); +lean_inc(x_455); +if (lean_obj_tag(x_455) == 0) +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; +lean_dec(x_453); +lean_dec(x_452); +lean_dec_ref(x_398); +lean_dec_ref(x_6); +x_456 = lean_ctor_get(x_454, 1); +lean_inc(x_456); +if (lean_is_exclusive(x_454)) { + lean_ctor_release(x_454, 0); + lean_ctor_release(x_454, 1); + x_457 = x_454; +} else { + lean_dec_ref(x_454); + x_457 = lean_box(0); +} +x_458 = lean_box(0); +x_459 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_459, 0, x_458); +lean_ctor_set(x_459, 1, x_5); +if (lean_is_scalar(x_457)) { + x_460 = lean_alloc_ctor(0, 2, 0); +} else { + x_460 = x_457; +} +lean_ctor_set(x_460, 0, x_459); +lean_ctor_set(x_460, 1, x_456); +return x_460; +} +else +{ +lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; +x_461 = lean_ctor_get(x_454, 1); +lean_inc(x_461); +lean_dec_ref(x_454); +x_462 = lean_ctor_get(x_455, 0); +lean_inc(x_462); +lean_dec(x_455); +x_463 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_463, 0, x_452); +lean_ctor_set(x_463, 1, x_453); +x_464 = l_Lean_Server_Watchdog_handleResponseSpecialCases(x_462, x_463, x_6, x_461); +if (lean_obj_tag(x_464) == 0) +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; +x_465 = lean_ctor_get(x_464, 0); +lean_inc(x_465); +x_466 = lean_ctor_get(x_464, 1); +lean_inc(x_466); +lean_dec_ref(x_464); +x_467 = lean_ctor_get(x_465, 0); +lean_inc(x_467); +x_468 = lean_ctor_get(x_465, 1); +lean_inc(x_468); +if (lean_is_exclusive(x_465)) { + lean_ctor_release(x_465, 0); + lean_ctor_release(x_465, 1); + x_469 = x_465; +} else { + lean_dec_ref(x_465); + x_469 = lean_box(0); +} +x_470 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_470, 0, x_467); +lean_ctor_set(x_470, 1, x_468); +x_471 = l_IO_FS_Stream_writeLspMessage(x_398, x_470, x_466); +if (lean_obj_tag(x_471) == 0) +{ +lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; +x_472 = lean_ctor_get(x_471, 0); +lean_inc(x_472); +x_473 = lean_ctor_get(x_471, 1); +lean_inc(x_473); +if (lean_is_exclusive(x_471)) { + lean_ctor_release(x_471, 0); + lean_ctor_release(x_471, 1); + x_474 = x_471; +} else { + lean_dec_ref(x_471); + x_474 = lean_box(0); +} +if (lean_is_scalar(x_469)) { + x_475 = lean_alloc_ctor(0, 2, 0); +} else { + x_475 = x_469; +} +lean_ctor_set(x_475, 0, x_472); +lean_ctor_set(x_475, 1, x_5); +if (lean_is_scalar(x_474)) { + x_476 = lean_alloc_ctor(0, 2, 0); +} else { + x_476 = x_474; +} +lean_ctor_set(x_476, 0, x_475); +lean_ctor_set(x_476, 1, x_473); +return x_476; +} +else +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; +lean_dec(x_469); +lean_dec(x_5); +x_477 = lean_ctor_get(x_471, 0); +lean_inc(x_477); +x_478 = lean_ctor_get(x_471, 1); +lean_inc(x_478); +if (lean_is_exclusive(x_471)) { + lean_ctor_release(x_471, 0); + lean_ctor_release(x_471, 1); + x_479 = x_471; +} else { + lean_dec_ref(x_471); + x_479 = lean_box(0); +} +if (lean_is_scalar(x_479)) { + x_480 = lean_alloc_ctor(1, 2, 0); +} else { + x_480 = x_479; +} +lean_ctor_set(x_480, 0, x_477); +lean_ctor_set(x_480, 1, x_478); +return x_480; +} +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; +lean_dec_ref(x_398); +lean_dec(x_5); +x_481 = lean_ctor_get(x_464, 0); +lean_inc(x_481); +x_482 = lean_ctor_get(x_464, 1); +lean_inc(x_482); +if (lean_is_exclusive(x_464)) { + lean_ctor_release(x_464, 0); + lean_ctor_release(x_464, 1); + x_483 = x_464; +} else { + lean_dec_ref(x_464); + x_483 = lean_box(0); +} +if (lean_is_scalar(x_483)) { + x_484 = lean_alloc_ctor(1, 2, 0); +} else { + x_484 = x_483; +} +lean_ctor_set(x_484, 0, x_481); +lean_ctor_set(x_484, 1, x_482); +return x_484; +} +} +} +else +{ +lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; +lean_dec(x_453); +lean_dec(x_452); +lean_dec_ref(x_398); +lean_dec_ref(x_6); +lean_dec(x_5); +x_485 = lean_ctor_get(x_454, 0); +lean_inc(x_485); +x_486 = lean_ctor_get(x_454, 1); +lean_inc(x_486); +if (lean_is_exclusive(x_454)) { + lean_ctor_release(x_454, 0); + lean_ctor_release(x_454, 1); + x_487 = x_454; +} else { + lean_dec_ref(x_454); + x_487 = lean_box(0); +} +if (lean_is_scalar(x_487)) { + x_488 = lean_alloc_ctor(1, 2, 0); +} else { + x_488 = x_487; +} +lean_ctor_set(x_488, 0, x_485); +lean_ctor_set(x_488, 1, x_486); +return x_488; +} +} +} +default: +{ +lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; lean_object* x_494; +lean_dec_ref(x_3); +x_489 = lean_ctor_get(x_8, 1); +lean_inc(x_489); +lean_dec_ref(x_8); +x_490 = lean_ctor_get(x_6, 1); +lean_inc_ref(x_490); +x_491 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_491); +lean_dec_ref(x_1); +x_492 = lean_ctor_get(x_2, 0); +lean_inc(x_492); +x_493 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +lean_inc(x_492); +x_494 = l_Lean_Server_Watchdog_erasePendingRequest(x_491, x_492, x_6, x_489); +if (lean_obj_tag(x_494) == 0) +{ +lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_517; +x_495 = lean_ctor_get(x_494, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_494, 1); +lean_inc(x_496); +if (lean_is_exclusive(x_494)) { + lean_ctor_release(x_494, 0); + lean_ctor_release(x_494, 1); + x_497 = x_494; +} else { + lean_dec_ref(x_494); + x_497 = lean_box(0); +} +x_517 = lean_box(x_493); +if (lean_obj_tag(x_517) == 8) +{ +lean_object* x_518; +lean_inc(x_5); +x_518 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_Server_Watchdog_RequestQueueMap_erase_spec__0___redArg(x_5, x_492); +if (lean_obj_tag(x_518) == 0) +{ +x_498 = x_5; +x_499 = x_496; +goto block_516; +} +else +{ +lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; +x_519 = lean_ctor_get(x_518, 0); +lean_inc(x_519); +lean_dec(x_518); +x_520 = lean_ctor_get(x_519, 1); +lean_inc(x_520); +lean_dec(x_519); +x_521 = l_IO_CancelToken_set(x_520, x_496); +lean_dec(x_520); +x_522 = lean_ctor_get(x_521, 1); +lean_inc(x_522); +lean_dec_ref(x_521); +x_498 = x_5; +x_499 = x_522; +goto block_516; +} +} +else +{ +lean_dec(x_517); +lean_dec(x_492); +x_498 = x_5; +x_499 = x_496; +goto block_516; +} +block_516: +{ +uint8_t x_500; +x_500 = lean_unbox(x_495); +lean_dec(x_495); +if (x_500 == 0) +{ +lean_object* x_501; lean_object* x_502; lean_object* x_503; +lean_dec_ref(x_490); +lean_dec_ref(x_2); +x_501 = lean_box(0); +x_502 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_502, 0, x_501); +lean_ctor_set(x_502, 1, x_498); +if (lean_is_scalar(x_497)) { + x_503 = lean_alloc_ctor(0, 2, 0); +} else { + x_503 = x_497; +} +lean_ctor_set(x_503, 0, x_502); +lean_ctor_set(x_503, 1, x_499); +return x_503; +} +else +{ +lean_object* x_504; +lean_dec(x_497); +x_504 = l_IO_FS_Stream_writeLspMessage(x_490, x_2, x_499); +if (lean_obj_tag(x_504) == 0) +{ +uint8_t x_505; +x_505 = !lean_is_exclusive(x_504); +if (x_505 == 0) +{ +lean_object* x_506; lean_object* x_507; +x_506 = lean_ctor_get(x_504, 0); +x_507 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_507, 0, x_506); +lean_ctor_set(x_507, 1, x_498); +lean_ctor_set(x_504, 0, x_507); +return x_504; +} +else +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +x_508 = lean_ctor_get(x_504, 0); +x_509 = lean_ctor_get(x_504, 1); +lean_inc(x_509); +lean_inc(x_508); +lean_dec(x_504); +x_510 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_498); +x_511 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_511, 0, x_510); +lean_ctor_set(x_511, 1, x_509); +return x_511; +} +} +else +{ +uint8_t x_512; +lean_dec(x_498); +x_512 = !lean_is_exclusive(x_504); +if (x_512 == 0) +{ +return x_504; +} +else +{ +lean_object* x_513; lean_object* x_514; lean_object* x_515; +x_513 = lean_ctor_get(x_504, 0); +x_514 = lean_ctor_get(x_504, 1); +lean_inc(x_514); +lean_inc(x_513); +lean_dec(x_504); +x_515 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_515, 0, x_513); +lean_ctor_set(x_515, 1, x_514); +return x_515; } } } @@ -17069,28 +18772,28 @@ return x_455; } else { -uint8_t x_463; -lean_dec(x_432); -lean_dec_ref(x_430); +uint8_t x_523; +lean_dec(x_492); +lean_dec_ref(x_490); lean_dec(x_5); lean_dec_ref(x_2); -x_463 = !lean_is_exclusive(x_434); -if (x_463 == 0) +x_523 = !lean_is_exclusive(x_494); +if (x_523 == 0) { -return x_434; +return x_494; } else { -lean_object* x_464; lean_object* x_465; lean_object* x_466; -x_464 = lean_ctor_get(x_434, 0); -x_465 = lean_ctor_get(x_434, 1); -lean_inc(x_465); -lean_inc(x_464); -lean_dec(x_434); -x_466 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_466, 0, x_464); -lean_ctor_set(x_466, 1, x_465); -return x_466; +lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_524 = lean_ctor_get(x_494, 0); +x_525 = lean_ctor_get(x_494, 1); +lean_inc(x_525); +lean_inc(x_524); +lean_dec(x_494); +x_526 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_526, 0, x_524); +lean_ctor_set(x_526, 1, x_525); +return x_526; } } } @@ -17901,7 +19604,7 @@ return x_9; } } } -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -17913,7 +19616,7 @@ lean_ctor_set(x_5, 1, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { if (lean_obj_tag(x_5) == 0) @@ -17929,7 +19632,7 @@ lean_dec(x_5); lean_inc_ref(x_6); lean_inc_ref(x_3); lean_inc_ref(x_1); -x_11 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4(x_1, x_2, x_3, x_4, x_9, x_6, x_7); +x_11 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4(x_1, x_2, x_3, x_4, x_9, x_6, x_7); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; @@ -17948,32 +19651,88 @@ lean_dec_ref(x_11); x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0(x_14, x_6, x_13); +x_15 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(x_14, x_6, x_13); lean_dec_ref(x_6); return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_37; lean_dec(x_12); -x_16 = lean_ctor_get(x_11, 1); +x_16 = lean_ctor_get(x_8, 1); lean_inc(x_16); -lean_dec_ref(x_11); -x_17 = lean_ctor_get(x_8, 1); -lean_inc(x_17); lean_dec(x_8); -lean_inc_ref(x_1); -x_18 = l_IO_FS_Stream_writeLspMessage(x_1, x_17, x_16); -if (lean_obj_tag(x_18) == 0) +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec_ref(x_11); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc_ref(x_19); +x_20 = lean_ctor_get(x_16, 2); +lean_inc(x_20); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + lean_ctor_release(x_16, 2); + x_21 = x_16; +} else { + lean_dec_ref(x_16); + x_21 = lean_box(0); +} +x_37 = l_Lean_Json_Structured_fromJson_x3f(x_20); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec_ref(x_18); +lean_object* x_38; +lean_dec_ref(x_37); +x_38 = lean_box(0); +x_22 = x_38; +goto block_36; +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +x_22 = x_37; +goto block_36; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 0); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_22 = x_41; +goto block_36; +} +} +block_36: +{ +lean_object* x_23; lean_object* x_24; +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 3, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_18); +lean_ctor_set(x_23, 1, x_19); +lean_ctor_set(x_23, 2, x_22); +lean_inc_ref(x_1); +x_24 = l_IO_FS_Stream_writeLspMessage(x_1, x_23, x_17); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec_ref(x_24); { lean_object* _tmp_3 = x_2; lean_object* _tmp_4 = x_10; -lean_object* _tmp_6 = x_19; +lean_object* _tmp_6 = x_25; x_4 = _tmp_3; x_5 = _tmp_4; x_7 = _tmp_6; @@ -17982,47 +19741,48 @@ goto _start; } else { -lean_object* x_21; uint8_t x_22; lean_object* x_23; +lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_dec(x_10); lean_dec_ref(x_1); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec_ref(x_18); -x_22 = 1; -lean_inc_ref(x_6); -x_23 = l_Lean_Server_Watchdog_setWorkerState(x_3, x_22, x_6, x_21); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec_ref(x_23); -x_25 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0(x_2, x_6, x_24); -lean_dec_ref(x_6); -return x_25; -} -else -{ -uint8_t x_26; -lean_dec_ref(x_6); -x_26 = !lean_is_exclusive(x_23); -if (x_26 == 0) -{ -return x_23; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 0); -x_28 = lean_ctor_get(x_23, 1); -lean_inc(x_28); +x_27 = lean_ctor_get(x_24, 1); lean_inc(x_27); -lean_dec(x_23); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); +lean_dec_ref(x_24); +x_28 = 1; +lean_inc_ref(x_6); +x_29 = l_Lean_Server_Watchdog_setWorkerState(x_3, x_28, x_6, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec_ref(x_29); +x_31 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(x_2, x_6, x_30); +lean_dec_ref(x_6); +return x_31; +} +else +{ +uint8_t x_32; +lean_dec_ref(x_6); +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) +{ return x_29; } +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_29); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} } } } @@ -18039,20 +19799,209 @@ return x_11; } else { -lean_object* x_30; lean_object* x_31; +lean_object* x_42; lean_object* x_43; lean_dec_ref(x_6); lean_dec_ref(x_3); lean_dec_ref(x_1); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_4); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_7); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_4); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_7); +return x_43; +} +} +} +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_5, 2); +lean_inc(x_8); +x_9 = lean_ctor_get(x_5, 3); +lean_inc(x_9); +x_10 = lean_ctor_get(x_5, 4); +lean_inc(x_10); +lean_dec(x_5); +lean_inc_ref(x_6); +lean_inc_ref(x_3); +lean_inc_ref(x_1); +x_11 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4(x_1, x_2, x_3, x_4, x_9, x_6, x_7); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec_ref(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(x_14, x_6, x_13); +lean_dec_ref(x_6); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_37; +lean_dec(x_12); +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_dec(x_8); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec_ref(x_11); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc_ref(x_19); +x_20 = lean_ctor_get(x_16, 2); +lean_inc(x_20); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + lean_ctor_release(x_16, 2); + x_21 = x_16; +} else { + lean_dec_ref(x_16); + x_21 = lean_box(0); +} +x_37 = l_Lean_Json_Structured_fromJson_x3f(x_20); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +lean_dec_ref(x_37); +x_38 = lean_box(0); +x_22 = x_38; +goto block_36; +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +x_22 = x_37; +goto block_36; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 0); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_22 = x_41; +goto block_36; +} +} +block_36: +{ +lean_object* x_23; lean_object* x_24; +if (lean_is_scalar(x_21)) { + x_23 = lean_alloc_ctor(0, 3, 0); +} else { + x_23 = x_21; +} +lean_ctor_set(x_23, 0, x_18); +lean_ctor_set(x_23, 1, x_19); +lean_ctor_set(x_23, 2, x_22); +lean_inc_ref(x_1); +x_24 = l_IO_FS_Stream_writeLspMessage(x_1, x_23, x_17); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec_ref(x_24); +x_26 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4(x_1, x_2, x_3, x_2, x_10, x_6, x_25); +return x_26; +} +else +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; +lean_dec(x_10); +lean_dec_ref(x_1); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec_ref(x_24); +x_28 = 1; +lean_inc_ref(x_6); +x_29 = l_Lean_Server_Watchdog_setWorkerState(x_3, x_28, x_6, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec_ref(x_29); +x_31 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(x_2, x_6, x_30); +lean_dec_ref(x_6); return x_31; } +else +{ +uint8_t x_32; +lean_dec_ref(x_6); +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) +{ +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_29); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } -LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__5(lean_object* x_1) { +} +} +} +} +else +{ +lean_dec(x_10); +lean_dec(x_8); +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +return x_11; +} +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_4); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_7); +return x_43; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__6(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -18179,7 +20128,7 @@ if (lean_is_exclusive(x_118)) { lean_dec_ref(x_118); x_121 = lean_box(0); } -x_158 = l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__5(x_120); +x_158 = l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__6(x_120); if (lean_obj_tag(x_158) == 0) { lean_object* x_159; @@ -18214,30 +20163,30 @@ block_116: uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_19 = 3; x_20 = lean_box(x_19); -x_21 = l_Std_Mutex_new___redArg(x_20, x_12); +x_21 = l_Std_Mutex_new___redArg(x_20, x_16); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec_ref(x_21); -lean_inc_ref(x_15); -lean_inc(x_11); -lean_inc(x_13); +lean_inc_ref(x_14); +lean_inc(x_15); +lean_inc(x_12); x_24 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_24, 0, x_13); -lean_ctor_set(x_24, 1, x_14); -lean_ctor_set(x_24, 2, x_11); -lean_ctor_set(x_24, 3, x_15); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_11); +lean_ctor_set(x_24, 2, x_15); +lean_ctor_set(x_24, 3, x_14); lean_ctor_set_uint8(x_24, sizeof(void*)*4, x_18); x_25 = l_Lean_Server_Watchdog_startFileWorker___closed__0; lean_inc(x_22); -lean_inc_ref(x_16); lean_inc_ref(x_10); +lean_inc_ref(x_13); lean_inc_ref(x_24); x_26 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_10); -lean_ctor_set(x_26, 2, x_16); +lean_ctor_set(x_26, 1, x_13); +lean_ctor_set(x_26, 2, x_10); lean_ctor_set(x_26, 3, x_25); lean_ctor_set(x_26, 4, x_22); lean_inc_ref(x_2); @@ -18249,8 +20198,8 @@ lean_inc(x_29); lean_dec_ref(x_27); x_30 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_30, 0, x_24); -lean_ctor_set(x_30, 1, x_10); -lean_ctor_set(x_30, 2, x_16); +lean_ctor_set(x_30, 1, x_13); +lean_ctor_set(x_30, 2, x_10); lean_ctor_set(x_30, 3, x_28); lean_ctor_set(x_30, 4, x_22); lean_inc_ref(x_30); @@ -18273,27 +20222,27 @@ lean_object* x_37; lean_object* x_38; uint8_t x_39; x_37 = lean_ctor_get(x_35, 1); x_38 = lean_ctor_get(x_35, 0); lean_dec(x_38); -x_39 = !lean_is_exclusive(x_15); +x_39 = !lean_is_exclusive(x_14); if (x_39 == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_40 = lean_ctor_get(x_15, 0); -x_41 = lean_ctor_get(x_15, 1); +x_40 = lean_ctor_get(x_14, 0); +x_41 = lean_ctor_get(x_14, 1); lean_dec(x_41); x_42 = l_Lean_Server_Watchdog_startFileWorker___closed__4; x_43 = l_Lean_Server_Watchdog_startFileWorker___closed__5; -lean_inc(x_13); +lean_inc(x_12); x_44 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_44, 0, x_13); +lean_ctor_set(x_44, 0, x_12); lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_44, 2, x_11); +lean_ctor_set(x_44, 2, x_15); lean_ctor_set(x_44, 3, x_40); x_45 = lean_box(x_17); x_46 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_15, 1, x_46); -lean_ctor_set(x_15, 0, x_44); -lean_ctor_set(x_35, 1, x_15); +lean_ctor_set(x_14, 1, x_46); +lean_ctor_set(x_14, 0, x_44); +lean_ctor_set(x_35, 1, x_14); lean_ctor_set(x_35, 0, x_42); lean_inc_ref(x_31); x_47 = l_IO_FS_Stream_writeLspNotification___at___Lean_Server_Watchdog_startFileWorker_spec__2(x_31, x_35, x_37); @@ -18308,7 +20257,7 @@ x_49 = l_Lean_Server_Watchdog_updateFileWorkers(x_30, x_2, x_48); x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); lean_dec_ref(x_49); -x_51 = l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(x_8, x_13, x_50); +x_51 = l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(x_8, x_12, x_50); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -18370,7 +20319,7 @@ else { lean_dec_ref(x_31); lean_dec_ref(x_30); -lean_dec(x_13); +lean_dec(x_12); lean_dec_ref(x_8); lean_dec_ref(x_2); return x_47; @@ -18379,16 +20328,16 @@ return x_47; else { lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_65 = lean_ctor_get(x_15, 0); +x_65 = lean_ctor_get(x_14, 0); lean_inc(x_65); -lean_dec(x_15); +lean_dec(x_14); x_66 = l_Lean_Server_Watchdog_startFileWorker___closed__4; x_67 = l_Lean_Server_Watchdog_startFileWorker___closed__5; -lean_inc(x_13); +lean_inc(x_12); x_68 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_68, 0, x_13); +lean_ctor_set(x_68, 0, x_12); lean_ctor_set(x_68, 1, x_67); -lean_ctor_set(x_68, 2, x_11); +lean_ctor_set(x_68, 2, x_15); lean_ctor_set(x_68, 3, x_65); x_69 = lean_box(x_17); x_70 = lean_alloc_ctor(1, 1, 0); @@ -18411,7 +20360,7 @@ x_74 = l_Lean_Server_Watchdog_updateFileWorkers(x_30, x_2, x_73); x_75 = lean_ctor_get(x_74, 1); lean_inc(x_75); lean_dec_ref(x_74); -x_76 = l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(x_8, x_13, x_75); +x_76 = l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(x_8, x_12, x_75); x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); @@ -18473,7 +20422,7 @@ else { lean_dec_ref(x_31); lean_dec_ref(x_30); -lean_dec(x_13); +lean_dec(x_12); lean_dec_ref(x_8); lean_dec_ref(x_2); return x_72; @@ -18486,23 +20435,23 @@ lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean x_89 = lean_ctor_get(x_35, 1); lean_inc(x_89); lean_dec(x_35); -x_90 = lean_ctor_get(x_15, 0); +x_90 = lean_ctor_get(x_14, 0); lean_inc_ref(x_90); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_91 = x_15; +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_91 = x_14; } else { - lean_dec_ref(x_15); + lean_dec_ref(x_14); x_91 = lean_box(0); } x_92 = l_Lean_Server_Watchdog_startFileWorker___closed__4; x_93 = l_Lean_Server_Watchdog_startFileWorker___closed__5; -lean_inc(x_13); +lean_inc(x_12); x_94 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_94, 0, x_13); +lean_ctor_set(x_94, 0, x_12); lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_94, 2, x_11); +lean_ctor_set(x_94, 2, x_15); lean_ctor_set(x_94, 3, x_90); x_95 = lean_box(x_17); x_96 = lean_alloc_ctor(1, 1, 0); @@ -18530,7 +20479,7 @@ x_101 = l_Lean_Server_Watchdog_updateFileWorkers(x_30, x_2, x_100); x_102 = lean_ctor_get(x_101, 1); lean_inc(x_102); lean_dec_ref(x_101); -x_103 = l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(x_8, x_13, x_102); +x_103 = l_Lean_Server_Watchdog_RequestDataMutex_getRequestQueue(x_8, x_12, x_102); x_104 = lean_ctor_get(x_103, 0); lean_inc(x_104); x_105 = lean_ctor_get(x_103, 1); @@ -18592,7 +20541,7 @@ else { lean_dec_ref(x_31); lean_dec_ref(x_30); -lean_dec(x_13); +lean_dec(x_12); lean_dec_ref(x_8); lean_dec_ref(x_2); return x_99; @@ -18603,9 +20552,9 @@ else { lean_dec_ref(x_31); lean_dec_ref(x_30); -lean_dec_ref(x_15); -lean_dec(x_13); -lean_dec(x_11); +lean_dec(x_15); +lean_dec_ref(x_14); +lean_dec(x_12); lean_dec_ref(x_8); lean_dec_ref(x_2); return x_35; @@ -18681,13 +20630,13 @@ x_149 = lean_ctor_get(x_146, 1); lean_inc(x_149); lean_dec_ref(x_146); x_150 = 2; -x_10 = x_143; -x_11 = x_128; -x_12 = x_149; -x_13 = x_126; -x_14 = x_127; -x_15 = x_129; -x_16 = x_148; +x_10 = x_148; +x_11 = x_127; +x_12 = x_126; +x_13 = x_143; +x_14 = x_129; +x_15 = x_128; +x_16 = x_149; x_17 = x_130; x_18 = x_150; goto block_116; @@ -18701,13 +20650,13 @@ lean_inc(x_151); x_152 = lean_ctor_get(x_146, 1); lean_inc(x_152); lean_dec_ref(x_146); -x_10 = x_143; -x_11 = x_128; -x_12 = x_152; -x_13 = x_126; -x_14 = x_127; -x_15 = x_129; -x_16 = x_151; +x_10 = x_151; +x_11 = x_127; +x_12 = x_126; +x_13 = x_143; +x_14 = x_129; +x_15 = x_128; +x_16 = x_152; x_17 = x_130; x_18 = x_130; goto block_116; @@ -18756,11 +20705,11 @@ return x_124; } } } -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4___lam__0(x_1, x_2, x_3); +x_4 = l_Std_DTreeMap_Internal_Impl_forInStep___at___Std_DTreeMap_Internal_Impl_forInStep___at___Lean_Server_Watchdog_startFileWorker_spec__4_spec__4___lam__0(x_1, x_2, x_3); lean_dec_ref(x_2); return x_4; } @@ -19218,32 +21167,36 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_49; x_17 = lean_ctor_get(x_9, 1); lean_inc(x_17); lean_dec_ref(x_9); x_18 = lean_ctor_get(x_10, 0); lean_inc(x_18); lean_dec(x_10); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_3, 10); -lean_inc_ref(x_49); lean_inc_ref(x_2); -lean_inc_ref(x_1); -x_50 = l_Lean_Server_Watchdog_RequestDataMutex_enqueue(x_49, x_1, x_2, x_17); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec_ref(x_50); +x_49 = l_Lean_JsonRpc_Request_ofMessage_x3f(x_2); +if (lean_obj_tag(x_49) == 0) +{ x_19 = x_3; -x_20 = x_51; +x_20 = x_17; goto block_48; } else { +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +lean_dec(x_49); +x_51 = lean_ctor_get(x_3, 10); +lean_inc_ref(x_51); +lean_inc_ref(x_1); +x_52 = l_Lean_Server_Watchdog_RequestDataMutex_enqueue(x_51, x_1, x_50, x_17); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec_ref(x_52); x_19 = x_3; -x_20 = x_17; +x_20 = x_53; goto block_48; } block_48: @@ -19481,203 +21434,6 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; uint8_t x_13; -x_13 = lean_usize_dec_lt(x_4, x_3); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec_ref(x_1); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_5); -lean_ctor_set(x_14, 1, x_6); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_array_uget(x_2, x_4); -lean_inc_ref(x_1); -x_16 = l_Lean_Server_References_definitionOf_x3f(x_1, x_15); -if (lean_obj_tag(x_16) == 0) -{ -x_7 = x_5; -x_8 = x_6; -goto block_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc_ref(x_18); -lean_dec(x_17); -x_19 = lean_array_push(x_5, x_18); -x_7 = x_19; -x_8 = x_6; -goto block_12; -} -} -block_12: -{ -size_t x_9; size_t x_10; -x_9 = 1; -x_10 = lean_usize_add(x_4, x_9); -x_4 = x_10; -x_5 = x_7; -x_6 = x_8; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_7); -return x_8; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_findDefinitions___closed__0() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_findDefinitions(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = l_Lean_Server_Watchdog_getFileWorkerMod_x3f(x_4, x_2, x_3); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -if (lean_obj_tag(x_7) == 0) -{ -uint8_t x_8; -lean_dec_ref(x_2); -x_8 = !lean_is_exclusive(x_6); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_6, 0); -lean_dec(x_9); -x_10 = l_Lean_Server_Watchdog_findDefinitions___closed__0; -lean_ctor_set(x_6, 0, x_10); -return x_6; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_dec(x_6); -x_12 = l_Lean_Server_Watchdog_findDefinitions___closed__0; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_6, 1); -lean_inc(x_14); -lean_dec_ref(x_6); -x_15 = lean_ctor_get(x_7, 0); -lean_inc(x_15); -lean_dec(x_7); -x_16 = l_Lean_Server_Watchdog_getReferences(x_2, x_14); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec_ref(x_16); -x_19 = l_Lean_Server_Watchdog_findDefinitions___closed__0; -x_20 = 1; -lean_inc(x_17); -x_21 = l_Lean_Server_References_findAt(x_17, x_15, x_5, x_20); -lean_dec(x_15); -x_22 = lean_array_size(x_21); -x_23 = 0; -x_24 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(x_17, x_21, x_22, x_23, x_19, x_18); -lean_dec_ref(x_21); -return x_24; -} -else -{ -uint8_t x_25; -lean_dec(x_15); -x_25 = !lean_is_exclusive(x_16); -if (x_25 == 0) -{ -return x_16; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_16, 0); -x_27 = lean_ctor_get(x_16, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_16); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_8 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_9 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___redArg(x_1, x_2, x_7, x_8, x_5, x_6); -lean_dec_ref(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_9 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_10 = l_Array_forIn_x27Unsafe_loop___at___Lean_Server_Watchdog_findDefinitions_spec__0(x_1, x_2, x_8, x_9, x_5, x_6, x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_2); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_findDefinitions___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Server_Watchdog_findDefinitions(x_1, x_2, x_3); -lean_dec_ref(x_1); -return x_4; -} -} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Server_Watchdog_handleReference_spec__0(size_t x_1, size_t x_2, lean_object* x_3) { _start: { @@ -19936,7 +21692,7 @@ lean_dec_ref(x_1); return x_11; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -19944,15 +21700,7 @@ x_1 = lean_mk_string_unchecked("module", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_matchAgainstQuery_x3f_matchDecl_x3f___lam__1___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -19960,7 +21708,7 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -19968,7 +21716,7 @@ x_1 = lean_mk_string_unchecked("Server", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -19976,7 +21724,7 @@ x_1 = lean_mk_string_unchecked("Watchdog", 8, 8); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -19984,78 +21732,70 @@ x_1 = lean_mk_string_unchecked("CallHierarchyItemData", 21, 21); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_12419_; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_12419_; -x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_12419_; -x_4 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_13606_; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_13606_; +x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_13606_; +x_4 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_13606_; x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1); return x_5; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_2 = 1; -x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_12419_; +x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_13606_; x_4 = l_Lean_Name_toString(x_3, x_2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(".", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_13606_; x_3 = lean_string_append(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_2 = 1; -x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_12419_; +x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_13606_; x_4 = l_Lean_Name_toString(x_3, x_2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_12419_; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_13606_; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_; x_3 = lean_string_append(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -20063,17 +21803,17 @@ x_1 = lean_mk_string_unchecked(": ", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_13606_; x_3 = lean_string_append(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; @@ -20081,51 +21821,51 @@ x_1 = lean_mk_string_unchecked("name", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_; x_2 = l_Lean_Name_mkStr1(x_1); return x_2; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_2 = 1; -x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_12419_; +x_3 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_13606_; x_4 = l_Lean_Name_toString(x_3, x_2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__18____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_12419_; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_13606_; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_; x_3 = lean_string_append(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_() { +static lean_object* _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__18____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_13606_; x_3 = lean_string_append(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12419_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13606_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_; +x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_; lean_inc(x_1); x_3 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0(x_1, x_2); if (lean_obj_tag(x_3) == 0) @@ -20137,7 +21877,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); -x_6 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_; +x_6 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); lean_ctor_set(x_3, 0, x_7); @@ -20149,7 +21889,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); lean_dec(x_3); -x_9 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_; +x_9 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_alloc_ctor(0, 1, 0); @@ -20186,7 +21926,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_3, 0); lean_inc(x_15); lean_dec_ref(x_3); -x_16 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_; +x_16 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_; x_17 = l_Lean_Json_getObjValAs_x3f___at___Lean_Lsp_fromJsonLeanIdentifier____x40_Lean_Data_Lsp_Internal___hyg_3878__spec__0(x_1, x_16); if (lean_obj_tag(x_17) == 0) { @@ -20197,7 +21937,7 @@ if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; x_19 = lean_ctor_get(x_17, 0); -x_20 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_; +x_20 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_; x_21 = lean_string_append(x_20, x_19); lean_dec(x_19); lean_ctor_set(x_17, 0, x_21); @@ -20209,7 +21949,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_22 = lean_ctor_get(x_17, 0); lean_inc(x_22); lean_dec(x_17); -x_23 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_; +x_23 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_; x_24 = lean_string_append(x_23, x_22); lean_dec(x_22); x_25 = lean_alloc_ctor(0, 1, 0); @@ -20277,7 +22017,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemDa _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12419_), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13606_), 1, 0); return x_1; } } @@ -20289,7 +22029,7 @@ x_1 = l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData___closed__0; return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_() { +static lean_object* _init_l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_() { _start: { lean_object* x_1; lean_object* x_2; @@ -20298,7 +22038,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(lean_object* x_1) { _start: { uint8_t x_2; @@ -20308,8 +22048,8 @@ if (x_2 == 0) lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); -x_5 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; -x_6 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_; +x_5 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; +x_6 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_; x_7 = 1; x_8 = l_Lean_Name_toString(x_3, x_7, x_5); x_9 = lean_alloc_ctor(3, 1, 0); @@ -20320,7 +22060,7 @@ x_10 = lean_box(0); x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_; +x_12 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_; x_13 = l_Lean_Name_toString(x_4, x_7, x_5); x_14 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_14, 0, x_13); @@ -20337,7 +22077,7 @@ lean_ctor_set(x_18, 1, x_17); x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_11); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_; +x_20 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_; x_21 = l_List_flatMapTR_go___at___toJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_250__spec__0(x_19, x_20); x_22 = l_Lean_Json_mkObj(x_21); return x_22; @@ -20350,8 +22090,8 @@ x_24 = lean_ctor_get(x_1, 1); lean_inc(x_24); lean_inc(x_23); lean_dec(x_1); -x_25 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; -x_26 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_; +x_25 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; +x_26 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_; x_27 = 1; x_28 = l_Lean_Name_toString(x_23, x_27, x_25); x_29 = lean_alloc_ctor(3, 1, 0); @@ -20363,7 +22103,7 @@ x_31 = lean_box(0); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_; +x_33 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_; x_34 = l_Lean_Name_toString(x_24, x_27, x_25); x_35 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_35, 0, x_34); @@ -20380,7 +22120,7 @@ lean_ctor_set(x_39, 1, x_38); x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_32); lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_; +x_41 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_; x_42 = l_List_flatMapTR_go___at___toJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_250__spec__0(x_40, x_41); x_43 = l_Lean_Json_mkObj(x_42); return x_43; @@ -20391,7 +22131,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_), 1, 0); return x_1; } } @@ -20424,7 +22164,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; x_5 = lean_ctor_get(x_2, 0); -x_6 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12419_(x_5); +x_6 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13606_(x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; @@ -20449,7 +22189,7 @@ lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_2, 0); lean_inc(x_9); lean_dec(x_2); -x_10 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12419_(x_9); +x_10 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13606_(x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; @@ -20507,7 +22247,7 @@ lean_inc_ref(x_8); x_9 = lean_ctor_get(x_2, 1); lean_inc_ref(x_9); lean_dec_ref(x_2); -x_10 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_10 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_11 = l_String_toName(x_9); lean_inc(x_11); x_40 = lean_private_to_user_name(x_11); @@ -20543,7 +22283,7 @@ x_20 = lean_box(0); x_21 = l_String_toName(x_8); lean_ctor_set(x_7, 1, x_11); lean_ctor_set(x_7, 0, x_21); -x_22 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(x_7); +x_22 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(x_7); if (lean_is_scalar(x_6)) { x_23 = lean_alloc_ctor(1, 1, 0); } else { @@ -20581,7 +22321,7 @@ x_33 = l_String_toName(x_8); x_34 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_11); -x_35 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(x_34); +x_35 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(x_34); if (lean_is_scalar(x_6)) { x_36 = lean_alloc_ctor(1, 1, 0); } else { @@ -20642,7 +22382,7 @@ lean_inc_ref(x_49); x_50 = lean_ctor_get(x_44, 2); lean_inc_ref(x_50); lean_dec(x_44); -x_51 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_51 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_52 = l_String_toName(x_48); lean_inc(x_52); x_78 = lean_private_to_user_name(x_52); @@ -20678,7 +22418,7 @@ x_60 = lean_box(0); x_61 = lean_box(0); lean_ctor_set(x_46, 1, x_52); lean_ctor_set(x_46, 0, x_47); -x_62 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(x_46); +x_62 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(x_46); if (lean_is_scalar(x_45)) { x_63 = lean_alloc_ctor(1, 1, 0); } else { @@ -20716,7 +22456,7 @@ x_71 = lean_box(0); x_72 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_72, 0, x_47); lean_ctor_set(x_72, 1, x_52); -x_73 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(x_72); +x_73 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(x_72); if (lean_is_scalar(x_45)) { x_74 = lean_alloc_ctor(1, 1, 0); } else { @@ -22582,7 +24322,7 @@ x_31 = lean_box(0); x_32 = lean_box(0); lean_ctor_set(x_19, 1, x_24); lean_ctor_set(x_19, 0, x_20); -x_33 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(x_19); +x_33 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(x_19); if (lean_is_scalar(x_18)) { x_34 = lean_alloc_ctor(1, 1, 0); } else { @@ -22624,7 +24364,7 @@ x_45 = lean_box(0); x_46 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_46, 0, x_20); lean_ctor_set(x_46, 1, x_24); -x_47 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_12525_(x_46); +x_47 = l_Lean_Server_Watchdog_toJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_13712_(x_46); if (lean_is_scalar(x_18)) { x_48 = lean_alloc_ctor(1, 1, 0); } else { @@ -22823,7 +24563,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); -x_12 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_12 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_13 = 1; x_14 = l_Lean_Name_toString(x_10, x_13, x_12); x_15 = l_Lean_Name_toString(x_11, x_13, x_12); @@ -23014,7 +24754,7 @@ x_60 = lean_ctor_get(x_7, 1); lean_inc(x_60); lean_inc(x_59); lean_dec(x_7); -x_61 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_61 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_62 = 1; x_63 = l_Lean_Name_toString(x_59, x_62, x_61); x_64 = l_Lean_Name_toString(x_60, x_62, x_61); @@ -24505,7 +26245,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_10 = lean_ctor_get(x_7, 0); -x_11 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_11 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_12 = 1; x_13 = l_Lean_Name_toString(x_10, x_12, x_11); x_14 = lean_box(0); @@ -24524,7 +26264,7 @@ lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_obje x_16 = lean_ctor_get(x_7, 0); lean_inc(x_16); lean_dec(x_7); -x_17 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_17 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_18 = 1; x_19 = l_Lean_Name_toString(x_16, x_18, x_17); x_20 = lean_box(0); @@ -24570,7 +26310,7 @@ if (lean_is_exclusive(x_24)) { lean_dec_ref(x_24); x_28 = lean_box(0); } -x_29 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_29 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_30 = 1; x_31 = l_Lean_Name_toString(x_27, x_30, x_29); x_32 = lean_box(0); @@ -24650,7 +26390,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_sortModuleImports(lean_object* x _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_2 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_3 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_sortModuleImports___lam__1___boxed), 3, 1); lean_closure_set(x_3, 0, x_2); x_4 = lean_array_to_list(x_1); @@ -24903,7 +26643,7 @@ if (lean_is_exclusive(x_2)) { x_6 = lean_box(0); } x_7 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleModuleHierarchyImports___lam__0___boxed), 1, 0); -x_8 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_8 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_33 = l_String_toName(x_4); x_34 = l_Lean_Server_References_getDirectImports_x3f(x_5, x_33); lean_dec(x_33); @@ -25067,7 +26807,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_2, 0); lean_dec(x_7); -x_8 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_8 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_9 = l_String_toName(x_4); x_10 = l_Lean_Server_References_importedBy(x_6, x_9); lean_dec(x_9); @@ -25085,7 +26825,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean x_15 = lean_ctor_get(x_2, 1); lean_inc(x_15); lean_dec(x_2); -x_16 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_; +x_16 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0; x_17 = l_String_toName(x_4); x_18 = l_Lean_Server_References_importedBy(x_15, x_17); lean_dec(x_17); @@ -27807,8 +29547,8 @@ lean_object* x_44; lean_dec_ref(x_43); lean_dec(x_24); x_44 = lean_box(0); -x_9 = x_42; -x_10 = x_41; +x_9 = x_41; +x_10 = x_42; x_11 = x_44; goto block_14; } @@ -27824,8 +29564,8 @@ if (lean_is_scalar(x_24)) { x_46 = x_24; } lean_ctor_set(x_46, 0, x_45); -x_9 = x_42; -x_10 = x_41; +x_9 = x_41; +x_10 = x_42; x_11 = x_46; goto block_14; } @@ -27871,8 +29611,8 @@ lean_object* x_58; lean_dec_ref(x_57); lean_dec(x_24); x_58 = lean_box(0); -x_9 = x_56; -x_10 = x_55; +x_9 = x_55; +x_10 = x_56; x_11 = x_58; goto block_14; } @@ -27888,8 +29628,8 @@ if (lean_is_scalar(x_24)) { x_60 = x_24; } lean_ctor_set(x_60, 0, x_59); -x_9 = x_56; -x_10 = x_55; +x_9 = x_55; +x_10 = x_56; x_11 = x_60; goto block_14; } @@ -27932,9 +29672,9 @@ if (lean_is_scalar(x_8)) { x_12 = x_8; lean_ctor_set_tag(x_12, 1); } -lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Server_Watchdog_tryWriteMessage(x_6, x_12, x_2, x_10); +x_13 = l_Lean_Server_Watchdog_tryWriteMessage(x_6, x_12, x_2, x_9); return x_13; } } @@ -29760,67 +31500,6 @@ x_8 = l_Lean_Server_Watchdog_forwardNotification___redArg(x_2, x_3, x_4, x_5, x_ return x_8; } } -static lean_object* _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Got param with wrong structure: ", 32, 32); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("\n", 1, 1); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -lean_inc(x_2); -x_4 = lean_apply_1(x_1, x_2); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -lean_dec_ref(x_4); -x_6 = l_Lean_Server_Watchdog_parseParams___redArg___closed__0; -x_7 = l_Lean_Json_compress(x_2); -x_8 = lean_string_append(x_6, x_7); -lean_dec_ref(x_7); -x_9 = l_Lean_Server_Watchdog_parseParams___redArg___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = lean_string_append(x_10, x_5); -lean_dec(x_5); -x_12 = l_IO_throwServerError___redArg(x_11, x_3); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_2); -x_13 = lean_ctor_get(x_4, 0); -lean_inc(x_13); -lean_dec_ref(x_4); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_3); -return x_14; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Server_Watchdog_parseParams___redArg(x_2, x_3, x_4); -return x_5; -} -} LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_forwardRequestToWorker_spec__0(lean_object* x_1, lean_object* x_2) { _start: { @@ -29870,14 +31549,6 @@ static lean_object* _init_l_Lean_Server_Watchdog_forwardRequestToWorker___closed _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("'", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_forwardRequestToWorker___closed__2() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string_unchecked("$/lean/rpc/connect", 18, 18); return x_1; } @@ -29886,7 +31557,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_forwardRequestToWorker(lean_obje _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_45; uint8_t x_46; -x_45 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__2; +x_45 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; x_46 = lean_string_dec_eq(x_2, x_45); if (x_46 == 0) { @@ -30011,7 +31682,7 @@ x_10 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_2); lean_ctor_set(x_10, 2, x_9); -x_11 = l_Lean_Server_Watchdog_tryWriteMessage(x_6, x_10, x_8, x_7); +x_11 = l_Lean_Server_Watchdog_tryWriteMessage(x_6, x_10, x_7, x_8); return x_11; } block_44: @@ -30035,7 +31706,7 @@ x_20 = 7; x_21 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__0; x_22 = lean_string_append(x_21, x_13); lean_dec_ref(x_13); -x_23 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_23 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_24 = lean_string_append(x_22, x_23); x_25 = lean_box(0); x_26 = lean_alloc_ctor(0, 3, 1); @@ -30095,8 +31766,8 @@ lean_dec_ref(x_37); lean_free_object(x_17); x_38 = lean_box(0); x_6 = x_13; -x_7 = x_34; -x_8 = x_14; +x_7 = x_14; +x_8 = x_34; x_9 = x_38; goto block_12; } @@ -30108,8 +31779,8 @@ lean_inc(x_39); lean_dec_ref(x_37); lean_ctor_set(x_17, 0, x_39); x_6 = x_13; -x_7 = x_34; -x_8 = x_14; +x_7 = x_14; +x_8 = x_34; x_9 = x_17; goto block_12; } @@ -30125,8 +31796,8 @@ lean_object* x_41; lean_dec_ref(x_40); x_41 = lean_box(0); x_6 = x_13; -x_7 = x_34; -x_8 = x_14; +x_7 = x_14; +x_8 = x_34; x_9 = x_41; goto block_12; } @@ -30139,8 +31810,8 @@ lean_dec_ref(x_40); x_43 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_43, 0, x_42); x_6 = x_13; -x_7 = x_34; -x_8 = x_14; +x_7 = x_14; +x_8 = x_34; x_9 = x_43; goto block_12; } @@ -30224,7 +31895,7 @@ block_16: lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_8 = lean_string_append(x_6, x_7); lean_dec_ref(x_7); -x_9 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_9 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_10 = lean_string_append(x_8, x_9); x_11 = lean_io_error_to_string(x_3); x_12 = lean_string_append(x_10, x_11); @@ -30433,112 +32104,6 @@ _start: { lean_object* x_3; lean_inc(x_1); -x_3 = l_Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_4477_(x_1); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec_ref(x_3); -x_5 = l_Lean_Server_Watchdog_parseParams___redArg___closed__0; -x_6 = l_Lean_Json_compress(x_1); -x_7 = lean_string_append(x_5, x_6); -lean_dec_ref(x_6); -x_8 = l_Lean_Server_Watchdog_parseParams___redArg___closed__1; -x_9 = lean_string_append(x_7, x_8); -x_10 = lean_string_append(x_9, x_4); -lean_dec(x_4); -x_11 = l_IO_throwServerError___redArg(x_10, x_2); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_1); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -lean_dec_ref(x_3); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_2); -return x_13; -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1_spec__1(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l_Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_116_(x_5); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_7, x_2, x_8); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(lean_object* x_1) { -_start: -{ -size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_array_size(x_1); -x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1_spec__1(x_2, x_3, x_1); -x_5 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_5, 0, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_5); -lean_ctor_set_tag(x_2, 2); -lean_ctor_set(x_2, 1, x_6); -x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_2, 0); -x_9 = lean_ctor_get(x_2, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_2); -x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); -x_11 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_IO_FS_Stream_writeLspMessage(x_1, x_11, x_3); -return x_12; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleRequest_spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -lean_inc(x_1); x_3 = l_Lean_Lsp_fromJsonWaitForILeansParams____x40_Lean_Data_Lsp_Extra___hyg_596_(x_1); if (lean_obj_tag(x_3) == 0) { @@ -30571,7 +32136,7 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -30593,8 +32158,8 @@ lean_dec(x_7); x_8 = lean_ctor_get(x_3, 1); lean_inc(x_8); lean_dec_ref(x_3); -x_9 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_5); -x_10 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_6); +x_9 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_5); +x_10 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_6); lean_ctor_set(x_1, 4, x_10); lean_ctor_set(x_1, 3, x_9); lean_ctor_set(x_1, 2, x_8); @@ -30615,8 +32180,8 @@ lean_dec(x_1); x_15 = lean_ctor_get(x_3, 1); lean_inc(x_15); lean_dec_ref(x_3); -x_16 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_13); -x_17 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_14); +x_16 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_13); +x_17 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_14); x_18 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_18, 0, x_11); lean_ctor_set(x_18, 1, x_12); @@ -30634,7 +32199,7 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -30671,7 +32236,7 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -30703,11 +32268,11 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(x_3, x_7); +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__2(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -30733,7 +32298,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__7(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__3(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -30766,7 +32331,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__7(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__3(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -30836,7 +32401,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__7(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__3(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -30888,11 +32453,11 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_10, x_12); +x_13 = lean_string_append(x_8, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_9); +x_16 = lean_io_error_to_string(x_11); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); x_18 = lean_box(0); @@ -30900,7 +32465,432 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_10); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_9); +return x_20; +} +block_33: +{ +uint8_t x_24; lean_object* x_25; +x_24 = 4; +x_25 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__0; +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_26); +x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__1; +x_28 = lean_string_append(x_27, x_26); +lean_dec_ref(x_26); +x_29 = lean_string_append(x_28, x_27); +x_8 = x_25; +x_9 = x_23; +x_10 = x_24; +x_11 = x_22; +x_12 = x_29; +goto block_21; +} +case 1: +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_30); +x_31 = l_Lean_JsonNumber_toString(x_30); +x_8 = x_25; +x_9 = x_23; +x_10 = x_24; +x_11 = x_22; +x_12 = x_31; +goto block_21; +} +default: +{ +lean_object* x_32; +x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; +x_8 = x_25; +x_9 = x_23; +x_10 = x_24; +x_11 = x_22; +x_12 = x_32; +goto block_21; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_ctor_get(x_4, 1); +lean_inc_ref(x_6); +x_7 = lean_ctor_get(x_4, 4); +lean_inc(x_7); +x_8 = lean_st_ref_get(x_7, x_5); +lean_dec(x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec_ref(x_8); +x_11 = l_Lean_Server_Watchdog_getReferences(x_4, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec_ref(x_11); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1___lam__0), 7, 6); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_6); +lean_closure_set(x_15, 2, x_2); +lean_closure_set(x_15, 3, x_14); +lean_closure_set(x_15, 4, x_12); +lean_closure_set(x_15, 5, x_3); +x_16 = l_Lean_Server_ServerTask_IO_asTask___redArg(x_15, x_13); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_19 = lean_box(0); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +else +{ +uint8_t x_23; +lean_dec(x_9); +lean_dec_ref(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_11); +if (x_23 == 0) +{ +return x_11; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_11); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +lean_inc(x_1); +x_3 = l_Lean_Lsp_fromJsonPrepareRenameParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11535_(x_1); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec_ref(x_3); +x_5 = l_Lean_Server_Watchdog_parseParams___redArg___closed__0; +x_6 = l_Lean_Json_compress(x_1); +x_7 = lean_string_append(x_5, x_6); +lean_dec_ref(x_6); +x_8 = l_Lean_Server_Watchdog_parseParams___redArg___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = lean_string_append(x_9, x_4); +lean_dec(x_4); +x_11 = l_IO_throwServerError___redArg(x_10, x_2); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +lean_dec_ref(x_3); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_2); +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6_spec__6(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_BasicAux___hyg_624_(x_3); +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6_spec__6(x_5); +lean_ctor_set_tag(x_2, 2); +lean_ctor_set(x_2, 1, x_6); +x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +x_10 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6_spec__6(x_9); +x_11 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_IO_FS_Stream_writeLspMessage(x_1, x_11, x_3); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_3, x_7); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_ctor_set(x_34, 1, x_5); +lean_ctor_set(x_34, 0, x_4); +x_38 = lean_apply_3(x_6, x_36, x_34, x_37); +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_1); +lean_ctor_set(x_38, 1, x_40); +lean_ctor_set(x_38, 0, x_1); +lean_inc_ref(x_2); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(x_2, x_38, x_41); +if (lean_obj_tag(x_42) == 0) +{ +lean_dec_ref(x_2); +lean_dec(x_1); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec_ref(x_42); +x_22 = x_43; +x_23 = x_44; +goto block_33; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_38, 0); +x_46 = lean_ctor_get(x_38, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_38); +lean_inc(x_1); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_1); +lean_ctor_set(x_47, 1, x_45); +lean_inc_ref(x_2); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(x_2, x_47, x_46); +if (lean_obj_tag(x_48) == 0) +{ +lean_dec_ref(x_2); +lean_dec(x_1); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec_ref(x_48); +x_22 = x_49; +x_23 = x_50; +goto block_33; +} +} +} +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_38, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_38, 1); +lean_inc(x_52); +lean_dec_ref(x_38); +x_22 = x_51; +x_23 = x_52; +goto block_33; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_34, 0); +x_54 = lean_ctor_get(x_34, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_34); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_4); +lean_ctor_set(x_55, 1, x_5); +x_56 = lean_apply_3(x_6, x_53, x_55, x_54); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; +} else { + lean_dec_ref(x_56); + x_59 = lean_box(0); +} +lean_inc(x_1); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_1); +lean_ctor_set(x_60, 1, x_57); +lean_inc_ref(x_2); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__6(x_2, x_60, x_58); +if (lean_obj_tag(x_61) == 0) +{ +lean_dec_ref(x_2); +lean_dec(x_1); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec_ref(x_61); +x_22 = x_62; +x_23 = x_63; +goto block_33; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_56, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_56, 1); +lean_inc(x_65); +lean_dec_ref(x_56); +x_22 = x_64; +x_23 = x_65; +goto block_33; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +x_66 = lean_ctor_get(x_34, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_34, 1); +lean_inc(x_67); +lean_dec_ref(x_34); +x_22 = x_66; +x_23 = x_67; +goto block_33; +} +block_21: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_string_append(x_11, x_12); +lean_dec_ref(x_12); +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; +x_15 = lean_string_append(x_13, x_14); +x_16 = lean_io_error_to_string(x_10); +x_17 = lean_string_append(x_15, x_16); +lean_dec_ref(x_16); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_19, 2, x_18); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_9); x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_8); return x_20; } @@ -30920,9 +32910,9 @@ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); x_8 = x_23; -x_9 = x_22; -x_10 = x_25; -x_11 = x_24; +x_9 = x_24; +x_10 = x_22; +x_11 = x_25; x_12 = x_29; goto block_21; } @@ -30933,9 +32923,9 @@ x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); x_8 = x_23; -x_9 = x_22; -x_10 = x_25; -x_11 = x_24; +x_9 = x_24; +x_10 = x_22; +x_11 = x_25; x_12 = x_31; goto block_21; } @@ -30944,9 +32934,9 @@ default: lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; x_8 = x_23; -x_9 = x_22; -x_10 = x_25; -x_11 = x_24; +x_9 = x_24; +x_10 = x_22; +x_11 = x_25; x_12 = x_32; goto block_21; } @@ -30978,7 +32968,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); @@ -31044,7 +33034,7 @@ _start: { lean_object* x_3; lean_inc(x_1); -x_3 = l_Lean_Lsp_fromJsonPrepareRenameParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11535_(x_1); +x_3 = l_Lean_Lsp_fromJsonLeanModuleHierarchyImportedByParams____x40_Lean_Data_Lsp_Extra___hyg_3180_(x_1); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -31076,26 +33066,43 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10_spec__10(size_t x_1, size_t x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_1) == 0) +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) { -lean_object* x_2; -x_2 = lean_box(0); -return x_2; +return x_3; } else { -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = l_Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_BasicAux___hyg_624_(x_3); -return x_4; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l_Lean_Lsp_toJsonLeanImport____x40_Lean_Data_Lsp_Extra___hyg_2991_(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; } } } +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_array_size(x_1); +x_3 = 0; +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10_spec__10(x_2, x_3, x_1); +x_5 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; +} +} LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -31105,7 +33112,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(x_5); +x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(x_5); lean_ctor_set_tag(x_2, 2); lean_ctor_set(x_2, 1, x_6); x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); @@ -31119,7 +33126,7 @@ x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_2); -x_10 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(x_9); +x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10(x_9); x_11 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_11, 0, x_8); lean_ctor_set(x_11, 1, x_10); @@ -31131,7 +33138,7 @@ return x_12; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__9(x_3, x_7); if (lean_obj_tag(x_34) == 0) { @@ -31315,9 +33322,9 @@ block_21: lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_string_append(x_11, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_10); +x_16 = lean_io_error_to_string(x_9); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); x_18 = lean_box(0); @@ -31325,8 +33332,8 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_8); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_9); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_10); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_8); return x_20; } block_33: @@ -31344,9 +33351,9 @@ x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed_ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); -x_8 = x_24; -x_9 = x_23; -x_10 = x_22; +x_8 = x_23; +x_9 = x_22; +x_10 = x_24; x_11 = x_25; x_12 = x_29; goto block_21; @@ -31357,9 +33364,9 @@ lean_object* x_30; lean_object* x_31; x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_24; -x_9 = x_23; -x_10 = x_22; +x_8 = x_23; +x_9 = x_22; +x_10 = x_24; x_11 = x_25; x_12 = x_31; goto block_21; @@ -31368,9 +33375,9 @@ default: { lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_24; -x_9 = x_23; -x_10 = x_22; +x_8 = x_23; +x_9 = x_22; +x_10 = x_24; x_11 = x_25; x_12 = x_32; goto block_21; @@ -31403,7 +33410,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); @@ -31464,12 +33471,12 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__13(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14_spec__14(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_inc(x_1); -x_3 = l_Lean_Lsp_fromJsonLeanModuleHierarchyImportedByParams____x40_Lean_Data_Lsp_Extra___hyg_3180_(x_1); +x_3 = l_Lean_Lsp_fromJsonLeanModuleHierarchyImportsParams____x40_Lean_Data_Lsp_Extra___hyg_3059_(x_1); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -31501,80 +33508,11 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14_spec__14(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l_Lean_Lsp_toJsonLeanImport____x40_Lean_Data_Lsp_Extra___hyg_2991_(x_5); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_7, x_2, x_8); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14(lean_object* x_1) { -_start: -{ -size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_array_size(x_1); -x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14_spec__14(x_2, x_3, x_1); -x_5 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_5, 0, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14(x_5); -lean_ctor_set_tag(x_2, 2); -lean_ctor_set(x_2, 1, x_6); -x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_2, 0); -x_9 = lean_ctor_get(x_2, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_2); -x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14(x_9); -x_11 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_IO_FS_Stream_writeLspMessage(x_1, x_11, x_3); -return x_12; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__13(x_3, x_7); +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14_spec__14(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -31600,7 +33538,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -31633,7 +33571,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -31703,7 +33641,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -31755,9 +33693,9 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_8, x_12); +x_13 = lean_string_append(x_9, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); x_16 = lean_io_error_to_string(x_11); x_17 = lean_string_append(x_15, x_16); @@ -31768,7 +33706,7 @@ lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_10); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_9); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_8); return x_20; } block_33: @@ -31786,8 +33724,8 @@ x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed_ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); -x_8 = x_25; -x_9 = x_23; +x_8 = x_23; +x_9 = x_25; x_10 = x_24; x_11 = x_22; x_12 = x_29; @@ -31799,8 +33737,8 @@ lean_object* x_30; lean_object* x_31; x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_25; -x_9 = x_23; +x_8 = x_23; +x_9 = x_25; x_10 = x_24; x_11 = x_22; x_12 = x_31; @@ -31810,8 +33748,8 @@ default: { lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_25; -x_9 = x_23; +x_8 = x_23; +x_9 = x_25; x_10 = x_24; x_11 = x_22; x_12 = x_32; @@ -31821,7 +33759,7 @@ goto block_21; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -31845,8 +33783,8 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13___lam__0), 7, 6); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); @@ -31906,12 +33844,12 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18_spec__18(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__16(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_inc(x_1); -x_3 = l_Lean_Lsp_fromJsonLeanModuleHierarchyImportsParams____x40_Lean_Data_Lsp_Extra___hyg_3059_(x_1); +x_3 = l_Lean_Lsp_fromJsonLeanPrepareModuleHierarchyParams____x40_Lean_Data_Lsp_Extra___hyg_2334_(x_1); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -31943,11 +33881,63 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +x_4 = l_Lean_Lsp_toJsonLeanModule____x40_Lean_Data_Lsp_Extra___hyg_2262_(x_3); +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17(x_5); +lean_dec(x_5); +lean_ctor_set_tag(x_2, 2); +lean_ctor_set(x_2, 1, x_6); +x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +x_10 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17(x_9); +lean_dec(x_9); +x_11 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_IO_FS_Stream_writeLspMessage(x_1, x_11, x_3); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18_spec__18(x_3, x_7); +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__16(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -31973,7 +33963,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -32006,7 +33996,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -32076,7 +34066,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -32128,11 +34118,11 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_11, x_12); +x_13 = lean_string_append(x_9, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_10); +x_16 = lean_io_error_to_string(x_11); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); x_18 = lean_box(0); @@ -32141,7 +34131,7 @@ lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_8); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_9); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_10); return x_20; } block_33: @@ -32160,9 +34150,9 @@ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); x_8 = x_24; -x_9 = x_23; -x_10 = x_22; -x_11 = x_25; +x_9 = x_25; +x_10 = x_23; +x_11 = x_22; x_12 = x_29; goto block_21; } @@ -32173,9 +34163,9 @@ x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); x_8 = x_24; -x_9 = x_23; -x_10 = x_22; -x_11 = x_25; +x_9 = x_25; +x_10 = x_23; +x_11 = x_22; x_12 = x_31; goto block_21; } @@ -32184,9 +34174,9 @@ default: lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; x_8 = x_24; -x_9 = x_23; -x_10 = x_22; -x_11 = x_25; +x_9 = x_25; +x_10 = x_23; +x_11 = x_22; x_12 = x_32; goto block_21; } @@ -32194,7 +34184,7 @@ goto block_21; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -32218,8 +34208,8 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18___lam__0), 7, 6); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); @@ -32284,7 +34274,7 @@ _start: { lean_object* x_3; lean_inc(x_1); -x_3 = l_Lean_Lsp_fromJsonLeanPrepareModuleHierarchyParams____x40_Lean_Data_Lsp_Extra___hyg_2334_(x_1); +x_3 = l_Lean_Lsp_fromJsonCallHierarchyOutgoingCallsParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7743_(x_1); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -32316,24 +34306,43 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21_spec__21(size_t x_1, size_t x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_1) == 0) +uint8_t x_4; +x_4 = lean_usize_dec_lt(x_2, x_1); +if (x_4 == 0) { -lean_object* x_2; -x_2 = lean_box(0); -return x_2; +return x_3; } else { -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_1, 0); -x_4 = l_Lean_Lsp_toJsonLeanModule____x40_Lean_Data_Lsp_Extra___hyg_2262_(x_3); -return x_4; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; +x_5 = lean_array_uget(x_3, x_2); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_array_uset(x_3, x_2, x_6); +x_8 = l_Lean_Lsp_toJsonCallHierarchyOutgoingCall____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7980_(x_5); +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_11 = lean_array_uset(x_7, x_2, x_8); +x_2 = x_10; +x_3 = x_11; +goto _start; } } } +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_array_size(x_1); +x_3 = 0; +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21_spec__21(x_2, x_3, x_1); +x_5 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; +} +} LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -32343,8 +34352,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(x_5); -lean_dec(x_5); +x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(x_5); lean_ctor_set_tag(x_2, 2); lean_ctor_set(x_2, 1, x_6); x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); @@ -32358,8 +34366,7 @@ x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_2); -x_10 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(x_9); -lean_dec(x_9); +x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(x_9); x_11 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_11, 0, x_8); lean_ctor_set(x_11, 1, x_10); @@ -32371,7 +34378,7 @@ return x_12; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__20(x_3, x_7); if (lean_obj_tag(x_34) == 0) { @@ -32553,9 +34560,9 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_10, x_12); +x_13 = lean_string_append(x_9, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); x_16 = lean_io_error_to_string(x_11); x_17 = lean_string_append(x_15, x_16); @@ -32565,8 +34572,8 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_9); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_8); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_8); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_10); return x_20; } block_33: @@ -32584,9 +34591,9 @@ x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed_ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); -x_8 = x_23; -x_9 = x_24; -x_10 = x_25; +x_8 = x_24; +x_9 = x_25; +x_10 = x_23; x_11 = x_22; x_12 = x_29; goto block_21; @@ -32597,9 +34604,9 @@ lean_object* x_30; lean_object* x_31; x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_23; -x_9 = x_24; -x_10 = x_25; +x_8 = x_24; +x_9 = x_25; +x_10 = x_23; x_11 = x_22; x_12 = x_31; goto block_21; @@ -32608,9 +34615,9 @@ default: { lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_23; -x_9 = x_24; -x_10 = x_25; +x_8 = x_24; +x_9 = x_25; +x_10 = x_23; x_11 = x_22; x_12 = x_32; goto block_21; @@ -32643,7 +34650,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); @@ -32704,449 +34711,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__24(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -lean_inc(x_1); -x_3 = l_Lean_Lsp_fromJsonCallHierarchyOutgoingCallsParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7743_(x_1); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec_ref(x_3); -x_5 = l_Lean_Server_Watchdog_parseParams___redArg___closed__0; -x_6 = l_Lean_Json_compress(x_1); -x_7 = lean_string_append(x_5, x_6); -lean_dec_ref(x_6); -x_8 = l_Lean_Server_Watchdog_parseParams___redArg___closed__1; -x_9 = lean_string_append(x_7, x_8); -x_10 = lean_string_append(x_9, x_4); -lean_dec(x_4); -x_11 = l_IO_throwServerError___redArg(x_10, x_2); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_1); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -lean_dec_ref(x_3); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_2); -return x_13; -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25_spec__25(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = lean_usize_dec_lt(x_2, x_1); -if (x_4 == 0) -{ -return x_3; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; -x_5 = lean_array_uget(x_3, x_2); -x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_array_uset(x_3, x_2, x_6); -x_8 = l_Lean_Lsp_toJsonCallHierarchyOutgoingCall____x40_Lean_Data_Lsp_LanguageFeatures___hyg_7980_(x_5); -x_9 = 1; -x_10 = lean_usize_add(x_2, x_9); -x_11 = lean_array_uset(x_7, x_2, x_8); -x_2 = x_10; -x_3 = x_11; -goto _start; -} -} -} -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25(lean_object* x_1) { -_start: -{ -size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_array_size(x_1); -x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25_spec__25(x_2, x_3, x_1); -x_5 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_5, 0, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25(x_5); -lean_ctor_set_tag(x_2, 2); -lean_ctor_set(x_2, 1, x_6); -x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_2, 0); -x_9 = lean_ctor_get(x_2, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_2); -x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25(x_9); -x_11 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_IO_FS_Stream_writeLspMessage(x_1, x_11, x_3); -return x_12; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__24(x_3, x_7); -if (lean_obj_tag(x_34) == 0) -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_34, 0); -x_37 = lean_ctor_get(x_34, 1); -lean_ctor_set(x_34, 1, x_5); -lean_ctor_set(x_34, 0, x_4); -x_38 = lean_apply_3(x_6, x_36, x_34, x_37); -if (lean_obj_tag(x_38) == 0) -{ -uint8_t x_39; -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_38, 0); -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_1); -lean_ctor_set(x_38, 1, x_40); -lean_ctor_set(x_38, 0, x_1); -lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25(x_2, x_38, x_41); -if (lean_obj_tag(x_42) == 0) -{ -lean_dec_ref(x_2); -lean_dec(x_1); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec_ref(x_42); -x_22 = x_43; -x_23 = x_44; -goto block_33; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_38, 0); -x_46 = lean_ctor_get(x_38, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_38); -lean_inc(x_1); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_1); -lean_ctor_set(x_47, 1, x_45); -lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25(x_2, x_47, x_46); -if (lean_obj_tag(x_48) == 0) -{ -lean_dec_ref(x_2); -lean_dec(x_1); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec_ref(x_48); -x_22 = x_49; -x_23 = x_50; -goto block_33; -} -} -} -else -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_38, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_38, 1); -lean_inc(x_52); -lean_dec_ref(x_38); -x_22 = x_51; -x_23 = x_52; -goto block_33; -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_34, 0); -x_54 = lean_ctor_get(x_34, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_34); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_4); -lean_ctor_set(x_55, 1, x_5); -x_56 = lean_apply_3(x_6, x_53, x_55, x_54); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; -} else { - lean_dec_ref(x_56); - x_59 = lean_box(0); -} -lean_inc(x_1); -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(0, 2, 0); -} else { - x_60 = x_59; -} -lean_ctor_set(x_60, 0, x_1); -lean_ctor_set(x_60, 1, x_57); -lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25(x_2, x_60, x_58); -if (lean_obj_tag(x_61) == 0) -{ -lean_dec_ref(x_2); -lean_dec(x_1); -return x_61; -} -else -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec_ref(x_61); -x_22 = x_62; -x_23 = x_63; -goto block_33; -} -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_56, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_56, 1); -lean_inc(x_65); -lean_dec_ref(x_56); -x_22 = x_64; -x_23 = x_65; -goto block_33; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec(x_4); -x_66 = lean_ctor_get(x_34, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_34, 1); -lean_inc(x_67); -lean_dec_ref(x_34); -x_22 = x_66; -x_23 = x_67; -goto block_33; -} -block_21: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_11, x_12); -lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; -x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_9); -x_17 = lean_string_append(x_15, x_16); -lean_dec_ref(x_16); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_17); -lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_8); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_10); -return x_20; -} -block_33: -{ -uint8_t x_24; lean_object* x_25; -x_24 = 4; -x_25 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__0; -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_26); -x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__1; -x_28 = lean_string_append(x_27, x_26); -lean_dec_ref(x_26); -x_29 = lean_string_append(x_28, x_27); -x_8 = x_24; -x_9 = x_22; -x_10 = x_23; -x_11 = x_25; -x_12 = x_29; -goto block_21; -} -case 1: -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_30); -x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_24; -x_9 = x_22; -x_10 = x_23; -x_11 = x_25; -x_12 = x_31; -goto block_21; -} -default: -{ -lean_object* x_32; -x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_24; -x_9 = x_22; -x_10 = x_23; -x_11 = x_25; -x_12 = x_32; -goto block_21; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_ctor_get(x_4, 1); -lean_inc_ref(x_6); -x_7 = lean_ctor_get(x_4, 4); -lean_inc(x_7); -x_8 = lean_st_ref_get(x_7, x_5); -lean_dec(x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec_ref(x_8); -x_11 = l_Lean_Server_Watchdog_getReferences(x_4, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24___lam__0), 7, 6); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_6); -lean_closure_set(x_15, 2, x_2); -lean_closure_set(x_15, 3, x_14); -lean_closure_set(x_15, 4, x_12); -lean_closure_set(x_15, 5, x_3); -x_16 = l_Lean_Server_ServerTask_IO_asTask___redArg(x_15, x_13); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -else -{ -uint8_t x_23; -lean_dec(x_9); -lean_dec_ref(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_23 = !lean_is_exclusive(x_11); -if (x_23 == 0) -{ -return x_11; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__29(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__25(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -33183,7 +34748,7 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30_spec__30(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26_spec__26(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -33208,19 +34773,19 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_array_size(x_1); x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30_spec__30(x_2, x_3, x_1); +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26_spec__26(x_2, x_3, x_1); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -33229,7 +34794,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30(x_5); +x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26(x_5); lean_ctor_set_tag(x_2, 2); lean_ctor_set(x_2, 1, x_6); x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); @@ -33243,7 +34808,7 @@ x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_2); -x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30(x_9); +x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26(x_9); x_11 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_11, 0, x_8); lean_ctor_set(x_11, 1, x_10); @@ -33252,11 +34817,11 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__29(x_3, x_7); +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__25(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -33282,7 +34847,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -33315,7 +34880,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -33385,7 +34950,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -33437,11 +35002,11 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_8, x_12); +x_13 = lean_string_append(x_9, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_10); +x_16 = lean_io_error_to_string(x_8); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); x_18 = lean_box(0); @@ -33449,8 +35014,8 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_9); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_11); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_11); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_10); return x_20; } block_33: @@ -33468,10 +35033,10 @@ x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed_ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); -x_8 = x_25; -x_9 = x_24; -x_10 = x_22; -x_11 = x_23; +x_8 = x_22; +x_9 = x_25; +x_10 = x_23; +x_11 = x_24; x_12 = x_29; goto block_21; } @@ -33481,10 +35046,10 @@ lean_object* x_30; lean_object* x_31; x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_25; -x_9 = x_24; -x_10 = x_22; -x_11 = x_23; +x_8 = x_22; +x_9 = x_25; +x_10 = x_23; +x_11 = x_24; x_12 = x_31; goto block_21; } @@ -33492,10 +35057,10 @@ default: { lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_25; -x_9 = x_24; -x_10 = x_22; -x_11 = x_23; +x_8 = x_22; +x_9 = x_25; +x_10 = x_23; +x_11 = x_24; x_12 = x_32; goto block_21; } @@ -33503,7 +35068,7 @@ goto block_21; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -33527,8 +35092,8 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29___lam__0), 7, 6); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); @@ -33588,7 +35153,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__34(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__30(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -33625,7 +35190,7 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35_spec__35(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31_spec__31(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -33650,19 +35215,19 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_array_size(x_1); x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35_spec__35(x_2, x_3, x_1); +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31_spec__31(x_2, x_3, x_1); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -33671,7 +35236,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35(x_5); +x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31(x_5); lean_ctor_set_tag(x_2, 2); lean_ctor_set(x_2, 1, x_6); x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); @@ -33685,7 +35250,7 @@ x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_2); -x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35(x_9); +x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31(x_9); x_11 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_11, 0, x_8); lean_ctor_set(x_11, 1, x_10); @@ -33694,11 +35259,11 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__34(x_3, x_7); +uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__30(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -33724,7 +35289,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -33757,7 +35322,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -33827,7 +35392,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -33881,7 +35446,7 @@ block_21: lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_string_append(x_10, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); x_16 = lean_io_error_to_string(x_9); x_17 = lean_string_append(x_15, x_16); @@ -33891,8 +35456,8 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_11); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_8); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_8); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_11); return x_20; } block_33: @@ -33910,10 +35475,10 @@ x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed_ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); -x_8 = x_23; +x_8 = x_24; x_9 = x_22; x_10 = x_25; -x_11 = x_24; +x_11 = x_23; x_12 = x_29; goto block_21; } @@ -33923,10 +35488,10 @@ lean_object* x_30; lean_object* x_31; x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_23; +x_8 = x_24; x_9 = x_22; x_10 = x_25; -x_11 = x_24; +x_11 = x_23; x_12 = x_31; goto block_21; } @@ -33934,10 +35499,10 @@ default: { lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_23; +x_8 = x_24; x_9 = x_22; x_10 = x_25; -x_11 = x_24; +x_11 = x_23; x_12 = x_32; goto block_21; } @@ -33945,7 +35510,7 @@ goto block_21; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -33969,8 +35534,8 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34___lam__0), 7, 6); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); @@ -34030,7 +35595,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__39(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__35(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -34067,7 +35632,7 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40_spec__40(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36_spec__36(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -34092,19 +35657,19 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36(lean_object* x_1) { _start: { size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_array_size(x_1); x_3 = 0; -x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40_spec__40(x_2, x_3, x_1); +x_4 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36_spec__36(x_2, x_3, x_1); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -34113,7 +35678,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_2, 1); -x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40(x_5); +x_6 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36(x_5); lean_ctor_set_tag(x_2, 2); lean_ctor_set(x_2, 1, x_6); x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); @@ -34127,7 +35692,7 @@ x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_2); -x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40(x_9); +x_10 = l_Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36(x_9); x_11 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_11, 0, x_8); lean_ctor_set(x_11, 1, x_10); @@ -34136,11 +35701,11 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__39(x_3, x_7); +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__35(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -34166,7 +35731,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -34199,7 +35764,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -34269,7 +35834,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -34321,11 +35886,11 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_10, x_12); +x_13 = lean_string_append(x_9, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_11); +x_16 = lean_io_error_to_string(x_10); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); x_18 = lean_box(0); @@ -34333,7 +35898,7 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_9); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_11); x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_8); return x_20; } @@ -34353,9 +35918,9 @@ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); x_8 = x_23; -x_9 = x_24; -x_10 = x_25; -x_11 = x_22; +x_9 = x_25; +x_10 = x_22; +x_11 = x_24; x_12 = x_29; goto block_21; } @@ -34366,9 +35931,9 @@ x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); x_8 = x_23; -x_9 = x_24; -x_10 = x_25; -x_11 = x_22; +x_9 = x_25; +x_10 = x_22; +x_11 = x_24; x_12 = x_31; goto block_21; } @@ -34377,9 +35942,9 @@ default: lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; x_8 = x_23; -x_9 = x_24; -x_10 = x_25; -x_11 = x_22; +x_9 = x_25; +x_10 = x_22; +x_11 = x_24; x_12 = x_32; goto block_21; } @@ -34387,7 +35952,7 @@ goto block_21; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -34411,8 +35976,8 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39___lam__0), 7, 6); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); @@ -34472,7 +36037,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44_spec__44(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__40(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -34509,11 +36074,43 @@ return x_13; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__41(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; -x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44_spec__44(x_3, x_7); +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(x_5); +lean_ctor_set_tag(x_2, 2); +lean_ctor_set(x_2, 1, x_6); +x_7 = l_IO_FS_Stream_writeLspMessage(x_1, x_2, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +x_10 = l_Array_toJson___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__6(x_9); +x_11 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_IO_FS_Stream_writeLspMessage(x_1, x_11, x_3); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_22; lean_object* x_23; lean_object* x_34; +x_34 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__40(x_3, x_7); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -34539,7 +36136,7 @@ lean_inc(x_1); lean_ctor_set(x_38, 1, x_40); lean_ctor_set(x_38, 0, x_1); lean_inc_ref(x_2); -x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1(x_2, x_38, x_41); +x_42 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__41(x_2, x_38, x_41); if (lean_obj_tag(x_42) == 0) { lean_dec_ref(x_2); @@ -34572,7 +36169,7 @@ x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_1); lean_ctor_set(x_47, 1, x_45); lean_inc_ref(x_2); -x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1(x_2, x_47, x_46); +x_48 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__41(x_2, x_47, x_46); if (lean_obj_tag(x_48) == 0) { lean_dec_ref(x_2); @@ -34642,7 +36239,7 @@ if (lean_is_scalar(x_59)) { lean_ctor_set(x_60, 0, x_1); lean_ctor_set(x_60, 1, x_57); lean_inc_ref(x_2); -x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1(x_2, x_60, x_58); +x_61 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40_spec__41(x_2, x_60, x_58); if (lean_obj_tag(x_61) == 0) { lean_dec_ref(x_2); @@ -34694,11 +36291,11 @@ goto block_33; block_21: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_13 = lean_string_append(x_10, x_12); +x_13 = lean_string_append(x_9, x_12); lean_dec_ref(x_12); -x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_14 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_15 = lean_string_append(x_13, x_14); -x_16 = lean_io_error_to_string(x_11); +x_16 = lean_io_error_to_string(x_8); x_17 = lean_string_append(x_15, x_16); lean_dec_ref(x_16); x_18 = lean_box(0); @@ -34706,8 +36303,8 @@ x_19 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_19, 0, x_1); lean_ctor_set(x_19, 1, x_17); lean_ctor_set(x_19, 2, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_8); -x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_9); +lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_11); +x_20 = l_IO_FS_Stream_writeLspResponseError(x_2, x_19, x_10); return x_20; } block_33: @@ -34725,10 +36322,10 @@ x_27 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed_ x_28 = lean_string_append(x_27, x_26); lean_dec_ref(x_26); x_29 = lean_string_append(x_28, x_27); -x_8 = x_24; -x_9 = x_23; -x_10 = x_25; -x_11 = x_22; +x_8 = x_22; +x_9 = x_25; +x_10 = x_23; +x_11 = x_24; x_12 = x_29; goto block_21; } @@ -34738,10 +36335,10 @@ lean_object* x_30; lean_object* x_31; x_30 = lean_ctor_get(x_1, 0); lean_inc_ref(x_30); x_31 = l_Lean_JsonNumber_toString(x_30); -x_8 = x_24; -x_9 = x_23; -x_10 = x_25; -x_11 = x_22; +x_8 = x_22; +x_9 = x_25; +x_10 = x_23; +x_11 = x_24; x_12 = x_31; goto block_21; } @@ -34749,10 +36346,10 @@ default: { lean_object* x_32; x_32 = l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__2; -x_8 = x_24; -x_9 = x_23; -x_10 = x_25; -x_11 = x_22; +x_8 = x_22; +x_9 = x_25; +x_10 = x_23; +x_11 = x_24; x_12 = x_32; goto block_21; } @@ -34760,7 +36357,7 @@ goto block_21; } } } -LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -34784,8 +36381,8 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec_ref(x_11); -x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5_spec__5(x_9); -x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44___lam__0), 7, 6); +x_14 = l_Std_DTreeMap_Internal_Impl_map___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1(x_9); +x_15 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40___lam__0), 7, 6); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_6); lean_closure_set(x_15, 2, x_2); @@ -34974,7 +36571,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("textDocument/definition", 23, 23); +x_1 = lean_mk_string_unchecked("textDocument/references", 23, 23); return x_1; } } @@ -34982,7 +36579,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("textDocument/declaration", 24, 24); +x_1 = lean_mk_string_unchecked("workspace/symbol", 16, 16); return x_1; } } @@ -34990,7 +36587,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("textDocument/references", 23, 23); +x_1 = lean_mk_string_unchecked("textDocument/prepareCallHierarchy", 33, 33); return x_1; } } @@ -34998,7 +36595,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("workspace/symbol", 16, 16); +x_1 = lean_mk_string_unchecked("callHierarchy/incomingCalls", 27, 27); return x_1; } } @@ -35006,7 +36603,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("textDocument/prepareCallHierarchy", 33, 33); +x_1 = lean_mk_string_unchecked("callHierarchy/outgoingCalls", 27, 27); return x_1; } } @@ -35014,7 +36611,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("callHierarchy/incomingCalls", 27, 27); +x_1 = lean_mk_string_unchecked("$/lean/prepareModuleHierarchy", 29, 29); return x_1; } } @@ -35022,7 +36619,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__6() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("callHierarchy/outgoingCalls", 27, 27); +x_1 = lean_mk_string_unchecked("$/lean/moduleHierarchy/imports", 30, 30); return x_1; } } @@ -35030,7 +36627,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("$/lean/prepareModuleHierarchy", 29, 29); +x_1 = lean_mk_string_unchecked("$/lean/moduleHierarchy/importedBy", 33, 33); return x_1; } } @@ -35038,7 +36635,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__8() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("$/lean/moduleHierarchy/imports", 30, 30); +x_1 = lean_mk_string_unchecked("textDocument/prepareRename", 26, 26); return x_1; } } @@ -35046,7 +36643,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__9() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("$/lean/moduleHierarchy/importedBy", 33, 33); +x_1 = lean_mk_string_unchecked("textDocument/rename", 19, 19); return x_1; } } @@ -35054,7 +36651,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__10() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("textDocument/prepareRename", 26, 26); +x_1 = lean_mk_string_unchecked("$/lean/waitForILeans", 20, 20); return x_1; } } @@ -35062,7 +36659,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__11() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("textDocument/rename", 19, 19); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_getReferences___lam__0___boxed), 3, 0); return x_1; } } @@ -35070,7 +36667,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__12() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("$/lean/waitForILeans", 20, 20); +x_1 = lean_mk_string_unchecked("Cannot process '$/lean/waitForILeans' request to closed file '", 62, 62); return x_1; } } @@ -35078,7 +36675,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__13() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_getReferences___lam__0___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRename), 3, 0); return x_1; } } @@ -35086,7 +36683,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__14() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Cannot process '$/lean/waitForILeans' request to closed file '", 62, 62); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handlePrepareRename), 3, 0); return x_1; } } @@ -35094,7 +36691,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__15() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRename), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleModuleHierarchyImportedBy), 3, 0); return x_1; } } @@ -35102,7 +36699,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__16() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handlePrepareRename), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleModuleHierarchyImports), 3, 0); return x_1; } } @@ -35110,7 +36707,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__17() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleModuleHierarchyImportedBy), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handlePrepareModuleHierarchy), 3, 0); return x_1; } } @@ -35118,7 +36715,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__18() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleModuleHierarchyImports), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls), 3, 0); return x_1; } } @@ -35126,7 +36723,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__19() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handlePrepareModuleHierarchy), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls), 3, 0); return x_1; } } @@ -35134,7 +36731,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__20() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handlePrepareCallHierarchy), 3, 0); return x_1; } } @@ -35142,27 +36739,11 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__21() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls), 3, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__22() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handlePrepareCallHierarchy), 3, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__23() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleWorkspaceSymbol), 3, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__24() { +static lean_object* _init_l_Lean_Server_Watchdog_handleRequest___closed__22() { _start: { lean_object* x_1; @@ -35173,467 +36754,336 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_handleRequest(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_28; uint8_t x_29; -x_28 = l_Lean_Server_Watchdog_handleRequest___closed__0; -x_29 = lean_string_dec_eq(x_2, x_28); -if (x_29 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_Server_Watchdog_handleRequest___closed__0; +x_7 = lean_string_dec_eq(x_2, x_6); +if (x_7 == 0) { -lean_object* x_30; uint8_t x_31; -x_30 = l_Lean_Server_Watchdog_handleRequest___closed__1; -x_31 = lean_string_dec_eq(x_2, x_30); -if (x_31 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_Server_Watchdog_handleRequest___closed__1; +x_9 = lean_string_dec_eq(x_2, x_8); +if (x_9 == 0) { -lean_object* x_32; uint8_t x_33; -x_32 = l_Lean_Server_Watchdog_handleRequest___closed__2; -x_33 = lean_string_dec_eq(x_2, x_32); -if (x_33 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_Server_Watchdog_handleRequest___closed__2; +x_11 = lean_string_dec_eq(x_2, x_10); +if (x_11 == 0) { -lean_object* x_34; uint8_t x_35; -x_34 = l_Lean_Server_Watchdog_handleRequest___closed__3; -x_35 = lean_string_dec_eq(x_2, x_34); -if (x_35 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = l_Lean_Server_Watchdog_handleRequest___closed__3; +x_13 = lean_string_dec_eq(x_2, x_12); +if (x_13 == 0) { -lean_object* x_36; uint8_t x_37; -x_36 = l_Lean_Server_Watchdog_handleRequest___closed__4; -x_37 = lean_string_dec_eq(x_2, x_36); -if (x_37 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_Server_Watchdog_handleRequest___closed__4; +x_15 = lean_string_dec_eq(x_2, x_14); +if (x_15 == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = l_Lean_Server_Watchdog_handleRequest___closed__5; -x_39 = lean_string_dec_eq(x_2, x_38); -if (x_39 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Server_Watchdog_handleRequest___closed__5; +x_17 = lean_string_dec_eq(x_2, x_16); +if (x_17 == 0) { -lean_object* x_40; uint8_t x_41; -x_40 = l_Lean_Server_Watchdog_handleRequest___closed__6; -x_41 = lean_string_dec_eq(x_2, x_40); -if (x_41 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = l_Lean_Server_Watchdog_handleRequest___closed__6; +x_19 = lean_string_dec_eq(x_2, x_18); +if (x_19 == 0) { -lean_object* x_42; uint8_t x_43; -x_42 = l_Lean_Server_Watchdog_handleRequest___closed__7; -x_43 = lean_string_dec_eq(x_2, x_42); -if (x_43 == 0) +lean_object* x_20; uint8_t x_21; +x_20 = l_Lean_Server_Watchdog_handleRequest___closed__7; +x_21 = lean_string_dec_eq(x_2, x_20); +if (x_21 == 0) { -lean_object* x_44; uint8_t x_45; -x_44 = l_Lean_Server_Watchdog_handleRequest___closed__8; -x_45 = lean_string_dec_eq(x_2, x_44); -if (x_45 == 0) +lean_object* x_22; uint8_t x_23; +x_22 = l_Lean_Server_Watchdog_handleRequest___closed__8; +x_23 = lean_string_dec_eq(x_2, x_22); +if (x_23 == 0) { -lean_object* x_46; uint8_t x_47; -x_46 = l_Lean_Server_Watchdog_handleRequest___closed__9; -x_47 = lean_string_dec_eq(x_2, x_46); -if (x_47 == 0) +lean_object* x_24; uint8_t x_25; +x_24 = l_Lean_Server_Watchdog_handleRequest___closed__9; +x_25 = lean_string_dec_eq(x_2, x_24); +if (x_25 == 0) { -lean_object* x_48; uint8_t x_49; -x_48 = l_Lean_Server_Watchdog_handleRequest___closed__10; -x_49 = lean_string_dec_eq(x_2, x_48); -if (x_49 == 0) +lean_object* x_26; uint8_t x_27; +x_26 = l_Lean_Server_Watchdog_handleRequest___closed__10; +x_27 = lean_string_dec_eq(x_2, x_26); +if (x_27 == 0) { -lean_object* x_50; uint8_t x_51; -x_50 = l_Lean_Server_Watchdog_handleRequest___closed__11; -x_51 = lean_string_dec_eq(x_2, x_50); -if (x_51 == 0) -{ -lean_object* x_52; uint8_t x_53; -x_52 = l_Lean_Server_Watchdog_handleRequest___closed__12; -x_53 = lean_string_dec_eq(x_2, x_52); -if (x_53 == 0) -{ -lean_object* x_54; -x_54 = l_Lean_Server_Watchdog_forwardRequestToWorker(x_1, x_2, x_3, x_4, x_5); -return x_54; +lean_object* x_28; +x_28 = l_Lean_Server_Watchdog_forwardRequestToWorker(x_1, x_2, x_3, x_4, x_5); +return x_28; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec_ref(x_2); -x_55 = lean_ctor_get(x_4, 1); -lean_inc_ref(x_55); -x_56 = lean_ctor_get(x_4, 7); -lean_inc_ref(x_56); -x_57 = l_Lean_Server_Watchdog_handleRequest___closed__13; +x_29 = lean_ctor_get(x_4, 1); +lean_inc_ref(x_29); +x_30 = lean_ctor_get(x_4, 7); +lean_inc_ref(x_30); +x_31 = l_Lean_Server_Watchdog_handleRequest___closed__11; lean_inc_ref(x_4); -lean_inc_ref(x_56); -x_58 = l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg(x_56, x_57, x_4, x_5); -if (lean_obj_tag(x_58) == 0) +lean_inc_ref(x_30); +x_32 = l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg(x_30, x_31, x_4, x_5); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec_ref(x_58); -x_61 = lean_ctor_get(x_59, 0); -lean_inc_ref(x_61); -lean_dec(x_59); -x_62 = lean_io_wait(x_61, x_60); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec_ref(x_62); -x_64 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleRequest_spec__4(x_3, x_63); -if (lean_obj_tag(x_64) == 0) +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec_ref(x_32); +x_35 = lean_ctor_get(x_33, 0); +lean_inc_ref(x_35); +lean_dec(x_33); +x_36 = lean_io_wait(x_35, x_34); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec_ref(x_36); +x_38 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleRequest_spec__0(x_3, x_37); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec_ref(x_64); -x_67 = lean_ctor_get(x_65, 0); -lean_inc_ref(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -lean_dec(x_65); -x_69 = l_Lean_Server_Watchdog_getFileWorker_x3f(x_67, x_4, x_66); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -if (lean_obj_tag(x_70) == 0) +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec_ref(x_38); +x_41 = lean_ctor_get(x_39, 0); +lean_inc_ref(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l_Lean_Server_Watchdog_getFileWorker_x3f(x_41, x_4, x_40); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_dec(x_68); -lean_dec_ref(x_56); +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_42); +lean_dec_ref(x_30); lean_dec_ref(x_4); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec_ref(x_69); -x_72 = 7; -x_73 = l_Lean_Server_Watchdog_handleRequest___closed__14; -x_74 = lean_string_append(x_73, x_67); -lean_dec_ref(x_67); -x_75 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; -x_76 = lean_string_append(x_74, x_75); -x_77 = lean_box(0); -x_78 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_78, 0, x_1); -lean_ctor_set(x_78, 1, x_76); -lean_ctor_set(x_78, 2, x_77); -lean_ctor_set_uint8(x_78, sizeof(void*)*3, x_72); -x_79 = l_IO_FS_Stream_writeLspResponseError(x_55, x_78, x_71); -if (lean_obj_tag(x_79) == 0) +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec_ref(x_43); +x_46 = 7; +x_47 = l_Lean_Server_Watchdog_handleRequest___closed__12; +x_48 = lean_string_append(x_47, x_41); +lean_dec_ref(x_41); +x_49 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; +x_50 = lean_string_append(x_48, x_49); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_52, 0, x_1); +lean_ctor_set(x_52, 1, x_50); +lean_ctor_set(x_52, 2, x_51); +lean_ctor_set_uint8(x_52, sizeof(void*)*3, x_46); +x_53 = l_IO_FS_Stream_writeLspResponseError(x_29, x_52, x_45); +if (lean_obj_tag(x_53) == 0) { -uint8_t x_80; -x_80 = !lean_is_exclusive(x_79); -if (x_80 == 0) +uint8_t x_54; +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_55); +x_56 = lean_box(0); +lean_ctor_set(x_53, 0, x_56); +return x_53; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_dec(x_53); +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +return x_59; +} +} +else +{ +return x_53; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_44); +x_60 = lean_ctor_get(x_43, 1); +lean_inc(x_60); +lean_dec_ref(x_43); +lean_inc(x_42); +lean_inc(x_1); +lean_inc_ref(x_41); +x_61 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest___lam__1), 4, 3); +lean_closure_set(x_61, 0, x_41); +lean_closure_set(x_61, 1, x_1); +lean_closure_set(x_61, 2, x_42); +x_62 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest___lam__0), 2, 1); +lean_closure_set(x_62, 0, x_61); +x_63 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest___lam__2___boxed), 8, 5); +lean_closure_set(x_63, 0, x_41); +lean_closure_set(x_63, 1, x_62); +lean_closure_set(x_63, 2, x_1); +lean_closure_set(x_63, 3, x_29); +lean_closure_set(x_63, 4, x_42); +x_64 = l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg(x_30, x_63, x_4, x_60); +return x_64; +} +} +else +{ +uint8_t x_65; +lean_dec_ref(x_30); +lean_dec_ref(x_29); +lean_dec_ref(x_4); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_38); +if (x_65 == 0) +{ +return x_38; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_38, 0); +x_67 = lean_ctor_get(x_38, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_38); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +uint8_t x_69; +lean_dec_ref(x_30); +lean_dec_ref(x_29); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_69 = !lean_is_exclusive(x_32); +if (x_69 == 0) +{ +return x_32; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_32, 0); +x_71 = lean_ctor_get(x_32, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_32); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +} +else +{ +lean_object* x_73; lean_object* x_74; +lean_dec_ref(x_2); +x_73 = l_Lean_Server_Watchdog_handleRequest___closed__13; +x_74 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__1(x_1, x_3, x_73, x_4, x_5); +return x_74; +} +} +else +{ +lean_object* x_75; lean_object* x_76; +lean_dec_ref(x_2); +x_75 = l_Lean_Server_Watchdog_handleRequest___closed__14; +x_76 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5(x_1, x_3, x_75, x_4, x_5); +return x_76; +} +} +else +{ +lean_object* x_77; lean_object* x_78; +lean_dec_ref(x_2); +x_77 = l_Lean_Server_Watchdog_handleRequest___closed__15; +x_78 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9(x_1, x_3, x_77, x_4, x_5); +return x_78; +} +} +else +{ +lean_object* x_79; lean_object* x_80; +lean_dec_ref(x_2); +x_79 = l_Lean_Server_Watchdog_handleRequest___closed__16; +x_80 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__14(x_1, x_3, x_79, x_4, x_5); +return x_80; +} +} +else { lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_79, 0); -lean_dec(x_81); -x_82 = lean_box(0); -lean_ctor_set(x_79, 0, x_82); -return x_79; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_79, 1); -lean_inc(x_83); -lean_dec(x_79); -x_84 = lean_box(0); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -return x_85; +lean_dec_ref(x_2); +x_81 = l_Lean_Server_Watchdog_handleRequest___closed__17; +x_82 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16(x_1, x_3, x_81, x_4, x_5); +return x_82; } } else { -return x_79; +lean_object* x_83; lean_object* x_84; +lean_dec_ref(x_2); +x_83 = l_Lean_Server_Watchdog_handleRequest___closed__18; +x_84 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20(x_1, x_3, x_83, x_4, x_5); +return x_84; } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_70); -x_86 = lean_ctor_get(x_69, 1); -lean_inc(x_86); -lean_dec_ref(x_69); -lean_inc(x_68); -lean_inc(x_1); -lean_inc_ref(x_67); -x_87 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest___lam__1), 4, 3); -lean_closure_set(x_87, 0, x_67); -lean_closure_set(x_87, 1, x_1); -lean_closure_set(x_87, 2, x_68); -x_88 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest___lam__0), 2, 1); -lean_closure_set(x_88, 0, x_87); -x_89 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleRequest___lam__2___boxed), 8, 5); -lean_closure_set(x_89, 0, x_67); -lean_closure_set(x_89, 1, x_88); -lean_closure_set(x_89, 2, x_1); -lean_closure_set(x_89, 3, x_55); -lean_closure_set(x_89, 4, x_68); -x_90 = l_Std_Mutex_atomically___at___Lean_Server_Watchdog_getReferences_spec__0___redArg(x_56, x_89, x_4, x_86); +lean_object* x_85; lean_object* x_86; +lean_dec_ref(x_2); +x_85 = l_Lean_Server_Watchdog_handleRequest___closed__19; +x_86 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25(x_1, x_3, x_85, x_4, x_5); +return x_86; +} +} +else +{ +lean_object* x_87; lean_object* x_88; +lean_dec_ref(x_2); +x_87 = l_Lean_Server_Watchdog_handleRequest___closed__20; +x_88 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30(x_1, x_3, x_87, x_4, x_5); +return x_88; +} +} +else +{ +lean_object* x_89; lean_object* x_90; +lean_dec_ref(x_2); +x_89 = l_Lean_Server_Watchdog_handleRequest___closed__21; +x_90 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35(x_1, x_3, x_89, x_4, x_5); return x_90; } } else { -uint8_t x_91; -lean_dec_ref(x_56); -lean_dec_ref(x_55); -lean_dec_ref(x_4); -lean_dec(x_1); -x_91 = !lean_is_exclusive(x_64); -if (x_91 == 0) -{ -return x_64; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_64, 0); -x_93 = lean_ctor_get(x_64, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_64); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; -} -} -} -else -{ -uint8_t x_95; -lean_dec_ref(x_56); -lean_dec_ref(x_55); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_95 = !lean_is_exclusive(x_58); -if (x_95 == 0) -{ -return x_58; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_58, 0); -x_97 = lean_ctor_get(x_58, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_58); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -} -else -{ -lean_object* x_99; lean_object* x_100; +lean_object* x_91; lean_object* x_92; lean_dec_ref(x_2); -x_99 = l_Lean_Server_Watchdog_handleRequest___closed__15; -x_100 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__5(x_1, x_3, x_99, x_4, x_5); -return x_100; -} -} -else -{ -lean_object* x_101; lean_object* x_102; -lean_dec_ref(x_2); -x_101 = l_Lean_Server_Watchdog_handleRequest___closed__16; -x_102 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9(x_1, x_3, x_101, x_4, x_5); -return x_102; -} -} -else -{ -lean_object* x_103; lean_object* x_104; -lean_dec_ref(x_2); -x_103 = l_Lean_Server_Watchdog_handleRequest___closed__17; -x_104 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13(x_1, x_3, x_103, x_4, x_5); -return x_104; -} -} -else -{ -lean_object* x_105; lean_object* x_106; -lean_dec_ref(x_2); -x_105 = l_Lean_Server_Watchdog_handleRequest___closed__18; -x_106 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__18(x_1, x_3, x_105, x_4, x_5); -return x_106; -} -} -else -{ -lean_object* x_107; lean_object* x_108; -lean_dec_ref(x_2); -x_107 = l_Lean_Server_Watchdog_handleRequest___closed__19; -x_108 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20(x_1, x_3, x_107, x_4, x_5); -return x_108; -} -} -else -{ -lean_object* x_109; lean_object* x_110; -lean_dec_ref(x_2); -x_109 = l_Lean_Server_Watchdog_handleRequest___closed__20; -x_110 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24(x_1, x_3, x_109, x_4, x_5); -return x_110; -} -} -else -{ -lean_object* x_111; lean_object* x_112; -lean_dec_ref(x_2); -x_111 = l_Lean_Server_Watchdog_handleRequest___closed__21; -x_112 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29(x_1, x_3, x_111, x_4, x_5); -return x_112; -} -} -else -{ -lean_object* x_113; lean_object* x_114; -lean_dec_ref(x_2); -x_113 = l_Lean_Server_Watchdog_handleRequest___closed__22; -x_114 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34(x_1, x_3, x_113, x_4, x_5); -return x_114; -} -} -else -{ -lean_object* x_115; lean_object* x_116; -lean_dec_ref(x_2); -x_115 = l_Lean_Server_Watchdog_handleRequest___closed__23; -x_116 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39(x_1, x_3, x_115, x_4, x_5); -return x_116; -} -} -else -{ -lean_object* x_117; lean_object* x_118; -lean_dec_ref(x_2); -x_117 = l_Lean_Server_Watchdog_handleRequest___closed__24; -x_118 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__44(x_1, x_3, x_117, x_4, x_5); -return x_118; -} -} -else -{ -lean_inc_ref(x_4); -x_6 = x_4; -x_7 = x_5; -goto block_27; -} -} -else -{ -lean_inc_ref(x_4); -x_6 = x_4; -x_7 = x_5; -goto block_27; -} -block_27: -{ -lean_object* x_8; -lean_inc(x_3); -x_8 = l_Lean_Server_Watchdog_parseParams___at___Lean_Server_Watchdog_handleRequest_spec__0(x_3, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec_ref(x_8); -lean_inc_ref(x_6); -x_11 = l_Lean_Server_Watchdog_findDefinitions(x_9, x_6, x_10); -lean_dec(x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec_ref(x_11); -x_14 = l_Array_isEmpty___redArg(x_12); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -lean_dec_ref(x_6); -lean_dec(x_3); -lean_dec_ref(x_2); -x_15 = lean_ctor_get(x_4, 1); -lean_inc_ref(x_15); -lean_dec_ref(x_4); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_12); -x_17 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1(x_15, x_16, x_13); -return x_17; -} -else -{ -lean_object* x_18; -lean_dec(x_12); -lean_dec_ref(x_4); -x_18 = l_Lean_Server_Watchdog_forwardRequestToWorker(x_1, x_2, x_3, x_6, x_13); -return x_18; -} -} -else -{ -uint8_t x_19; -lean_dec_ref(x_6); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -return x_11; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_11); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_91 = l_Lean_Server_Watchdog_handleRequest___closed__22; +x_92 = l_Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__40(x_1, x_3, x_91, x_4, x_5); +return x_92; } } } -else -{ -uint8_t x_23; -lean_dec_ref(x_6); -lean_dec_ref(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); -lean_dec(x_1); -x_23 = !lean_is_exclusive(x_8); -if (x_23 == 0) -{ -return x_8; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_8, 0); -x_25 = lean_ctor_get(x_8, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_8); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10_spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -35641,32 +37091,20 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleRequest_spec__1_spec__1_spec__1(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__9_spec__10_spec__10_spec__10(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14_spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__13_spec__14_spec__14_spec__14(x_4, x_5, x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21(x_1); +x_2 = l_Option_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__16_spec__17_spec__17(x_1); lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25_spec__25___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21_spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -35674,11 +37112,11 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__24_spec__25_spec__25_spec__25(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__20_spec__21_spec__21_spec__21(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30_spec__30___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26_spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -35686,11 +37124,11 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__29_spec__30_spec__30_spec__30(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__25_spec__26_spec__26_spec__26(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35_spec__35___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31_spec__31___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -35698,11 +37136,11 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__34_spec__35_spec__35_spec__35(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__30_spec__31_spec__31_spec__31(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40_spec__40___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36_spec__36___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; size_t x_5; lean_object* x_6; @@ -35710,7 +37148,7 @@ x_4 = lean_unbox_usize(x_1); lean_dec(x_1); x_5 = lean_unbox_usize(x_2); lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__39_spec__40_spec__40_spec__40(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___Array_toJson___at___IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_handleReferenceRequest___at___Lean_Server_Watchdog_handleRequest_spec__35_spec__36_spec__36_spec__36(x_4, x_5, x_3); return x_6; } } @@ -37173,9 +38611,9 @@ if (x_77 == 0) uint8_t x_78; lean_object* x_79; x_78 = 11; x_79 = l_Lean_Server_Watchdog_mainLoop___closed__5; -x_27 = x_63; -x_28 = x_74; -x_29 = x_73; +x_27 = x_74; +x_28 = x_73; +x_29 = x_63; x_30 = x_64; x_31 = x_78; x_32 = x_79; @@ -37186,9 +38624,9 @@ else uint8_t x_80; lean_object* x_81; x_80 = 10; x_81 = l_Lean_Server_Watchdog_mainLoop___closed__6; -x_27 = x_63; -x_28 = x_74; -x_29 = x_73; +x_27 = x_74; +x_28 = x_73; +x_29 = x_63; x_30 = x_64; x_31 = x_80; x_32 = x_81; @@ -37214,7 +38652,7 @@ lean_dec(x_65); x_85 = l_Lean_Server_Watchdog_mainLoop___closed__7; x_86 = lean_string_append(x_85, x_83); lean_dec_ref(x_83); -x_87 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_; +x_87 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_; x_88 = lean_string_append(x_86, x_87); x_89 = lean_io_error_to_string(x_84); x_90 = lean_string_append(x_88, x_89); @@ -37546,7 +38984,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_13); -x_15 = l_IO_FS_Stream_writeLspMessage(x_8, x_14, x_12); +x_15 = l_IO_FS_Stream_writeLspMessage(x_8, x_14, x_10); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; uint8_t x_17; lean_object* x_18; @@ -37555,7 +38993,7 @@ lean_inc(x_16); lean_dec_ref(x_15); x_17 = 0; lean_inc_ref(x_2); -x_18 = l_Lean_Server_Watchdog_setWorkerState(x_10, x_17, x_2, x_16); +x_18 = l_Lean_Server_Watchdog_setWorkerState(x_12, x_17, x_2, x_16); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; @@ -37574,7 +39012,7 @@ return x_18; } else { -lean_dec_ref(x_10); +lean_dec_ref(x_12); lean_dec_ref(x_2); lean_dec_ref(x_1); return x_15; @@ -37584,15 +39022,15 @@ block_51: { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_33 = l_Lean_Server_Watchdog_mainLoop___closed__1; -x_34 = lean_string_append(x_33, x_28); +x_34 = lean_string_append(x_33, x_27); x_35 = l_Lean_Server_Watchdog_mainLoop___closed__2; x_36 = lean_string_append(x_34, x_35); x_37 = lean_string_append(x_36, x_32); lean_dec_ref(x_32); -x_38 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_; +x_38 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5; x_39 = lean_string_append(x_37, x_38); lean_inc_ref(x_2); -x_40 = l_Lean_Server_Watchdog_errorPendingRequests(x_28, x_31, x_39, x_2, x_29); +x_40 = l_Lean_Server_Watchdog_errorPendingRequests(x_27, x_31, x_39, x_2, x_28); if (lean_obj_tag(x_40) == 0) { lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -37606,15 +39044,15 @@ lean_inc_ref(x_44); x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); lean_dec_ref(x_43); -x_46 = l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__5(x_45); +x_46 = l_Lean_Json_toStructured_x3f___at___Lean_Server_Watchdog_startFileWorker_spec__6(x_45); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_dec_ref(x_46); x_47 = lean_box(0); -x_10 = x_27; +x_10 = x_41; x_11 = x_44; -x_12 = x_41; +x_12 = x_29; x_13 = x_47; goto block_21; } @@ -37624,9 +39062,9 @@ uint8_t x_48; x_48 = !lean_is_exclusive(x_46); if (x_48 == 0) { -x_10 = x_27; +x_10 = x_41; x_11 = x_44; -x_12 = x_41; +x_12 = x_29; x_13 = x_46; goto block_21; } @@ -37638,9 +39076,9 @@ lean_inc(x_49); lean_dec(x_46); x_50 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_50, 0, x_49); -x_10 = x_27; +x_10 = x_41; x_11 = x_44; -x_12 = x_41; +x_12 = x_29; x_13 = x_50; goto block_21; } @@ -37649,7 +39087,7 @@ goto block_21; else { lean_dec_ref(x_30); -lean_dec_ref(x_27); +lean_dec_ref(x_29); lean_dec_ref(x_8); lean_dec_ref(x_2); lean_dec_ref(x_1); @@ -37700,7 +39138,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_mkLeanServerCapabilities___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_; +x_1 = l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5; x_2 = l_Lean_Server_Watchdog_startFileWorker___closed__7; x_3 = lean_array_push(x_2, x_1); return x_3; @@ -38795,7 +40233,7 @@ x_15 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotification x_16 = lean_string_append(x_14, x_15); x_17 = lean_string_append(x_16, x_10); lean_dec_ref(x_10); -x_18 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_18 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_19 = lean_string_append(x_17, x_18); x_20 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_20, 0, x_19); @@ -38831,7 +40269,7 @@ x_26 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotification x_27 = lean_string_append(x_25, x_26); x_28 = lean_string_append(x_27, x_22); lean_dec_ref(x_22); -x_29 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_29 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_30 = lean_string_append(x_28, x_29); x_31 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_31, 0, x_30); @@ -38880,7 +40318,7 @@ x_40 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotification x_41 = lean_string_append(x_39, x_40); x_42 = lean_string_append(x_41, x_35); lean_dec_ref(x_35); -x_43 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_43 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_44 = lean_string_append(x_42, x_43); x_45 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_45, 0, x_44); @@ -39163,7 +40601,7 @@ block_133: { lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_115); +lean_ctor_set(x_119, 0, x_116); lean_ctor_set(x_119, 1, x_118); x_120 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__11; x_121 = lean_alloc_ctor(3, 1, 0); @@ -39184,13 +40622,13 @@ lean_dec(x_114); x_128 = l_List_appendTR___redArg(x_125, x_127); x_129 = l_Lean_Json_mkObj(x_128); x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_117); +lean_ctor_set(x_130, 0, x_115); lean_ctor_set(x_130, 1, x_129); x_131 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_123); x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_116); +lean_ctor_set(x_132, 0, x_117); lean_ctor_set(x_132, 1, x_131); x_54 = x_132; goto block_63; @@ -39208,9 +40646,9 @@ case 0: { lean_object* x_139; x_139 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__18; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_139; goto block_133; } @@ -39218,9 +40656,9 @@ case 1: { lean_object* x_140; x_140 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__22; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_140; goto block_133; } @@ -39228,9 +40666,9 @@ case 2: { lean_object* x_141; x_141 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__26; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_141; goto block_133; } @@ -39238,9 +40676,9 @@ case 3: { lean_object* x_142; x_142 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__30; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_142; goto block_133; } @@ -39248,9 +40686,9 @@ case 4: { lean_object* x_143; x_143 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__34; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_143; goto block_133; } @@ -39258,9 +40696,9 @@ case 5: { lean_object* x_144; x_144 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__38; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_144; goto block_133; } @@ -39268,9 +40706,9 @@ case 6: { lean_object* x_145; x_145 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__42; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_145; goto block_133; } @@ -39278,9 +40716,9 @@ case 7: { lean_object* x_146; x_146 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__46; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_146; goto block_133; } @@ -39288,9 +40726,9 @@ case 8: { lean_object* x_147; x_147 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__50; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_147; goto block_133; } @@ -39298,9 +40736,9 @@ case 9: { lean_object* x_148; x_148 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__54; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_148; goto block_133; } @@ -39308,9 +40746,9 @@ case 10: { lean_object* x_149; x_149 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__58; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_149; goto block_133; } @@ -39318,9 +40756,9 @@ default: { lean_object* x_150; x_150 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__62; -x_115 = x_138; -x_116 = x_136; -x_117 = x_137; +x_115 = x_137; +x_116 = x_138; +x_117 = x_136; x_118 = x_150; goto block_133; } @@ -39338,7 +40776,7 @@ x_56 = l_Lean_Json_mkObj(x_55); x_57 = l_Lean_Json_compress(x_56); x_58 = lean_string_append(x_52, x_57); lean_dec_ref(x_57); -x_59 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_59 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_60 = lean_string_append(x_58, x_59); x_61 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_61, 0, x_60); @@ -40553,27 +41991,7 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = l_Lean_Json_Structured_toJson(x_3); -return x_4; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -40582,7 +42000,7 @@ x_4 = l_Lean_Lsp_fromJsonClientCapabilities____x40_Lean_Data_Lsp_Capabilities___ return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -40591,7 +42009,7 @@ x_4 = l_Lean_Json_getInt_x3f(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__3(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -40600,7 +42018,7 @@ x_4 = l_Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_75_( return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -40609,7 +42027,7 @@ x_4 = l_Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5_spec__5(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4_spec__4(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -40664,15 +42082,7 @@ goto _start; } } } -static lean_object* _init_l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("expected JSON array, got '", 26, 26); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 4) @@ -40683,18 +42093,18 @@ lean_inc_ref(x_2); lean_dec(x_1); x_3 = lean_array_size(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5_spec__5(x_3, x_4, x_2); +x_5 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4_spec__4(x_3, x_4, x_2); return x_5; } else { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_6 = l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5___closed__0; +x_6 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0; x_7 = lean_unsigned_to_nat(80u); x_8 = l_Lean_Json_pretty(x_1, x_7); x_9 = lean_string_append(x_6, x_8); lean_dec_ref(x_8); -x_10 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_10 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_11 = lean_string_append(x_9, x_10); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); @@ -40702,16 +42112,16 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5(x_3); +x_4 = l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4(x_3); return x_4; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__0() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__0() { _start: { lean_object* x_1; @@ -40719,17 +42129,17 @@ x_1 = lean_mk_string_unchecked("unknown trace", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__1() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__0; +x_1 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__0; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__2() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__2() { _start: { lean_object* x_1; @@ -40737,7 +42147,7 @@ x_1 = lean_mk_string_unchecked("off", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__3() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__3() { _start: { lean_object* x_1; @@ -40745,7 +42155,7 @@ x_1 = lean_mk_string_unchecked("messages", 8, 8); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__4() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__4() { _start: { lean_object* x_1; @@ -40753,7 +42163,7 @@ x_1 = lean_mk_string_unchecked("verbose", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__5() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -40764,7 +42174,7 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__6() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__6() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -40775,7 +42185,7 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__7() { +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__7() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -40786,7 +42196,7 @@ lean_ctor_set(x_3, 0, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_5; lean_object* x_6; @@ -40803,17 +42213,17 @@ lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); lean_dec_ref(x_6); -x_8 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__2; +x_8 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__2; x_9 = lean_string_dec_eq(x_7, x_8); if (x_9 == 0) { lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__3; +x_10 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__3; x_11 = lean_string_dec_eq(x_7, x_10); if (x_11 == 0) { lean_object* x_12; uint8_t x_13; -x_12 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__4; +x_12 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__4; x_13 = lean_string_dec_eq(x_7, x_12); lean_dec(x_7); if (x_13 == 0) @@ -40823,7 +42233,7 @@ goto block_4; else { lean_object* x_14; -x_14 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__5; +x_14 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__5; return x_14; } } @@ -40831,7 +42241,7 @@ else { lean_object* x_15; lean_dec(x_7); -x_15 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__6; +x_15 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__6; return x_15; } } @@ -40839,14 +42249,14 @@ else { lean_object* x_16; lean_dec(x_7); -x_16 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__7; +x_16 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__7; return x_16; } } block_4: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__1; return x_3; } } @@ -40991,7 +42401,7 @@ x_16 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotification x_17 = lean_string_append(x_15, x_16); x_18 = lean_string_append(x_17, x_10); lean_dec_ref(x_10); -x_19 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_19 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_20 = lean_string_append(x_18, x_19); x_21 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_21, 0, x_20); @@ -41009,10 +42419,10 @@ else { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_dec_ref(x_10); -x_23 = l_Option_toJson___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(x_11); +x_23 = l_Option_toJson___at___Lean_JsonRpc_Request_ofMessage_x3f_spec__0(x_11); x_24 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__0; lean_inc(x_23); -x_25 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1(x_23, x_24); +x_25 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(x_23, x_24); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -41086,19 +42496,19 @@ lean_inc(x_50); lean_dec_ref(x_25); x_72 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__4; lean_inc(x_23); -x_73 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__2(x_23, x_72); +x_73 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1(x_23, x_72); x_74 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__5; lean_inc(x_23); -x_75 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__3(x_23, x_74); +x_75 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__2(x_23, x_74); x_76 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__6; lean_inc(x_23); x_77 = l_Lean_Json_getObjValAs_x3f___at___fromJsonShowMessageParams____x40_Lean_Data_Lsp_Window___hyg_144__spec__1(x_23, x_76); x_78 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__7; lean_inc(x_23); -x_79 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4(x_23, x_78); +x_79 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__3(x_23, x_78); x_115 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__9; lean_inc(x_23); -x_116 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8(x_23, x_115); +x_116 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7(x_23, x_115); if (lean_obj_tag(x_116) == 0) { uint8_t x_117; @@ -41122,10 +42532,10 @@ block_60: { lean_object* x_57; lean_object* x_58; lean_object* x_59; x_57 = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 0, x_52); lean_ctor_set(x_57, 1, x_51); -lean_ctor_set(x_57, 2, x_52); -lean_ctor_set(x_57, 3, x_55); +lean_ctor_set(x_57, 2, x_55); +lean_ctor_set(x_57, 3, x_53); lean_ctor_set(x_57, 4, x_50); lean_ctor_set(x_57, 5, x_56); lean_ctor_set_uint8(x_57, sizeof(void*)*6, x_54); @@ -41148,46 +42558,46 @@ return x_59; } block_71: { -if (lean_obj_tag(x_62) == 0) +if (lean_obj_tag(x_61) == 0) { lean_object* x_67; -lean_dec_ref(x_62); +lean_dec_ref(x_61); x_67 = lean_box(0); -x_51 = x_61; -x_52 = x_64; -x_53 = x_63; +x_51 = x_62; +x_52 = x_63; +x_53 = x_66; x_54 = x_65; -x_55 = x_66; +x_55 = x_64; x_56 = x_67; goto block_60; } else { uint8_t x_68; -x_68 = !lean_is_exclusive(x_62); +x_68 = !lean_is_exclusive(x_61); if (x_68 == 0) { -x_51 = x_61; -x_52 = x_64; -x_53 = x_63; +x_51 = x_62; +x_52 = x_63; +x_53 = x_66; x_54 = x_65; -x_55 = x_66; -x_56 = x_62; +x_55 = x_64; +x_56 = x_61; goto block_60; } else { lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_62, 0); +x_69 = lean_ctor_get(x_61, 0); lean_inc(x_69); -lean_dec(x_62); +lean_dec(x_61); x_70 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_70, 0, x_69); -x_51 = x_61; -x_52 = x_64; -x_53 = x_63; +x_51 = x_62; +x_52 = x_63; +x_53 = x_66; x_54 = x_65; -x_55 = x_66; +x_55 = x_64; x_56 = x_70; goto block_60; } @@ -41247,8 +42657,8 @@ if (lean_obj_tag(x_77) == 0) lean_object* x_94; lean_dec_ref(x_77); x_94 = lean_box(0); -x_80 = x_93; -x_81 = x_90; +x_80 = x_90; +x_81 = x_93; x_82 = x_91; x_83 = x_92; x_84 = x_94; @@ -41260,8 +42670,8 @@ uint8_t x_95; x_95 = !lean_is_exclusive(x_77); if (x_95 == 0) { -x_80 = x_93; -x_81 = x_90; +x_80 = x_90; +x_81 = x_93; x_82 = x_91; x_83 = x_92; x_84 = x_77; @@ -41275,8 +42685,8 @@ lean_inc(x_96); lean_dec(x_77); x_97 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_97, 0, x_96); -x_80 = x_93; -x_81 = x_90; +x_80 = x_90; +x_81 = x_93; x_82 = x_91; x_83 = x_92; x_84 = x_97; @@ -41329,7 +42739,7 @@ block_114: { lean_object* x_108; lean_object* x_109; x_108 = l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__8; -x_109 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5(x_23, x_108); +x_109 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4(x_23, x_108); if (lean_obj_tag(x_73) == 0) { lean_object* x_110; @@ -41623,7 +43033,7 @@ block_203: { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 0, x_185); lean_ctor_set(x_189, 1, x_188); x_190 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__11; x_191 = lean_alloc_ctor(3, 1, 0); @@ -41644,7 +43054,7 @@ lean_dec(x_184); x_198 = l_List_appendTR___redArg(x_195, x_197); x_199 = l_Lean_Json_mkObj(x_198); x_200 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_200, 0, x_185); +lean_ctor_set(x_200, 0, x_187); lean_ctor_set(x_200, 1, x_199); x_201 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_201, 0, x_200); @@ -41668,9 +43078,9 @@ case 0: { lean_object* x_209; x_209 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__18; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_209; goto block_203; } @@ -41678,9 +43088,9 @@ case 1: { lean_object* x_210; x_210 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__22; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_210; goto block_203; } @@ -41688,9 +43098,9 @@ case 2: { lean_object* x_211; x_211 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__26; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_211; goto block_203; } @@ -41698,9 +43108,9 @@ case 3: { lean_object* x_212; x_212 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__30; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_212; goto block_203; } @@ -41708,9 +43118,9 @@ case 4: { lean_object* x_213; x_213 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__34; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_213; goto block_203; } @@ -41718,9 +43128,9 @@ case 5: { lean_object* x_214; x_214 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__38; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_214; goto block_203; } @@ -41728,9 +43138,9 @@ case 6: { lean_object* x_215; x_215 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__42; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_215; goto block_203; } @@ -41738,9 +43148,9 @@ case 7: { lean_object* x_216; x_216 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__46; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_216; goto block_203; } @@ -41748,9 +43158,9 @@ case 8: { lean_object* x_217; x_217 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__50; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_217; goto block_203; } @@ -41758,9 +43168,9 @@ case 9: { lean_object* x_218; x_218 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__54; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_218; goto block_203; } @@ -41768,9 +43178,9 @@ case 10: { lean_object* x_219; x_219 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__58; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_219; goto block_203; } @@ -41778,9 +43188,9 @@ default: { lean_object* x_220; x_220 = l_IO_FS_Stream_readNotificationAs___at___IO_FS_Stream_readLspNotificationAs___at___Lean_Server_Watchdog_initAndRunWatchdogAux_spec__1_spec__1___closed__62; -x_185 = x_207; +x_185 = x_208; x_186 = x_206; -x_187 = x_208; +x_187 = x_207; x_188 = x_220; goto block_203; } @@ -41798,7 +43208,7 @@ x_126 = l_Lean_Json_mkObj(x_125); x_127 = l_Lean_Json_compress(x_126); x_128 = lean_string_append(x_122, x_127); lean_dec_ref(x_127); -x_129 = l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1; +x_129 = l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1; x_130 = lean_string_append(x_128, x_129); x_131 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_131, 0, x_130); @@ -41910,7 +43320,7 @@ return x_10; } } } -LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -42182,7 +43592,7 @@ x_51 = l_Lean_Server_Watchdog_initAndRunWatchdog___closed__12; lean_ctor_set(x_27, 1, x_51); lean_ctor_set(x_27, 0, x_49); lean_inc(x_39); -x_52 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__11(x_39, x_27, x_48); +x_52 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__10(x_39, x_27, x_48); if (lean_obj_tag(x_52) == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; @@ -42414,7 +43824,7 @@ x_95 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_95, 0, x_92); lean_ctor_set(x_95, 1, x_94); lean_inc(x_82); -x_96 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__11(x_82, x_95, x_91); +x_96 = l_IO_FS_Stream_writeLspResponse___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__10(x_82, x_95, x_91); if (lean_obj_tag(x_96) == 0) { lean_object* x_97; lean_object* x_98; lean_object* x_99; @@ -42629,6 +44039,15 @@ return x_119; } } } +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__0(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -42656,6 +44075,18 @@ lean_dec_ref(x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4_spec__4_spec__4(x_4, x_5, x_3); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -42665,32 +44096,11 @@ lean_dec_ref(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5_spec__5(x_4, x_5, x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5(x_1, x_2); -lean_dec_ref(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7(x_1, x_2); lean_dec_ref(x_2); return x_3; } @@ -42870,6 +44280,10 @@ l_Lean_Server_Watchdog_workerCfg___closed__0 = _init_l_Lean_Server_Watchdog_work lean_mark_persistent(l_Lean_Server_Watchdog_workerCfg___closed__0); l_Lean_Server_Watchdog_workerCfg = _init_l_Lean_Server_Watchdog_workerCfg(); lean_mark_persistent(l_Lean_Server_Watchdog_workerCfg); +l_Lean_Server_Watchdog_parseParams___redArg___closed__0 = _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__0(); +lean_mark_persistent(l_Lean_Server_Watchdog_parseParams___redArg___closed__0); +l_Lean_Server_Watchdog_parseParams___redArg___closed__1 = _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__1(); +lean_mark_persistent(l_Lean_Server_Watchdog_parseParams___redArg___closed__1); l_Lean_Server_Watchdog_instInhabitedRequestQueueMap___closed__0 = _init_l_Lean_Server_Watchdog_instInhabitedRequestQueueMap___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_instInhabitedRequestQueueMap___closed__0); l_Lean_Server_Watchdog_instInhabitedRequestQueueMap = _init_l_Lean_Server_Watchdog_instInhabitedRequestQueueMap(); @@ -42878,40 +44292,12 @@ l_Lean_Server_Watchdog_RequestQueueMap_empty = _init_l_Lean_Server_Watchdog_Requ lean_mark_persistent(l_Lean_Server_Watchdog_RequestQueueMap_empty); l_Lean_Server_Watchdog_RequestQueueMap_instEmptyCollection = _init_l_Lean_Server_Watchdog_RequestQueueMap_instEmptyCollection(); lean_mark_persistent(l_Lean_Server_Watchdog_RequestQueueMap_instEmptyCollection); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__0); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__1); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__2); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__3); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__4); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__5); -l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6 = _init_l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6(); -lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_RequestQueueMap_enqueue_spec__1___closed__6); -l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0 = _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__0); -l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__1 = _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__1(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__1); -l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__2 = _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__2(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__2); -l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__3 = _init_l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__3(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestQueueMap_enqueue___closed__3); l_Lean_Server_Watchdog_instInhabitedRequestData___closed__0 = _init_l_Lean_Server_Watchdog_instInhabitedRequestData___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_instInhabitedRequestData___closed__0); l_Lean_Server_Watchdog_instInhabitedRequestData = _init_l_Lean_Server_Watchdog_instInhabitedRequestData(); lean_mark_persistent(l_Lean_Server_Watchdog_instInhabitedRequestData); l_Lean_Server_Watchdog_RequestData_empty = _init_l_Lean_Server_Watchdog_RequestData_empty(); lean_mark_persistent(l_Lean_Server_Watchdog_RequestData_empty); -l_Lean_Server_Watchdog_RequestData_enqueue___closed__0 = _init_l_Lean_Server_Watchdog_RequestData_enqueue___closed__0(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestData_enqueue___closed__0); -l_Lean_Server_Watchdog_RequestData_enqueue___closed__1 = _init_l_Lean_Server_Watchdog_RequestData_enqueue___closed__1(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestData_enqueue___closed__1); -l_Lean_Server_Watchdog_RequestData_enqueue___closed__2 = _init_l_Lean_Server_Watchdog_RequestData_enqueue___closed__2(); -lean_mark_persistent(l_Lean_Server_Watchdog_RequestData_enqueue___closed__2); l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__0 = _init_l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__0(); lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__0); l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_Const_get_x21___at___Lean_Server_Watchdog_ImportData_update_spec__3___redArg___closed__1(); @@ -42959,6 +44345,34 @@ l_Lean_Server_Watchdog_handleQueryModule___boxed__const__1 = _init_l_Lean_Server lean_mark_persistent(l_Lean_Server_Watchdog_handleQueryModule___boxed__const__1); l_Lean_Server_Watchdog_handleImportClosure___closed__0 = _init_l_Lean_Server_Watchdog_handleImportClosure___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_handleImportClosure___closed__0); +l_Lean_Server_Watchdog_findDefinitions___closed__0 = _init_l_Lean_Server_Watchdog_findDefinitions___closed__0(); +lean_mark_persistent(l_Lean_Server_Watchdog_findDefinitions___closed__0); +l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___closed__0 = _init_l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___closed__0(); +lean_mark_persistent(l_Array_filterMapM___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__0___closed__0); +l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0 = _init_l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0(); +lean_mark_persistent(l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__0); +l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1 = _init_l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1(); +lean_mark_persistent(l_Array_fromJson_x3f___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__9___closed__1); +l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11___closed__0 = _init_l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11___closed__0(); +lean_mark_persistent(l_panic___at___Lean_Server_Watchdog_handleResponseSpecialCases_spec__11___closed__0); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__0); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__1 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__1(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__1); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__2 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__2(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__2); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__3 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__3(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__3); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__4 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__4(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__4); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__5); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__6 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__6(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__6); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__7 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__7(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__7); +l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__8 = _init_l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__8(); +lean_mark_persistent(l_Lean_Server_Watchdog_handleResponseSpecialCases___closed__8); l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__0 = _init_l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__0(); lean_mark_persistent(l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__0); l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__1 = _init_l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_handleMessage___lam__0___closed__1(); @@ -43003,54 +44417,48 @@ l_Lean_Server_Watchdog_tryWriteMessage___closed__0 = _init_l_Lean_Server_Watchdo lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___closed__0); l_Lean_Server_Watchdog_notifyAboutStaleDependency___closed__0 = _init_l_Lean_Server_Watchdog_notifyAboutStaleDependency___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_notifyAboutStaleDependency___closed__0); -l_Lean_Server_Watchdog_findDefinitions___closed__0 = _init_l_Lean_Server_Watchdog_findDefinitions___closed__0(); -lean_mark_persistent(l_Lean_Server_Watchdog_findDefinitions___closed__0); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__18____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__18____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__18____x40_Lean_Server_Watchdog___hyg_12419_); -l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_(); -lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__19____x40_Lean_Server_Watchdog___hyg_12419_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__1____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__2____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__3____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__4____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__5____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__6____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__7____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__8____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__9____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__10____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__11____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__12____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__13____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__14____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__15____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__16____x40_Lean_Server_Watchdog___hyg_13606_); +l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_ = _init_l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_(); +lean_mark_persistent(l_Lean_Server_Watchdog_fromJsonCallHierarchyItemData___closed__17____x40_Lean_Server_Watchdog___hyg_13606_); l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData___closed__0 = _init_l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData___closed__0); l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData = _init_l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData(); lean_mark_persistent(l_Lean_Server_Watchdog_instFromJsonCallHierarchyItemData); -l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_ = _init_l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_(); -lean_mark_persistent(l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_12525_); +l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_ = _init_l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_(); +lean_mark_persistent(l_Lean_Server_Watchdog_toJsonCallHierarchyItemData___closed__0____x40_Lean_Server_Watchdog___hyg_13712_); l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData___closed__0 = _init_l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData___closed__0); l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData = _init_l_Lean_Server_Watchdog_instToJsonCallHierarchyItemData(); @@ -43131,16 +44539,10 @@ l_Lean_Server_Watchdog_handleDidChangeWatchedFiles___closed__0 = _init_l_Lean_Se lean_mark_persistent(l_Lean_Server_Watchdog_handleDidChangeWatchedFiles___closed__0); l_Lean_Server_Watchdog_handleCancelRequest___closed__0 = _init_l_Lean_Server_Watchdog_handleCancelRequest___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_handleCancelRequest___closed__0); -l_Lean_Server_Watchdog_parseParams___redArg___closed__0 = _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__0(); -lean_mark_persistent(l_Lean_Server_Watchdog_parseParams___redArg___closed__0); -l_Lean_Server_Watchdog_parseParams___redArg___closed__1 = _init_l_Lean_Server_Watchdog_parseParams___redArg___closed__1(); -lean_mark_persistent(l_Lean_Server_Watchdog_parseParams___redArg___closed__1); l_Lean_Server_Watchdog_forwardRequestToWorker___closed__0 = _init_l_Lean_Server_Watchdog_forwardRequestToWorker___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_forwardRequestToWorker___closed__0); l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1 = _init_l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1(); lean_mark_persistent(l_Lean_Server_Watchdog_forwardRequestToWorker___closed__1); -l_Lean_Server_Watchdog_forwardRequestToWorker___closed__2 = _init_l_Lean_Server_Watchdog_forwardRequestToWorker___closed__2(); -lean_mark_persistent(l_Lean_Server_Watchdog_forwardRequestToWorker___closed__2); l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__0 = _init_l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__0); l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__1 = _init_l_Lean_Server_Watchdog_handleReferenceRequest___redArg___lam__1___closed__1(); @@ -43195,10 +44597,6 @@ l_Lean_Server_Watchdog_handleRequest___closed__21 = _init_l_Lean_Server_Watchdog lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__21); l_Lean_Server_Watchdog_handleRequest___closed__22 = _init_l_Lean_Server_Watchdog_handleRequest___closed__22(); lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__22); -l_Lean_Server_Watchdog_handleRequest___closed__23 = _init_l_Lean_Server_Watchdog_handleRequest___closed__23(); -lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__23); -l_Lean_Server_Watchdog_handleRequest___closed__24 = _init_l_Lean_Server_Watchdog_handleRequest___closed__24(); -lean_mark_persistent(l_Lean_Server_Watchdog_handleRequest___closed__24); l_Lean_Server_Watchdog_handleNotification___closed__0 = _init_l_Lean_Server_Watchdog_handleNotification___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_handleNotification___closed__0); l_Lean_Server_Watchdog_handleNotification___closed__1 = _init_l_Lean_Server_Watchdog_handleNotification___closed__1(); @@ -43499,24 +44897,22 @@ l_Lean_Server_Watchdog_findWorkerPath___closed__2 = _init_l_Lean_Server_Watchdog lean_mark_persistent(l_Lean_Server_Watchdog_findWorkerPath___closed__2); l_Lean_Server_Watchdog_startLoadingReferences___closed__0 = _init_l_Lean_Server_Watchdog_startLoadingReferences___closed__0(); lean_mark_persistent(l_Lean_Server_Watchdog_startLoadingReferences___closed__0); -l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5___closed__0 = _init_l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5___closed__0(); -lean_mark_persistent(l_Array_fromJson_x3f___at___Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__5_spec__5___closed__0); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__0 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__0(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__0); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__1(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__1); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__2(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__2); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__3 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__3(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__3); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__4 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__4(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__4); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__5 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__5(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__5); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__6 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__6(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__6); -l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__7 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__7(); -lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__8___closed__7); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__0 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__0(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__0); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__1(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__1); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__2(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__2); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__3 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__3(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__3); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__4 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__4(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__4); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__5 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__5(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__5); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__6 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__6(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__6); +l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__7 = _init_l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__7(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0_spec__7___closed__7); l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__0 = _init_l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__0(); lean_mark_persistent(l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__0); l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__1 = _init_l_IO_FS_Stream_readRequestAs___at___IO_FS_Stream_readLspRequestAs___at___Lean_Server_Watchdog_initAndRunWatchdog_spec__0_spec__0___closed__1();