chore: update stage0
This commit is contained in:
parent
bc0f43c4b9
commit
31ed0621c7
2 changed files with 88 additions and 162 deletions
2
stage0/src/Lean/Server/FileWorker.lean
generated
2
stage0/src/Lean/Server/FileWorker.lean
generated
|
|
@ -198,7 +198,7 @@ section ServerM
|
|||
| some path => s!"{path}/bin/leanpkg{System.FilePath.exeSuffix}"
|
||||
| _ => s!"{← appDir}/leanpkg{System.FilePath.exeSuffix}"
|
||||
-- NOTE: leanpkg does not exist in stage 0 (yet?)
|
||||
if dbgTraceVal (← fileExists <| dbgTraceVal leanpkgPath) then
|
||||
if (← fileExists leanpkgPath) then
|
||||
leanpkgSetupSearchPath leanpkgPath m (Lean.Elab.headerToImports headerStx).toArray
|
||||
let (headerEnv, msgLog) ← Elab.processHeader headerStx opts msgLog inputCtx
|
||||
let cmdState := Elab.Command.mkState headerEnv msgLog opts
|
||||
|
|
|
|||
248
stage0/stdlib/Lean/Server/FileWorker.c
generated
248
stage0/stdlib/Lean/Server/FileWorker.c
generated
|
|
@ -88,7 +88,6 @@ lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___l
|
|||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
uint8_t l_Array_anyMUnsafe_any___at_Lean_Server_FileWorker_handleHover___spec__4(lean_object*, lean_object*, size_t, size_t);
|
||||
extern lean_object* l_Lean_Lsp_Ipc_collectDiagnostics___closed__1;
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6(lean_object*);
|
||||
extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__28;
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__2___rarg(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_identKind___closed__2;
|
||||
|
|
@ -108,13 +107,11 @@ lean_object* l_Lean_Server_FileWorker_handleNotification___closed__1;
|
|||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__5;
|
||||
extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__2;
|
||||
lean_object* lean_dbg_trace(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedEnvironment___closed__4;
|
||||
lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap_match__1(lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_parseParams_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l_Monad_seqRight___default___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Array_getMax_x3f___at_Lean_Server_FileWorker_handleHover___spec__6___boxed(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
|
||||
|
|
@ -130,7 +127,6 @@ lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__1___boxed(lean_ob
|
|||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__12___lambda__1___closed__5;
|
||||
lean_object* l_Lean_getBuiltinSearchPath(lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleRequest_match__1(lean_object*, lean_object*);
|
||||
extern lean_object* l_instReprBool___closed__1;
|
||||
lean_object* l_IO_FS_Stream_readLspMessage(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_CancelToken_check___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__1___closed__1;
|
||||
extern lean_object* l_instInhabitedNat;
|
||||
|
|
@ -148,10 +144,8 @@ extern lean_object* l_List_getLast_x21___rarg___closed__2;
|
|||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__12(lean_object*, size_t, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleHover_match__5(lean_object*);
|
||||
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__2(lean_object*);
|
||||
lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_Snapshots_Snapshot_toCmdState(lean_object*);
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__7___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleHover_match__4(lean_object*);
|
||||
extern lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__2;
|
||||
|
|
@ -232,11 +226,12 @@ lean_object* lean_array_fget(lean_object*, lean_object*);
|
|||
lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_LanguageFeatures___hyg_11_(lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_workerMain_match__3(lean_object*);
|
||||
lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleHover___spec__5(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__3___boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_mainLoop___closed__1;
|
||||
lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__5(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleCancelRequest___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4(uint8_t);
|
||||
extern lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Server_FileWorker_handleHover_match__7___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_Snapshots_parseAhead(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -269,12 +264,10 @@ lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__2;
|
|||
lean_object* l_Lean_Server_Snapshots_reparseHeader(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__7;
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___boxed(lean_object*);
|
||||
lean_object* l_IO_AsyncList_append___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getHeadInfo(lean_object*);
|
||||
extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__9;
|
||||
extern lean_object* l_IO_FS_Stream_readLspNotificationAs___closed__1;
|
||||
uint8_t l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___lambda__1(uint8_t, lean_object*);
|
||||
lean_object* l_Std_RBNode_insert___at_Lean_Server_FileWorker_queueRequest___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__5(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_compileDocument___lambda__1___closed__4;
|
||||
|
|
@ -285,7 +278,6 @@ extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonIni
|
|||
lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__3;
|
||||
lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern uint8_t l_Lean_expandExternPatternAux___closed__2;
|
||||
extern lean_object* l_instReprBool___closed__3;
|
||||
lean_object* l_Lean_Server_FileWorker_handleNotification_match__1___rarg___closed__1;
|
||||
lean_object* l_Lean_Server_FileWorker_compileDocument___lambda__1___closed__1;
|
||||
lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -333,7 +325,6 @@ lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3___closed__1;
|
|||
lean_object* l_Lean_Server_FileWorker_compileDocument___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_charLitKind;
|
||||
lean_object* l_Lean_Server_FileWorker_queueRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__5(lean_object*, lean_object*);
|
||||
lean_object* l_List_get_x21___at_Lean_Server_FileWorker_updateDocument___spec__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_mainLoop_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__1;
|
||||
|
|
@ -366,6 +357,7 @@ lean_object* l_Lean_Server_FileWorker_parseParams_match__1(lean_object*, lean_ob
|
|||
lean_object* l_IO_getEnv___at_Lean_Server_FileWorker_compileDocument___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_instInhabitedModuleParserState___closed__1;
|
||||
lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__2___boxed__const__1;
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4(lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_84_(lean_object*);
|
||||
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
|
||||
|
|
@ -373,12 +365,10 @@ lean_object* l_List_takeWhile___rarg(lean_object*, lean_object*);
|
|||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__12___closed__2;
|
||||
lean_object* l_Lean_Meta_ppExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_isEmpty___rarg(lean_object*);
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__7(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_895_(lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_updatePendingRequests___boxed(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedSyntax;
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6___rarg(lean_object*);
|
||||
extern lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__1;
|
||||
extern lean_object* l_Lean_Unhygienic_run___rarg___closed__2;
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2(lean_object*, lean_object*);
|
||||
|
|
@ -449,7 +439,6 @@ uint8_t l_UInt32_decEq(uint32_t, uint32_t);
|
|||
extern lean_object* l_Lean_Name_instReprName___closed__1;
|
||||
extern lean_object* l_term_x5b___x5d___closed__5;
|
||||
lean_object* l_Lean_Server_FileWorker_workerMain_match__3___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6___boxed(lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__1(lean_object*);
|
||||
lean_object* l_List_redLength___rarg(lean_object*);
|
||||
lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -471,6 +460,7 @@ uint8_t l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec_
|
|||
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1142____closed__7;
|
||||
lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleHover___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__12;
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__3(lean_object*, lean_object*);
|
||||
lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__1;
|
||||
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_3377____closed__28;
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__3___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -554,10 +544,10 @@ extern lean_object* l_IO_FS_Stream_readRequestAs___closed__4;
|
|||
uint8_t l_Lean_Server_FileWorker_updateDocument___lambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_foldDocumentChanges(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_rangeOfSyntax___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__5___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4___rarg(lean_object*);
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_forIn___at_Lean_Server_FileWorker_handleHover___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_FS_Stream_withPrefix(lean_object*, lean_object*);
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__3(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr(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_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*);
|
||||
|
|
@ -581,6 +571,7 @@ lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps(lean_object*, lean_object*,
|
|||
lean_object* l_Lean_Server_FileWorker_CancelToken_set(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_initAndRunWorker(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__2;
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__5___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__12___lambda__1___closed__6;
|
||||
extern lean_object* l_Lean_mkOptionalNode___closed__2;
|
||||
|
|
@ -590,7 +581,6 @@ lean_object* l_Lean_Elab_InfoTree_smallestNodes(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Server_FileWorker_updateDocument___closed__1;
|
||||
lean_object* l_Lean_Server_FileWorker_parseParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_IO_AsyncList_waitFind_x3f___at_Lean_Server_FileWorker_handleHover___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_TermInfo_tailPos_x3f(lean_object*);
|
||||
|
|
@ -605,6 +595,7 @@ extern lean_object* l_System_FilePath_exeSuffix;
|
|||
lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols_match__3___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__2;
|
||||
lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_309_(lean_object*);
|
||||
lean_object* l_IO_FS_Handle_readToEnd_read___at_Lean_Server_FileWorker_leanpkgSetupSearchPath___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -635,11 +626,11 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lea
|
|||
extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors___closed__14;
|
||||
extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
|
||||
lean_object* l_Lean_Syntax_reprint(lean_object*);
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___lambda__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleHover_match__9___rarg(lean_object*);
|
||||
lean_object* l_List_getLast___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___closed__1;
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4___boxed(lean_object*);
|
||||
lean_object* l_Std_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -5294,18 +5285,7 @@ x_4 = lean_io_getenv(x_1, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__2(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
lean_inc(x_1);
|
||||
x_2 = lean_alloc_closure((void*)(l_Monad_seqRight___default___rarg___lambda__1___boxed), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
x_3 = lean_dbg_trace(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
|
|
@ -5313,36 +5293,7 @@ x_4 = lean_io_file_exists(x_1, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
uint8_t l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___lambda__1(uint8_t x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = lean_box(x_1);
|
||||
x_3 = lean_alloc_closure((void*)(l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___lambda__1___boxed), 2, 1);
|
||||
lean_closure_set(x_3, 0, x_2);
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = l_instReprBool___closed__1;
|
||||
x_5 = lean_dbg_trace(x_4, x_3);
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
x_6 = l_instReprBool___closed__3;
|
||||
x_7 = lean_dbg_trace(x_6, x_3);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6___rarg(lean_object* x_1) {
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
|
|
@ -5350,15 +5301,15 @@ x_2 = lean_io_app_dir(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6(lean_object* x_1) {
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6___rarg), 1, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4___rarg), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
|
|
@ -5366,7 +5317,7 @@ x_4 = lean_io_realpath(x_1, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__5(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__3(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
|
|
@ -5872,88 +5823,85 @@ return x_117;
|
|||
lean_object* l_Lean_Server_FileWorker_compileDocument___lambda__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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11;
|
||||
lean_inc(x_7);
|
||||
x_10 = l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__2(x_7);
|
||||
x_11 = lean_io_file_exists(x_10, x_9);
|
||||
lean_dec(x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
lean_object* x_10;
|
||||
x_10 = lean_io_file_exists(x_7, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16;
|
||||
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_object* x_11; uint8_t x_12;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_unbox(x_11);
|
||||
lean_dec(x_11);
|
||||
x_14 = lean_unbox(x_12);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4(x_14);
|
||||
x_16 = lean_unbox(x_15);
|
||||
lean_dec(x_15);
|
||||
if (x_16 == 0)
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
lean_dec(x_7);
|
||||
x_17 = lean_box(0);
|
||||
x_18 = l_Lean_Server_FileWorker_compileDocument___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_8, x_13);
|
||||
return x_18;
|
||||
x_13 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_10);
|
||||
x_14 = lean_box(0);
|
||||
x_15 = l_Lean_Server_FileWorker_compileDocument___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_14, x_8, x_13);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_19 = l_Lean_Elab_headerToImports(x_1);
|
||||
x_20 = l_List_redLength___rarg(x_19);
|
||||
x_21 = lean_mk_empty_array_with_capacity(x_20);
|
||||
lean_dec(x_20);
|
||||
x_22 = l_List_toArrayAux___rarg(x_19, x_21);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_16 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_10);
|
||||
x_17 = l_Lean_Elab_headerToImports(x_1);
|
||||
x_18 = l_List_redLength___rarg(x_17);
|
||||
x_19 = lean_mk_empty_array_with_capacity(x_18);
|
||||
lean_dec(x_18);
|
||||
x_20 = l_List_toArrayAux___rarg(x_17, x_19);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_6);
|
||||
x_23 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath(x_7, x_6, x_22, x_8, x_13);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
x_21 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath(x_7, x_6, x_20, x_8, x_16);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_23);
|
||||
x_26 = l_Lean_Server_FileWorker_compileDocument___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_24, x_8, x_25);
|
||||
lean_dec(x_24);
|
||||
return x_26;
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
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(x_21);
|
||||
x_24 = l_Lean_Server_FileWorker_compileDocument___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_23);
|
||||
lean_dec(x_22);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_27;
|
||||
uint8_t x_25;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_27 = !lean_is_exclusive(x_23);
|
||||
if (x_27 == 0)
|
||||
x_25 = !lean_is_exclusive(x_21);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
return x_23;
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_23, 0);
|
||||
x_29 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_23);
|
||||
x_30 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_28);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
return x_30;
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_21, 0);
|
||||
x_27 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_21);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
uint8_t x_29;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -5961,23 +5909,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_31 = !lean_is_exclusive(x_11);
|
||||
if (x_31 == 0)
|
||||
x_29 = !lean_is_exclusive(x_10);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
return x_11;
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = lean_ctor_get(x_11, 0);
|
||||
x_33 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_33);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_11);
|
||||
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;
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = lean_ctor_get(x_10, 0);
|
||||
x_31 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_10);
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6051,7 +5999,7 @@ lean_object* x_19; lean_object* x_20;
|
|||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__5(x_2, x_19);
|
||||
x_20 = l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__3(x_2, x_19);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
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;
|
||||
|
|
@ -6189,61 +6137,39 @@ lean_dec(x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__3(x_1, x_2, x_3);
|
||||
x_4 = l_IO_fileExists___at_Lean_Server_FileWorker_compileDocument___spec__2(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; uint8_t x_4; lean_object* x_5;
|
||||
x_3 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___lambda__1(x_3, x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = lean_box(x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_dbgTraceVal___at_Lean_Server_FileWorker_compileDocument___spec__4(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6___boxed(lean_object* x_1) {
|
||||
lean_object* l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__6(x_1);
|
||||
x_2 = l_IO_appPath___at_Lean_Server_FileWorker_compileDocument___spec__4(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
lean_object* l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__7(x_1, x_2, x_3);
|
||||
x_4 = l_IO_realPath___at_Lean_Server_FileWorker_compileDocument___spec__5(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__5___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
lean_object* l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__3___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__5(x_1, x_2);
|
||||
x_3 = l_IO_appDir___at_Lean_Server_FileWorker_compileDocument___spec__3(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue