diff --git a/stage0/src/Lean/Data/Lsp/Basic.lean b/stage0/src/Lean/Data/Lsp/Basic.lean index e031af2c9d..5977d9106f 100644 --- a/stage0/src/Lean/Data/Lsp/Basic.lean +++ b/stage0/src/Lean/Data/Lsp/Basic.lean @@ -20,16 +20,7 @@ open Json structure CancelParams where id : JsonRpc.RequestID - deriving Inhabited, BEq - -instance CancelParams.hasFromJson : FromJson CancelParams := - ⟨fun j => do - let id ← j.getObjValAs? JsonRpc.RequestID "id" - pure ⟨id⟩⟩ - -instance CancelParams.hasToJson : ToJson CancelParams := - ⟨fun o => mkObj $ - ⟨"id", toJson o.id⟩ :: []⟩ + deriving Inhabited, BEq, ToJson, FromJson abbrev DocumentUri := String @@ -40,17 +31,7 @@ offsets. For diagnostics, one-based `Lean.Position`s are used internally. structure Position where line : Nat character : Nat - deriving Inhabited, BEq - -instance : FromJson Position := ⟨fun j => do - let line ← j.getObjValAs? Nat "line" - let character ← j.getObjValAs? Nat "character" - pure ⟨line, character⟩⟩ - -instance : ToJson Position := ⟨fun o => - mkObj [ - ⟨"line", o.line⟩, - ⟨"character", o.character⟩]⟩ + deriving Inhabited, BEq, ToJson, FromJson instance : ToString Position := ⟨fun p => "(" ++ toString p.line ++ ", " ++ toString p.character ++ ")"⟩ @@ -58,51 +39,19 @@ instance : ToString Position := ⟨fun p => structure Range where start : Position «end» : Position - deriving Inhabited, BEq - -instance : FromJson Range := ⟨fun j => do - let start ← j.getObjValAs? Position "start" - let «end» ← j.getObjValAs? Position "end" - pure ⟨start, «end»⟩⟩ - -instance : ToJson Range := ⟨fun o => - mkObj [ - ⟨"start", toJson o.start⟩, - ⟨"end", toJson o.«end»⟩]⟩ + deriving Inhabited, BEq, ToJson, FromJson structure Location where uri : DocumentUri range : Range - deriving Inhabited, BEq - -instance : FromJson Location := ⟨fun j => do - let uri ← j.getObjValAs? DocumentUri "uri" - let range ← j.getObjValAs? Range "range" - pure ⟨uri, range⟩⟩ - -instance : ToJson Location := ⟨fun o => - mkObj [ - ⟨"uri", toJson o.uri⟩, - ⟨"range", toJson o.range⟩]⟩ + deriving Inhabited, BEq, ToJson, FromJson structure LocationLink where originSelectionRange? : Option Range targetUri : DocumentUri targetRange : Range targetSelectionRange : Range - -instance : FromJson LocationLink := ⟨fun j => do - let originSelectionRange? := j.getObjValAs? Range "originSelectionRange" - let targetUri ← j.getObjValAs? DocumentUri "targetUri" - let targetRange ← j.getObjValAs? Range "targetRange" - let targetSelectionRange ← j.getObjValAs? Range "targetSelectionRange" - pure ⟨originSelectionRange?, targetUri, targetRange, targetSelectionRange⟩⟩ - -instance : ToJson LocationLink := ⟨fun o => mkObj $ - opt "originSelectionRange" o.originSelectionRange? ++ [ - ⟨"targetUri", toJson o.targetUri⟩, - ⟨"targetRange", toJson o.targetRange⟩, - ⟨"targetSelectionRange", toJson o.targetSelectionRange⟩]⟩ + deriving ToJson, FromJson -- NOTE: Diagnostic defined in Diagnostics.lean @@ -112,31 +61,12 @@ structure Command where title : String command : String arguments? : Option (Array Json) := none - -instance : FromJson Command := ⟨fun j => do - let title ← j.getObjValAs? String "title" - let command ← j.getObjValAs? String "command" - let arguments? := j.getObjValAs? (Array Json) "arguments" - pure ⟨title, command, arguments?⟩⟩ - -instance : ToJson Command := ⟨fun o => mkObj $ - opt "arguments" o.arguments? ++ [ - ⟨"title", o.title⟩, - ⟨"command", o.command⟩]⟩ + deriving ToJson, FromJson structure TextEdit where range : Range newText : String - -instance : FromJson TextEdit := ⟨fun j => do - let range ← j.getObjValAs? Range "range" - let newText ← j.getObjValAs? String "newText" - pure ⟨range, newText⟩⟩ - -instance : ToJson TextEdit := ⟨fun o => - mkObj [ - ⟨"range", toJson o.range⟩, - ⟨"newText", o.newText⟩]⟩ + deriving ToJson, FromJson def TextEditBatch := Array TextEdit @@ -148,39 +78,17 @@ instance : ToJson TextEditBatch := structure TextDocumentIdentifier where uri : DocumentUri - -instance : FromJson TextDocumentIdentifier := ⟨fun j => - TextDocumentIdentifier.mk <$> j.getObjValAs? DocumentUri "uri"⟩ - -instance : ToJson TextDocumentIdentifier := - ⟨fun o => mkObj [⟨"uri", o.uri⟩]⟩ + deriving ToJson, FromJson structure VersionedTextDocumentIdentifier where uri : DocumentUri version? : Option Nat := none - -instance : FromJson VersionedTextDocumentIdentifier := ⟨fun j => do - let uri ← j.getObjValAs? DocumentUri "uri" - let version? := j.getObjValAs? Nat "version" - pure ⟨uri, version?⟩⟩ - -instance : ToJson VersionedTextDocumentIdentifier := ⟨fun o => mkObj $ - opt "version" o.version? ++ - [⟨"uri", o.uri⟩]⟩ + deriving ToJson, FromJson structure TextDocumentEdit where textDocument : VersionedTextDocumentIdentifier edits : TextEditBatch - -instance : FromJson TextDocumentEdit := ⟨fun j => do - let textDocument ← j.getObjValAs? VersionedTextDocumentIdentifier "textDocument" - let edits ← j.getObjValAs? TextEditBatch "edits" - pure ⟨textDocument, edits⟩⟩ - -instance : ToJson TextDocumentEdit := ⟨fun o => - mkObj [ - ⟨"textDocument", toJson o.textDocument⟩, - ⟨"edits", toJson o.edits⟩]⟩ + deriving ToJson, FromJson -- TODO(Marc): missing: -- File Resource Changes, WorkspaceEdit @@ -192,50 +100,18 @@ structure TextDocumentItem where languageId : String version : Nat text : String - -instance : FromJson TextDocumentItem := ⟨fun j => do - let uri ← j.getObjValAs? DocumentUri "uri" - let languageId ← j.getObjValAs? String "languageId" - let version ← j.getObjValAs? Nat "version" - let text ← j.getObjValAs? String "text" - pure ⟨uri, languageId, version, text⟩⟩ - -instance : ToJson TextDocumentItem := ⟨fun o => - mkObj [ - ⟨"uri", o.uri⟩, - ⟨"languageId", o.languageId⟩, - ⟨"version", o.version⟩, - ⟨"text", o.text⟩]⟩ + deriving ToJson, FromJson structure TextDocumentPositionParams where textDocument : TextDocumentIdentifier position : Position - -instance : FromJson TextDocumentPositionParams := ⟨fun j => do - let textDocument ← j.getObjValAs? TextDocumentIdentifier "textDocument" - let position ← j.getObjValAs? Position "position" - pure ⟨textDocument, position⟩⟩ - -instance : ToJson TextDocumentPositionParams := ⟨fun o => - mkObj [ - ⟨"textDocument", toJson o.textDocument⟩, - ⟨"position", toJson o.position⟩]⟩ + deriving ToJson, FromJson structure DocumentFilter where language? : Option String := none scheme? : Option String := none pattern? : Option String := none - -instance : FromJson DocumentFilter := ⟨fun j => do - let language? := j.getObjValAs? String "language" - let scheme? := j.getObjValAs? String "scheme" - let pattern? := j.getObjValAs? String "pattern" - pure ⟨language?, scheme?, pattern?⟩⟩ - -instance : ToJson DocumentFilter := ⟨fun o => mkObj $ - opt "language" o.language? ++ - opt "scheme" o.scheme? ++ - opt "pattern" o.pattern?⟩ + deriving ToJson, FromJson def DocumentSelector := Array DocumentFilter @@ -247,21 +123,11 @@ instance : ToJson DocumentSelector := structure StaticRegistrationOptions where id? : Option String := none - -instance : FromJson StaticRegistrationOptions := - ⟨fun j => some ⟨j.getObjValAs? String "id"⟩⟩ - -instance : ToJson StaticRegistrationOptions := - ⟨fun o => mkObj $ opt "id" o.id?⟩ + deriving ToJson, FromJson structure TextDocumentRegistrationOptions where documentSelector? : Option DocumentSelector := none - -instance : FromJson TextDocumentRegistrationOptions := - ⟨fun j => some ⟨j.getObjValAs? DocumentSelector "documentSelector"⟩⟩ - -instance : ToJson TextDocumentRegistrationOptions := - ⟨fun o => mkObj $ opt "documentSelector" o.documentSelector?⟩ + deriving ToJson, FromJson inductive MarkupKind where | plaintext | markdown @@ -278,57 +144,29 @@ instance : ToJson MarkupKind := ⟨fun structure MarkupContent where kind : MarkupKind value : String - -instance : FromJson MarkupContent := ⟨fun j => do - let kind ← j.getObjValAs? MarkupKind "kind" - let value ← j.getObjValAs? String "value" - pure ⟨kind, value⟩⟩ - -instance : ToJson MarkupContent := ⟨fun o => - mkObj [ - ⟨"kind", toJson o.kind⟩, - ⟨"value", o.value⟩]⟩ + deriving ToJson, FromJson structure ProgressParams (α : Type) where token : String -- do we need `integer`? value : α - -instance [ToJson α] : ToJson (ProgressParams α) := ⟨fun o => - mkObj [ - ⟨"token", o.token⟩, - ⟨"value", toJson o.value⟩]⟩ + deriving ToJson structure WorkDoneProgressReport where kind := "report" message? : Option String := none cancellable := false percentage? : Option Nat := none - -instance : ToJson WorkDoneProgressReport := ⟨fun o => - mkObj [ - ⟨"kind", o.kind⟩, - ⟨"message", toJson o.message?⟩, - ⟨"cancellable", o.cancellable⟩, - ⟨"percentage", toJson o.percentage?⟩]⟩ + deriving ToJson structure WorkDoneProgressBegin extends WorkDoneProgressReport where kind := "begin" title : String - -instance : ToJson WorkDoneProgressBegin := ⟨fun o => - mkObj [ - ⟨"kind", o.kind⟩, - ⟨"title", o.title⟩, - ⟨"message", toJson o.message?⟩]⟩ + deriving ToJson structure WorkDoneProgressEnd where kind := "end" message? : Option String := none - -instance : ToJson WorkDoneProgressEnd := ⟨fun o => - mkObj [ - ⟨"kind", o.kind⟩, - ⟨"message", toJson o.message?⟩]⟩ + deriving ToJson -- TODO(Marc): missing: -- WorkDoneProgressOptions, PartialResultParams diff --git a/stage0/src/Lean/Data/Lsp/Capabilities.lean b/stage0/src/Lean/Data/Lsp/Capabilities.lean index 4ed734643b..c63579d7fb 100644 --- a/stage0/src/Lean/Data/Lsp/Capabilities.lean +++ b/stage0/src/Lean/Data/Lsp/Capabilities.lean @@ -30,16 +30,7 @@ instance ClientCapabilities.hasToJson : ToJson ClientCapabilities := structure ServerCapabilities where textDocumentSync? : Option TextDocumentSyncOptions := none hoverProvider : Bool := false - -instance : FromJson ServerCapabilities := - ⟨fun j => do - let textDocumentSync? := j.getObjValAs? TextDocumentSyncOptions "textDocumentSync" - let hoverProvider ← j.getObjValAs? Bool "hoverProvider" - pure ⟨textDocumentSync?, hoverProvider⟩⟩ - -instance : ToJson ServerCapabilities := ⟨fun o => mkObj $ - opt "textDocumentSync" o.textDocumentSync? ++ - [⟨"hoverProvider", o.hoverProvider⟩]⟩ + deriving ToJson, FromJson end Lsp end Lean diff --git a/stage0/src/Lean/Data/Lsp/Diagnostics.lean b/stage0/src/Lean/Data/Lsp/Diagnostics.lean index a5f865eb0e..d2744731da 100644 --- a/stage0/src/Lean/Data/Lsp/Diagnostics.lean +++ b/stage0/src/Lean/Data/Lsp/Diagnostics.lean @@ -68,17 +68,7 @@ instance : ToJson DiagnosticTag := ⟨fun structure DiagnosticRelatedInformation where location : Location message : String - deriving Inhabited, BEq - -instance : FromJson DiagnosticRelatedInformation := ⟨fun j => do - let location ← j.getObjValAs? Location "location" - let message ← j.getObjValAs? String "message" - pure ⟨location, message⟩⟩ - -instance : ToJson DiagnosticRelatedInformation := ⟨fun o => - mkObj [ - ⟨"location", toJson o.location⟩, - ⟨"message", o.message⟩]⟩ + deriving Inhabited, BEq, ToJson, FromJson structure Diagnostic where range : Range @@ -88,43 +78,13 @@ structure Diagnostic where message : String tags? : Option (Array DiagnosticTag) := none relatedInformation? : Option (Array DiagnosticRelatedInformation) := none - deriving Inhabited, BEq - -instance : FromJson Diagnostic := ⟨fun j => do - let range ← j.getObjValAs? Range "range" - let severity? := j.getObjValAs? DiagnosticSeverity "severity" - let code? := j.getObjValAs? DiagnosticCode "code" - let source? := j.getObjValAs? String "source" - let message ← j.getObjValAs? String "message" - let tags? := j.getObjValAs? (Array DiagnosticTag) "tags" - let relatedInformation? := j.getObjValAs? (Array DiagnosticRelatedInformation) "relatedInformation" - pure ⟨range, severity?, code?, source?, message, tags?, relatedInformation?⟩⟩ - -instance : ToJson Diagnostic := ⟨fun o => mkObj $ - opt "severity" o.severity? ++ - opt "code" o.code? ++ - opt "source" o.source? ++ - opt "tags" o.tags? ++ - opt "relatedInformation" o.relatedInformation? ++ [ - ⟨"range", toJson o.range⟩, - ⟨"message", o.message⟩]⟩ + deriving Inhabited, BEq, ToJson, FromJson structure PublishDiagnosticsParams where uri : DocumentUri version? : Option Int := none diagnostics: Array Diagnostic - deriving Inhabited, BEq - -instance : FromJson PublishDiagnosticsParams := ⟨fun j => do - let uri ← j.getObjValAs? DocumentUri "uri" - let version? := j.getObjValAs? Int "version" - let diagnostics ← j.getObjValAs? (Array Diagnostic) "diagnostics" - pure ⟨uri, version?, diagnostics⟩⟩ - -instance : ToJson PublishDiagnosticsParams := ⟨fun o => mkObj $ - opt "version" o.version? ++ [ - ⟨"uri", toJson o.uri⟩, - ⟨"diagnostics", toJson o.diagnostics⟩]⟩ + deriving Inhabited, BEq, ToJson, FromJson /-- Transform a Lean Message concerning the given text into an LSP Diagnostic. -/ def msgToDiagnostic (text : FileMap) (m : Message) : IO Diagnostic := do diff --git a/stage0/src/Lean/Data/Lsp/Extra.lean b/stage0/src/Lean/Data/Lsp/Extra.lean index 0dfcf92fab..b8510bb557 100644 --- a/stage0/src/Lean/Data/Lsp/Extra.lean +++ b/stage0/src/Lean/Data/Lsp/Extra.lean @@ -22,14 +22,7 @@ open Json structure WaitForDiagnosticsParam where uri : DocumentUri - -instance : FromJson WaitForDiagnosticsParam := - ⟨fun j => do - let id ← j.getObjValAs? DocumentUri "uri" - pure ⟨id⟩⟩ - -instance : ToJson WaitForDiagnosticsParam := - ⟨fun o => mkObj [⟨"uri", toJson o.uri⟩]⟩ + deriving ToJson, FromJson structure WaitForDiagnostics @@ -39,4 +32,4 @@ instance : FromJson WaitForDiagnostics := instance : ToJson WaitForDiagnostics := ⟨fun o => mkObj []⟩ -end Lean.Lsp \ No newline at end of file +end Lean.Lsp diff --git a/stage0/src/Lean/Data/Lsp/Hover.lean b/stage0/src/Lean/Data/Lsp/Hover.lean index febf975d6e..68d2500e4a 100644 --- a/stage0/src/Lean/Data/Lsp/Hover.lean +++ b/stage0/src/Lean/Data/Lsp/Hover.lean @@ -19,15 +19,7 @@ structure Hover where but they are deprecated, so maybe can get away without. -/ contents : MarkupContent range? : Option Range := none - -instance : FromJson Hover := ⟨fun j => do - let contents ← j.getObjValAs? MarkupContent "contents" - let range? := j.getObjValAs? Range "range" - pure ⟨contents, range?⟩⟩ - -instance : ToJson Hover := ⟨fun o => mkObj $ - ⟨"contents", toJson o.contents⟩ :: - opt "range" o.range?⟩ + deriving ToJson, FromJson structure HoverParams extends TextDocumentPositionParams diff --git a/stage0/src/Lean/Data/Lsp/InitShutdown.lean b/stage0/src/Lean/Data/Lsp/InitShutdown.lean index 2d9a1cf102..cb63889c9c 100644 --- a/stage0/src/Lean/Data/Lsp/InitShutdown.lean +++ b/stage0/src/Lean/Data/Lsp/InitShutdown.lean @@ -19,14 +19,7 @@ open Json structure ClientInfo where name : String version? : Option String := none - -instance : FromJson ClientInfo := ⟨fun j => do - let name ← j.getObjValAs? String "name" - let version? := j.getObjValAs? String "version" - pure ⟨name, version?⟩⟩ - -instance ClientInfo.hasToJson : ToJson ClientInfo := - ⟨fun o => mkObj $ ⟨"name", o.name⟩ :: opt "version" o.version?⟩ + deriving ToJson, FromJson inductive Trace where | off @@ -57,6 +50,7 @@ structure InitializeParams where /- If omitted, we default to off. -/ trace : Trace := Trace.off workspaceFolders? : Option (Array WorkspaceFolder) := none + deriving ToJson instance : FromJson InitializeParams := ⟨fun j => do /- Many of these params can be null instead of not present. @@ -75,16 +69,6 @@ instance : FromJson InitializeParams := ⟨fun j => do let workspaceFolders? := j.getObjValAs? (Array WorkspaceFolder) "workspaceFolders" pure ⟨processId?, clientInfo?, rootUri?, initializationOptions?, capabilities, trace, workspaceFolders?⟩⟩ -instance InitializeParams.hasToJson : ToJson InitializeParams := -⟨fun o => mkObj $ - opt "processId" o.processId? ++ - opt "clientInfo" o.clientInfo? ++ - opt "rootUri" o.rootUri? ++ - opt "initializationOptions" o.initializationOptions? ++ - [⟨"capabilities", toJson o.capabilities⟩] ++ - [⟨"trace", toJson o.trace⟩] ++ - opt "workspaceFolders" o.workspaceFolders?⟩ - inductive InitializedParams where | mk @@ -97,31 +81,12 @@ instance : ToJson InitializedParams := structure ServerInfo where name : String version? : Option String := none - -instance : FromJson ServerInfo := - ⟨fun j => do - let name ← j.getObjValAs? String "name" - let version? := j.getObjValAs? String "version" - pure ⟨name, version?⟩⟩ - -instance : ToJson ServerInfo := ⟨fun o => mkObj $ - ⟨"name", o.name⟩ :: - opt "version" o.version?⟩ + deriving ToJson, FromJson structure InitializeResult where capabilities : ServerCapabilities serverInfo? : Option ServerInfo := none - -instance : FromJson InitializeResult := - ⟨fun j => do - let capabilities ← j.getObjValAs? ServerCapabilities "capabilities" - let serverInfo? := j.getObjValAs? ServerInfo "serverInfo" - pure ⟨capabilities, serverInfo?⟩⟩ - -instance : ToJson InitializeResult := ⟨fun o => - mkObj $ - ⟨"capabilities", toJson o.capabilities⟩ :: - opt "serverInfo" o.serverInfo?⟩ + deriving ToJson, FromJson end Lsp end Lean diff --git a/stage0/src/Lean/Data/Lsp/TextSync.lean b/stage0/src/Lean/Data/Lsp/TextSync.lean index a952a2d1a7..b4905c5a50 100644 --- a/stage0/src/Lean/Data/Lsp/TextSync.lean +++ b/stage0/src/Lean/Data/Lsp/TextSync.lean @@ -33,21 +33,12 @@ instance : ToJson TextDocumentSyncKind := ⟨fun structure DidOpenTextDocumentParams where textDocument : TextDocumentItem - -instance : FromJson DidOpenTextDocumentParams := ⟨fun j => - DidOpenTextDocumentParams.mk <$> j.getObjValAs? TextDocumentItem "textDocument"⟩ - -instance : ToJson DidOpenTextDocumentParams := ⟨fun o => - mkObj $ [⟨"textDocument", toJson o.textDocument⟩]⟩ + deriving ToJson, FromJson structure TextDocumentChangeRegistrationOptions where documentSelector? : Option DocumentSelector := none syncKind : TextDocumentSyncKind - -instance : FromJson TextDocumentChangeRegistrationOptions := ⟨fun j => do - let documentSelector? := j.getObjValAs? DocumentSelector "documentSelector" - let syncKind ← j.getObjValAs? TextDocumentSyncKind "syncKind" - pure ⟨documentSelector?, syncKind⟩⟩ + deriving FromJson inductive TextDocumentContentChangeEvent where -- omitted: deprecated rangeLength @@ -69,14 +60,7 @@ instance TextDocumentContentChangeEvent.hasToJson : ToJson TextDocumentContentCh structure DidChangeTextDocumentParams where textDocument : VersionedTextDocumentIdentifier contentChanges : Array TextDocumentContentChangeEvent - -instance : FromJson DidChangeTextDocumentParams := ⟨fun j => do - let textDocument ← j.getObjValAs? VersionedTextDocumentIdentifier "textDocument" - let contentChanges ← j.getObjValAs? (Array TextDocumentContentChangeEvent) "contentChanges" - pure ⟨textDocument, contentChanges⟩⟩ - -instance DidChangeTextDocumentParams.hasToJson : ToJson DidChangeTextDocumentParams := - ⟨fun o => mkObj $ [⟨"textDocument", toJson o.textDocument⟩, ⟨"contentChanges", toJson o.contentChanges⟩]⟩ + deriving ToJson, FromJson -- TODO: missing: -- WillSaveTextDocumentParams, TextDocumentSaveReason, @@ -84,23 +68,11 @@ instance DidChangeTextDocumentParams.hasToJson : ToJson DidChangeTextDocumentPar structure SaveOptions where includeText : Bool - -instance : FromJson SaveOptions := - ⟨fun j => do - let includeText ← j.getObjValAs? Bool "includeText" - pure ⟨includeText⟩⟩ - -instance : ToJson SaveOptions := ⟨fun o => - mkObj $ [⟨"includeText", o.includeText⟩]⟩ + deriving ToJson, FromJson structure DidCloseTextDocumentParams where textDocument : TextDocumentIdentifier - -instance : FromJson DidCloseTextDocumentParams := ⟨fun j => - DidCloseTextDocumentParams.mk <$> j.getObjValAs? TextDocumentIdentifier "textDocument"⟩ - -instance DidCloseTextDocumentParams.hasToJson : ToJson DidCloseTextDocumentParams := - ⟨fun o => mkObj $ [⟨"textDocument", toJson o.textDocument⟩]⟩ + deriving ToJson, FromJson -- TODO: TextDocumentSyncClientCapabilities @@ -111,23 +83,7 @@ structure TextDocumentSyncOptions where willSave : Bool willSaveWaitUntil : Bool save? : Option SaveOptions := none - -instance : FromJson TextDocumentSyncOptions := - ⟨fun j => do - let openClose ← j.getObjValAs? Bool "openClose" - let change ← j.getObjValAs? TextDocumentSyncKind "change" - let willSave ← j.getObjValAs? Bool "willSave" - let willSaveUntil ← j.getObjValAs? Bool "willSaveWaitUntil" - let save? := j.getObjValAs? SaveOptions "save" - pure ⟨openClose, change, willSave, willSaveUntil, save?⟩⟩ - -instance : ToJson TextDocumentSyncOptions := ⟨fun o => - mkObj $ - opt "save" o.save? ++ [ - ⟨"openClose", toJson o.openClose⟩, - ⟨"change", toJson o.change⟩, - ⟨"willSave", toJson o.willSave⟩, - ⟨"willSaveWaitUntil", toJson o.willSaveWaitUntil⟩]⟩ + deriving ToJson, FromJson end Lsp end Lean diff --git a/stage0/src/Lean/Data/Lsp/Workspace.lean b/stage0/src/Lean/Data/Lsp/Workspace.lean index 2b28206a56..0324eb30ac 100644 --- a/stage0/src/Lean/Data/Lsp/Workspace.lean +++ b/stage0/src/Lean/Data/Lsp/Workspace.lean @@ -15,16 +15,8 @@ open Json structure WorkspaceFolder where uri : DocumentUri name : String + deriving ToJson, FromJson -instance : FromJson WorkspaceFolder := ⟨fun j => do - let uri ← j.getObjValAs? DocumentUri "uri" - let name ← j.getObjValAs? String "name" - pure ⟨uri, name⟩⟩ - -instance : ToJson WorkspaceFolder := ⟨fun o => - mkObj [ - ⟨"uri", toJson o.uri⟩, - ⟨"name", toJson o.name⟩]⟩ -- TODO(WN): -- WorkspaceFoldersServerCapabilities, -- DidChangeWorkspaceFoldersParams, diff --git a/stage0/src/Lean/Elab/Quotation.lean b/stage0/src/Lean/Elab/Quotation.lean index c0a779ac5d..025a6b0710 100644 --- a/stage0/src/Lean/Elab/Quotation.lean +++ b/stage0/src/Lean/Elab/Quotation.lean @@ -57,7 +57,7 @@ private partial def quoteSyntax : Syntax → TermElabM Syntax getAntiquotTerm stx else if isTokenAntiquot stx && !isEscapedAntiquot stx then match stx[0] with - | Syntax.atom _ val => `(Syntax.atom $(getAntiquotTerm stx) $(quote val)) + | Syntax.atom _ val => `(Syntax.atom (Option.getD (getHeadInfo $(getAntiquotTerm stx)) info) $(quote val)) | _ => throwErrorAt stx "expected token" else if isAntiquotSuffixSplice stx && !isEscapedAntiquot stx then -- splices must occur in a `many` node @@ -226,7 +226,7 @@ private partial def getHeadInfo (alt : Alt) : TermElabM HeadInfo := -- We assume that atoms are uniquely determined by the node kind and never have to be checked unconditionally pure else if quoted.isTokenAntiquot then - unconditionally (`(let $(quoted.getAntiquotTerm) := discr.getHeadInfo.get!; $(·))) + unconditionally (`(let $(quoted.getAntiquotTerm) := discr; $(·))) else if isAntiquot quoted && !isEscapedAntiquot quoted then -- quotation contains a single antiquotation let k := antiquotKind? quoted |>.get! diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 0ee16b4399..7b5ff7189f 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Classical.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Basic.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Id.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/InsertionSort.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Format.c ./Init/Data/Format/Basic.c ./Init/Data/Format/Instances.c ./Init/Data/Format/Macro.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/OfScientific.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/Stream.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/Meta.c ./Init/Notation.c ./Init/NotationExtra.c ./Init/Prelude.c ./Init/SizeOf.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Extra.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/Ipc.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/NameTrie.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/PrefixTree.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/AutoBound.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Deriving.c ./Lean/Elab/Deriving/BEq.c ./Lean/Elab/Deriving/Basic.c ./Lean/Elab/Deriving/DecEq.c ./Lean/Elab/Deriving/FromToJson.c ./Lean/Elab/Deriving/Inhabited.c ./Lean/Elab/Deriving/Repr.c ./Lean/Elab/Deriving/Util.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/Quotation/Util.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/GetConst.c ./Lean/Meta/Inductive.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/Basic.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/Match/MatcherInfo.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/PPGoal.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/Constructor.c ./Lean/Meta/Tactic/Delta.c ./Lean/Meta/Tactic/ElimInfo.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/Transform.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/UnificationHint.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Attr.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Basic.c ./Lean/PrettyPrinter/Delaborator.c ./Lean/PrettyPrinter/Delaborator/Basic.c ./Lean/PrettyPrinter/Delaborator/Builtins.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/ScopedEnvExtension.c ./Lean/Server.c ./Lean/Server/AsyncList.c ./Lean/Server/FileSource.c ./Lean/Server/FileWorker.c ./Lean/Server/Snapshots.c ./Lean/Server/Utils.c ./Lean/Server/Watchdog.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Classical.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Basic.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Id.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/InsertionSort.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Format.c ./Init/Data/Format/Basic.c ./Init/Data/Format/Instances.c ./Init/Data/Format/Macro.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/OfScientific.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/Stream.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/Meta.c ./Init/Notation.c ./Init/NotationExtra.c ./Init/Prelude.c ./Init/SizeOf.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Extra.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/Ipc.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/NameTrie.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/PrefixTree.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/AutoBound.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Deriving.c ./Lean/Elab/Deriving/BEq.c ./Lean/Elab/Deriving/Basic.c ./Lean/Elab/Deriving/DecEq.c ./Lean/Elab/Deriving/FromToJson.c ./Lean/Elab/Deriving/Inhabited.c ./Lean/Elab/Deriving/Repr.c ./Lean/Elab/Deriving/Util.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/Quotation/Util.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/GetConst.c ./Lean/Meta/Inductive.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/Basic.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/Match/MatcherInfo.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/PPGoal.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/Constructor.c ./Lean/Meta/Tactic/Delta.c ./Lean/Meta/Tactic/ElimInfo.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/Transform.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/UnificationHint.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Attr.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Basic.c ./Lean/PrettyPrinter/Delaborator.c ./Lean/PrettyPrinter/Delaborator/Basic.c ./Lean/PrettyPrinter/Delaborator/Builtins.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/ScopedEnvExtension.c ./Lean/Server.c ./Lean/Server/AsyncList.c ./Lean/Server/FileSource.c ./Lean/Server/FileWorker.c ./Lean/Server/Snapshots.c ./Lean/Server/Utils.c ./Lean/Server/Watchdog.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Lean/Data/Lsp/Basic.c b/stage0/stdlib/Lean/Data/Lsp/Basic.c index 41dbea467c..8802f3bc86 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Basic.c +++ b/stage0/stdlib/Lean/Data/Lsp/Basic.c @@ -14,240 +14,322 @@ extern "C" { #endif lean_object* l_Lean_Lsp_instFromJsonDocumentSelector(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1261____boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonCancelParams___closed__1; lean_object* l_Lean_Lsp_instFromJsonMarkupKind(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1281_(lean_object*); +extern lean_object* l_Lean_instFromJsonOption___rarg___closed__1; lean_object* l_Lean_Lsp_instToJsonMarkupKind___closed__2; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1___boxed(lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264____boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonCancelParams; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332_(lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458_(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_16_(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToStringPosition(lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonLocationLink___closed__3; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__2; +lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; lean_object* l_Lean_Json_getNat_x3f(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_Lsp_CancelParams_hasFromJson(lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_16__match__1(lean_object*); -lean_object* l_Lean_Lsp_instToJsonDocumentFilter(lean_object*); +lean_object* l_Lean_Lsp_instToJsonDocumentFilter; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_Lsp_WorkDoneProgressReport_cancellable___default; lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonPosition(lean_object*); -lean_object* l_Lean_Lsp_CancelParams_hasToJson(lean_object*); -lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier(lean_object*); +lean_object* l_Lean_Lsp_instToJsonPosition; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1281____boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier; lean_object* l_Lean_Lsp_instBEqLocation___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instInhabitedRange___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(size_t, size_t, lean_object*); -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123_(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonCancelParams; +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121_(lean_object*, lean_object*); lean_object* l_Lean_Lsp_DocumentFilter_language_x3f___default; lean_object* l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default; -lean_object* l_Lean_Lsp_CancelParams_hasToJson___closed__2; -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123____boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121____boxed(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1; extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; -lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqCancelParams___closed__1; -lean_object* l_Lean_Lsp_instFromJsonRange(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___closed__3; -lean_object* l_Lean_Lsp_instToJsonDocumentFilter___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonPosition(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonRange; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__5; +lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273____boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonPosition; lean_object* l_Lean_Json_getStr_x3f(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqPosition; -lean_object* l_Lean_Lsp_CancelParams_hasToJson___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonPosition___closed__2; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2; lean_object* l_Lean_Lsp_instToJsonMarkupKind_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextDocumentEdit___spec__1(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextDocumentEdit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams; uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_Lsp_instToJsonLocationLink(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1(lean_object*); +lean_object* l_Lean_Lsp_instToJsonLocationLink; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985_(lean_object*); +lean_object* l_Lean_Lsp_instToJsonDocumentFilter___closed__1; lean_object* l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1; +lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4; lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(size_t, size_t, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__10; -lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403____boxed(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier; +lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonPosition___closed__1; -lean_object* l_Lean_Lsp_instFromJsonPosition___boxed(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonCommand___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextEdit___closed__1; -lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__2; +lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1; lean_object* l_Lean_Lsp_instToJsonDocumentSelector(lean_object*); +lean_object* l_Lean_Lsp_instToJsonPosition___closed__1; lean_object* l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; lean_object* l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextEdit___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin___boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570____closed__1; lean_object* l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__5; lean_object* l_Lean_Lsp_instBEqRange; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__7; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonMarkupKind_match__1(lean_object*); -lean_object* l_Lean_Lsp_instToJsonCommand(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier___boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonCommand; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextEditBatch(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738_(lean_object*); lean_object* l_Lean_Lsp_WorkDoneProgressEnd_kind___default; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1; lean_object* l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__1; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1; +lean_object* l_Lean_Lsp_instToJsonRange___closed__1; lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264_(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1___boxed(lean_object*, lean_object*); +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273_(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59_(lean_object*); lean_object* l_Lean_Lsp_WorkDoneProgressReport_kind___default; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonMarkupContent(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___boxed(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1; +lean_object* l_Lean_Lsp_instFromJsonMarkupContent; lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3; lean_object* l_Lean_Lsp_instBEqLocation; lean_object* l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__2; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentItem___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__5; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqPosition___closed__1; -lean_object* l_Lean_Lsp_instFromJsonRange___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__4; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1; lean_object* l_Lean_Lsp_instFromJsonRange___closed__1; -lean_object* l_Lean_Lsp_instFromJsonTextEdit(lean_object*); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__3; +lean_object* l_Lean_Lsp_instFromJsonTextEdit; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2; lean_object* l_Lean_Lsp_instBEqRange___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385____boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2; -lean_object* l_Lean_Lsp_instFromJsonLocationLink___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2; +lean_object* l_Lean_Lsp_instToJsonCommand___closed__1; +lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams; lean_object* l_Lean_Lsp_instFromJsonLocationLink___closed__1; lean_object* l_Lean_Lsp_DocumentFilter_scheme_x3f___default; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_DocumentFilter_pattern_x3f___default; lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default; lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonLocationLink(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonLocationLink; +lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79____boxed(lean_object*); extern lean_object* l_Lean_JsonRpc_instInhabitedRequestID___closed__1; -lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___closed__2; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonMarkupContent(lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1___boxed(lean_object*, lean_object*); -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385_(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextDocumentItem(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_799_(lean_object*); +lean_object* l_Lean_Lsp_instToJsonMarkupContent; +lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit; +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403_(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentItem; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479_(lean_object*); lean_object* l_Lean_Lsp_instInhabitedCancelParams; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1; +lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1; lean_object* l_Lean_Lsp_instToJsonMarkupKind_match__1___rarg(uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____boxed(lean_object*); extern lean_object* l_term_x5b___x5d___closed__5; -lean_object* l_Lean_Lsp_CancelParams_hasFromJson___boxed(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonCommand___spec__2(size_t, size_t, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqCancelParams; -lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions___boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____spec__1(lean_object*, lean_object*); lean_object* l_Lean_JsonNumber_fromNat(lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonMarkupContent___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312_(lean_object*); lean_object* l_Lean_Lsp_instToJsonMarkupKind_match__1(lean_object*); lean_object* l_Lean_Lsp_instToJsonMarkupKind(uint8_t); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_16____boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__4; lean_object* l_Lean_Lsp_instInhabitedLocation; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(size_t, size_t, lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextEdit___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__4; +lean_object* l_Lean_Lsp_instToJsonLocationLink___closed__1; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_instInhabitedPosition; -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin(lean_object*); +lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin; lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_16__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Command_arguments_x3f___default; lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -lean_object* l_Lean_Lsp_instFromJsonMarkupContent___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__2; lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -lean_object* l_Lean_Lsp_instFromJsonLocationLink___closed__2; -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3; -lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonLocationLink___closed__4; lean_object* l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default; lean_object* l_Lean_Lsp_instInhabitedLocation___closed__1; -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__7; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____closed__1; +lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1; +lean_object* l_Lean_Lsp_instFromJsonCancelParams___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__8; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonCommand___spec__2(size_t, size_t, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__3; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonCommand___closed__1; -lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonCommand___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonLocation(lean_object*); +lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonLocation; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188_(lean_object*); extern lean_object* l_prec_x28___x29___closed__7; -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd(lean_object*); -lean_object* l_Lean_Lsp_CancelParams_hasToJson___closed__1; +lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____boxed(lean_object*); extern lean_object* l_prec_x28___x29___closed__3; lean_object* l_Lean_Lsp_instToJsonTextEditBatch(lean_object*); lean_object* l_Lean_Lsp_WorkDoneProgressBegin_kind___default; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712_(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -lean_object* l_Lean_Lsp_instToJsonRange(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__4; +lean_object* l_Lean_Lsp_instToJsonRange; lean_object* l_Lean_Lsp_instToJsonMarkupKind___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626_(lean_object*); lean_object* l_Lean_Lsp_instToJsonMarkupKind___closed__1; -lean_object* l_Lean_Lsp_instFromJsonCommand(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonCommand; lean_object* l_Lean_Lsp_instToJsonProgressParams(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5; +lean_object* l_Lean_Lsp_instToJsonLocation___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2; lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonLocation___closed__2; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonCommand___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonCommand___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg___closed__1; -lean_object* l_Lean_Lsp_instFromJsonLocation___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextEdit(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851_(lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextEdit; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1261_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176_(lean_object*); lean_object* l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default; -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDocumentFilter(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1; +lean_object* l_Lean_Lsp_instFromJsonDocumentFilter; lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__1; -lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions(lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions; uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_16_(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; lean_object* l_Lean_Lsp_instFromJsonMarkupKind___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; -lean_object* l_Lean_Lsp_instFromJsonCommand___closed__2; -lean_object* l_Lean_Lsp_instFromJsonCommand___closed__3; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3; lean_object* l_Lean_Lsp_instInhabitedRange; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; +lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3; +lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonMarkupKind___closed__2; -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default; -lean_object* l_Lean_Lsp_instToJsonLocation(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonLocation; uint8_t lean_string_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877_(lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqCancelParams____x40_Lean_Data_Lsp_Basic___hyg_16__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instInhabitedPosition___closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1; static lean_object* _init_l_Lean_Lsp_instInhabitedCancelParams() { _start: { @@ -316,49 +398,7 @@ x_1 = l_Lean_Lsp_instBEqCancelParams___closed__1; return x_1; } } -lean_object* l_Lean_Lsp_CancelParams_hasFromJson(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(x_1, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -lean_dec(x_3); -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_6); -return x_7; -} -} -} -} -lean_object* l_Lean_Lsp_CancelParams_hasFromJson___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_CancelParams_hasFromJson(x_1); -lean_dec(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Lsp_CancelParams_hasToJson___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -370,16 +410,16 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Lsp_CancelParams_hasToJson___closed__2() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Lsp_CancelParams_hasToJson___closed__1; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__1; x_2 = l_Lean_Json_mkObj(x_1); return x_2; } } -lean_object* l_Lean_Lsp_CancelParams_hasToJson(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59_(lean_object* x_1) { _start: { lean_object* x_2; @@ -422,21 +462,95 @@ return x_14; default: { lean_object* x_15; -x_15 = l_Lean_Lsp_CancelParams_hasToJson___closed__2; +x_15 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2; return x_15; } } } } -lean_object* l_Lean_Lsp_CancelParams_hasToJson___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_CancelParams_hasToJson(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59_(x_1); lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Lsp_instToJsonCancelParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonCancelParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonCancelParams___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonCancelParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonCancelParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonCancelParams___closed__1; +return x_1; +} +} static lean_object* _init_l_Lean_Lsp_instInhabitedPosition___closed__1() { _start: { @@ -456,7 +570,7 @@ x_1 = l_Lean_Lsp_instInhabitedPosition___closed__1; return x_1; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1___rarg(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_9; @@ -474,24 +588,24 @@ x_9 = lean_apply_4(x_3, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1___rarg___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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123__match__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121__match__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123_(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121_(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; uint8_t x_7; @@ -514,11 +628,11 @@ return x_9; } } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123_(x_1, x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -529,7 +643,7 @@ static lean_object* _init_l_Lean_Lsp_instBEqPosition___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121____boxed), 2, 0); return x_1; } } @@ -541,7 +655,73 @@ x_1 = l_Lean_Lsp_instBEqPosition___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("line"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("character"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176_(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; lean_object* x_15; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_JsonNumber_fromNat(x_2); +x_4 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = l_Lean_JsonNumber_fromNat(x_7); +x_9 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_6); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Lean_Json_mkObj(x_14); +return x_15; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPosition___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPosition() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonPosition___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -551,28 +731,12 @@ lean_dec(x_3); return x_4; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonPosition___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("line"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonPosition___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("character"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonPosition(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -585,8 +749,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -625,57 +789,39 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonPosition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonPosition(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonPosition(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonPosition___closed__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; lean_object* x_15; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_JsonNumber_fromNat(x_2); -x_4 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_4, 0, x_3); -x_5 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -x_7 = lean_ctor_get(x_1, 1); -lean_inc(x_7); -lean_dec(x_1); -x_8 = l_Lean_JsonNumber_fromNat(x_7); -x_9 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_6); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Json_mkObj(x_14); -return x_15; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonPosition() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonPosition___closed__1; +return x_1; } } lean_object* l_Lean_Lsp_instToStringPosition(lean_object* x_1) { @@ -720,7 +866,7 @@ x_1 = l_Lean_Lsp_instInhabitedRange___closed__1; return x_1; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1___rarg(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_9; @@ -738,24 +884,24 @@ x_9 = lean_apply_4(x_3, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1___rarg___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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264__match__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273__match__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264_(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273_(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; uint8_t x_7; @@ -763,7 +909,7 @@ x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); -x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123_(x_3, x_5); +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121_(x_3, x_5); if (x_7 == 0) { uint8_t x_8; @@ -773,16 +919,16 @@ return x_8; else { uint8_t x_9; -x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_123_(x_4, x_6); +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqPosition____x40_Lean_Data_Lsp_Basic___hyg_121_(x_4, x_6); return x_9; } } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264_(x_1, x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -793,7 +939,7 @@ static lean_object* _init_l_Lean_Lsp_instBEqRange___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273____boxed), 2, 0); return x_1; } } @@ -805,68 +951,7 @@ x_1 = l_Lean_Lsp_instBEqRange___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___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_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_3, x_4); -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; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_3, x_8); -lean_dec(x_3); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -lean_dec(x_7); -x_10 = lean_box(0); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_7); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; -} -} -} -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonRange___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1() { _start: { lean_object* x_1; @@ -874,12 +959,68 @@ x_1 = lean_mk_string("end"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonRange(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176_(x_2); +x_4 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176_(x_6); +x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonRange___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonRange() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonRange___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1(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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202_(x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -892,8 +1033,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -932,101 +1073,39 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonRange___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonRange(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonRange(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonRange___closed__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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = l_Lean_JsonNumber_fromNat(x_3); -x_5 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_5, 0, x_4); -x_6 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = lean_ctor_get(x_2, 1); -lean_inc(x_8); -lean_dec(x_2); -x_9 = l_Lean_JsonNumber_fromNat(x_8); -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_Json_mkObj(x_15); -x_17 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_ctor_get(x_1, 1); -lean_inc(x_19); -lean_dec(x_1); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = l_Lean_JsonNumber_fromNat(x_20); -x_22 = lean_alloc_ctor(2, 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_6); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = l_Lean_JsonNumber_fromNat(x_24); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_11); -lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_13); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_23); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Json_mkObj(x_29); -x_31 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_13); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_18); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Json_mkObj(x_34); -return x_35; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonRange() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonRange___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_instInhabitedLocation___closed__1() { @@ -1049,7 +1128,7 @@ x_1 = l_Lean_Lsp_instInhabitedLocation___closed__1; return x_1; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1___rarg(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_9; @@ -1067,24 +1146,24 @@ x_9 = lean_apply_4(x_3, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1___rarg___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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385__match__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403__match__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385_(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403_(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; uint8_t x_7; @@ -1102,16 +1181,16 @@ return x_8; else { uint8_t x_9; -x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264_(x_4, x_6); +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273_(x_4, x_6); return x_9; } } } -lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385_(x_1, x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -1122,7 +1201,7 @@ static lean_object* _init_l_Lean_Lsp_instBEqLocation___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403____boxed), 2, 0); return x_1; } } @@ -1134,7 +1213,70 @@ x_1 = l_Lean_Lsp_instBEqLocation___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("uri"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("range"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458_(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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_2); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_3); +x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_6); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLocation___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLocation() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonLocation___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -1144,89 +1286,22 @@ lean_dec(x_3); return x_4; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354_(x_3); lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_3, x_8); -lean_dec(x_3); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -lean_dec(x_7); -x_10 = lean_box(0); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_7); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; +return x_4; } } -} -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonLocation___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("uri"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonLocation___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("range"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonLocation(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1239,8 +1314,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -1279,144 +1354,52 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonLocation___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonLocation(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonLocation(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; 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -x_7 = lean_ctor_get(x_3, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = l_Lean_JsonNumber_fromNat(x_8); -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = lean_ctor_get(x_7, 1); -lean_inc(x_13); -lean_dec(x_7); -x_14 = l_Lean_JsonNumber_fromNat(x_13); -x_15 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_12); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Json_mkObj(x_20); -x_22 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = lean_ctor_get(x_3, 1); -lean_inc(x_24); -lean_dec(x_3); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = l_Lean_JsonNumber_fromNat(x_25); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_11); -lean_ctor_set(x_28, 1, x_27); -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = l_Lean_JsonNumber_fromNat(x_29); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_16); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_18); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_28); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Json_mkObj(x_34); -x_36 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_18); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_23); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_Json_mkObj(x_39); -x_41 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_18); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_6); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Json_mkObj(x_44); -return x_45; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__1() { +static lean_object* _init_l_Lean_Lsp_instFromJsonLocation___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("originSelectionRange"); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__2() { +static lean_object* _init_l_Lean_Lsp_instFromJsonLocation() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonLocation___closed__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1() { _start: { lean_object* x_1; @@ -1424,7 +1407,7 @@ x_1 = lean_mk_string("targetUri"); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__3() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2() { _start: { lean_object* x_1; @@ -1432,7 +1415,7 @@ x_1 = lean_mk_string("targetRange"); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__4() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3() { _start: { lean_object* x_1; @@ -1440,380 +1423,289 @@ x_1 = lean_mk_string("targetSelectionRange"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonLocationLink(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4() { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Lsp_instFromJsonLocationLink___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonLocationLink___closed__2; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_4); +lean_object* x_1; +x_1 = lean_mk_string("originSelectionRange"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527_(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_7); +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = lean_ctor_get(x_1, 3); +lean_inc(x_11); +lean_dec(x_1); +x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_11); +x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_6); +lean_ctor_set(x_18, 1, x_17); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__5; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Json_mkObj(x_20); +return x_21; +} +else +{ +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_2, 0); +lean_inc(x_22); +lean_dec(x_2); +x_23 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_22); +x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, 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_18); +x_27 = l_Lean_Json_mkObj(x_26); +return x_27; +} +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonLocationLink___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354_(x_3); +lean_dec(x_3); 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; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); lean_dec(x_5); -x_8 = l_Lean_Lsp_instFromJsonLocationLink___closed__3; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_8); -if (lean_obj_tag(x_9) == 0) +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565_(lean_object* x_1) { +_start: { -lean_object* x_10; -lean_dec(x_7); -lean_dec(x_3); -x_10 = lean_box(0); -return x_10; +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_dec(x_9); -x_12 = l_Lean_Lsp_instFromJsonLocationLink___closed__4; -x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_12); -if (lean_obj_tag(x_13) == 0) +lean_dec(x_5); +x_12 = lean_box(0); +return x_12; +} +else { -lean_object* x_14; +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_3); -x_14 = lean_box(0); -return x_14; -} -else +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3; +x_15 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_14); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_13, 0); -x_17 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_17, 0, x_3); -lean_ctor_set(x_17, 1, x_7); -lean_ctor_set(x_17, 2, x_11); -lean_ctor_set(x_17, 3, x_16); -lean_ctor_set(x_13, 0, x_17); -return x_13; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_13, 0); -lean_inc(x_18); +lean_object* x_16; lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_5); +x_16 = lean_box(0); +return x_16; +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 0); x_19 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_19, 0, x_3); -lean_ctor_set(x_19, 1, x_7); -lean_ctor_set(x_19, 2, x_11); +lean_ctor_set(x_19, 0, x_5); +lean_ctor_set(x_19, 1, x_9); +lean_ctor_set(x_19, 2, x_13); lean_ctor_set(x_19, 3, x_18); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -return x_20; +lean_ctor_set(x_15, 0, x_19); +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 0); +lean_inc(x_20); +lean_dec(x_15); +x_21 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_21, 0, x_5); +lean_ctor_set(x_21, 1, x_9); +lean_ctor_set(x_21, 2, x_13); +lean_ctor_set(x_21, 3, x_20); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +return x_22; } } } } } } -lean_object* l_Lean_Lsp_instFromJsonLocationLink___boxed(lean_object* x_1) { +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonLocationLink(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__1() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = l_Lean_JsonNumber_fromNat(x_9); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_dec(x_8); -x_15 = l_Lean_JsonNumber_fromNat(x_14); -x_16 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_16, 0, x_15); -x_17 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_3); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_13); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Json_mkObj(x_20); -x_22 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = lean_ctor_get(x_7, 1); -lean_inc(x_24); -lean_dec(x_7); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = l_Lean_JsonNumber_fromNat(x_25); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_12); -lean_ctor_set(x_28, 1, x_27); -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = l_Lean_JsonNumber_fromNat(x_29); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_17); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_3); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_28); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Json_mkObj(x_34); -x_36 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_3); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_23); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_Json_mkObj(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_1); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_3); -return x_42; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____boxed), 1, 0); +return x_1; } } -} -lean_object* l_Lean_Lsp_instToJsonLocationLink(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink() { _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; 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; 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; 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; 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; 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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Lsp_instFromJsonLocationLink___closed__1; -x_4 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(x_3, x_2); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -x_6 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_6, 0, x_5); -x_7 = l_Lean_Lsp_instFromJsonLocationLink___closed__2; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_ctor_get(x_1, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = l_Lean_JsonNumber_fromNat(x_11); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_Lsp_instFromJsonPosition___closed__1; -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_ctor_get(x_10, 1); -lean_inc(x_16); -lean_dec(x_10); -x_17 = l_Lean_JsonNumber_fromNat(x_16); -x_18 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(1, 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_15); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = lean_ctor_get(x_9, 1); -lean_inc(x_27); -lean_dec(x_9); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = l_Lean_JsonNumber_fromNat(x_28); -x_30 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_14); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_dec(x_27); -x_33 = l_Lean_JsonNumber_fromNat(x_32); -x_34 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_19); -lean_ctor_set(x_35, 1, x_34); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_21); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_Json_mkObj(x_37); -x_39 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_21); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_26); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_Json_mkObj(x_42); -x_44 = l_Lean_Lsp_instFromJsonLocationLink___closed__3; -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = lean_ctor_get(x_1, 3); -lean_inc(x_46); -lean_dec(x_1); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = l_Lean_JsonNumber_fromNat(x_48); -x_50 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_14); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_ctor_get(x_47, 1); -lean_inc(x_52); -lean_dec(x_47); -x_53 = l_Lean_JsonNumber_fromNat(x_52); -x_54 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_54, 0, x_53); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_19); -lean_ctor_set(x_55, 1, x_54); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_21); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_51); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_Json_mkObj(x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_25); -lean_ctor_set(x_59, 1, x_58); -x_60 = lean_ctor_get(x_46, 1); -lean_inc(x_60); -lean_dec(x_46); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = l_Lean_JsonNumber_fromNat(x_61); -x_63 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_14); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -lean_dec(x_60); -x_66 = l_Lean_JsonNumber_fromNat(x_65); -x_67 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_67, 0, x_66); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_19); -lean_ctor_set(x_68, 1, x_67); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_21); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_64); -lean_ctor_set(x_70, 1, x_69); -x_71 = l_Lean_Json_mkObj(x_70); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_39); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_21); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_59); -lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_Json_mkObj(x_74); -x_76 = l_Lean_Lsp_instFromJsonLocationLink___closed__4; -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_21); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_45); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_8); -lean_ctor_set(x_80, 1, x_79); -x_81 = l_List_append___rarg(x_4, x_80); -x_82 = l_Lean_Json_mkObj(x_81); -return x_82; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonLocationLink___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_Command_arguments_x3f___default() { @@ -1824,7 +1716,181 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonCommand___spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +x_12 = x_9; +x_13 = lean_array_uset(x_8, x_2, x_12); +x_2 = x_11; +x_3 = x_13; +goto _start; +} +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("title"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("command"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("arguments"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__4; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630_(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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_5, 0, x_2); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +x_8 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_8, 0, x_3); +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__5; +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_7); +lean_ctor_set(x_13, 1, x_12); +x_14 = l_Lean_Json_mkObj(x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_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; +x_15 = lean_ctor_get(x_4, 0); +lean_inc(x_15); +lean_dec(x_4); +x_16 = lean_box(0); +x_17 = lean_array_get_size(x_15); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_19 = 0; +x_20 = x_15; +x_21 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____spec__1(x_18, x_19, x_20); +x_22 = x_21; +x_23 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, 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_16); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_10); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_7); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Json_mkObj(x_28); +return x_29; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonCommand___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonCommand() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonCommand___closed__1; +return x_1; +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1854,64 +1920,77 @@ goto _start; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -if (lean_obj_tag(x_3) == 4) +switch (lean_obj_tag(x_3)) { +case 0: { -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; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +case 4: +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); lean_dec(x_3); -x_5 = lean_array_get_size(x_4); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonCommand___spec__2(x_6, x_7, x_8); -x_10 = x_9; -return x_10; +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = x_5; +x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__2(x_7, x_8, x_9); +x_11 = x_10; +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_11; +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +default: +{ +lean_object* x_18; lean_dec(x_3); -x_11 = lean_box(0); -return x_11; +x_18 = lean_box(0); +return x_18; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonCommand___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("title"); -return x_1; } -} -static lean_object* _init_l_Lean_Lsp_instFromJsonCommand___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("command"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonCommand___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("arguments"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonCommand(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonCommand___closed__1; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_2); if (lean_obj_tag(x_3) == 0) { @@ -1925,7 +2004,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonCommand___closed__2; +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { @@ -1936,32 +2015,44 @@ return x_8; } else { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_7); -if (x_9 == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__1(x_1, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_7, 0); -x_11 = l_Lean_Lsp_instFromJsonCommand___closed__3; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1(x_1, x_11); -x_13 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_13, 0, x_5); -lean_ctor_set(x_13, 1, x_10); -lean_ctor_set(x_13, 2, x_12); -lean_ctor_set(x_7, 0, x_13); -return x_7; +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_5); +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_7, 0); -lean_inc(x_14); -lean_dec(x_7); -x_15 = l_Lean_Lsp_instFromJsonCommand___closed__3; -x_16 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1(x_1, x_15); +uint8_t x_13; +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); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_9); +lean_ctor_set(x_15, 2, x_14); +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, 0); +lean_inc(x_16); +lean_dec(x_11); x_17 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_17, 0, x_5); -lean_ctor_set(x_17, 1, x_14); +lean_ctor_set(x_17, 1, x_9); lean_ctor_set(x_17, 2, x_16); x_18 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_18, 0, x_17); @@ -1971,7 +2062,8 @@ return x_18; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonCommand___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____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; @@ -1979,149 +2071,46 @@ 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_Lsp_instFromJsonCommand___spec__2(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__2(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonCommand___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonCommand___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonCommand(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonCommand___spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +static lean_object* _init_l_Lean_Lsp_instFromJsonCommand___closed__1() { _start: { -uint8_t x_4; -x_4 = x_2 < x_1; -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = x_3; -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; -x_6 = lean_array_uget(x_3, x_2); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_3, x_2, x_7); -x_9 = x_6; -x_10 = 1; -x_11 = x_2 + x_10; -x_12 = x_9; -x_13 = lean_array_uset(x_8, x_2, x_12); -x_2 = x_11; -x_3 = x_13; -goto _start; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_662____boxed), 1, 0); +return x_1; } } -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonCommand___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonCommand() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; size_t x_9; size_t 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; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_array_get_size(x_7); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = x_7; -x_12 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonCommand___spec__2(x_9, x_10, x_11); -x_13 = x_12; -x_14 = lean_alloc_ctor(4, 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_1); -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_3); -return x_16; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonCommand___closed__1; +return x_1; } } -} -lean_object* l_Lean_Lsp_instToJsonCommand(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -lean_dec(x_1); -x_5 = l_Lean_Lsp_instFromJsonCommand___closed__3; -x_6 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonCommand___spec__1(x_5, x_4); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_2); -x_8 = l_Lean_Lsp_instFromJsonCommand___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_10, 0, x_3); -x_11 = l_Lean_Lsp_instFromJsonCommand___closed__2; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_9); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_List_append___rarg(x_6, x_15); -x_17 = l_Lean_Json_mkObj(x_16); -return x_17; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonCommand___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_Lsp_instToJsonCommand___spec__2(x_4, x_5, x_3); -return x_6; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1() { _start: { lean_object* x_1; @@ -2129,12 +2118,59 @@ x_1 = lean_mk_string("newText"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonTextEdit(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712_(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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextEdit___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -2147,7 +2183,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { @@ -2187,113 +2223,29 @@ return x_14; } } } -lean_object* l_Lean_Lsp_instFromJsonTextEdit___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextEdit(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonTextEdit(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit___closed__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; 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = l_Lean_JsonNumber_fromNat(x_4); -x_6 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_6, 0, x_5); -x_7 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -lean_dec(x_3); -x_10 = l_Lean_JsonNumber_fromNat(x_9); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -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 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_8); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Json_mkObj(x_16); -x_18 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_ctor_get(x_2, 1); -lean_inc(x_20); -lean_dec(x_2); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = l_Lean_JsonNumber_fromNat(x_21); -x_23 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_7); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_dec(x_20); -x_26 = l_Lean_JsonNumber_fromNat(x_25); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_12); -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_24); -lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_Json_mkObj(x_30); -x_32 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_14); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_19); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_Json_mkObj(x_35); -x_37 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = lean_ctor_get(x_1, 1); -lean_inc(x_39); -lean_dec(x_1); -x_40 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_14); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_38); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Json_mkObj(x_44); -return x_45; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; +return x_1; } } lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { @@ -2311,59 +2263,37 @@ return x_6; } else { -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_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_10, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; +x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_738_(x_10); lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_dec(x_9); -x_13 = lean_box(0); -return x_13; +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; -x_16 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_15); -lean_dec(x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -lean_dec(x_14); -lean_dec(x_9); -x_17 = lean_box(0); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -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 = 1; -x_21 = x_2 + x_20; -x_22 = x_19; -x_23 = lean_array_uset(x_9, x_2, x_22); -x_2 = x_21; -x_3 = x_23; +lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = x_2 + x_14; +x_16 = x_13; +x_17 = lean_array_uset(x_9, x_2, x_16); +x_2 = x_15; +x_3 = x_17; goto _start; } } } } -} lean_object* l_Lean_Lsp_instFromJsonTextEditBatch(lean_object* x_1) { _start: { @@ -2416,110 +2346,18 @@ 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; 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; 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; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; size_t x_54; size_t x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_6; 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_object* x_14; x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_9 = x_6; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = l_Lean_JsonNumber_fromNat(x_12); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_ctor_get(x_11, 1); -lean_inc(x_17); -lean_dec(x_11); -x_18 = l_Lean_JsonNumber_fromNat(x_17); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Lsp_instFromJsonPosition___closed__2; -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_box(0); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_16); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_Json_mkObj(x_24); -x_26 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_ctor_get(x_10, 1); -lean_inc(x_28); -lean_dec(x_10); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = l_Lean_JsonNumber_fromNat(x_29); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_15); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = l_Lean_JsonNumber_fromNat(x_33); -x_35 = lean_alloc_ctor(2, 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_20); -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_22); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_Json_mkObj(x_38); -x_40 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_22); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_27); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_Json_mkObj(x_43); -x_45 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -x_47 = lean_ctor_get(x_9, 1); -lean_inc(x_47); -lean_dec(x_9); -x_48 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_22); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_46); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Json_mkObj(x_52); -x_54 = 1; -x_55 = x_2 + x_54; -x_56 = x_53; -x_57 = lean_array_uset(x_8, x_2, x_56); -x_2 = x_55; -x_3 = x_57; +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712_(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; goto _start; } } @@ -2552,12 +2390,46 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_4 return x_6; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_799_(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; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Lean_Json_mkObj(x_6); +return x_7; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_799_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -2585,31 +2457,29 @@ return x_7; } } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__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; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -x_3 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_2); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_4); -lean_ctor_set(x_6, 1, x_5); -x_7 = l_Lean_Json_mkObj(x_6); -return x_7; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default() { @@ -2620,7 +2490,7 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1() { _start: { lean_object* x_1; @@ -2628,134 +2498,115 @@ x_1 = lean_mk_string("version"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2() { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_8 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_1, 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); -lean_ctor_set(x_3, 0, x_9); +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); return x_3; } -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_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(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; } -} -} -} -lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___boxed(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3() { _start: { -lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851_(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; lean_object* x_11; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = l_Lean_JsonNumber_fromNat(x_7); -x_9 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_3); -return x_11; -} -} -} -lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier(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_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_5 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(x_4, x_3); -x_6 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_6, 0, x_2); -x_7 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = l_List_append___rarg(x_5, x_10); -x_12 = l_Lean_Json_mkObj(x_11); -return x_12; +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_2); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3; +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; +} +else +{ +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; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +x_11 = lean_box(0); +x_12 = l_Lean_JsonNumber_fromNat(x_10); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +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, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_Json_mkObj(x_17); +return x_18; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(lean_object* x_1, lean_object* x_2) { +} +static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1() { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_3, x_4); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l_Lean_Json_getNat_x3f(x_3); +lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; -lean_dec(x_3); x_6 = lean_box(0); return x_6; } @@ -2765,87 +2616,33 @@ uint8_t x_7; x_7 = !lean_is_exclusive(x_5); 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_5, 0); -x_9 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_10 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_3, x_9); -lean_dec(x_3); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_3, x_13); -lean_dec(x_3); -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, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; -} -} -} -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValD(x_1, x_2); -if (lean_obj_tag(x_3) == 4) -{ -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; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec(x_3); -x_5 = lean_array_get_size(x_4); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_6, x_7, x_8); -x_10 = x_9; -return x_10; -} -else -{ -lean_object* x_11; -lean_dec(x_3); -x_11 = lean_box(0); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); return x_11; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("textDocument"); -return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("edits"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -2858,8 +2655,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__2(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -2898,249 +2695,156 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextDocumentEdit___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1() { _start: { -uint8_t x_5; -x_5 = x_3 < x_2; -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_1); -x_6 = x_4; -return x_6; -} -else -{ -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; 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; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; size_t x_54; size_t x_55; lean_object* x_56; lean_object* x_57; -x_7 = lean_array_uget(x_4, x_3); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_uset(x_4, x_3, x_8); -x_10 = x_7; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = l_Lean_JsonNumber_fromNat(x_13); -x_15 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_dec(x_12); -x_19 = l_Lean_JsonNumber_fromNat(x_18); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -lean_inc(x_1); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_1); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_17); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_Json_mkObj(x_24); -x_26 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_ctor_get(x_11, 1); -lean_inc(x_28); -lean_dec(x_11); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = l_Lean_JsonNumber_fromNat(x_29); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_16); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = l_Lean_JsonNumber_fromNat(x_33); -x_35 = lean_alloc_ctor(2, 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_21); -lean_ctor_set(x_36, 1, x_35); -lean_inc(x_1); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_1); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_Json_mkObj(x_38); -x_40 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -lean_inc(x_1); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_1); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_27); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_Json_mkObj(x_43); -x_45 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -x_47 = lean_ctor_get(x_10, 1); -lean_inc(x_47); -lean_dec(x_10); -x_48 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = l_Lean_Lsp_instFromJsonTextEdit___closed__1; -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -lean_inc(x_1); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_1); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_46); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Json_mkObj(x_52); -x_54 = 1; -x_55 = x_3 + x_54; -x_56 = x_53; -x_57 = lean_array_uset(x_9, x_3, x_56); -x_3 = x_55; -x_4 = x_57; -goto _start; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877____boxed), 1, 0); +return x_1; } } -} -lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier() { _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; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_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_1; +x_1 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("textDocument"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("edits"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917_(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; size_t x_8; size_t 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_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_dec(x_2); -x_5 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_6 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(x_5, x_4); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_3); -x_8 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_List_append___rarg(x_6, x_11); -x_13 = l_Lean_Json_mkObj(x_12); -x_14 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_9 = 0; +x_10 = x_6; +x_11 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextEditBatch___spec__1(x_8, x_9, x_10); +x_12 = x_11; +x_13 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2; 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_ctor_get(x_1, 1); -lean_inc(x_16); -lean_dec(x_1); -x_17 = lean_array_get_size(x_16); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_19 = 0; -x_20 = x_16; -x_21 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextDocumentEdit___spec__1(x_10, x_18, x_19, x_20); -x_22 = x_21; -x_23 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2; -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, 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_10); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_15); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Json_mkObj(x_27); -return x_28; +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); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_5); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_Json_mkObj(x_18); +return x_19; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextDocumentEdit___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1() { _start: { -size_t x_5; size_t x_6; lean_object* x_7; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1(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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_877_(x_3); lean_dec(x_3); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonTextDocumentEdit___spec__1(x_1, x_5, x_6, x_4); -return x_7; +return x_4; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1() { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__2(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_mk_string("languageId"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2() { -_start: +lean_object* x_3; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 4) { -lean_object* x_1; -x_1 = lean_mk_string("text"); -return x_1; +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; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_7 = 0; +x_8 = x_4; +x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonTextEditBatch___spec__1(x_6, x_7, x_8); +x_10 = x_9; +return x_10; +} +else +{ +lean_object* x_11; +lean_dec(x_3); +x_11 = lean_box(0); +return x_11; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem(lean_object* x_1) { +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -3153,7 +2857,197 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__2(x_1, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +lean_dec(x_7); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_5); +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; +} +} +} +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("languageId"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("text"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985_(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; 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_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 3); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_6, 0, x_2); +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_9, 0, x_3); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = l_Lean_JsonNumber_fromNat(x_4); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +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(3, 1, 0); +lean_ctor_set(x_16, 0, x_5); +x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_11); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_8); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_Json_mkObj(x_23); +return x_24; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextDocumentItem___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { @@ -3168,8 +3062,8 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); lean_dec(x_7); -x_10 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_1, x_10); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_202____spec__1(x_1, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; @@ -3184,7 +3078,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; x_15 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_14); if (lean_obj_tag(x_15) == 0) { @@ -3232,106 +3126,32 @@ return x_22; } } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonTextDocumentItem(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__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; 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_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 3); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_6, 0, x_2); -x_7 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_9, 0, x_3); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = l_Lean_JsonNumber_fromNat(x_4); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -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(3, 1, 0); -lean_ctor_set(x_16, 0, x_5); -x_17 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_15); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_8); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -return x_24; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023____boxed), 1, 0); +return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem() { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_3, x_4); -lean_dec(x_3); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; -x_6 = lean_box(0); -return x_6; -} -else -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_5); -if (x_7 == 0) -{ -return x_5; -} -else -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_5, 0); -lean_inc(x_8); -lean_dec(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_8); -return x_9; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; +return x_1; } } -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1() { _start: { lean_object* x_1; @@ -3339,12 +3159,68 @@ x_1 = lean_mk_string("position"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_(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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_799_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176_(x_6); +x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1(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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_819_(x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -3357,8 +3233,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_354____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -3397,87 +3273,39 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -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); -x_9 = l_Lean_Json_mkObj(x_8); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = l_Lean_JsonNumber_fromNat(x_12); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_ctor_get(x_3, 1); -lean_inc(x_17); -lean_dec(x_3); -x_18 = l_Lean_JsonNumber_fromNat(x_17); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Lsp_instFromJsonPosition___closed__2; -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, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_7); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_16); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, 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_7); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_11); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_Json_mkObj(x_28); -return x_29; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_DocumentFilter_language_x3f___default() { @@ -3504,7 +3332,7 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1() { _start: { lean_object* x_1; @@ -3512,7 +3340,7 @@ x_1 = lean_mk_string("language"); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__2() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2() { _start: { lean_object* x_1; @@ -3520,7 +3348,19 @@ x_1 = lean_mk_string("scheme"); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__3() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4() { _start: { lean_object* x_1; @@ -3528,105 +3368,348 @@ x_1 = lean_mk_string("pattern"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonDocumentFilter(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__5() { _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; -x_2 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__2; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_4); -x_6 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__3; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); -x_8 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_8, 0, x_3); -lean_ctor_set(x_8, 1, x_5); -lean_ctor_set(x_8, 2, x_7); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_8); -return x_9; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___boxed(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__5; +x_3 = lean_alloc_ctor(1, 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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156_(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; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_ctor_get(x_1, 2); +x_5 = lean_box(0); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_38; +x_38 = lean_box(0); +x_6 = x_38; +goto block_37; +} +else +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_2, 0); +lean_inc(x_39); +x_40 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_6 = x_40; +goto block_37; +} +block_37: +{ +lean_object* x_7; lean_object* x_8; +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +if (lean_obj_tag(x_3) == 0) +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__7; +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Lean_Json_mkObj(x_10); +return x_11; +} +else +{ +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_12 = lean_ctor_get(x_4, 0); +lean_inc(x_12); +x_13 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4; +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, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_5); +x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_8); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_Json_mkObj(x_19); +return x_20; +} +} +else +{ +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_alloc_ctor(3, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_8); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_Json_mkObj(x_27); +return x_28; +} +else +{ +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; +x_29 = lean_ctor_get(x_4, 0); +lean_inc(x_29); +x_30 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4; +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_5); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_24); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_8); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_Json_mkObj(x_35); +return x_36; +} +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonDocumentFilter(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonDocumentFilter___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_3); +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l_Lean_Json_getStr_x3f(x_3); +lean_dec(x_3); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_box(0); 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_2, 0); -lean_inc(x_7); -x_8 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_1); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_alloc_ctor(1, 2, 0); +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_3); -return x_10; +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; } } } -lean_object* l_Lean_Lsp_instToJsonDocumentFilter(lean_object* x_1) { +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188_(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; -x_2 = lean_ctor_get(x_1, 0); -x_3 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; -x_4 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_3, x_2); -x_5 = lean_ctor_get(x_1, 1); -x_6 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__2; -x_7 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_6, x_5); -x_8 = l_List_append___rarg(x_4, x_7); -x_9 = lean_ctor_get(x_1, 2); -x_10 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__3; -x_11 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_10, x_9); -x_12 = l_List_append___rarg(x_8, x_11); -x_13 = l_Lean_Json_mkObj(x_12); -return x_13; +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_5); +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; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_9); +lean_ctor_set(x_15, 2, x_14); +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, 0); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_9); +lean_ctor_set(x_17, 2, x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +} +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_2); lean_dec(x_2); +lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instToJsonDocumentFilter___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonDocumentFilter(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188_(x_1); lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; +return x_1; +} +} lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { @@ -3642,32 +3725,37 @@ return x_6; } else { -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; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_11); -x_13 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__2; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_13); -x_15 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__3; -x_16 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_15); +x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188_(x_10); lean_dec(x_10); -x_17 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_17, 0, x_12); -lean_ctor_set(x_17, 1, x_14); -lean_ctor_set(x_17, 2, x_16); -x_18 = 1; -x_19 = x_2 + x_18; -x_20 = x_17; -x_21 = lean_array_uset(x_9, x_2, x_20); -x_2 = x_19; -x_3 = x_21; +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +lean_dec(x_9); +x_12 = lean_box(0); +return x_12; +} +else +{ +lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = x_2 + x_14; +x_16 = x_13; +x_17 = lean_array_uset(x_9, x_2, x_16); +x_2 = x_15; +x_3 = x_17; goto _start; } } } +} lean_object* l_Lean_Lsp_instFromJsonDocumentSelector(lean_object* x_1) { _start: { @@ -3720,36 +3808,19 @@ 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; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_6; 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_object* x_14; x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_9 = x_6; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__1; -x_12 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_11, x_10); -lean_dec(x_10); -x_13 = lean_ctor_get(x_9, 1); -lean_inc(x_13); -x_14 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__2; -x_15 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_14, x_13); -lean_dec(x_13); -x_16 = l_List_append___rarg(x_12, x_15); -x_17 = lean_ctor_get(x_9, 2); -lean_inc(x_17); +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156_(x_9); lean_dec(x_9); -x_18 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__3; -x_19 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_18, x_17); -lean_dec(x_17); -x_20 = l_List_append___rarg(x_16, x_19); -x_21 = l_Lean_Json_mkObj(x_20); -x_22 = 1; -x_23 = x_2 + x_22; -x_24 = x_21; -x_25 = lean_array_uset(x_8, x_2, x_24); -x_2 = x_23; -x_3 = x_25; +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; goto _start; } } @@ -3790,45 +3861,118 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1261_(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_2); -x_4 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_4, 0, x_3); -return x_4; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2; +return x_2; +} +else +{ +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; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_box(0); +lean_inc(x_3); +x_5 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_5, 0, x_3); +x_6 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; } } -lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions___boxed(lean_object* x_1) { +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1261____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1261_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1() { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1261____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1281_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; x_2 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_2, x_1); -x_4 = l_Lean_Json_mkObj(x_3); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); return x_4; } +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +return x_3; } -lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions___boxed(lean_object* x_1) { +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1281____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonStaticRegistrationOptions(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1281_(x_1); lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonStaticRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1281____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1; +return x_1; +} +} static lean_object* _init_l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default() { _start: { @@ -3837,36 +3981,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValD(x_1, x_2); -if (lean_obj_tag(x_3) == 4) -{ -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; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec(x_3); -x_5 = lean_array_get_size(x_4); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(x_6, x_7, x_8); -x_10 = x_9; -return x_10; -} -else -{ -lean_object* x_11; -lean_dec(x_3); -x_11 = lean_box(0); -return x_11; -} -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1() { _start: { lean_object* x_1; @@ -3874,86 +3989,224 @@ x_1 = lean_mk_string("documentSelector"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__2() { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1(x_1, x_2); -x_4 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_4, 0, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__2; +x_3 = lean_alloc_ctor(1, 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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__3; +x_2 = l_Lean_Json_mkObj(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312_(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__4; +return x_2; +} +else +{ +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; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_box(0); +x_5 = lean_array_get_size(x_3); +x_6 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_7 = 0; +x_8 = x_3; +x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(x_6, x_7, x_8); +x_10 = x_9; +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_4); +x_15 = l_Lean_Json_mkObj(x_14); +return x_15; +} +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +switch (lean_obj_tag(x_3)) { +case 0: +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +case 4: +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = x_5; +x_10 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDocumentSelector___spec__1(x_7, x_8, x_9); +x_11 = x_10; +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; +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +default: +{ +lean_object* x_18; +lean_dec(x_3); +x_18 = lean_box(0); +return x_18; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; size_t x_9; size_t 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; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_array_get_size(x_7); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = x_7; -x_12 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSelector___spec__1(x_9, x_10, x_11); -x_13 = x_12; -x_14 = lean_alloc_ctor(4, 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_1); -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_3); -return x_16; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____boxed), 1, 0); +return x_1; } } -} -lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions() { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___spec__1(x_2, x_1); -x_4 = l_Lean_Json_mkObj(x_3); -return x_4; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__1() { @@ -4195,7 +4448,111 @@ x_3 = l_Lean_Lsp_instToJsonMarkupKind(x_2); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("value"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("kind"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; +x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; +x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__2; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412_(lean_object* x_1) { +_start: +{ +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; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +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); +if (x_2 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__3; +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l_Lean_Json_mkObj(x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__4; +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +x_14 = l_Lean_Json_mkObj(x_13); +return x_14; +} +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonMarkupContent___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -4244,28 +4601,12 @@ return x_12; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("kind"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("value"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonMarkupContent(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -4278,7 +4619,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonMarkupContent___closed__2; +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { @@ -4322,98 +4663,42 @@ return x_16; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonMarkupContent___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonMarkupContent(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438_(x_1); lean_dec(x_1); return x_2; } } -static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent___closed__1() { +static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__1; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +return x_1; } } -static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -x_2 = l_Lean_Lsp_instToJsonMarkupKind___closed__2; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Lsp_instToJsonMarkupContent(lean_object* x_1) { -_start: -{ -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; -x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_3); -x_5 = l_Lean_Lsp_instFromJsonMarkupContent___closed__2; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -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); -if (x_2 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Lsp_instToJsonMarkupContent___closed__1; -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -x_11 = l_Lean_Json_mkObj(x_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = l_Lean_Lsp_instToJsonMarkupContent___closed__2; -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_8); -x_14 = l_Lean_Json_mkObj(x_13); -return x_14; -} -} -} -lean_object* l_Lean_Lsp_instToJsonMarkupContent___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonMarkupContent(x_1); -lean_dec(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Lsp_instToJsonProgressParams___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg___closed__1() { _start: { lean_object* x_1; @@ -4421,7 +4706,7 @@ x_1 = lean_mk_string("token"); return x_1; } } -lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg(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; 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; @@ -4432,12 +4717,12 @@ lean_inc(x_4); lean_dec(x_2); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_3); -x_6 = l_Lean_Lsp_instToJsonProgressParams___rarg___closed__1; +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg___closed__1; x_7 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_apply_1(x_1, x_4); -x_9 = l_Lean_Lsp_instFromJsonMarkupContent___closed__2; +x_9 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1; x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_8); @@ -4452,11 +4737,28 @@ x_14 = l_Lean_Json_mkObj(x_13); return x_14; } } +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479_(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Lsp_instToJsonProgressParams___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l_Lean_Lsp_instToJsonProgressParams(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonProgressParams___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonProgressParams___rarg), 1, 0); return x_2; } } @@ -4500,7 +4802,7 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1() { _start: { lean_object* x_1; @@ -4508,7 +4810,7 @@ x_1 = lean_mk_string("cancellable"); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4520,7 +4822,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3() { _start: { lean_object* x_1; @@ -4528,11 +4830,11 @@ x_1 = lean_mk_string("percentage"); return x_1; } } -static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__4() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3; x_2 = lean_box(0); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4540,19 +4842,19 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__4; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527_(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; @@ -4566,13 +4868,13 @@ lean_inc(x_5); lean_dec(x_1); x_6 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_6, 0, x_2); -x_7 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); lean_ctor_set(x_8, 1, x_6); x_9 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_9, 0, x_4); -x_10 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1; +x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -4582,11 +4884,11 @@ if (lean_obj_tag(x_3) == 0) if (lean_obj_tag(x_5) == 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; -x_13 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5; +x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5; 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_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2; +x_15 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2; x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); @@ -4605,7 +4907,7 @@ lean_dec(x_5); x_20 = l_Lean_JsonNumber_fromNat(x_19); x_21 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3; +x_22 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3; x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -4615,7 +4917,7 @@ lean_ctor_set(x_24, 1, x_12); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_11); lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2; +x_26 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2; x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); @@ -4641,7 +4943,7 @@ lean_ctor_set(x_33, 1, x_31); if (lean_obj_tag(x_5) == 0) { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5; +x_34 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_11); lean_ctor_set(x_35, 1, x_34); @@ -4663,7 +4965,7 @@ lean_dec(x_5); x_40 = l_Lean_JsonNumber_fromNat(x_39); x_41 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_41, 0, x_40); -x_42 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3; +x_42 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3; x_43 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -4685,6 +4987,22 @@ return x_48; } } } +static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1; +return x_1; +} +} static lean_object* _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1() { _start: { @@ -4701,93 +5019,206 @@ x_1 = l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1; return x_1; } } -static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570____closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("toWorkDoneProgressReport"); +return x_1; } } -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570_(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_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* 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_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; x_2 = lean_ctor_get(x_1, 0); -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_3); -x_5 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_5, 0, x_3); -x_6 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -x_9 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = l_Lean_Lsp_instFromJsonCommand___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -if (lean_obj_tag(x_4) == 0) +lean_inc(x_2); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +x_9 = lean_ctor_get(x_2, 2); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_10, 0, x_6); +x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_13, 0, x_8); +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1; +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_ctor_get(x_1, 1); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_17, 0, x_16); +x_18 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1; -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_7); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Json_mkObj(x_14); -return x_15; +if (lean_obj_tag(x_9) == 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; lean_object* x_28; lean_object* x_29; +x_22 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_23); +x_25 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_5); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Json_mkObj(x_28); +return x_29; } 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_23; lean_object* x_24; -x_16 = lean_ctor_get(x_4, 0); -x_17 = lean_box(0); -lean_inc(x_16); -x_18 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_18, 0, x_16); -x_19 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_17); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_7); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -return x_24; +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; +x_30 = lean_ctor_get(x_9, 0); +lean_inc(x_30); +lean_dec(x_9); +x_31 = l_Lean_JsonNumber_fromNat(x_30); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3; +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_21); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_15); +lean_ctor_set(x_36, 1, x_35); +x_37 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_12); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_5); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_Json_mkObj(x_40); +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_7, 0); +lean_inc(x_42); +lean_dec(x_7); +x_43 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = l_Lean_JsonRpc_instToJsonMessage___closed__10; +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +if (lean_obj_tag(x_9) == 0) +{ +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; +x_46 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_21); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_15); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_45); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_12); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_5); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Lean_Json_mkObj(x_51); +return x_52; +} +else +{ +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; lean_object* x_62; lean_object* x_63; +x_53 = lean_ctor_get(x_9, 0); +lean_inc(x_53); +lean_dec(x_9); +x_54 = l_Lean_JsonNumber_fromNat(x_53); +x_55 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3; +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_21); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_15); +lean_ctor_set(x_59, 1, x_58); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_12); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_5); +lean_ctor_set(x_62, 1, x_61); +x_63 = l_Lean_Json_mkObj(x_62); +return x_63; } } } -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin___boxed(lean_object* x_1) { +} +static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1() { _start: { -lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressBegin(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_WorkDoneProgressEnd_kind___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Lsp_instFromJsonRange___closed__1; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1; return x_1; } } @@ -4799,7 +5230,19 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626_(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; @@ -4808,14 +5251,14 @@ x_3 = lean_ctor_get(x_1, 1); lean_inc(x_2); x_4 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2; x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_4); if (lean_obj_tag(x_3) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1; +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____closed__1; x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); @@ -4845,15 +5288,31 @@ return x_17; } } } -lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressEnd(x_1); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626_(x_1); lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1; +return x_1; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Data_Json(lean_object*); lean_object* initialize_Lean_Data_JsonRpc(lean_object*); @@ -4877,10 +5336,18 @@ l_Lean_Lsp_instBEqCancelParams___closed__1 = _init_l_Lean_Lsp_instBEqCancelParam lean_mark_persistent(l_Lean_Lsp_instBEqCancelParams___closed__1); l_Lean_Lsp_instBEqCancelParams = _init_l_Lean_Lsp_instBEqCancelParams(); lean_mark_persistent(l_Lean_Lsp_instBEqCancelParams); -l_Lean_Lsp_CancelParams_hasToJson___closed__1 = _init_l_Lean_Lsp_CancelParams_hasToJson___closed__1(); -lean_mark_persistent(l_Lean_Lsp_CancelParams_hasToJson___closed__1); -l_Lean_Lsp_CancelParams_hasToJson___closed__2 = _init_l_Lean_Lsp_CancelParams_hasToJson___closed__2(); -lean_mark_persistent(l_Lean_Lsp_CancelParams_hasToJson___closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59____closed__2); +l_Lean_Lsp_instToJsonCancelParams___closed__1 = _init_l_Lean_Lsp_instToJsonCancelParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonCancelParams___closed__1); +l_Lean_Lsp_instToJsonCancelParams = _init_l_Lean_Lsp_instToJsonCancelParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonCancelParams); +l_Lean_Lsp_instFromJsonCancelParams___closed__1 = _init_l_Lean_Lsp_instFromJsonCancelParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonCancelParams___closed__1); +l_Lean_Lsp_instFromJsonCancelParams = _init_l_Lean_Lsp_instFromJsonCancelParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonCancelParams); l_Lean_Lsp_instInhabitedPosition___closed__1 = _init_l_Lean_Lsp_instInhabitedPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedPosition___closed__1); l_Lean_Lsp_instInhabitedPosition = _init_l_Lean_Lsp_instInhabitedPosition(); @@ -4889,10 +5356,18 @@ l_Lean_Lsp_instBEqPosition___closed__1 = _init_l_Lean_Lsp_instBEqPosition___clos lean_mark_persistent(l_Lean_Lsp_instBEqPosition___closed__1); l_Lean_Lsp_instBEqPosition = _init_l_Lean_Lsp_instBEqPosition(); lean_mark_persistent(l_Lean_Lsp_instBEqPosition); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_176____closed__2); +l_Lean_Lsp_instToJsonPosition___closed__1 = _init_l_Lean_Lsp_instToJsonPosition___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPosition___closed__1); +l_Lean_Lsp_instToJsonPosition = _init_l_Lean_Lsp_instToJsonPosition(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPosition); l_Lean_Lsp_instFromJsonPosition___closed__1 = _init_l_Lean_Lsp_instFromJsonPosition___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonPosition___closed__1); -l_Lean_Lsp_instFromJsonPosition___closed__2 = _init_l_Lean_Lsp_instFromJsonPosition___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonPosition___closed__2); +l_Lean_Lsp_instFromJsonPosition = _init_l_Lean_Lsp_instFromJsonPosition(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonPosition); l_Lean_Lsp_instInhabitedRange___closed__1 = _init_l_Lean_Lsp_instInhabitedRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedRange___closed__1); l_Lean_Lsp_instInhabitedRange = _init_l_Lean_Lsp_instInhabitedRange(); @@ -4901,8 +5376,16 @@ l_Lean_Lsp_instBEqRange___closed__1 = _init_l_Lean_Lsp_instBEqRange___closed__1( lean_mark_persistent(l_Lean_Lsp_instBEqRange___closed__1); l_Lean_Lsp_instBEqRange = _init_l_Lean_Lsp_instBEqRange(); lean_mark_persistent(l_Lean_Lsp_instBEqRange); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328____closed__1); +l_Lean_Lsp_instToJsonRange___closed__1 = _init_l_Lean_Lsp_instToJsonRange___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonRange___closed__1); +l_Lean_Lsp_instToJsonRange = _init_l_Lean_Lsp_instToJsonRange(); +lean_mark_persistent(l_Lean_Lsp_instToJsonRange); l_Lean_Lsp_instFromJsonRange___closed__1 = _init_l_Lean_Lsp_instFromJsonRange___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonRange___closed__1); +l_Lean_Lsp_instFromJsonRange = _init_l_Lean_Lsp_instFromJsonRange(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonRange); l_Lean_Lsp_instInhabitedLocation___closed__1 = _init_l_Lean_Lsp_instInhabitedLocation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation___closed__1); l_Lean_Lsp_instInhabitedLocation = _init_l_Lean_Lsp_instInhabitedLocation(); @@ -4911,60 +5394,180 @@ l_Lean_Lsp_instBEqLocation___closed__1 = _init_l_Lean_Lsp_instBEqLocation___clos lean_mark_persistent(l_Lean_Lsp_instBEqLocation___closed__1); l_Lean_Lsp_instBEqLocation = _init_l_Lean_Lsp_instBEqLocation(); lean_mark_persistent(l_Lean_Lsp_instBEqLocation); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2); +l_Lean_Lsp_instToJsonLocation___closed__1 = _init_l_Lean_Lsp_instToJsonLocation___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLocation___closed__1); +l_Lean_Lsp_instToJsonLocation = _init_l_Lean_Lsp_instToJsonLocation(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLocation); l_Lean_Lsp_instFromJsonLocation___closed__1 = _init_l_Lean_Lsp_instFromJsonLocation___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation___closed__1); -l_Lean_Lsp_instFromJsonLocation___closed__2 = _init_l_Lean_Lsp_instFromJsonLocation___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation___closed__2); +l_Lean_Lsp_instFromJsonLocation = _init_l_Lean_Lsp_instFromJsonLocation(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__3); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__4); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_527____closed__5); +l_Lean_Lsp_instToJsonLocationLink___closed__1 = _init_l_Lean_Lsp_instToJsonLocationLink___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink___closed__1); +l_Lean_Lsp_instToJsonLocationLink = _init_l_Lean_Lsp_instToJsonLocationLink(); +lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink); l_Lean_Lsp_instFromJsonLocationLink___closed__1 = _init_l_Lean_Lsp_instFromJsonLocationLink___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink___closed__1); -l_Lean_Lsp_instFromJsonLocationLink___closed__2 = _init_l_Lean_Lsp_instFromJsonLocationLink___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink___closed__2); -l_Lean_Lsp_instFromJsonLocationLink___closed__3 = _init_l_Lean_Lsp_instFromJsonLocationLink___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink___closed__3); -l_Lean_Lsp_instFromJsonLocationLink___closed__4 = _init_l_Lean_Lsp_instFromJsonLocationLink___closed__4(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink___closed__4); +l_Lean_Lsp_instFromJsonLocationLink = _init_l_Lean_Lsp_instFromJsonLocationLink(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink); l_Lean_Lsp_Command_arguments_x3f___default = _init_l_Lean_Lsp_Command_arguments_x3f___default(); lean_mark_persistent(l_Lean_Lsp_Command_arguments_x3f___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__3); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__4); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_630____closed__5); +l_Lean_Lsp_instToJsonCommand___closed__1 = _init_l_Lean_Lsp_instToJsonCommand___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonCommand___closed__1); +l_Lean_Lsp_instToJsonCommand = _init_l_Lean_Lsp_instToJsonCommand(); +lean_mark_persistent(l_Lean_Lsp_instToJsonCommand); l_Lean_Lsp_instFromJsonCommand___closed__1 = _init_l_Lean_Lsp_instFromJsonCommand___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand___closed__1); -l_Lean_Lsp_instFromJsonCommand___closed__2 = _init_l_Lean_Lsp_instFromJsonCommand___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand___closed__2); -l_Lean_Lsp_instFromJsonCommand___closed__3 = _init_l_Lean_Lsp_instFromJsonCommand___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand___closed__3); +l_Lean_Lsp_instFromJsonCommand = _init_l_Lean_Lsp_instFromJsonCommand(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextEdit____x40_Lean_Data_Lsp_Basic___hyg_712____closed__1); +l_Lean_Lsp_instToJsonTextEdit___closed__1 = _init_l_Lean_Lsp_instToJsonTextEdit___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit___closed__1); +l_Lean_Lsp_instToJsonTextEdit = _init_l_Lean_Lsp_instToJsonTextEdit(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit); l_Lean_Lsp_instFromJsonTextEdit___closed__1 = _init_l_Lean_Lsp_instFromJsonTextEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit___closed__1); +l_Lean_Lsp_instFromJsonTextEdit = _init_l_Lean_Lsp_instFromJsonTextEdit(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit); +l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__1); +l_Lean_Lsp_instToJsonTextDocumentIdentifier = _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentIdentifier); +l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__1); +l_Lean_Lsp_instFromJsonTextDocumentIdentifier = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier); l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default = _init_l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default(); lean_mark_persistent(l_Lean_Lsp_VersionedTextDocumentIdentifier_version_x3f___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3); +l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__1); +l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier(); +lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier); l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1); +l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__2); +l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit___closed__1); +l_Lean_Lsp_instToJsonTextDocumentEdit = _init_l_Lean_Lsp_instToJsonTextDocumentEdit(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit); l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1); -l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__2); +l_Lean_Lsp_instFromJsonTextDocumentEdit = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2); +l_Lean_Lsp_instToJsonTextDocumentItem___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentItem___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem___closed__1); +l_Lean_Lsp_instToJsonTextDocumentItem = _init_l_Lean_Lsp_instToJsonTextDocumentItem(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem); l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1); -l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2); +l_Lean_Lsp_instFromJsonTextDocumentItem = _init_l_Lean_Lsp_instFromJsonTextDocumentItem(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083____closed__1); +l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__1); +l_Lean_Lsp_instToJsonTextDocumentPositionParams = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams); l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1); +l_Lean_Lsp_instFromJsonTextDocumentPositionParams = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams); l_Lean_Lsp_DocumentFilter_language_x3f___default = _init_l_Lean_Lsp_DocumentFilter_language_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DocumentFilter_language_x3f___default); l_Lean_Lsp_DocumentFilter_scheme_x3f___default = _init_l_Lean_Lsp_DocumentFilter_scheme_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DocumentFilter_scheme_x3f___default); l_Lean_Lsp_DocumentFilter_pattern_x3f___default = _init_l_Lean_Lsp_DocumentFilter_pattern_x3f___default(); lean_mark_persistent(l_Lean_Lsp_DocumentFilter_pattern_x3f___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__3); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__4); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__5); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__6); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__7 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__7(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1156____closed__7); +l_Lean_Lsp_instToJsonDocumentFilter___closed__1 = _init_l_Lean_Lsp_instToJsonDocumentFilter___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter___closed__1); +l_Lean_Lsp_instToJsonDocumentFilter = _init_l_Lean_Lsp_instToJsonDocumentFilter(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter); l_Lean_Lsp_instFromJsonDocumentFilter___closed__1 = _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter___closed__1); -l_Lean_Lsp_instFromJsonDocumentFilter___closed__2 = _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter___closed__2); -l_Lean_Lsp_instFromJsonDocumentFilter___closed__3 = _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter___closed__3); +l_Lean_Lsp_instFromJsonDocumentFilter = _init_l_Lean_Lsp_instFromJsonDocumentFilter(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter); l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default = _init_l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default(); lean_mark_persistent(l_Lean_Lsp_StaticRegistrationOptions_id_x3f___default); +l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__1); +l_Lean_Lsp_instToJsonStaticRegistrationOptions = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions(); +lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions); +l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__1); +l_Lean_Lsp_instFromJsonStaticRegistrationOptions = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions); l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default = _init_l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default(); lean_mark_persistent(l_Lean_Lsp_TextDocumentRegistrationOptions_documentSelector_x3f___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__3); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__4); +l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__1); +l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions); l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1); +l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions); l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__1); l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__2 = _init_l_Lean_Lsp_instFromJsonMarkupKind_match__1___rarg___closed__2(); @@ -4977,16 +5580,24 @@ l_Lean_Lsp_instToJsonMarkupKind___closed__1 = _init_l_Lean_Lsp_instToJsonMarkupK lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind___closed__1); l_Lean_Lsp_instToJsonMarkupKind___closed__2 = _init_l_Lean_Lsp_instToJsonMarkupKind___closed__2(); lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind___closed__2); -l_Lean_Lsp_instFromJsonMarkupContent___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__1(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent___closed__1); -l_Lean_Lsp_instFromJsonMarkupContent___closed__2 = _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent___closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__3); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412____closed__4); l_Lean_Lsp_instToJsonMarkupContent___closed__1 = _init_l_Lean_Lsp_instToJsonMarkupContent___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent___closed__1); -l_Lean_Lsp_instToJsonMarkupContent___closed__2 = _init_l_Lean_Lsp_instToJsonMarkupContent___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent___closed__2); -l_Lean_Lsp_instToJsonProgressParams___rarg___closed__1 = _init_l_Lean_Lsp_instToJsonProgressParams___rarg___closed__1(); -lean_mark_persistent(l_Lean_Lsp_instToJsonProgressParams___rarg___closed__1); +l_Lean_Lsp_instToJsonMarkupContent = _init_l_Lean_Lsp_instToJsonMarkupContent(); +lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent); +l_Lean_Lsp_instFromJsonMarkupContent___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent___closed__1); +l_Lean_Lsp_instFromJsonMarkupContent = _init_l_Lean_Lsp_instFromJsonMarkupContent(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg___closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonProgressParams____x40_Lean_Data_Lsp_Basic___hyg_1479____rarg___closed__1); l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1 = _init_l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_kind___default___closed__1); l_Lean_Lsp_WorkDoneProgressReport_kind___default = _init_l_Lean_Lsp_WorkDoneProgressReport_kind___default(); @@ -4996,26 +5607,40 @@ lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_message_x3f___default); l_Lean_Lsp_WorkDoneProgressReport_cancellable___default = _init_l_Lean_Lsp_WorkDoneProgressReport_cancellable___default(); l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default = _init_l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressReport_percentage_x3f___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__1); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__2); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__3); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__4); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressReport____x40_Lean_Data_Lsp_Basic___hyg_1527____closed__5); l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__1); -l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__2); -l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__3); -l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__4 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__4(); -lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__4); -l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5(); -lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__5); +l_Lean_Lsp_instToJsonWorkDoneProgressReport = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport); l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1 = _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressBegin_kind___default___closed__1); l_Lean_Lsp_WorkDoneProgressBegin_kind___default = _init_l_Lean_Lsp_WorkDoneProgressBegin_kind___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressBegin_kind___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressBegin____x40_Lean_Data_Lsp_Basic___hyg_1570____closed__1); l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__1); +l_Lean_Lsp_instToJsonWorkDoneProgressBegin = _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressBegin); l_Lean_Lsp_WorkDoneProgressEnd_kind___default = _init_l_Lean_Lsp_WorkDoneProgressEnd_kind___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressEnd_kind___default); l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default = _init_l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default(); lean_mark_persistent(l_Lean_Lsp_WorkDoneProgressEnd_message_x3f___default); +l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____closed__1 = _init_l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonWorkDoneProgressEnd____x40_Lean_Data_Lsp_Basic___hyg_1626____closed__1); +l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__1); +l_Lean_Lsp_instToJsonWorkDoneProgressEnd = _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressEnd); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Data/Lsp/Capabilities.c b/stage0/stdlib/Lean/Data/Lsp/Capabilities.c index bbf158f98a..16bb31a03a 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Capabilities.c +++ b/stage0/stdlib/Lean/Data/Lsp/Capabilities.c @@ -13,39 +13,33 @@ #ifdef __cplusplus extern "C" { #endif -extern lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3; -lean_object* l_List_append___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Tactic_change___closed__1; -lean_object* l_Lean_Lsp_instFromJsonServerCapabilities(lean_object*); +extern lean_object* l_Lean_instFromJsonOption___rarg___closed__1; +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__3; +lean_object* l_Lean_Lsp_instFromJsonServerCapabilities; lean_object* l_Lean_Lsp_ClientCapabilities_hasToJson(lean_object*); uint8_t l_Lean_Lsp_ServerCapabilities_hoverProvider___default; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419_(lean_object*); lean_object* l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1; lean_object* l_Lean_Lsp_ClientCapabilities_hasToJson___boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonClientCapabilities(lean_object*); -lean_object* l_Lean_Lsp_instToJsonServerCapabilities(lean_object*); -lean_object* l_Lean_Lsp_instToJsonServerCapabilities___boxed(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonServerCapabilities; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61_(lean_object*); +lean_object* l_Lean_Lsp_instToJsonServerCapabilities___closed__1; lean_object* l_Lean_Lsp_ServerCapabilities_textDocumentSync_x3f___default; lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; -lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1; lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2; lean_object* l_Lean_Json_mkObj(lean_object*); -extern lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2; -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; -extern lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2; -lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonClientCapabilities___closed__1; lean_object* l_Lean_Lsp_instFromJsonClientCapabilities___boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____spec__1___boxed(lean_object*, lean_object*); static lean_object* _init_l_Lean_Lsp_instFromJsonClientCapabilities___closed__1() { _start: { @@ -115,141 +109,7 @@ x_1 = 0; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___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_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_3, x_4); -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; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Parser_Tactic_change___closed__1; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(x_3, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -lean_dec(x_7); -lean_dec(x_3); -x_10 = lean_box(0); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2; -x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_3, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_3); -x_14 = lean_box(0); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3; -x_17 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_3, x_16); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_3); -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; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; -x_20 = lean_ctor_get(x_17, 0); -x_21 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -x_22 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(x_3, x_21); -lean_dec(x_3); -x_23 = lean_alloc_ctor(0, 1, 4); -lean_ctor_set(x_23, 0, x_22); -x_24 = lean_unbox(x_7); -lean_dec(x_7); -lean_ctor_set_uint8(x_23, sizeof(void*)*1, x_24); -x_25 = lean_unbox(x_11); -lean_dec(x_11); -lean_ctor_set_uint8(x_23, sizeof(void*)*1 + 1, x_25); -x_26 = lean_unbox(x_15); -lean_dec(x_15); -lean_ctor_set_uint8(x_23, sizeof(void*)*1 + 2, x_26); -x_27 = lean_unbox(x_20); -lean_dec(x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*1 + 3, x_27); -lean_ctor_set(x_17, 0, x_23); -return x_17; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; -x_28 = lean_ctor_get(x_17, 0); -lean_inc(x_28); -lean_dec(x_17); -x_29 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -x_30 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(x_3, x_29); -lean_dec(x_3); -x_31 = lean_alloc_ctor(0, 1, 4); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_unbox(x_7); -lean_dec(x_7); -lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_32); -x_33 = lean_unbox(x_11); -lean_dec(x_11); -lean_ctor_set_uint8(x_31, sizeof(void*)*1 + 1, x_33); -x_34 = lean_unbox(x_15); -lean_dec(x_15); -lean_ctor_set_uint8(x_31, sizeof(void*)*1 + 2, x_34); -x_35 = lean_unbox(x_28); -lean_dec(x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*1 + 3, x_35); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_31); -return x_36; -} -} -} -} -} -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonServerCapabilities___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("textDocumentSync"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonServerCapabilities___closed__2() { +static lean_object* _init_l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1() { _start: { lean_object* x_1; @@ -257,18 +117,113 @@ x_1 = lean_mk_string("hoverProvider"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonServerCapabilities(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2() { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_1, x_4); +lean_object* x_1; +x_1 = lean_mk_string("textDocumentSync"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35_(lean_object* x_1) { +_start: +{ +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; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_4 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_4, 0, x_3); +x_5 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +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); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__3; +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l_Lean_Json_mkObj(x_10); +return x_11; +} +else +{ +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_ctor_get(x_2, 0); +x_13 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419_(x_12); +x_14 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2; +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, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_8); +x_17 = l_Lean_Json_mkObj(x_16); +return x_17; +} +} +} +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonServerCapabilities___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonServerCapabilities() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonServerCapabilities___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463_(x_3); +lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; -lean_dec(x_3); x_6 = lean_box(0); return x_6; } @@ -278,211 +233,124 @@ uint8_t x_7; x_7 = !lean_is_exclusive(x_5); if (x_7 == 0) { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 0); -x_9 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_9, 0, x_3); -x_10 = lean_unbox(x_8); -lean_dec(x_8); -lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_10); -lean_ctor_set(x_5, 0, x_9); -return x_5; +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; } else { -lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_5, 0); -lean_inc(x_11); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); lean_dec(x_5); -x_12 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_12, 0, x_3); -x_13 = lean_unbox(x_11); -lean_dec(x_11); -lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_13); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_12); -return x_14; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; } } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61_(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___boxed(lean_object* x_1) { -_start: +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) { -lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonServerCapabilities(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_object* x_4; x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_3); -return x_6; +return x_4; } else { -lean_object* x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t 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; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*1); -x_9 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 1); -x_10 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 2); -x_11 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 3); -x_12 = lean_ctor_get(x_7, 0); -x_13 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -x_14 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1(x_13, x_12); -x_15 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_15, 0, x_8); -x_16 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_18, 0, x_10); -x_19 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_21, 0, x_11); -x_22 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3; -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_3); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_24); -switch (x_9) { -case 0: +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) { -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 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_17); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_List_append___rarg(x_14, x_28); -x_30 = l_Lean_Json_mkObj(x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_1); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_3); -return x_32; +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; } -case 1: +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; -x_33 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2; -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_25); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_17); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_List_append___rarg(x_14, x_35); -x_37 = l_Lean_Json_mkObj(x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_1); -lean_ctor_set(x_38, 1, x_37); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_3); -return x_39; -} -default: +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 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; -x_40 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3; -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_25); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_17); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_List_append___rarg(x_14, x_42); -x_44 = l_Lean_Json_mkObj(x_43); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_1); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_3); -return x_46; +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_11, 0, x_5); +x_12 = lean_unbox(x_10); +lean_dec(x_10); +lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_12); +lean_ctor_set(x_7, 0, x_11); +return x_7; } -} -} -} -} -lean_object* l_Lean_Lsp_instToJsonServerCapabilities(lean_object* x_1) { -_start: +else { -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; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_2 = lean_ctor_get(x_1, 0); -x_3 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; -x_4 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(x_3, x_2); -x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); -x_6 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_6, 0, x_5); -x_7 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = l_List_append___rarg(x_4, x_10); -x_12 = l_Lean_Json_mkObj(x_11); -return x_12; +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_7, 0); +lean_inc(x_13); +lean_dec(x_7); +x_14 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_14, 0, x_5); +x_15 = lean_unbox(x_13); +lean_dec(x_13); +lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_15); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_14); +return x_16; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____spec__1(x_1, x_2); lean_dec(x_2); +lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instToJsonServerCapabilities___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonServerCapabilities(x_1); +x_2 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61_(x_1); lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Lsp_instFromJsonServerCapabilities___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonServerCapabilities() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; +return x_1; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Data_JsonRpc(lean_object*); lean_object* initialize_Lean_Data_Lsp_TextSync(lean_object*); @@ -507,10 +375,20 @@ lean_mark_persistent(l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1); l_Lean_Lsp_ServerCapabilities_textDocumentSync_x3f___default = _init_l_Lean_Lsp_ServerCapabilities_textDocumentSync_x3f___default(); lean_mark_persistent(l_Lean_Lsp_ServerCapabilities_textDocumentSync_x3f___default); l_Lean_Lsp_ServerCapabilities_hoverProvider___default = _init_l_Lean_Lsp_ServerCapabilities_hoverProvider___default(); +l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1 = _init_l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__1); +l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2 = _init_l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__2); +l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__3 = _init_l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35____closed__3); +l_Lean_Lsp_instToJsonServerCapabilities___closed__1 = _init_l_Lean_Lsp_instToJsonServerCapabilities___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonServerCapabilities___closed__1); +l_Lean_Lsp_instToJsonServerCapabilities = _init_l_Lean_Lsp_instToJsonServerCapabilities(); +lean_mark_persistent(l_Lean_Lsp_instToJsonServerCapabilities); l_Lean_Lsp_instFromJsonServerCapabilities___closed__1 = _init_l_Lean_Lsp_instFromJsonServerCapabilities___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonServerCapabilities___closed__1); -l_Lean_Lsp_instFromJsonServerCapabilities___closed__2 = _init_l_Lean_Lsp_instFromJsonServerCapabilities___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonServerCapabilities___closed__2); +l_Lean_Lsp_instFromJsonServerCapabilities = _init_l_Lean_Lsp_instFromJsonServerCapabilities(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonServerCapabilities); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Data/Lsp/Diagnostics.c b/stage0/stdlib/Lean/Data/Lsp/Diagnostics.c index 6d2962afb8..57db333d18 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Diagnostics.c +++ b/stage0/stdlib/Lean/Data/Lsp/Diagnostics.c @@ -14,228 +14,238 @@ extern "C" { #endif lean_object* l_Lean_Lsp_instBEqDiagnostic___closed__1; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__5(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instFromJsonOption___rarg___closed__1; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4(size_t, size_t, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Lsp_instToJsonDiagnosticCode___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_412_(lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Diagnostic_source_x3f___default; lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__7; lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnostic___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__1; lean_object* l_Lean_Lsp_instFromJsonDiagnosticTag_match__1(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDiagnostic___boxed(lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic_match__2(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1(lean_object*); uint8_t l_Lean_Lsp_instInhabitedDiagnosticTag; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__5; lean_object* l_Lean_Lsp_instFromJsonDiagnosticCode___boxed(lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticCode____x40_Lean_Data_Lsp_Diagnostics___hyg_132__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDiagnostic___closed__2; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqDiagnosticTag; +uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Diagnostic_relatedInformation_x3f___default; +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__1___boxed(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Lsp_instFromJsonDiagnosticCode(lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticCode____x40_Lean_Data_Lsp_Diagnostics___hyg_132____boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__1(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__3(size_t, size_t, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__2; lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__3; lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__4; lean_object* l_Lean_Json_getNat_x3f(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticTag____x40_Lean_Data_Lsp_Diagnostics___hyg_258____boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682_(lean_object*); lean_object* l_Lean_Lsp_instInhabitedDiagnosticRelatedInformation; -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticSeverity____x40_Lean_Data_Lsp_Diagnostics___hyg_13__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instInhabitedRange___closed__1; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Lsp_instBEqDiagnosticCode; lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__3; lean_object* l_Lean_Lsp_instToJsonDiagnosticTag___closed__4; -lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; -lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instInhabitedDiagnosticRelatedInformation___closed__1; uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_357_(lean_object*, lean_object*); -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticCode____x40_Lean_Data_Lsp_Diagnostics___hyg_132__match__1(lean_object*); -lean_object* l_Lean_Lsp_instToJsonDiagnostic(lean_object*); +lean_object* l_Lean_Lsp_instToJsonDiagnostic; lean_object* l_Lean_Lsp_msgToDiagnostic_match__1(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticTag____x40_Lean_Data_Lsp_Diagnostics___hyg_258__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3(lean_object*, lean_object*); -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__6(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticCode(lean_object*); lean_object* l_Lean_Lsp_instInhabitedDiagnosticCode; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4(size_t, size_t, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__2; +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__6(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__2; lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticTag____x40_Lean_Data_Lsp_Diagnostics___hyg_258__match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__2(size_t, size_t, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____boxed(lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__2(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__10; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__3___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__2; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity(lean_object*); extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__2; extern lean_object* l_Int_Int_pow___closed__1; -lean_object* l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__10; -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__2___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_PublishDiagnosticsParams_version_x3f___default; -lean_object* l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___boxed(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_357__match__1(lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; lean_object* l_Lean_Lsp_instBEqDiagnostic; -lean_object* l_Lean_Lsp_instToJsonDiagnosticRelatedInformation(lean_object*); +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonDiagnosticRelatedInformation; lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticSeverity____x40_Lean_Data_Lsp_Diagnostics___hyg_13__match__1(lean_object*); -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic___closed__1; -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1(lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDiagnostic___closed__3; +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticCode_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonPublishDiagnosticsParams___closed__1; extern lean_object* l_Lean_Parser_Tactic_location___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticTag_match__1(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___boxed(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__2; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4(size_t, size_t, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____boxed(lean_object*); lean_object* l_Lean_Json_getInt_x3f(lean_object*); -uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264_(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonDiagnosticRelatedInformation___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__6; +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273_(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqDiagnosticRelatedInformation; lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticSeverity____x40_Lean_Data_Lsp_Diagnostics___hyg_13____boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instInhabitedPublishDiagnosticsParams; lean_object* l_Lean_Lsp_instToJsonDiagnosticCode_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity_match__1(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__3___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonRange___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonDiagnostic___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438_(lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__9; -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__6(size_t, size_t, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853_(lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticTag(uint8_t); -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticSeverity____x40_Lean_Data_Lsp_Diagnostics___hyg_13__match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__1; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticTag____x40_Lean_Data_Lsp_Diagnostics___hyg_258__match__1(lean_object*); -uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501_(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____spec__1(size_t, size_t, lean_object*); +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__4(lean_object*, lean_object*); +uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511_(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqDiagnosticTag___closed__1; lean_object* l_Lean_Lsp_msgToDiagnostic_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instInhabitedDiagnostic___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626_(lean_object*); lean_object* l_Lean_Lsp_Diagnostic_tags_x3f___default; lean_object* l_Lean_Lsp_instFromJsonDiagnosticTag___boxed(lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic_match__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4; lean_object* l_Lean_Lsp_instBEqDiagnosticSeverity___closed__1; -uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385_(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____boxed(lean_object*); +uint8_t l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403_(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticTag___closed__1; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__1; -lean_object* l_Lean_Lsp_instToJsonPublishDiagnosticsParams(lean_object*); -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__1___boxed(lean_object*, lean_object*); -uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDiagnostic(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__5___boxed(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonPublishDiagnosticsParams; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__3(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__4; +lean_object* l_Lean_Lsp_instFromJsonDiagnostic; +lean_object* l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_instInhabitedDiagnostic; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____boxed(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__1; uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticCode____x40_Lean_Data_Lsp_Diagnostics___hyg_132_(lean_object*, lean_object*); lean_object* l_Lean_JsonNumber_fromNat(lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__1; lean_object* l_Lean_Lsp_instToJsonDiagnosticTag_match__1___rarg(uint8_t, lean_object*, lean_object*); +lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_msgToDiagnostic(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__2; lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__12; uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticSeverity____x40_Lean_Data_Lsp_Diagnostics___hyg_13_(uint8_t, uint8_t); -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams(lean_object*); +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__6___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____boxed(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams; lean_object* l_Lean_Lsp_instFromJsonDiagnosticTag___closed__2; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__3(size_t, size_t, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1(lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticCode_match__1(lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__4; lean_object* l_Lean_Lsp_instBEqDiagnosticSeverity; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__6___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity(uint8_t); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__6(lean_object*, size_t, size_t, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__1; extern lean_object* l_Int_instInhabitedInt___closed__1; lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_357__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDiagnostic___closed__4; lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_357__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticTag____x40_Lean_Data_Lsp_Diagnostics___hyg_258_(uint8_t, uint8_t); lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__2; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instInhabitedLocation___closed__1; +uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__2(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticTag_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticTag___closed__3; lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_357____boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__6; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1___boxed(lean_object*, lean_object*); +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instBEqDiagnosticRelatedInformation___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticTag_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__8; +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticCode_match__1(lean_object*); +lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__1; lean_object* l_Lean_Lsp_instBEqDiagnosticCode___closed__1; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__2; lean_object* l_Lean_Lsp_instInhabitedDiagnosticCode___closed__1; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__6(size_t, size_t, lean_object*); +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticTag(lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3; lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___boxed(lean_object*); lean_object* l_Lean_Lsp_instBEqPublishDiagnosticsParams___closed__1; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2___boxed(lean_object*, lean_object*); -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__3; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(lean_object*); lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Diagnostic_code_x3f___default; lean_object* l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__5; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__2; +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__2___boxed(lean_object*, lean_object*); uint8_t lean_int_dec_eq(lean_object*, lean_object*); -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__3(lean_object*, lean_object*); +lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__2___boxed(lean_object*, lean_object*); +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__3(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticTag___closed__2; uint8_t l_Lean_Lsp_instInhabitedDiagnosticSeverity; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instToJsonDiagnosticTag___boxed(lean_object*); lean_object* l_Lean_Lsp_Diagnostic_severity_x3f___default; -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); lean_object* l_Lean_Lsp_instBEqPublishDiagnosticsParams; lean_object* l_Lean_Lsp_instToJsonDiagnosticTag___closed__1; +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonDiagnosticSeverity_match__1(lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(lean_object*, lean_object*); -uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757_(lean_object*, lean_object*); +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__5(lean_object*, lean_object*); +uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786_(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instInhabitedPublishDiagnosticsParams___closed__1; @@ -1717,7 +1727,7 @@ x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); -x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_385_(x_3, x_5); +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqLocation____x40_Lean_Data_Lsp_Basic___hyg_403_(x_3, x_5); if (x_7 == 0) { uint8_t x_8; @@ -1759,73 +1769,69 @@ x_1 = l_Lean_Lsp_instBEqDiagnosticRelatedInformation___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_412_(lean_object* x_1) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_3, x_4); -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; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_3, x_8); -lean_dec(x_3); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -lean_dec(x_7); +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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458_(x_2); +x_4 = l_Lean_Parser_Tactic_location___closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = l_Lean_JsonRpc_instToJsonMessage___closed__10; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); x_10 = lean_box(0); -return x_10; +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; } -else +} +static lean_object* _init_l_Lean_Lsp_instToJsonDiagnosticRelatedInformation___closed__1() { +_start: { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_412_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDiagnosticRelatedInformation() { +_start: { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_7); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_9, 0, x_13); -return x_9; +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonDiagnosticRelatedInformation___closed__1; +return x_1; } -else +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____spec__1(lean_object* x_1, lean_object* x_2) { +_start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484_(x_3); +lean_dec(x_3); +return x_4; } } -} -} -} -lean_object* l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Parser_Tactic_location___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1878,145 +1884,39 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation(x_1); +x_2 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonDiagnosticRelatedInformation(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___closed__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; 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; 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; 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_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_dec(x_2); -x_5 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_5, 0, x_3); -x_6 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = lean_ctor_get(x_4, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = l_Lean_JsonNumber_fromNat(x_9); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_dec(x_8); -x_15 = l_Lean_JsonNumber_fromNat(x_14); -x_16 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_16, 0, x_15); -x_17 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_Json_mkObj(x_21); -x_23 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = lean_ctor_get(x_4, 1); -lean_inc(x_25); -lean_dec(x_4); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = l_Lean_JsonNumber_fromNat(x_26); -x_28 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_12); -lean_ctor_set(x_29, 1, x_28); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -x_31 = l_Lean_JsonNumber_fromNat(x_30); -x_32 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_17); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_19); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_Json_mkObj(x_35); -x_37 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, 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_19); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_24); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_Json_mkObj(x_40); -x_42 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_19); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_7); -lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Json_mkObj(x_45); -x_47 = l_Lean_Parser_Tactic_location___closed__1; -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = lean_ctor_get(x_1, 1); -lean_inc(x_49); -lean_dec(x_1); -x_50 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_19); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_48); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Json_mkObj(x_54); -return x_55; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_Diagnostic_severity_x3f___default() { @@ -2085,7 +1985,7 @@ x_1 = l_Lean_Lsp_instInhabitedDiagnostic___closed__1; return x_1; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1___rarg(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_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; @@ -2123,24 +2023,24 @@ x_19 = lean_apply_14(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, return x_19; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1___rarg___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___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501__match__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511__match__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2187,7 +2087,7 @@ return x_10; } } } -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2224,7 +2124,7 @@ return x_8; } } } -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2261,7 +2161,7 @@ return x_8; } } } -uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__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) { +uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__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) { _start: { lean_object* x_7; uint8_t x_8; @@ -2305,7 +2205,7 @@ goto _start; } } } -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__4(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2351,14 +2251,14 @@ else { lean_object* x_12; uint8_t x_13; x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__5(x_6, x_7, lean_box(0), x_6, x_7, x_12); +x_13 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__5(x_6, x_7, lean_box(0), x_6, x_7, x_12); return x_13; } } } } } -uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__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) { +uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__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) { _start: { lean_object* x_7; uint8_t x_8; @@ -2400,7 +2300,7 @@ goto _start; } } } -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__6(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2446,14 +2346,14 @@ else { lean_object* x_12; uint8_t x_13; x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__7(x_6, x_7, lean_box(0), x_6, x_7, x_12); +x_13 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__7(x_6, x_7, lean_box(0), x_6, x_7, x_12); return x_13; } } } } } -uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501_(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511_(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; 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; uint8_t x_17; @@ -2487,7 +2387,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_2, 6); lean_inc(x_16); lean_dec(x_2); -x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_264_(x_3, x_10); +x_17 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_beqRange____x40_Lean_Data_Lsp_Basic___hyg_273_(x_3, x_10); lean_dec(x_10); lean_dec(x_3); if (x_17 == 0) @@ -2511,7 +2411,7 @@ return x_18; else { uint8_t x_19; -x_19 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__1(x_4, x_11); +x_19 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__1(x_4, x_11); if (x_19 == 0) { uint8_t x_20; @@ -2531,7 +2431,7 @@ return x_20; else { uint8_t x_21; -x_21 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__2(x_5, x_12); +x_21 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__2(x_5, x_12); lean_dec(x_12); lean_dec(x_5); if (x_21 == 0) @@ -2551,7 +2451,7 @@ return x_22; else { uint8_t x_23; -x_23 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__3(x_6, x_13); +x_23 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__3(x_6, x_13); lean_dec(x_13); lean_dec(x_6); if (x_23 == 0) @@ -2585,7 +2485,7 @@ return x_26; else { uint8_t x_27; -x_27 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__4(x_8, x_15); +x_27 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__4(x_8, x_15); lean_dec(x_15); lean_dec(x_8); if (x_27 == 0) @@ -2599,7 +2499,7 @@ return x_28; else { uint8_t x_29; -x_29 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__6(x_9, x_16); +x_29 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__6(x_9, x_16); lean_dec(x_16); lean_dec(x_9); return x_29; @@ -2611,42 +2511,42 @@ return x_29; } } } -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__1(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__1(x_1, x_2); x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__2(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__3(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__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* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__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) { _start: { uint8_t x_7; lean_object* x_8; -x_7 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__5(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__5(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); @@ -2655,22 +2555,22 @@ x_8 = lean_box(x_7); return x_8; } } -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__4(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__4(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__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* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__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: { uint8_t x_7; lean_object* x_8; -x_7 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__7(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__7(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); @@ -2679,22 +2579,22 @@ x_8 = lean_box(x_7); return x_8; } } -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__6___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____spec__6(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____spec__6(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501_(x_1, x_2); +x_3 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511_(x_1, x_2); x_4 = lean_box(x_3); return x_4; } @@ -2703,7 +2603,7 @@ static lean_object* _init_l_Lean_Lsp_instBEqDiagnostic___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511____boxed), 2, 0); return x_1; } } @@ -2715,142 +2615,650 @@ x_1 = l_Lean_Lsp_instBEqDiagnostic___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { -lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Json_getNat_x3f(x_3); -lean_dec(x_3); -if (lean_obj_tag(x_4) == 0) +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) { lean_object* x_5; -x_5 = lean_box(0); +x_5 = x_3; return x_5; } else { -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_unsigned_to_nat(1u); -x_8 = lean_nat_dec_eq(x_6, x_7); -if (x_8 == 0) +lean_object* x_6; 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_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_412_(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; +goto _start; +} +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__1() { +_start: { -lean_object* x_9; uint8_t x_10; -x_9 = lean_unsigned_to_nat(2u); -x_10 = lean_nat_dec_eq(x_6, x_9); -if (x_10 == 0) +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_instToJsonDiagnosticTag___closed__2; +x_2 = x_1; +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__2() { +_start: { -lean_object* x_11; uint8_t x_12; -x_11 = lean_unsigned_to_nat(3u); -x_12 = lean_nat_dec_eq(x_6, x_11); -if (x_12 == 0) +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_instToJsonDiagnosticTag___closed__4; +x_2 = x_1; +return x_2; +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +_start: { -lean_object* x_13; uint8_t x_14; -x_13 = lean_unsigned_to_nat(4u); -x_14 = lean_nat_dec_eq(x_6, x_13); -lean_dec(x_6); -if (x_14 == 0) +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) { -lean_object* x_15; -x_15 = lean_box(0); -return x_15; +lean_object* x_5; +x_5 = x_3; +return x_5; } else { -lean_object* x_16; -x_16 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__1; -return x_16; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; size_t x_11; size_t x_12; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = lean_unbox(x_9); +lean_dec(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +if (x_10 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__1; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; +goto _start; } +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__2; +x_17 = lean_array_uset(x_8, x_2, x_16); +x_2 = x_12; +x_3 = x_17; +goto _start; +} +} +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("severity"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("source"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("tags"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("relatedInformation"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__5; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626_(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; lean_object* x_15; lean_object* x_16; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 4); +lean_inc(x_9); +x_10 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = l_Lean_JsonRpc_instToJsonMessage___closed__10; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_ctor_get(x_1, 5); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 6); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_box(0); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_78; +x_78 = lean_box(0); +x_16 = x_78; +goto block_77; +} +else +{ +lean_object* x_79; uint8_t x_80; +x_79 = lean_ctor_get(x_6, 0); +lean_inc(x_79); +lean_dec(x_6); +x_80 = lean_unbox(x_79); +lean_dec(x_79); +switch (x_80) { +case 0: +{ +lean_object* x_81; +x_81 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__2; +x_16 = x_81; +goto block_77; +} +case 1: +{ +lean_object* x_82; +x_82 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__4; +x_16 = x_82; +goto block_77; +} +case 2: +{ +lean_object* x_83; +x_83 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__7; +x_16 = x_83; +goto block_77; +} +default: +{ +lean_object* x_84; +x_84 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__10; +x_16 = x_84; +goto block_77; +} +} +} +block_77: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_69; +x_69 = lean_box(0); +x_19 = x_69; +goto block_68; +} +else +{ +lean_object* x_70; +x_70 = lean_ctor_get(x_7, 0); +lean_inc(x_70); +lean_dec(x_7); +if (lean_obj_tag(x_70) == 0) +{ +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); +x_72 = lean_unsigned_to_nat(0u); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_19 = x_74; +goto block_68; +} +else +{ +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_70, 0); +lean_inc(x_75); +lean_dec(x_70); +x_76 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_76, 0, x_75); +x_19 = x_76; +goto block_68; +} +} +block_68: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = l_Lean_JsonRpc_instToJsonMessage___closed__12; +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_65; +x_65 = lean_box(0); +x_22 = x_65; +goto block_64; +} +else +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_8, 0); +lean_inc(x_66); +lean_dec(x_8); +x_67 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_22 = x_67; +goto block_64; +} +block_64: +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_55; +x_55 = lean_box(0); +x_25 = x_55; +goto block_54; +} +else +{ +lean_object* x_56; lean_object* x_57; size_t x_58; size_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_56 = lean_ctor_get(x_13, 0); +lean_inc(x_56); +lean_dec(x_13); +x_57 = lean_array_get_size(x_56); +x_58 = lean_usize_of_nat(x_57); +lean_dec(x_57); +x_59 = 0; +x_60 = x_56; +x_61 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2(x_58, x_59, x_60); +x_62 = x_61; +x_63 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_63, 0, x_62); +x_25 = x_63; +goto block_54; +} +block_54: +{ +lean_object* x_26; lean_object* x_27; +x_26 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +if (lean_obj_tag(x_14) == 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; +x_28 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__6; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_12); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_24); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_5); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_Json_mkObj(x_34); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; 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; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_36 = lean_ctor_get(x_14, 0); +lean_inc(x_36); +lean_dec(x_14); +x_37 = lean_array_get_size(x_36); +x_38 = lean_usize_of_nat(x_37); +lean_dec(x_37); +x_39 = 0; +x_40 = x_36; +x_41 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__1(x_38, x_39, x_40); +x_42 = x_41; +x_43 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4; +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_15); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_27); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_12); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_24); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_21); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_18); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_5); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_Json_mkObj(x_52); +return x_53; +} +} +} +} +} +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____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___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__1(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____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___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDiagnostic___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDiagnostic() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonDiagnostic___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__1; +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_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__2; +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_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__3; +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_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__4; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l_Lean_Json_getNat_x3f(x_3); +lean_dec(x_3); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_dec_eq(x_7, x_8); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_unsigned_to_nat(2u); +x_11 = lean_nat_dec_eq(x_7, x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_unsigned_to_nat(3u); +x_13 = lean_nat_dec_eq(x_7, x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_unsigned_to_nat(4u); +x_15 = lean_nat_dec_eq(x_7, x_14); +lean_dec(x_7); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_box(0); +return x_16; } else { lean_object* x_17; -lean_dec(x_6); -x_17 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__2; +x_17 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__1; return x_17; } } else { lean_object* x_18; -lean_dec(x_6); -x_18 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__3; +lean_dec(x_7); +x_18 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__2; return x_18; } } else { lean_object* x_19; -lean_dec(x_6); -x_19 = l_Lean_Lsp_instFromJsonDiagnosticSeverity___closed__4; +lean_dec(x_7); +x_19 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__3; return x_19; } } +else +{ +lean_object* x_20; +lean_dec(x_7); +x_20 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__4; +return x_20; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2(lean_object* x_1, lean_object* x_2) { +} +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); switch (lean_obj_tag(x_3)) { +case 0: +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} case 2: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -lean_dec(x_3); -x_5 = lean_ctor_get(x_4, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); +lean_dec(x_3); +x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_eq(x_6, x_7); -lean_dec(x_6); -if (x_8 == 0) -{ -lean_object* x_9; +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); lean_dec(x_5); -x_9 = lean_box(0); -return x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_7, x_8); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_6); +x_10 = lean_box(0); +return x_10; } else { -lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_10, 0, x_5); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_10); -return x_11; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_11, 0, x_6); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; } } case 3: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); lean_dec(x_3); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; } default: { -lean_object* x_15; +lean_object* x_18; lean_dec(x_3); -x_15 = lean_box(0); -return x_15; +x_18 = lean_box(0); +return x_18; } } } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__1() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__1() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -2860,7 +3268,7 @@ x_3 = x_2; return x_3; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__2() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__2() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -2870,7 +3278,7 @@ x_3 = x_2; return x_3; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -2925,7 +3333,7 @@ else size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; x_19 = 1; x_20 = x_2 + x_19; -x_21 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__1; +x_21 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__1; x_22 = lean_array_uset(x_9, x_2, x_21); x_2 = x_20; x_3 = x_22; @@ -2938,7 +3346,7 @@ size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_dec(x_13); x_24 = 1; x_25 = x_2 + x_24; -x_26 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__2; +x_26 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__2; x_27 = lean_array_uset(x_9, x_2, x_26); x_2 = x_25; x_3 = x_27; @@ -2948,36 +3356,73 @@ goto _start; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -if (lean_obj_tag(x_3) == 4) +switch (lean_obj_tag(x_3)) { +case 0: { -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; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +case 4: +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); lean_dec(x_3); -x_5 = lean_array_get_size(x_4); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4(x_6, x_7, x_8); -x_10 = x_9; -return x_10; +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = x_5; +x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4(x_7, x_8, x_9); +x_11 = x_10; +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_11; +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +default: +{ +lean_object* x_18; lean_dec(x_3); -x_11 = lean_box(0); -return x_11; +x_18 = lean_box(0); +return x_18; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__6(size_t x_1, size_t x_2, lean_object* x_3) { +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__6(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -2992,126 +3437,109 @@ return x_6; } else { -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_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l_Lean_Parser_Tactic_location___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___spec__1(x_10, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; +x_11 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnosticRelatedInformation____x40_Lean_Data_Lsp_Diagnostics___hyg_438_(x_10); lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_dec(x_9); -x_13 = lean_box(0); -return x_13; +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_16 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_15); -lean_dec(x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -lean_dec(x_14); -lean_dec(x_9); -x_17 = lean_box(0); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -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 = 1; -x_21 = x_2 + x_20; -x_22 = x_19; -x_23 = lean_array_uset(x_9, x_2, x_22); -x_2 = x_21; -x_3 = x_23; +lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = x_2 + x_14; +x_16 = x_13; +x_17 = lean_array_uset(x_9, x_2, x_16); +x_2 = x_15; +x_3 = x_17; goto _start; } } } } -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -if (lean_obj_tag(x_3) == 4) +switch (lean_obj_tag(x_3)) { +case 0: { -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; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +case 4: +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); lean_dec(x_3); -x_5 = lean_array_get_size(x_4); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__6(x_6, x_7, x_8); -x_10 = x_9; -return x_10; +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = x_5; +x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__6(x_7, x_8, x_9); +x_11 = x_10; +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_11; +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +default: +{ +lean_object* x_18; lean_dec(x_3); -x_11 = lean_box(0); -return x_11; +x_18 = lean_box(0); +return x_18; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("severity"); -return x_1; } -} -static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("source"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("tags"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("relatedInformation"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonDiagnostic(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -3120,98 +3548,176 @@ return x_4; } else { -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_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonDiagnostic___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1(x_1, x_6); -x_8 = l_Lean_JsonRpc_instToJsonMessage___closed__12; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2(x_1, x_8); -x_10 = l_Lean_Lsp_instFromJsonDiagnostic___closed__2; -x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_10); -x_12 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_12); -if (lean_obj_tag(x_13) == 0) +x_6 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_14; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_7); +lean_object* x_8; lean_dec(x_5); -x_14 = lean_box(0); -return x_14; +x_8 = lean_box(0); +return x_8; } else { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_JsonRpc_instToJsonMessage___closed__12; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__2(x_1, x_10); +if (lean_obj_tag(x_11) == 0) { -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_13, 0); -x_17 = l_Lean_Lsp_instFromJsonDiagnostic___closed__3; -x_18 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3(x_1, x_17); -x_19 = l_Lean_Lsp_instFromJsonDiagnostic___closed__4; -x_20 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5(x_1, x_19); -x_21 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_21, 0, x_5); -lean_ctor_set(x_21, 1, x_7); -lean_ctor_set(x_21, 2, x_9); -lean_ctor_set(x_21, 3, x_11); -lean_ctor_set(x_21, 4, x_16); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_20); -lean_ctor_set(x_13, 0, x_21); -return x_13; +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_5); +x_12 = lean_box(0); +return x_12; } else { -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; -x_22 = lean_ctor_get(x_13, 0); -lean_inc(x_22); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2; +x_15 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_dec(x_13); -x_23 = l_Lean_Lsp_instFromJsonDiagnostic___closed__3; -x_24 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3(x_1, x_23); -x_25 = l_Lean_Lsp_instFromJsonDiagnostic___closed__4; -x_26 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5(x_1, x_25); -x_27 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_27, 0, x_5); -lean_ctor_set(x_27, 1, x_7); -lean_ctor_set(x_27, 2, x_9); -lean_ctor_set(x_27, 3, x_11); -lean_ctor_set(x_27, 4, x_22); -lean_ctor_set(x_27, 5, x_24); -lean_ctor_set(x_27, 6, x_26); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); +lean_dec(x_9); +lean_dec(x_5); +x_16 = lean_box(0); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_JsonRpc_instToJsonMessage___closed__10; +x_19 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_5); +x_20 = lean_box(0); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3; +x_23 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__3(x_1, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_5); +x_24 = lean_box(0); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4; +x_27 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__5(x_1, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_5); +x_28 = lean_box(0); return x_28; } +else +{ +uint8_t x_29; +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); +x_31 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_31, 1, x_9); +lean_ctor_set(x_31, 2, x_13); +lean_ctor_set(x_31, 3, x_17); +lean_ctor_set(x_31, 4, x_21); +lean_ctor_set(x_31, 5, x_25); +lean_ctor_set(x_31, 6, x_30); +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, 0); +lean_inc(x_32); +lean_dec(x_27); +x_33 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_9); +lean_ctor_set(x_33, 2, x_13); +lean_ctor_set(x_33, 3, x_17); +lean_ctor_set(x_33, 4, x_21); +lean_ctor_set(x_33, 5, x_25); +lean_ctor_set(x_33, 6, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +return x_34; } } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +} +} +} +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____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; @@ -3219,21 +3725,21 @@ 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_Lsp_instFromJsonDiagnostic___spec__4(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__3(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____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; @@ -3241,623 +3747,43 @@ 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_Lsp_instFromJsonDiagnostic___spec__6(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__6(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonDiagnostic___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonDiagnostic(x_1); +x_2 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__1() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; uint8_t x_8; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unbox(x_7); -switch (x_8) { -case 0: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__2; -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_3); -return x_11; -} -case 1: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__4; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_3); -return x_14; -} -case 2: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__7; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_3); -return x_17; -} -default: -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = l_Lean_Lsp_instToJsonDiagnosticSeverity___closed__10; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_3); -return x_20; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____boxed), 1, 0); +return x_1; } } -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonDiagnostic() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; -x_7 = lean_ctor_get(x_2, 0); -if (lean_obj_tag(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_7, 0); -x_9 = lean_unsigned_to_nat(0u); -lean_inc(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_7, 0); -lean_inc(x_14); -x_15 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_3); -return x_17; -} -} -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Lsp_instToJsonDiagnosticTag___closed__2; -x_2 = x_1; -return x_2; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Lsp_instToJsonDiagnosticTag___closed__4; -x_2 = x_1; -return x_2; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = x_2 < x_1; -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = x_3; -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; size_t x_11; size_t x_12; -x_6 = lean_array_uget(x_3, x_2); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_3, x_2, x_7); -x_9 = x_6; -x_10 = lean_unbox(x_9); -lean_dec(x_9); -x_11 = 1; -x_12 = x_2 + x_11; -if (x_10 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__1; -x_14 = lean_array_uset(x_8, x_2, x_13); -x_2 = x_12; -x_3 = x_14; -goto _start; -} -else -{ -lean_object* x_16; lean_object* x_17; -x_16 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__2; -x_17 = lean_array_uset(x_8, x_2, x_16); -x_2 = x_12; -x_3 = x_17; -goto _start; -} -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; size_t x_9; size_t 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; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_array_get_size(x_7); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = x_7; -x_12 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4(x_9, x_10, x_11); -x_13 = x_12; -x_14 = lean_alloc_ctor(4, 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_1); -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_3); -return x_16; -} -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 < x_2; -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_1); -x_6 = x_4; -return x_6; -} -else -{ -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; 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; 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; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; size_t x_64; size_t x_65; lean_object* x_66; lean_object* x_67; -x_7 = lean_array_uget(x_4, x_3); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_uset(x_4, x_3, x_8); -x_10 = x_7; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -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(x_11); -x_14 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_14, 0, x_12); -x_15 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_ctor_get(x_13, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = l_Lean_JsonNumber_fromNat(x_18); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = lean_ctor_get(x_17, 1); -lean_inc(x_23); -lean_dec(x_17); -x_24 = l_Lean_JsonNumber_fromNat(x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -lean_inc(x_1); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_1); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_22); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Json_mkObj(x_29); -x_31 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = lean_ctor_get(x_13, 1); -lean_inc(x_33); -lean_dec(x_13); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = l_Lean_JsonNumber_fromNat(x_34); -x_36 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_21); -lean_ctor_set(x_37, 1, x_36); -x_38 = lean_ctor_get(x_33, 1); -lean_inc(x_38); -lean_dec(x_33); -x_39 = l_Lean_JsonNumber_fromNat(x_38); -x_40 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_26); -lean_ctor_set(x_41, 1, x_40); -lean_inc(x_1); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_1); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_37); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_Json_mkObj(x_43); -x_45 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -lean_inc(x_1); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_1); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_32); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_Json_mkObj(x_48); -x_50 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -lean_inc(x_1); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_1); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_16); -lean_ctor_set(x_53, 1, x_52); -x_54 = l_Lean_Json_mkObj(x_53); -x_55 = l_Lean_Parser_Tactic_location___closed__1; -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -x_57 = lean_ctor_get(x_10, 1); -lean_inc(x_57); -lean_dec(x_10); -x_58 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -lean_inc(x_1); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_1); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_Json_mkObj(x_62); -x_64 = 1; -x_65 = x_3 + x_64; -x_66 = x_63; -x_67 = lean_array_uset(x_9, x_3, x_66); -x_3 = x_65; -x_4 = x_67; -goto _start; -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; size_t x_9; size_t 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; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_array_get_size(x_7); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = x_7; -x_12 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__6(x_3, x_9, x_10, x_11); -x_13 = x_12; -x_14 = lean_alloc_ctor(4, 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_1); -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_3); -return x_16; -} -} -} -lean_object* l_Lean_Lsp_instToJsonDiagnostic(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; 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; 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; 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; 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; -x_2 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -x_3 = l_Lean_Lsp_instFromJsonDiagnostic___closed__1; -x_4 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1(x_3, x_2); -lean_dec(x_2); -x_5 = lean_ctor_get(x_1, 2); -lean_inc(x_5); -x_6 = l_Lean_JsonRpc_instToJsonMessage___closed__12; -x_7 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2(x_6, x_5); -lean_dec(x_5); -x_8 = l_List_append___rarg(x_4, x_7); -x_9 = lean_ctor_get(x_1, 3); -lean_inc(x_9); -x_10 = l_Lean_Lsp_instFromJsonDiagnostic___closed__2; -x_11 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_10, x_9); -lean_dec(x_9); -x_12 = l_List_append___rarg(x_8, x_11); -x_13 = lean_ctor_get(x_1, 5); -lean_inc(x_13); -x_14 = l_Lean_Lsp_instFromJsonDiagnostic___closed__3; -x_15 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__3(x_14, x_13); -x_16 = l_List_append___rarg(x_12, x_15); -x_17 = lean_ctor_get(x_1, 6); -lean_inc(x_17); -x_18 = l_Lean_Lsp_instFromJsonDiagnostic___closed__4; -x_19 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__5(x_18, x_17); -x_20 = l_List_append___rarg(x_16, x_19); -x_21 = lean_ctor_get(x_1, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = l_Lean_JsonNumber_fromNat(x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -lean_dec(x_22); -x_29 = l_Lean_JsonNumber_fromNat(x_28); -x_30 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = lean_box(0); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_Json_mkObj(x_35); -x_37 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = lean_ctor_get(x_21, 1); -lean_inc(x_39); -lean_dec(x_21); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = l_Lean_JsonNumber_fromNat(x_40); -x_42 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_26); -lean_ctor_set(x_43, 1, x_42); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_dec(x_39); -x_45 = l_Lean_JsonNumber_fromNat(x_44); -x_46 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_31); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_33); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Json_mkObj(x_49); -x_51 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_33); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_38); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Json_mkObj(x_54); -x_56 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = lean_ctor_get(x_1, 4); -lean_inc(x_58); -lean_dec(x_1); -x_59 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_59); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_33); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_57); -lean_ctor_set(x_63, 1, x_62); -x_64 = l_List_append___rarg(x_20, x_63); -x_65 = l_Lean_Json_mkObj(x_64); -return x_65; -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___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_Lean_Lsp_instToJsonDiagnostic___spec__4(x_4, x_5, x_3); -return x_6; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__6___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; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__6(x_1, x_5, x_6, x_4); -return x_7; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonDiagnostic___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_PublishDiagnosticsParams_version_x3f___default() { @@ -3890,7 +3816,7 @@ x_1 = l_Lean_Lsp_instInhabitedPublishDiagnosticsParams___closed__1; return x_1; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1___rarg(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_9; lean_object* x_10; lean_object* x_11; @@ -3912,24 +3838,24 @@ x_11 = lean_apply_6(x_3, x_5, x_6, x_7, x_8, x_9, x_10); return x_11; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1___rarg___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___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757__match__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786__match__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3966,7 +3892,7 @@ return x_8; } } } -uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____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) { +uint8_t l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____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) { _start: { lean_object* x_7; uint8_t x_8; @@ -3985,7 +3911,7 @@ else lean_object* x_10; lean_object* x_11; uint8_t x_12; x_10 = lean_array_fget(x_4, x_6); x_11 = lean_array_fget(x_5, x_6); -x_12 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_501_(x_10, x_11); +x_12 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_511_(x_10, x_11); if (x_12 == 0) { uint8_t x_13; @@ -4006,7 +3932,7 @@ goto _start; } } } -uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757_(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786_(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; lean_object* x_8; uint8_t x_9; @@ -4026,7 +3952,7 @@ return x_10; else { uint8_t x_11; -x_11 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__1(x_4, x_7); +x_11 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__1(x_4, x_7); if (x_11 == 0) { uint8_t x_12; @@ -4051,29 +3977,29 @@ else { lean_object* x_17; uint8_t x_18; x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__2(x_5, x_8, lean_box(0), x_5, x_8, x_17); +x_18 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__2(x_5, x_8, lean_box(0), x_5, x_8, x_17); return x_18; } } } } } -lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__1(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__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* l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__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) { _start: { uint8_t x_7; lean_object* x_8; -x_7 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_isEqvAux___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); @@ -4082,11 +4008,11 @@ x_8 = lean_box(x_7); return x_8; } } -lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757_(x_1, x_2); +x_3 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -4097,7 +4023,7 @@ static lean_object* _init_l_Lean_Lsp_instBEqPublishDiagnosticsParams___closed__1 _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_757____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_beqPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_786____boxed), 2, 0); return x_1; } } @@ -4109,17 +4035,195 @@ x_1 = l_Lean_Lsp_instBEqPublishDiagnosticsParams___closed__1; return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { -lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Json_getInt_x3f(x_3); +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = 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; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626_(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; +goto _start; +} +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("diagnostics"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853_(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; size_t x_9; size_t 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; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_5, 0, x_2); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +x_8 = lean_array_get_size(x_4); +x_9 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_10 = 0; +x_11 = x_4; +x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____spec__1(x_9, x_10, x_11); +x_13 = x_12; +x_14 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1; +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +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); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__2; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, 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; 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_3, 0); +lean_inc(x_23); lean_dec(x_3); +x_24 = lean_unsigned_to_nat(0u); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_18); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_7); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_Json_mkObj(x_30); +return x_31; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____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___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPublishDiagnosticsParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonPublishDiagnosticsParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonPublishDiagnosticsParams___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; return x_4; } +else +{ +lean_object* x_5; +x_5 = l_Lean_Json_getInt_x3f(x_3); +lean_dec(x_3); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_box(0); +return x_6; } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__3(size_t x_1, size_t x_2, lean_object* x_3) { +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +} +} +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__3(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -4134,79 +4238,38 @@ return x_6; } else { -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_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_10, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; +x_11 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682_(x_10); lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_dec(x_9); -x_13 = lean_box(0); -return x_13; +x_12 = lean_box(0); +return x_12; } 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; -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Lsp_instFromJsonDiagnostic___closed__1; -x_16 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__1(x_10, x_15); -x_17 = l_Lean_JsonRpc_instToJsonMessage___closed__12; -x_18 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__2(x_10, x_17); -x_19 = l_Lean_Lsp_instFromJsonDiagnostic___closed__2; -x_20 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_19); -x_21 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_22 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_21); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_10); -lean_dec(x_9); -x_23 = lean_box(0); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33; -x_24 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_Lsp_instFromJsonDiagnostic___closed__3; -x_26 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__3(x_10, x_25); -x_27 = l_Lean_Lsp_instFromJsonDiagnostic___closed__4; -x_28 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDiagnostic___spec__5(x_10, x_27); -lean_dec(x_10); -x_29 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_29, 0, x_14); -lean_ctor_set(x_29, 1, x_16); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_20); -lean_ctor_set(x_29, 4, x_24); -lean_ctor_set(x_29, 5, x_26); -lean_ctor_set(x_29, 6, x_28); -x_30 = 1; -x_31 = x_2 + x_30; -x_32 = x_29; -x_33 = lean_array_uset(x_9, x_2, x_32); -x_2 = x_31; -x_3 = x_33; +lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = x_2 + x_14; +x_16 = x_13; +x_17 = lean_array_uset(x_9, x_2, x_16); +x_2 = x_15; +x_3 = x_17; goto _start; } } } } -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -4222,7 +4285,7 @@ x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__3(x_6, x_7, x_8); +x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__3(x_6, x_7, x_8); x_10 = x_9; return x_10; } @@ -4235,20 +4298,12 @@ return x_11; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("diagnostics"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -4257,66 +4312,80 @@ return x_4; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(x_1, x_6); -x_8 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(x_1, x_8); -if (lean_obj_tag(x_9) == 0) +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_10; -lean_dec(x_7); +lean_object* x_8; lean_dec(x_5); -x_10 = lean_box(0); -return x_10; +x_8 = lean_box(0); +return x_8; } else { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__2(x_1, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_13, 0, x_5); -lean_ctor_set(x_13, 1, x_7); -lean_ctor_set(x_13, 2, x_12); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); +lean_object* x_12; lean_dec(x_9); +lean_dec(x_5); +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; +x_14 = lean_ctor_get(x_11, 0); x_15 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_15, 0, x_5); -lean_ctor_set(x_15, 1, x_7); +lean_ctor_set(x_15, 1, x_9); lean_ctor_set(x_15, 2, x_14); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; +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, 0); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_9); +lean_ctor_set(x_17, 2, x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; } } } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____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; @@ -4324,280 +4393,43 @@ 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_Lsp_instFromJsonPublishDiagnosticsParams___spec__3(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__3(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams(x_1); +x_2 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; lean_object* x_11; lean_object* x_12; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unsigned_to_nat(0u); -lean_inc(x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_1); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_3); -return x_12; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885____boxed), 1, 0); +return x_1; } } -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +static lean_object* _init_l_Lean_Lsp_instFromJsonPublishDiagnosticsParams() { _start: { -uint8_t x_4; -x_4 = x_2 < x_1; -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = 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; 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; 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; 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; 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; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; -x_6 = lean_array_uget(x_3, x_2); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_3, x_2, x_7); -x_9 = x_6; -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -x_11 = l_Lean_Lsp_instFromJsonDiagnostic___closed__1; -x_12 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__1(x_11, x_10); -lean_dec(x_10); -x_13 = lean_ctor_get(x_9, 2); -lean_inc(x_13); -x_14 = l_Lean_JsonRpc_instToJsonMessage___closed__12; -x_15 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__2(x_14, x_13); -lean_dec(x_13); -x_16 = l_List_append___rarg(x_12, x_15); -x_17 = lean_ctor_get(x_9, 3); -lean_inc(x_17); -x_18 = l_Lean_Lsp_instFromJsonDiagnostic___closed__2; -x_19 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_18, x_17); -lean_dec(x_17); -x_20 = l_List_append___rarg(x_16, x_19); -x_21 = lean_ctor_get(x_9, 5); -lean_inc(x_21); -x_22 = l_Lean_Lsp_instFromJsonDiagnostic___closed__3; -x_23 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__3(x_22, x_21); -x_24 = l_List_append___rarg(x_20, x_23); -x_25 = lean_ctor_get(x_9, 6); -lean_inc(x_25); -x_26 = l_Lean_Lsp_instFromJsonDiagnostic___closed__4; -x_27 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDiagnostic___spec__5(x_26, x_25); -x_28 = l_List_append___rarg(x_24, x_27); -x_29 = lean_ctor_get(x_9, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = l_Lean_JsonNumber_fromNat(x_31); -x_33 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = lean_ctor_get(x_30, 1); -lean_inc(x_36); -lean_dec(x_30); -x_37 = l_Lean_JsonNumber_fromNat(x_36); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_35); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_Json_mkObj(x_43); -x_45 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -x_47 = lean_ctor_get(x_29, 1); -lean_inc(x_47); -lean_dec(x_29); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = l_Lean_JsonNumber_fromNat(x_48); -x_50 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_ctor_get(x_47, 1); -lean_inc(x_52); -lean_dec(x_47); -x_53 = l_Lean_JsonNumber_fromNat(x_52); -x_54 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_54, 0, x_53); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_39); -lean_ctor_set(x_55, 1, x_54); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_41); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_51); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_Json_mkObj(x_57); -x_59 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_41); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_46); -lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_Json_mkObj(x_62); -x_64 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -x_66 = lean_ctor_get(x_9, 4); -lean_inc(x_66); -lean_dec(x_9); -x_67 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_67, 0, x_66); -x_68 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_41); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_65); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_List_append___rarg(x_28, x_71); -x_73 = l_Lean_Json_mkObj(x_72); -x_74 = 1; -x_75 = x_2 + x_74; -x_76 = x_73; -x_77 = lean_array_uset(x_8, x_2, x_76); -x_2 = x_75; -x_3 = x_77; -goto _start; -} -} -} -lean_object* l_Lean_Lsp_instToJsonPublishDiagnosticsParams(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; size_t x_11; size_t 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -lean_dec(x_1); -x_5 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_6 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__1(x_5, x_3); -lean_dec(x_3); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_2); -x_8 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_array_get_size(x_4); -x_11 = lean_usize_of_nat(x_10); -lean_dec(x_10); -x_12 = 0; -x_13 = x_4; -x_14 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__2(x_11, x_12, x_13); -x_15 = x_14; -x_16 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_16, 0, x_15); -x_17 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_9); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_List_append___rarg(x_6, x_21); -x_23 = l_Lean_Json_mkObj(x_22); -return x_23; -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___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_Lsp_instToJsonPublishDiagnosticsParams___spec__2(x_4, x_5, x_3); -return x_6; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; +return x_1; } } lean_object* l_Lean_Lsp_msgToDiagnostic_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -5061,6 +4893,14 @@ l_Lean_Lsp_instBEqDiagnosticRelatedInformation___closed__1 = _init_l_Lean_Lsp_in lean_mark_persistent(l_Lean_Lsp_instBEqDiagnosticRelatedInformation___closed__1); l_Lean_Lsp_instBEqDiagnosticRelatedInformation = _init_l_Lean_Lsp_instBEqDiagnosticRelatedInformation(); lean_mark_persistent(l_Lean_Lsp_instBEqDiagnosticRelatedInformation); +l_Lean_Lsp_instToJsonDiagnosticRelatedInformation___closed__1 = _init_l_Lean_Lsp_instToJsonDiagnosticRelatedInformation___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDiagnosticRelatedInformation___closed__1); +l_Lean_Lsp_instToJsonDiagnosticRelatedInformation = _init_l_Lean_Lsp_instToJsonDiagnosticRelatedInformation(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDiagnosticRelatedInformation); +l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___closed__1 = _init_l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation___closed__1); +l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation = _init_l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnosticRelatedInformation); l_Lean_Lsp_Diagnostic_severity_x3f___default = _init_l_Lean_Lsp_Diagnostic_severity_x3f___default(); lean_mark_persistent(l_Lean_Lsp_Diagnostic_severity_x3f___default); l_Lean_Lsp_Diagnostic_code_x3f___default = _init_l_Lean_Lsp_Diagnostic_code_x3f___default(); @@ -5079,22 +4919,42 @@ l_Lean_Lsp_instBEqDiagnostic___closed__1 = _init_l_Lean_Lsp_instBEqDiagnostic___ lean_mark_persistent(l_Lean_Lsp_instBEqDiagnostic___closed__1); l_Lean_Lsp_instBEqDiagnostic = _init_l_Lean_Lsp_instBEqDiagnostic(); lean_mark_persistent(l_Lean_Lsp_instBEqDiagnostic); -l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__1); -l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDiagnostic___spec__4___closed__2); +l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____spec__2___closed__2); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__1); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__2); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__3); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__4); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__5 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__5); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__6 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__6(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_626____closed__6); +l_Lean_Lsp_instToJsonDiagnostic___closed__1 = _init_l_Lean_Lsp_instToJsonDiagnostic___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDiagnostic___closed__1); +l_Lean_Lsp_instToJsonDiagnostic = _init_l_Lean_Lsp_instToJsonDiagnostic(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDiagnostic); +l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__1(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__1); +l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__2(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__2); +l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__3 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__3(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__3); +l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__4 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__4(); +lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__1___closed__4); +l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonDiagnostic____x40_Lean_Data_Lsp_Diagnostics___hyg_682____spec__4___closed__2); l_Lean_Lsp_instFromJsonDiagnostic___closed__1 = _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnostic___closed__1); -l_Lean_Lsp_instFromJsonDiagnostic___closed__2 = _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnostic___closed__2); -l_Lean_Lsp_instFromJsonDiagnostic___closed__3 = _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnostic___closed__3); -l_Lean_Lsp_instFromJsonDiagnostic___closed__4 = _init_l_Lean_Lsp_instFromJsonDiagnostic___closed__4(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnostic___closed__4); -l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__1); -l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDiagnostic___spec__4___closed__2); +l_Lean_Lsp_instFromJsonDiagnostic = _init_l_Lean_Lsp_instFromJsonDiagnostic(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDiagnostic); l_Lean_Lsp_PublishDiagnosticsParams_version_x3f___default = _init_l_Lean_Lsp_PublishDiagnosticsParams_version_x3f___default(); lean_mark_persistent(l_Lean_Lsp_PublishDiagnosticsParams_version_x3f___default); l_Lean_Lsp_instInhabitedPublishDiagnosticsParams___closed__1 = _init_l_Lean_Lsp_instInhabitedPublishDiagnosticsParams___closed__1(); @@ -5105,8 +4965,16 @@ l_Lean_Lsp_instBEqPublishDiagnosticsParams___closed__1 = _init_l_Lean_Lsp_instBE lean_mark_persistent(l_Lean_Lsp_instBEqPublishDiagnosticsParams___closed__1); l_Lean_Lsp_instBEqPublishDiagnosticsParams = _init_l_Lean_Lsp_instBEqPublishDiagnosticsParams(); lean_mark_persistent(l_Lean_Lsp_instBEqPublishDiagnosticsParams); +l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1 = _init_l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853____closed__1); +l_Lean_Lsp_instToJsonPublishDiagnosticsParams___closed__1 = _init_l_Lean_Lsp_instToJsonPublishDiagnosticsParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPublishDiagnosticsParams___closed__1); +l_Lean_Lsp_instToJsonPublishDiagnosticsParams = _init_l_Lean_Lsp_instToJsonPublishDiagnosticsParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonPublishDiagnosticsParams); l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1 = _init_l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1); +l_Lean_Lsp_instFromJsonPublishDiagnosticsParams = _init_l_Lean_Lsp_instFromJsonPublishDiagnosticsParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonPublishDiagnosticsParams); l_Lean_Lsp_msgToDiagnostic___closed__1 = _init_l_Lean_Lsp_msgToDiagnostic___closed__1(); lean_mark_persistent(l_Lean_Lsp_msgToDiagnostic___closed__1); l_Lean_Lsp_msgToDiagnostic___closed__2 = _init_l_Lean_Lsp_msgToDiagnostic___closed__2(); diff --git a/stage0/stdlib/Lean/Data/Lsp/Extra.c b/stage0/stdlib/Lean/Data/Lsp/Extra.c index 58a8e743c9..150939ae64 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Extra.c +++ b/stage0/stdlib/Lean/Data/Lsp/Extra.c @@ -13,24 +13,62 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +lean_object* l_Lean_Lsp_instToJsonWaitForDiagnosticsParam___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnostics(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWaitForDiagnosticsParam(lean_object*); +lean_object* l_Lean_Lsp_instToJsonWaitForDiagnosticsParam; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1; -lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam; lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnostics___boxed(lean_object*); lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1; lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_7_(lean_object*); lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___boxed(lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; -lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam(lean_object* x_1) { +lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___closed__1; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_7_(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; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Lean_Json_mkObj(x_6); +return x_7; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWaitForDiagnosticsParam___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_7_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWaitForDiagnosticsParam() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonWaitForDiagnosticsParam___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -58,31 +96,29 @@ return x_7; } } } -lean_object* l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam(x_1); +x_2 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonWaitForDiagnosticsParam(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___closed__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; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -x_3 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_2); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_4); -lean_ctor_set(x_6, 1, x_5); -x_7 = l_Lean_Json_mkObj(x_6); -return x_7; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1() { @@ -159,6 +195,14 @@ lean_dec_ref(res); res = initialize_Lean_Data_Lsp_Basic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Lsp_instToJsonWaitForDiagnosticsParam___closed__1 = _init_l_Lean_Lsp_instToJsonWaitForDiagnosticsParam___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWaitForDiagnosticsParam___closed__1); +l_Lean_Lsp_instToJsonWaitForDiagnosticsParam = _init_l_Lean_Lsp_instToJsonWaitForDiagnosticsParam(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWaitForDiagnosticsParam); +l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___closed__1 = _init_l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam___closed__1); +l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam = _init_l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonWaitForDiagnosticsParam); l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1 = _init_l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWaitForDiagnostics___closed__1); l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1 = _init_l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1(); diff --git a/stage0/stdlib/Lean/Data/Lsp/Hover.c b/stage0/stdlib/Lean/Data/Lsp/Hover.c index 8a8be5c1fc..db73527661 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Hover.c +++ b/stage0/stdlib/Lean/Data/Lsp/Hover.c @@ -14,34 +14,30 @@ extern "C" { #endif lean_object* l_Lean_Lsp_instToJsonHoverParams(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonHoverParams___boxed(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__2; -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__1; -extern lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__2; -extern lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__1; +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1; +lean_object* l_Lean_Lsp_instToJsonHover___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__2; +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; lean_object* l_Lean_Lsp_Hover_range_x3f___default; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonHover___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_JsonNumber_fromNat(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438_(lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonHoverParams(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__2; -lean_object* l_Lean_Lsp_instToJsonHover(lean_object*); +lean_object* l_Lean_Lsp_instToJsonHover; lean_object* l_Lean_Json_mkObj(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonHover___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonHover(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__3; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonHover; lean_object* l_Lean_Lsp_instFromJsonHover___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__2; -lean_object* l_Lean_Lsp_instFromJsonHover___boxed(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____spec__1(lean_object*, lean_object*); static lean_object* _init_l_Lean_Lsp_Hover_range_x3f___default() { _start: { @@ -50,72 +46,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonHover___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_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonMarkupContent___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonMarkupContent___spec__1(x_3, x_4); -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; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Lsp_instFromJsonMarkupContent___closed__2; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_8); -lean_dec(x_3); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -lean_dec(x_7); -x_10 = lean_box(0); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_unbox(x_7); -lean_dec(x_7); -lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_14); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_9, 0); -lean_inc(x_15); -lean_dec(x_9); -x_16 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_16, 0, x_15); -x_17 = lean_unbox(x_7); -lean_dec(x_7); -lean_ctor_set_uint8(x_16, sizeof(void*)*1, x_17); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_16); -return x_18; -} -} -} -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonHover___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1() { _start: { lean_object* x_1; @@ -123,140 +54,110 @@ x_1 = lean_mk_string("contents"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonHover(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__2() { _start: { -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonHover___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonHover___spec__1(x_1, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_8 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, 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); -lean_ctor_set(x_3, 0, x_9); -return x_3; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_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(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -} -} -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonHover___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonHover___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonHover___boxed(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__3() { _start: { -lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonHover(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } -lean_object* l_Lean_Lsp_instToJsonHover(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11_(lean_object* x_1) { _start: { -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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_4 = lean_ctor_get(x_2, 0); -lean_inc(x_4); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1412_(x_2); lean_dec(x_2); -x_5 = lean_alloc_ctor(3, 1, 0); +x_4 = l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); -x_6 = l_Lean_Lsp_instFromJsonMarkupContent___closed__2; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); lean_dec(x_1); -x_11 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_12 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(x_11, x_10); -if (x_3 == 0) +if (lean_obj_tag(x_6) == 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; -x_13 = l_Lean_Lsp_instToJsonMarkupContent___closed__1; -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_9); -x_15 = l_Lean_Json_mkObj(x_14); -x_16 = l_Lean_Lsp_instFromJsonHover___closed__1; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_12); -x_19 = l_Lean_Json_mkObj(x_18); -return x_19; +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__3; +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_5); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; } 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_object* x_26; -x_20 = l_Lean_Lsp_instToJsonMarkupContent___closed__2; -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_9); -x_22 = l_Lean_Json_mkObj(x_21); -x_23 = l_Lean_Lsp_instFromJsonHover___closed__1; -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_12); -x_26 = l_Lean_Json_mkObj(x_25); -return x_26; +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; +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_box(0); +x_12 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_10); +x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +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_11); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Json_mkObj(x_16); +return x_17; } } } -lean_object* l_Lean_Lsp_instFromJsonHoverParams(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instToJsonHover___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonHover() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonHover___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____spec__1(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___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonMarkupContent____x40_Lean_Data_Lsp_Basic___hyg_1438_(x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -269,8 +170,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_565____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -309,6 +210,73 @@ return x_14; } } } +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonHover___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_fromJsonHover____x40_Lean_Data_Lsp_Hover___hyg_37____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonHover() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonHover___closed__1; +return x_1; +} +} +lean_object* l_Lean_Lsp_instFromJsonHoverParams(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +return x_2; +} +else +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_5); +return x_6; +} +} +} +} lean_object* l_Lean_Lsp_instFromJsonHoverParams___boxed(lean_object* x_1) { _start: { @@ -321,65 +289,9 @@ return x_2; lean_object* l_Lean_Lsp_instToJsonHoverParams(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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -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); -x_9 = l_Lean_Json_mkObj(x_8); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = l_Lean_JsonNumber_fromNat(x_12); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_ctor_get(x_3, 1); -lean_inc(x_17); -lean_dec(x_3); -x_18 = l_Lean_JsonNumber_fromNat(x_17); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Lsp_instFromJsonPosition___closed__2; -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, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_7); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_16); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, 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_7); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_11); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_Json_mkObj(x_28); -return x_29; +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_(x_1); +return x_2; } } lean_object* initialize_Init(lean_object*); @@ -401,8 +313,20 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Lsp_Hover_range_x3f___default = _init_l_Lean_Lsp_Hover_range_x3f___default(); lean_mark_persistent(l_Lean_Lsp_Hover_range_x3f___default); +l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1 = _init_l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__1); +l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__2 = _init_l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__2); +l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__3 = _init_l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11____closed__3); +l_Lean_Lsp_instToJsonHover___closed__1 = _init_l_Lean_Lsp_instToJsonHover___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonHover___closed__1); +l_Lean_Lsp_instToJsonHover = _init_l_Lean_Lsp_instToJsonHover(); +lean_mark_persistent(l_Lean_Lsp_instToJsonHover); l_Lean_Lsp_instFromJsonHover___closed__1 = _init_l_Lean_Lsp_instFromJsonHover___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonHover___closed__1); +l_Lean_Lsp_instFromJsonHover = _init_l_Lean_Lsp_instFromJsonHover(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonHover); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c b/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c index 4b7bdf82e9..d89039f395 100644 --- a/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c +++ b/stage0/stdlib/Lean/Data/Lsp/InitShutdown.c @@ -14,119 +14,120 @@ extern "C" { #endif lean_object* l_Lean_Lsp_instFromJsonTrace___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7; lean_object* l_Lean_Lsp_instFromJsonTrace___closed__3; -lean_object* l_Lean_Lsp_instToJsonInitializeResult___boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397_(lean_object*); +extern lean_object* l_Lean_instFromJsonOption___rarg___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303____boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonInitializeResult___closed__1; size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Lsp_instFromJsonTrace___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__5; -lean_object* l_Lean_Lsp_instFromJsonClientInfo(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonClientInfo; lean_object* l_Lean_Lsp_instFromJsonTrace___closed__2; lean_object* l_Lean_Lsp_instFromJsonInitializeParams(lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__3; -lean_object* l_Lean_Lsp_ClientInfo_hasToJson(lean_object*); lean_object* l_Lean_Lsp_InitializeResult_serverInfo_x3f___default; -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__7; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__2; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329_(lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson___closed__2; lean_object* l_Lean_Lsp_InitializeParams_processId_x3f___default; -lean_object* l_Lean_Lsp_InitializeParams_hasToJson(lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_InitializeParams_hasToJson___spec__4(lean_object*, size_t, size_t, lean_object*); -lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonServerInfo(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1; +lean_object* l_Lean_Lsp_instToJsonServerInfo; lean_object* l_Lean_Json_getStr_x3f(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2; lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__2; lean_object* l_Lean_Lsp_instToJsonInitializedParams___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__3; lean_object* l_Lean_Lsp_Trace_hasToJson___boxed(lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson(uint8_t); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__6; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329____boxed(lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Data_Options___hyg_488____closed__1; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Lsp_instFromJsonInitializedParams(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__1; -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__1; +lean_object* l_Lean_Lsp_instFromJsonServerInfo___closed__1; +lean_object* l_Lean_Lsp_instToJsonInitializeParams; lean_object* l_Lean_Lsp_instFromJsonInitializeParams___boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonInitializedParams___boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonInitializedParams___closed__1; -lean_object* l_Lean_Lsp_instToJsonServerInfo___boxed(lean_object*); lean_object* l_Lean_Lsp_InitializeParams_clientInfo_x3f___default; lean_object* l_Lean_Lsp_Trace_hasToJson_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonServerInfo___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9_(lean_object*); uint8_t l_Lean_Lsp_InitializeParams_trace___default; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__6; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonServerInfo___boxed(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37____boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__3(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__8; lean_object* l_Lean_Json_getInt_x3f(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__2; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__4; extern lean_object* l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3; lean_object* l_Lean_Lsp_instFromJsonTrace_match__1(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; lean_object* l_Lean_Lsp_Trace_hasToJson_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11_(lean_object*); lean_object* l_Lean_Lsp_ServerInfo_version_x3f___default; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__4; lean_object* l_Lean_Lsp_instToJsonInitializedParams(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeResult(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonInitializeResult; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__2(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson_match__1(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__5; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__3; -lean_object* l_Lean_Lsp_instFromJsonClientInfo___boxed(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; +lean_object* l_Lean_Lsp_instFromJsonClientInfo___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__9; +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; lean_object* l_Lean_Lsp_instFromJsonTrace_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instToJsonInitializeResult(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonInitializeResult; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__10; +lean_object* l_Lean_Lsp_instToJsonClientInfo; lean_object* l_Lean_Lsp_instFromJsonTrace(lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1; +extern lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; lean_object* l_Lean_Lsp_instFromJsonInitializeResult___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonInitializeResult___boxed(lean_object*); -lean_object* l_Lean_Lsp_ClientInfo_hasToJson___boxed(lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonServerInfo(lean_object*); +lean_object* l_Lean_Lsp_instToJsonInitializeParams___closed__1; +lean_object* l_Lean_Lsp_instFromJsonServerInfo; +lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35_(lean_object*); lean_object* l_Lean_Lsp_InitializeParams_rootUri_x3f___default; lean_object* l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default; -extern lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__2; +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35_(lean_object*); extern lean_object* l_Lean_Lsp_instFromJsonClientCapabilities___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154_(lean_object*); lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default; lean_object* l_Lean_Lsp_ClientInfo_version_x3f___default; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__7; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_InitializeParams_hasToJson___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonClientInfo___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Trace_hasToJson___closed__3; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____spec__1___boxed(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_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); static lean_object* _init_l_Lean_Lsp_ClientInfo_version_x3f___default() { @@ -137,11 +138,82 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonClientInfo(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11_(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; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_2); +x_5 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3; +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; +} +else +{ +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; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_box(0); +lean_inc(x_10); +x_12 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_12, 0, x_10); +x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +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_11); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_6); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Json_mkObj(x_16); +return x_17; +} +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonClientInfo___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonClientInfo() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonClientInfo___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; +x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_2); if (lean_obj_tag(x_3) == 0) { @@ -151,30 +223,41 @@ return x_4; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_8 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, 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); -lean_ctor_set(x_3, 0, x_9); -return x_3; +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_11); +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +lean_dec(x_7); x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 0, x_5); lean_ctor_set(x_13, 1, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); @@ -183,44 +266,30 @@ return x_14; } } } -lean_object* l_Lean_Lsp_instFromJsonClientInfo___boxed(lean_object* x_1) { +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonClientInfo(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_ClientInfo_hasToJson(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonClientInfo___closed__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; -x_2 = lean_ctor_get(x_1, 0); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -x_7 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_8 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_7, x_3); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_6); -lean_ctor_set(x_9, 1, x_8); -x_10 = l_Lean_Json_mkObj(x_9); -return x_10; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37____boxed), 1, 0); +return x_1; } } -lean_object* l_Lean_Lsp_ClientInfo_hasToJson___boxed(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonClientInfo() { _start: { -lean_object* x_2; -x_2 = l_Lean_Lsp_ClientInfo_hasToJson(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonClientInfo___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__1() { @@ -591,6 +660,382 @@ x_1 = lean_box(0); return x_1; } } +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = 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; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9_(x_9); +lean_dec(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; +goto _start; +} +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("capabilities"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1; +x_2 = l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("processId"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("clientInfo"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rootUri"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("initializationOptions"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("trace"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("workspaceFolders"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__9; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154_(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 3); +lean_inc(x_5); +x_6 = lean_box(0); +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); +x_8 = lean_ctor_get(x_1, 5); +lean_inc(x_8); +lean_dec(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_68; +x_68 = lean_box(0); +x_9 = x_68; +goto block_67; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_2, 0); +lean_inc(x_69); +lean_dec(x_2); +x_70 = lean_unsigned_to_nat(0u); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_72, 0, x_71); +x_9 = x_72; +goto block_67; +} +block_67: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_64; +x_64 = lean_box(0); +x_12 = x_64; +goto block_63; +} +else +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_3, 0); +lean_inc(x_65); +lean_dec(x_3); +x_66 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_11_(x_65); +lean_dec(x_65); +x_12 = x_66; +goto block_63; +} +block_63: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_60; +x_60 = lean_box(0); +x_15 = x_60; +goto block_59; +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_4, 0); +lean_inc(x_61); +lean_dec(x_4); +x_62 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_15 = x_62; +goto block_59; +} +block_59: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_57; +x_57 = lean_box(0); +x_18 = x_57; +goto block_56; +} +else +{ +lean_object* x_58; +x_58 = lean_ctor_get(x_5, 0); +lean_inc(x_58); +lean_dec(x_5); +x_18 = x_58; +goto block_56; +} +block_56: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +switch (x_7) { +case 0: +{ +lean_object* x_53; +x_53 = l_Lean_Lsp_Trace_hasToJson___closed__1; +x_21 = x_53; +goto block_52; +} +case 1: +{ +lean_object* x_54; +x_54 = l_Lean_Lsp_Trace_hasToJson___closed__2; +x_21 = x_54; +goto block_52; +} +default: +{ +lean_object* x_55; +x_55 = l_Lean_Lsp_Trace_hasToJson___closed__3; +x_21 = x_55; +goto block_52; +} +} +block_52: +{ +lean_object* x_22; lean_object* x_23; +x_22 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +if (lean_obj_tag(x_8) == 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; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_24 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__10; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_17); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_14); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_11); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_Json_mkObj(x_31); +return x_32; +} +else +{ +lean_object* x_33; lean_object* 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_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; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_33 = lean_ctor_get(x_8, 0); +lean_inc(x_33); +lean_dec(x_8); +x_34 = lean_array_get_size(x_33); +x_35 = lean_usize_of_nat(x_34); +lean_dec(x_34); +x_36 = 0; +x_37 = x_33; +x_38 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____spec__1(x_35, x_36, x_37); +x_39 = x_38; +x_40 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_6); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_23); +lean_ctor_set(x_44, 1, x_43); +x_45 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_20); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_17); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_14); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_11); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Json_mkObj(x_50); +return x_51; +} +} +} +} +} +} +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonInitializeParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonInitializeParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonInitializeParams___closed__1; +return x_1; +} +} lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -604,51 +1049,11 @@ return x_4; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_3; lean_object* x_4; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; +x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_37_(x_3); lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_5); -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_5, 0); -x_9 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_10 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_9); -lean_dec(x_3); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_13); -lean_dec(x_3); -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, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; -} -} +return x_4; } } lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object* x_1, lean_object* x_2) { @@ -737,59 +1142,37 @@ return x_6; } else { -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_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_10, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; +x_11 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35_(x_10); lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_dec(x_9); -x_13 = lean_box(0); -return x_13; +x_12 = lean_box(0); +return x_12; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_16 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_15); -lean_dec(x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -lean_dec(x_14); -lean_dec(x_9); -x_17 = lean_box(0); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -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 = 1; -x_21 = x_2 + x_20; -x_22 = x_19; -x_23 = lean_array_uset(x_9, x_2, x_22); -x_2 = x_21; -x_3 = x_23; +lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = x_2 + x_14; +x_16 = x_13; +x_17 = lean_array_uset(x_9, x_2, x_16); +x_2 = x_15; +x_3 = x_17; goto _start; } } } } -} lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object* x_1, lean_object* x_2) { _start: { @@ -819,77 +1202,21 @@ return x_11; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("processId"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("clientInfo"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("rootUri"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("initializationOptions"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("capabilities"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("trace"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("workspaceFolders"); -return x_1; -} -} lean_object* l_Lean_Lsp_instFromJsonInitializeParams(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; -x_2 = l_Lean_Lsp_instFromJsonInitializeParams___closed__1; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonInitializeParams___closed__2; +x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4; x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_1, x_4); -x_6 = l_Lean_Lsp_instFromJsonInitializeParams___closed__3; +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); -x_8 = l_Lean_Lsp_instFromJsonInitializeParams___closed__4; +x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; x_9 = l_Lean_Json_getObjVal_x3f(x_1, x_8); -x_10 = l_Lean_Lsp_instFromJsonInitializeParams___closed__6; +x_10 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7; x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_1, x_10); -x_12 = l_Lean_Lsp_instFromJsonInitializeParams___closed__7; +x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_12); if (lean_obj_tag(x_11) == 0) { @@ -1025,378 +1352,6 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; lean_object* x_11; lean_object* x_12; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unsigned_to_nat(0u); -lean_inc(x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_1); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_3); -return x_12; -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; 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; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_ctor_get(x_7, 0); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -x_10 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_10, 0, x_8); -x_11 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_14 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_13, x_9); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_Json_mkObj(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_3); -return x_18; -} -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_InitializeParams_hasToJson___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 < x_2; -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_1); -x_6 = x_4; -return x_6; -} -else -{ -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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; -x_7 = lean_array_uget(x_4, x_3); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_uset(x_4, x_3, x_8); -x_10 = x_7; -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(x_10); -x_13 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_13, 0, x_11); -x_14 = l_Lean_Lsp_instFromJsonLocation___closed__1; -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(3, 1, 0); -lean_ctor_set(x_16, 0, x_12); -x_17 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -lean_inc(x_1); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_1); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_15); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Json_mkObj(x_20); -x_22 = 1; -x_23 = x_3 + x_22; -x_24 = x_21; -x_25 = lean_array_uset(x_9, x_3, x_24); -x_3 = x_23; -x_4 = x_25; -goto _start; -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; size_t x_9; size_t 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; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_array_get_size(x_7); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = x_7; -x_12 = l_Array_mapMUnsafe_map___at_Lean_Lsp_InitializeParams_hasToJson___spec__4(x_3, x_9, x_10, x_11); -x_13 = x_12; -x_14 = lean_alloc_ctor(4, 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_1); -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_3); -return x_16; -} -} -} -static lean_object* _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instFromJsonInitializeParams___closed__5; -x_2 = l_Lean_Lsp_ClientCapabilities_hasToJson___closed__1; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Lsp_InitializeParams_hasToJson___closed__1; -x_3 = lean_alloc_ctor(1, 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_Lsp_InitializeParams_hasToJson___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instFromJsonInitializeParams___closed__6; -x_2 = l_Lean_Lsp_Trace_hasToJson___closed__1; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Lsp_InitializeParams_hasToJson___closed__3; -x_3 = lean_alloc_ctor(1, 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_Lsp_InitializeParams_hasToJson___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instFromJsonInitializeParams___closed__6; -x_2 = l_Lean_Lsp_Trace_hasToJson___closed__2; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Lsp_InitializeParams_hasToJson___closed__5; -x_3 = lean_alloc_ctor(1, 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_Lsp_InitializeParams_hasToJson___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instFromJsonInitializeParams___closed__6; -x_2 = l_Lean_Lsp_Trace_hasToJson___closed__3; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Lsp_InitializeParams_hasToJson___closed__7; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* l_Lean_Lsp_InitializeParams_hasToJson(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Lsp_instFromJsonInitializeParams___closed__1; -x_4 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(x_3, x_2); -lean_dec(x_2); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -x_6 = l_Lean_Lsp_instFromJsonInitializeParams___closed__2; -x_7 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2(x_6, x_5); -lean_dec(x_5); -x_8 = l_List_append___rarg(x_4, x_7); -x_9 = lean_ctor_get(x_1, 2); -lean_inc(x_9); -x_10 = l_Lean_Lsp_instFromJsonInitializeParams___closed__3; -x_11 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_10, x_9); -lean_dec(x_9); -x_12 = l_List_append___rarg(x_8, x_11); -x_13 = lean_ctor_get(x_1, 3); -lean_inc(x_13); -x_14 = l_Lean_Lsp_instFromJsonInitializeParams___closed__4; -x_15 = l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(x_14, x_13); -lean_dec(x_13); -x_16 = l_List_append___rarg(x_12, x_15); -x_17 = l_Lean_Lsp_InitializeParams_hasToJson___closed__2; -x_18 = l_List_append___rarg(x_16, x_17); -x_19 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); -x_20 = lean_ctor_get(x_1, 5); -lean_inc(x_20); -lean_dec(x_1); -x_21 = l_Lean_Lsp_instFromJsonInitializeParams___closed__7; -x_22 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__3(x_21, x_20); -switch (x_19) { -case 0: -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = l_Lean_Lsp_InitializeParams_hasToJson___closed__4; -x_24 = l_List_append___rarg(x_18, x_23); -x_25 = l_List_append___rarg(x_24, x_22); -x_26 = l_Lean_Json_mkObj(x_25); -return x_26; -} -case 1: -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = l_Lean_Lsp_InitializeParams_hasToJson___closed__6; -x_28 = l_List_append___rarg(x_18, x_27); -x_29 = l_List_append___rarg(x_28, x_22); -x_30 = l_Lean_Json_mkObj(x_29); -return x_30; -} -default: -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = l_Lean_Lsp_InitializeParams_hasToJson___closed__8; -x_32 = l_List_append___rarg(x_18, x_31); -x_33 = l_List_append___rarg(x_32, x_22); -x_34 = l_Lean_Json_mkObj(x_33); -return x_34; -} -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_InitializeParams_hasToJson___spec__4___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; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Lsp_InitializeParams_hasToJson___spec__4(x_1, x_5, x_6, x_4); -return x_7; -} -} static lean_object* _init_l_Lean_Lsp_instFromJsonInitializedParams___closed__1() { _start: { @@ -1449,11 +1404,82 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonServerInfo(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303_(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; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_2); +x_5 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__3; +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; +} +else +{ +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; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_box(0); +lean_inc(x_10); +x_12 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_12, 0, x_10); +x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +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_11); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_6); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Json_mkObj(x_16); +return x_17; +} +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonServerInfo___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonServerInfo() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonServerInfo___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; +x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_2); if (lean_obj_tag(x_3) == 0) { @@ -1463,96 +1489,12 @@ return x_4; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_8 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, 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); -lean_ctor_set(x_3, 0, x_9); -return x_3; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_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(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -} -} -} -lean_object* l_Lean_Lsp_instFromJsonServerInfo___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonServerInfo(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Lsp_instToJsonServerInfo(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; -x_2 = lean_ctor_get(x_1, 0); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -x_7 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_8 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_7, x_3); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_6); -lean_ctor_set(x_9, 1, x_8); -x_10 = l_Lean_Json_mkObj(x_9); -return x_10; -} -} -lean_object* l_Lean_Lsp_instToJsonServerInfo___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonServerInfo(x_1); -lean_dec(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Lsp_InitializeResult_serverInfo_x3f___default() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__1(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_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonServerCapabilities___spec__1(x_3, x_4); -x_6 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_3, x_6); +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1188____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -1566,45 +1508,192 @@ uint8_t x_9; x_9 = !lean_is_exclusive(x_7); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; +lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_7, 0); -x_11 = lean_alloc_ctor(0, 1, 1); +x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_5); -x_12 = lean_unbox(x_10); -lean_dec(x_10); -lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_12); +lean_ctor_set(x_11, 1, x_10); lean_ctor_set(x_7, 0, x_11); return x_7; } else { -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_7, 0); -lean_inc(x_13); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); lean_dec(x_7); -x_14 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_14, 0, x_5); -x_15 = lean_unbox(x_13); -lean_dec(x_13); -lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_15); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_14); -return x_16; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_5); +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; } } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2(lean_object* x_1, lean_object* x_2) { +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329____boxed(lean_object* x_1) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonServerInfo___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonServerInfo() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonServerInfo___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_InitializeResult_serverInfo_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("serverInfo"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(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; +x_2 = lean_ctor_get(x_1, 0); +x_3 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_35_(x_2); +x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__3; +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_5); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_Json_mkObj(x_8); +return x_9; +} +else +{ +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; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_box(0); +x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_303_(x_10); +x_13 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +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_11); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Json_mkObj(x_16); +return x_17; +} +} +} +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonInitializeResult___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonInitializeResult() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonInitializeResult___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__1(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_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_4); +x_4 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_61_(x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValD(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_329_(x_3); +lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; -lean_dec(x_3); x_6 = lean_box(0); return x_6; } @@ -1614,50 +1703,33 @@ uint8_t x_7; x_7 = !lean_is_exclusive(x_5); 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_5, 0); -x_9 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_10 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_9); -lean_dec(x_3); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_13); -lean_dec(x_3); -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, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; } } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeResult___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("serverInfo"); -return x_1; } -} -lean_object* l_Lean_Lsp_instFromJsonInitializeResult(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonInitializeParams___closed__5; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1666,30 +1738,41 @@ return x_4; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__2(x_1, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = l_Lean_Lsp_instFromJsonInitializeResult___closed__1; -x_8 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2(x_1, 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); -lean_ctor_set(x_3, 0, x_9); -return x_3; +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -lean_dec(x_3); -x_11 = l_Lean_Lsp_instFromJsonInitializeResult___closed__1; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2(x_1, x_11); +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +lean_dec(x_7); x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 0, x_5); lean_ctor_set(x_13, 1, x_12); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); @@ -1698,132 +1781,50 @@ return x_14; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeResult___spec__2(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonInitializeResult___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonInitializeResult(x_1); +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeResult___closed__1() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; 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; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_ctor_get(x_7, 0); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -x_10 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_10, 0, x_8); -x_11 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_14 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_13, x_9); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_Json_mkObj(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_3); -return x_18; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_397____boxed), 1, 0); +return x_1; } } -} -lean_object* l_Lean_Lsp_instToJsonInitializeResult(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeResult() { _start: { -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; 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_2 = lean_ctor_get(x_1, 0); -x_3 = lean_ctor_get(x_2, 0); -x_4 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; -x_5 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(x_4, x_3); -x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_7 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_7, 0, x_6); -x_8 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_List_append___rarg(x_5, x_11); -x_13 = l_Lean_Json_mkObj(x_12); -x_14 = l_Lean_Lsp_instFromJsonInitializeParams___closed__5; -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_ctor_get(x_1, 1); -x_17 = l_Lean_Lsp_instFromJsonInitializeResult___closed__1; -x_18 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1(x_17, x_16); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_15); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Json_mkObj(x_19); -return x_20; -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Lean_Lsp_instToJsonInitializeResult___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonInitializeResult(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonInitializeResult___closed__1; +return x_1; } } lean_object* initialize_Init(lean_object*); @@ -1849,6 +1850,14 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Lsp_ClientInfo_version_x3f___default = _init_l_Lean_Lsp_ClientInfo_version_x3f___default(); lean_mark_persistent(l_Lean_Lsp_ClientInfo_version_x3f___default); +l_Lean_Lsp_instToJsonClientInfo___closed__1 = _init_l_Lean_Lsp_instToJsonClientInfo___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonClientInfo___closed__1); +l_Lean_Lsp_instToJsonClientInfo = _init_l_Lean_Lsp_instToJsonClientInfo(); +lean_mark_persistent(l_Lean_Lsp_instToJsonClientInfo); +l_Lean_Lsp_instFromJsonClientInfo___closed__1 = _init_l_Lean_Lsp_instFromJsonClientInfo___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonClientInfo___closed__1); +l_Lean_Lsp_instFromJsonClientInfo = _init_l_Lean_Lsp_instFromJsonClientInfo(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonClientInfo); l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__1 = _init_l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__1); l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__2 = _init_l_Lean_Lsp_instFromJsonTrace_match__1___rarg___closed__2(); @@ -1876,44 +1885,58 @@ lean_mark_persistent(l_Lean_Lsp_InitializeParams_initializationOptions_x3f___def l_Lean_Lsp_InitializeParams_trace___default = _init_l_Lean_Lsp_InitializeParams_trace___default(); l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default = _init_l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default(); lean_mark_persistent(l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default); -l_Lean_Lsp_instFromJsonInitializeParams___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__1(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__1); -l_Lean_Lsp_instFromJsonInitializeParams___closed__2 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__2); -l_Lean_Lsp_instFromJsonInitializeParams___closed__3 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__3); -l_Lean_Lsp_instFromJsonInitializeParams___closed__4 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__4(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__4); -l_Lean_Lsp_instFromJsonInitializeParams___closed__5 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__5(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__5); -l_Lean_Lsp_instFromJsonInitializeParams___closed__6 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__6(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__6); -l_Lean_Lsp_instFromJsonInitializeParams___closed__7 = _init_l_Lean_Lsp_instFromJsonInitializeParams___closed__7(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeParams___closed__7); -l_Lean_Lsp_InitializeParams_hasToJson___closed__1 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__1(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__1); -l_Lean_Lsp_InitializeParams_hasToJson___closed__2 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__2(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__2); -l_Lean_Lsp_InitializeParams_hasToJson___closed__3 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__3(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__3); -l_Lean_Lsp_InitializeParams_hasToJson___closed__4 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__4(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__4); -l_Lean_Lsp_InitializeParams_hasToJson___closed__5 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__5(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__5); -l_Lean_Lsp_InitializeParams_hasToJson___closed__6 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__6(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__6); -l_Lean_Lsp_InitializeParams_hasToJson___closed__7 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__7(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__7); -l_Lean_Lsp_InitializeParams_hasToJson___closed__8 = _init_l_Lean_Lsp_InitializeParams_hasToJson___closed__8(); -lean_mark_persistent(l_Lean_Lsp_InitializeParams_hasToJson___closed__8); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__1); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__2); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__9 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__9(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__9); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__10 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__10(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__10); +l_Lean_Lsp_instToJsonInitializeParams___closed__1 = _init_l_Lean_Lsp_instToJsonInitializeParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeParams___closed__1); +l_Lean_Lsp_instToJsonInitializeParams = _init_l_Lean_Lsp_instToJsonInitializeParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeParams); l_Lean_Lsp_instFromJsonInitializedParams___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializedParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializedParams___closed__1); l_Lean_Lsp_ServerInfo_version_x3f___default = _init_l_Lean_Lsp_ServerInfo_version_x3f___default(); lean_mark_persistent(l_Lean_Lsp_ServerInfo_version_x3f___default); +l_Lean_Lsp_instToJsonServerInfo___closed__1 = _init_l_Lean_Lsp_instToJsonServerInfo___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonServerInfo___closed__1); +l_Lean_Lsp_instToJsonServerInfo = _init_l_Lean_Lsp_instToJsonServerInfo(); +lean_mark_persistent(l_Lean_Lsp_instToJsonServerInfo); +l_Lean_Lsp_instFromJsonServerInfo___closed__1 = _init_l_Lean_Lsp_instFromJsonServerInfo___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonServerInfo___closed__1); +l_Lean_Lsp_instFromJsonServerInfo = _init_l_Lean_Lsp_instFromJsonServerInfo(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonServerInfo); l_Lean_Lsp_InitializeResult_serverInfo_x3f___default = _init_l_Lean_Lsp_InitializeResult_serverInfo_x3f___default(); lean_mark_persistent(l_Lean_Lsp_InitializeResult_serverInfo_x3f___default); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__1); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__2 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__2); +l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__3 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371____closed__3); +l_Lean_Lsp_instToJsonInitializeResult___closed__1 = _init_l_Lean_Lsp_instToJsonInitializeResult___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeResult___closed__1); +l_Lean_Lsp_instToJsonInitializeResult = _init_l_Lean_Lsp_instToJsonInitializeResult(); +lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeResult); l_Lean_Lsp_instFromJsonInitializeResult___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializeResult___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeResult___closed__1); +l_Lean_Lsp_instFromJsonInitializeResult = _init_l_Lean_Lsp_instFromJsonInitializeResult(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeResult); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Data/Lsp/Ipc.c b/stage0/stdlib/Lean/Data/Lsp/Ipc.c index dd7b00fa2d..bb5669d669 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Ipc.c +++ b/stage0/stdlib/Lean/Data/Lsp/Ipc.c @@ -15,11 +15,11 @@ extern "C" { #endif lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(lean_object*, lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_16_(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_ipcStdioConfig___closed__1; lean_object* l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(lean_object*); lean_object* l_Lean_Lsp_Ipc_readResponseAs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -31,7 +31,6 @@ lean_object* lean_io_process_spawn(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_stdin(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__1; lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_runWith___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; lean_object* l_Lean_Lsp_Ipc_runWith(lean_object*); @@ -40,22 +39,18 @@ lean_object* l_IO_FS_Stream_writeLspMessage(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Lsp_Ipc_stdout(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_writeNotification___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_stream_of_handle(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop_match__1(lean_object*); lean_object* l_Lean_Lsp_Ipc_writeRequest(lean_object*); lean_object* l_Lean_Lsp_Ipc_writeRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readLspResponseAs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_ipcStdioConfig; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_7_(lean_object*); lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop_match__2(lean_object*); lean_object* l_Lean_Lsp_Ipc_readMessage(lean_object*, lean_object*); -lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_Lean_Lsp_Ipc_writeNotification(lean_object*); lean_object* l_Lean_Lsp_Ipc_waitForExit(lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_writeRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; lean_object* l_IO_FS_Stream_writeLspNotification___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_Ipc_waitForExit___boxed(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -420,497 +415,383 @@ lean_inc(x_15); lean_dec(x_10); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); lean_dec(x_15); x_17 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_19 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_17, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; +x_18 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(x_17); lean_dec(x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_dec(x_2); -x_20 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; +x_19 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_20); +lean_ctor_set(x_4, 0, x_19); return x_4; } else { -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); -lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_23 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(x_17, x_22); -x_24 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_25 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(x_17, x_24); -lean_dec(x_17); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_2); -x_26 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; -lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_26); -return x_4; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_20; lean_object* x_21; lean_free_object(x_4); -x_27 = lean_ctor_get(x_25, 0); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_7); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_20); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +lean_ctor_set(x_21, 0, x_25); +return x_21; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_21, 0); +x_27 = lean_ctor_get(x_21, 1); lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_23); -lean_ctor_set(x_28, 2, x_27); -x_29 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_7); -if (lean_obj_tag(x_29) == 0) -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_11); -lean_ctor_set(x_32, 1, x_28); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -lean_ctor_set(x_29, 0, x_33); -return x_29; +lean_inc(x_26); +lean_dec(x_21); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_20); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_29, 0); -x_35 = lean_ctor_get(x_29, 1); +uint8_t x_31; +lean_dec(x_20); +x_31 = !lean_is_exclusive(x_21); +if (x_31 == 0) +{ +return x_21; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +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 +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_15, 0); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_29); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_11); -lean_ctor_set(x_36, 1, x_28); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -return x_38; -} -} -else -{ -uint8_t x_39; -lean_dec(x_28); -x_39 = !lean_is_exclusive(x_29); -if (x_39 == 0) -{ -return x_29; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_29, 0); -x_41 = lean_ctor_get(x_29, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_29); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_15, 0); -lean_inc(x_43); lean_dec(x_15); -x_44 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_46 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_44, x_45); -if (lean_obj_tag(x_46) == 0) +x_36 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_37 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(x_36); +lean_dec(x_36); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_47; -lean_dec(x_44); +lean_object* x_38; lean_dec(x_2); -x_47 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; +x_38 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_47); +lean_ctor_set(x_4, 0, x_38); return x_4; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = lean_ctor_get(x_46, 0); -lean_inc(x_48); -lean_dec(x_46); -x_49 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_50 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(x_44, x_49); -x_51 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_52 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(x_44, x_51); -lean_dec(x_44); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_2); -x_53 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; -lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_53); -return x_4; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_object* x_39; lean_object* x_40; lean_free_object(x_4); -x_54 = lean_ctor_get(x_52, 0); +x_39 = lean_ctor_get(x_37, 0); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_7); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +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 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_11); +lean_ctor_set(x_43, 1, x_39); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, 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 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_11); +lean_ctor_set(x_47, 1, x_39); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, 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; +} +} +else +{ +uint8_t x_50; +lean_dec(x_39); +x_50 = !lean_is_exclusive(x_40); +if (x_50 == 0) +{ +return x_40; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_40, 0); +x_52 = lean_ctor_get(x_40, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_40); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +} +} +} +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, 1); lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_55, 0, x_48); -lean_ctor_set(x_55, 1, x_50); -lean_ctor_set(x_55, 2, x_54); -x_56 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_7); +lean_dec(x_4); +x_55 = lean_ctor_get(x_5, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_5, 1); +lean_inc(x_56); +lean_dec(x_5); +x_57 = l_Lean_Lsp_Ipc_collectDiagnostics_loop_match__2___rarg___closed__1; +x_58 = lean_string_dec_eq(x_55, x_57); +lean_dec(x_55); +if (x_58 == 0) +{ +lean_dec(x_56); +x_3 = x_54; +goto _start; +} +else +{ if (lean_obj_tag(x_56) == 0) { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_11); -lean_ctor_set(x_59, 1, x_55); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -lean_ctor_set(x_56, 0, x_60); -return x_56; +x_3 = x_54; +goto _start; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_object* x_61; x_61 = lean_ctor_get(x_56, 0); -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); lean_inc(x_61); lean_dec(x_56); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_11); -lean_ctor_set(x_63, 1, x_55); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_62); -return x_65; -} +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_63, 0, x_62); +x_64 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(x_63); +lean_dec(x_63); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_dec(x_2); +x_65 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_54); +return x_66; } else { -uint8_t x_66; -lean_dec(x_55); -x_66 = !lean_is_exclusive(x_56); -if (x_66 == 0) -{ -return x_56; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_56, 0); -x_68 = lean_ctor_get(x_56, 1); -lean_inc(x_68); +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_64, 0); lean_inc(x_67); -lean_dec(x_56); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -} -} -} -} -} -else +lean_dec(x_64); +x_68 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_54); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_70 = lean_ctor_get(x_4, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); lean_inc(x_70); -lean_dec(x_4); -x_71 = lean_ctor_get(x_5, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_5, 1); -lean_inc(x_72); -lean_dec(x_5); -x_73 = l_Lean_Lsp_Ipc_collectDiagnostics_loop_match__2___rarg___closed__1; -x_74 = lean_string_dec_eq(x_71, x_73); -lean_dec(x_71); -if (x_74 == 0) -{ -lean_dec(x_72); -x_3 = x_70; -goto _start; +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_71 = x_68; +} else { + lean_dec_ref(x_68); + x_71 = lean_box(0); +} +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_57); +lean_ctor_set(x_72, 1, x_67); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_69); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_70); +return x_74; } else { -if (lean_obj_tag(x_72) == 0) -{ -x_3 = x_70; -goto _start; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_67); +x_75 = lean_ctor_get(x_68, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_68, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_77 = x_68; +} else { + lean_dec_ref(x_68); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +} } else { -lean_object* x_77; -x_77 = lean_ctor_get(x_72, 0); -lean_inc(x_77); -lean_dec(x_72); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -lean_dec(x_77); -x_79 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_79, 0, x_78); -x_80 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_81 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_79, x_80); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_61, 0); +lean_inc(x_79); +lean_dec(x_61); +x_80 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_80, 0, x_79); +x_81 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_fromJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_885_(x_80); +lean_dec(x_80); if (lean_obj_tag(x_81) == 0) { lean_object* x_82; lean_object* x_83; -lean_dec(x_79); lean_dec(x_2); x_82 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; x_83 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_70); +lean_ctor_set(x_83, 1, x_54); return x_83; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_object* x_84; lean_object* x_85; x_84 = lean_ctor_get(x_81, 0); lean_inc(x_84); lean_dec(x_81); -x_85 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_86 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(x_79, x_85); -x_87 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_88 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(x_79, x_87); -lean_dec(x_79); -if (lean_obj_tag(x_88) == 0) +x_85 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_54); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_89; lean_object* x_90; -lean_dec(x_86); -lean_dec(x_84); -lean_dec(x_2); -x_89 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; +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_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_88 = x_85; +} else { + lean_dec_ref(x_85); + x_88 = lean_box(0); +} +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_57); +lean_ctor_set(x_89, 1, x_84); x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_70); -return x_90; +lean_ctor_set(x_90, 1, x_86); +if (lean_is_scalar(x_88)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_88; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_87); +return x_91; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_88, 0); -lean_inc(x_91); -lean_dec(x_88); -x_92 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_92, 0, x_84); -lean_ctor_set(x_92, 1, x_86); -lean_ctor_set(x_92, 2, x_91); -x_93 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_70); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_96 = x_93; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_84); +x_92 = lean_ctor_get(x_85, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_85, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_94 = x_85; } else { - lean_dec_ref(x_93); - x_96 = lean_box(0); + lean_dec_ref(x_85); + x_94 = lean_box(0); } -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_73); -lean_ctor_set(x_97, 1, x_92); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_94); -if (lean_is_scalar(x_96)) { - x_99 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_99 = x_96; -} -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_95); -return x_99; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -lean_dec(x_92); -x_100 = lean_ctor_get(x_93, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_93, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_102 = x_93; -} else { - lean_dec_ref(x_93); - x_102 = lean_box(0); -} -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(1, 2, 0); -} else { - x_103 = x_102; -} -lean_ctor_set(x_103, 0, x_100); -lean_ctor_set(x_103, 1, x_101); -return x_103; -} -} -} -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_77, 0); -lean_inc(x_104); -lean_dec(x_77); -x_105 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_105, 0, x_104); -x_106 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_107 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_105, x_106); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_105); -lean_dec(x_2); -x_108 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_70); -return x_109; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_110 = lean_ctor_get(x_107, 0); -lean_inc(x_110); -lean_dec(x_107); -x_111 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_112 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__1(x_105, x_111); -x_113 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_114 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPublishDiagnosticsParams___spec__2(x_105, x_113); -lean_dec(x_105); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; -lean_dec(x_112); -lean_dec(x_110); -lean_dec(x_2); -x_115 = l_Lean_Lsp_Ipc_collectDiagnostics_loop___closed__2; -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_70); -return x_116; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_114, 0); -lean_inc(x_117); -lean_dec(x_114); -x_118 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_118, 0, x_110); -lean_ctor_set(x_118, 1, x_112); -lean_ctor_set(x_118, 2, x_117); -x_119 = l_Lean_Lsp_Ipc_collectDiagnostics_loop(x_1, x_2, x_70); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_122 = x_119; -} else { - lean_dec_ref(x_119); - x_122 = lean_box(0); -} -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_73); -lean_ctor_set(x_123, 1, x_118); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_120); -if (lean_is_scalar(x_122)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_122; -} -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_121); -return x_125; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_118); -x_126 = lean_ctor_get(x_119, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_119, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_128 = x_119; -} else { - lean_dec_ref(x_119); - x_128 = lean_box(0); -} -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); -} else { - x_129 = x_128; -} -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; + x_95 = x_94; } +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } @@ -920,95 +801,95 @@ return x_129; } case 2: { -uint8_t x_130; -x_130 = !lean_is_exclusive(x_4); -if (x_130 == 0) +uint8_t x_96; +x_96 = !lean_is_exclusive(x_4); +if (x_96 == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; -x_131 = lean_ctor_get(x_4, 1); -x_132 = lean_ctor_get(x_4, 0); -lean_dec(x_132); -x_133 = lean_ctor_get(x_5, 0); -lean_inc(x_133); +lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_97 = lean_ctor_get(x_4, 1); +x_98 = lean_ctor_get(x_4, 0); +lean_dec(x_98); +x_99 = lean_ctor_get(x_5, 0); +lean_inc(x_99); lean_dec(x_5); -x_134 = l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_16_(x_133, x_1); -lean_dec(x_133); -if (x_134 == 0) +x_100 = l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_16_(x_99, x_1); +lean_dec(x_99); +if (x_100 == 0) { lean_free_object(x_4); -x_3 = x_131; +x_3 = x_97; goto _start; } else { -lean_object* x_136; +lean_object* x_102; lean_dec(x_2); -x_136 = lean_box(0); -lean_ctor_set(x_4, 0, x_136); +x_102 = lean_box(0); +lean_ctor_set(x_4, 0, x_102); return x_4; } } else { -lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_137 = lean_ctor_get(x_4, 1); -lean_inc(x_137); +lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_103 = lean_ctor_get(x_4, 1); +lean_inc(x_103); lean_dec(x_4); -x_138 = lean_ctor_get(x_5, 0); -lean_inc(x_138); +x_104 = lean_ctor_get(x_5, 0); +lean_inc(x_104); lean_dec(x_5); -x_139 = l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_16_(x_138, x_1); -lean_dec(x_138); -if (x_139 == 0) +x_105 = l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_beqRequestID____x40_Lean_Data_JsonRpc___hyg_16_(x_104, x_1); +lean_dec(x_104); +if (x_105 == 0) { -x_3 = x_137; +x_3 = x_103; goto _start; } else { -lean_object* x_141; lean_object* x_142; +lean_object* x_107; lean_object* x_108; lean_dec(x_2); -x_141 = lean_box(0); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_137); -return x_142; +x_107 = lean_box(0); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_103); +return x_108; } } } default: { -lean_object* x_143; +lean_object* x_109; lean_dec(x_5); -x_143 = lean_ctor_get(x_4, 1); -lean_inc(x_143); +x_109 = lean_ctor_get(x_4, 1); +lean_inc(x_109); lean_dec(x_4); -x_3 = x_143; +x_3 = x_109; goto _start; } } } else { -uint8_t x_145; +uint8_t x_111; lean_dec(x_2); -x_145 = !lean_is_exclusive(x_4); -if (x_145 == 0) +x_111 = !lean_is_exclusive(x_4); +if (x_111 == 0) { return x_4; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_4, 0); -x_147 = lean_ctor_get(x_4, 1); -lean_inc(x_147); -lean_inc(x_146); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_4, 0); +x_113 = lean_ctor_get(x_4, 1); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_4); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -return x_148; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } @@ -1025,26 +906,16 @@ return x_4; lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Lsp_Ipc_collectDiagnostics___spec__3(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; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -x_3 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_4 = lean_alloc_ctor(0, 2, 0); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_7_(x_1); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_2); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_4); -lean_ctor_set(x_6, 1, x_5); -x_7 = l_Lean_Json_mkObj(x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -return x_10; +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { diff --git a/stage0/stdlib/Lean/Data/Lsp/TextSync.c b/stage0/stdlib/Lean/Data/Lsp/TextSync.c index f34c7b58cc..e368f48033 100644 --- a/stage0/stdlib/Lean/Data/Lsp/TextSync.c +++ b/stage0/stdlib/Lean/Data/Lsp/TextSync.c @@ -14,112 +14,125 @@ extern "C" { #endif lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__2; +lean_object* l_Lean_Lsp_instToJsonDidOpenTextDocumentParams___closed__1; +extern lean_object* l_Lean_instFromJsonOption___rarg___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1___boxed(lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__4; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentContentChangeEvent___boxed(lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3; -lean_object* l_Lean_Lsp_instToJsonSaveOptions(lean_object*); +lean_object* l_Lean_Lsp_instToJsonSaveOptions; lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind_match__1(lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; lean_object* l_Lean_Json_getNat_x3f(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___boxed(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_append___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335_(lean_object*); extern lean_object* l_Lean_Parser_Tactic_change___closed__1; lean_object* lean_array_get_size(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__2; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115_(lean_object*); lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__3; lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_Lsp_instToJsonSaveOptions___boxed(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions(lean_object*); -lean_object* l_Lean_Lsp_DidCloseTextDocumentParams_hasToJson(lean_object*); +lean_object* l_Lean_Lsp_instToJsonSaveOptions___closed__1; +lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____boxed(lean_object*); extern lean_object* l_Int_Int_pow___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__1; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023_(lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonDidCloseTextDocumentParams; +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419_(lean_object*); lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__7; lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind(uint8_t); -lean_object* l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams; lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind_match__1(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__6; lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_DidChangeTextDocumentParams_hasToJson(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonRange___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1; -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1; lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384_(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Lsp_TextDocumentContentChangeEvent_hasToJson_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___boxed(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonSaveOptions___boxed(lean_object*); -lean_object* l_Lean_JsonNumber_fromNat(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__5; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_799_(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315_(lean_object*); lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind___closed__1; lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind___closed__2; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250_(lean_object*); lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Lsp_instToJsonDidChangeTextDocumentParams; lean_object* l_Lean_Lsp_TextDocumentSyncOptions_save_x3f___default; lean_object* l_Lean_Lsp_instFromJsonSaveOptions___closed__1; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1(lean_object*, lean_object*); extern lean_object* l_Int_instInhabitedInt___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____boxed(lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____closed__1; lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind___closed__3; -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2; +lean_object* l_Lean_Lsp_instToJsonDidCloseTextDocumentParams___closed__1; +lean_object* l_Lean_Lsp_instToJsonDidChangeTextDocumentParams___closed__1; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_364_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; -lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___boxed(lean_object*); lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__5; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384____boxed(lean_object*); lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1; -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_63_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentContentChangeEvent(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____boxed(lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Json_getBool_x3f(lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1; lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__1; -extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind___boxed(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__2(size_t, size_t, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; -lean_object* l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____boxed(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___boxed(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__2; -lean_object* l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonDidOpenTextDocumentParams(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851_(lean_object*); +lean_object* l_Lean_Lsp_instToJsonDidOpenTextDocumentParams; +lean_object* l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams; lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__6; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; lean_object* l_Lean_Lsp_TextDocumentContentChangeEvent_hasToJson(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_TextDocumentChangeRegistrationOptions_documentSelector_x3f___default; -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; -lean_object* l_Lean_Lsp_instFromJsonSaveOptions(lean_object*); +lean_object* l_Lean_Lsp_instFromJsonSaveOptions; lean_object* lean_nat_to_int(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Lsp_TextDocumentContentChangeEvent_hasToJson_match__1(lean_object*); -lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions(lean_object*); +lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncKind_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: @@ -470,114 +483,55 @@ x_3 = l_Lean_Lsp_instToJsonTextDocumentSyncKind(x_2); return x_3; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_63_(lean_object* x_1) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985_(x_1); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Lean_Json_mkObj(x_6); +return x_7; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDidOpenTextDocumentParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_63_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDidOpenTextDocumentParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonDidOpenTextDocumentParams___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____spec__1(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_Lean_Lsp_instFromJsonLocation___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_1023_(x_3); lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; -x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -lean_dec(x_7); -lean_dec(x_3); -x_10 = lean_box(0); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonPosition___spec__1(x_3, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_3); -x_14 = lean_box(0); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_17 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_3, x_16); -lean_dec(x_3); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_7); -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; -x_20 = lean_ctor_get(x_17, 0); -x_21 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_21, 0, x_7); -lean_ctor_set(x_21, 1, x_11); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_20); -lean_ctor_set(x_17, 0, x_21); -return x_17; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_17, 0); -lean_inc(x_22); -lean_dec(x_17); -x_23 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_23, 0, x_7); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_15); -lean_ctor_set(x_23, 3, x_22); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -return x_24; +return x_4; } } -} -} -} -} -} -lean_object* l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -605,86 +559,39 @@ return x_7; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams(x_1); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonDidOpenTextDocumentParams(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___closed__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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 3); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_6, 0, x_2); -x_7 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_9, 0, x_3); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = l_Lean_JsonNumber_fromNat(x_4); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -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(3, 1, 0); -lean_ctor_set(x_16, 0, x_5); -x_17 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_15); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_8); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, 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_19); -x_28 = l_Lean_Json_mkObj(x_27); -return x_28; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_TextDocumentChangeRegistrationOptions_documentSelector_x3f___default() { @@ -695,7 +602,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -758,7 +665,7 @@ return x_16; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____closed__1() { _start: { lean_object* x_1; @@ -766,81 +673,110 @@ x_1 = lean_mk_string("syncKind"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115_(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___spec__1(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1312____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentRegistrationOptions____x40_Lean_Data_Lsp_Basic___hyg_1332____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) { -lean_object* x_6; +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else +x_6 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1(x_1, x_6); +if (lean_obj_tag(x_7) == 0) { -uint8_t x_7; -x_7 = !lean_is_exclusive(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 0); -x_9 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_9, 0, x_3); -x_10 = lean_unbox(x_8); -lean_dec(x_8); -lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_10); -lean_ctor_set(x_5, 0, x_9); -return x_5; -} -else -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_5, 0); -lean_inc(x_11); +lean_object* x_8; lean_dec(x_5); -x_12 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_12, 0, x_3); -x_13 = lean_unbox(x_11); -lean_dec(x_11); -lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_13); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_12); -return x_14; +x_8 = lean_box(0); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_11, 0, x_5); +x_12 = lean_unbox(x_10); +lean_dec(x_10); +lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_12); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_7, 0); +lean_inc(x_13); +lean_dec(x_7); +x_14 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_14, 0, x_5); +x_15 = lean_unbox(x_13); +lean_dec(x_13); +lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_15); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_14); +return x_16; } } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions(x_1); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115_(x_1); lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1; +return x_1; +} +} lean_object* l_Lean_Lsp_instFromJsonTextDocumentContentChangeEvent(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_1, x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_4); if (lean_obj_tag(x_3) == 0) { @@ -969,124 +905,208 @@ _start: { if (lean_obj_tag(x_1) == 0) { -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; 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; 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_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; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); -x_4 = lean_ctor_get(x_2, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = l_Lean_JsonNumber_fromNat(x_5); -x_7 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_7, 0, x_6); -x_8 = l_Lean_Lsp_instFromJsonPosition___closed__1; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_2); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_3); +x_8 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); -x_10 = lean_ctor_get(x_4, 1); -lean_inc(x_10); -lean_dec(x_4); -x_11 = l_Lean_JsonNumber_fromNat(x_10); -x_12 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_12, 0, x_11); -x_13 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_9); -lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_Json_mkObj(x_17); -x_19 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = lean_ctor_get(x_2, 1); -lean_inc(x_21); -lean_dec(x_2); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = l_Lean_JsonNumber_fromNat(x_22); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_8); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_dec(x_21); -x_27 = l_Lean_JsonNumber_fromNat(x_26); -x_28 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_13); -lean_ctor_set(x_29, 1, x_28); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_15); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_25); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_Json_mkObj(x_31); -x_33 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_15); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_20); -lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_Json_mkObj(x_36); -x_38 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_40, 0, x_3); -x_41 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_15); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_39); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Json_mkObj(x_44); -return x_45; +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_6); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; } else { -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; -x_46 = lean_ctor_get(x_1, 0); -lean_inc(x_46); +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_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); lean_dec(x_1); -x_47 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_47, 0, x_46); -x_48 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = lean_box(0); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_Json_mkObj(x_51); -return x_52; +x_15 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_Json_mkObj(x_19); +return x_20; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__2(size_t x_1, size_t x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; +x_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = 1; +x_11 = x_2 + x_10; +if (lean_obj_tag(x_9) == 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; 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; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_328_(x_12); +x_15 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_17, 0, x_13); +x_18 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_Json_mkObj(x_22); +x_24 = x_23; +x_25 = lean_array_uset(x_8, x_2, x_24); +x_2 = x_11; +x_3 = x_25; +goto _start; +} +else +{ +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_27 = lean_ctor_get(x_9, 0); +lean_inc(x_27); +lean_dec(x_9); +x_28 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +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_Json_mkObj(x_32); +x_34 = x_33; +x_35 = lean_array_uset(x_8, x_2, x_34); +x_2 = x_11; +x_3 = x_35; +goto _start; +} +} +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("contentChanges"); +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250_(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; size_t x_8; size_t 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_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_851_(x_2); +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_9 = 0; +x_10 = x_6; +x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____spec__1(x_8, x_9, x_10); +x_12 = x_11; +x_13 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1; +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_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); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_5); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_Json_mkObj(x_18); +return x_19; +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____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___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDidChangeTextDocumentParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDidChangeTextDocumentParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonDidChangeTextDocumentParams___closed__1; +return x_1; +} +} +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__2(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1106,9 +1126,9 @@ x_7 = lean_array_uget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_uset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_12 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__2(x_10, x_11); -x_13 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; +x_11 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__2; +x_12 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__2(x_10, x_11); +x_13 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentItem____x40_Lean_Data_Lsp_Basic___hyg_985____closed__2; x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_10, x_13); lean_dec(x_10); if (lean_obj_tag(x_12) == 0) @@ -1171,7 +1191,7 @@ goto _start; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -1187,7 +1207,7 @@ x_6 = lean_usize_of_nat(x_5); lean_dec(x_5); x_7 = 0; x_8 = x_4; -x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__2(x_6, x_7, x_8); +x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__2(x_6, x_7, x_8); x_10 = x_9; return x_10; } @@ -1200,20 +1220,12 @@ return x_11; } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("contentChanges"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_943____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1226,8 +1238,8 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(x_1, x_6); +x_6 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1; +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -1266,7 +1278,7 @@ return x_14; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____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; @@ -1274,259 +1286,46 @@ 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_Lsp_instFromJsonDidChangeTextDocumentParams___spec__2(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__2(x_4, x_5, x_3); return x_6; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams(x_1); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1() { _start: { -uint8_t x_5; -x_5 = x_3 < x_2; -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_1); -x_6 = x_4; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; -x_7 = lean_array_uget(x_4, x_3); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_uset(x_4, x_3, x_8); -x_10 = x_7; -x_11 = 1; -x_12 = x_3 + x_11; -if (lean_obj_tag(x_10) == 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; 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; 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; 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_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = l_Lean_JsonNumber_fromNat(x_16); -x_18 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = lean_ctor_get(x_15, 1); -lean_inc(x_21); -lean_dec(x_15); -x_22 = l_Lean_JsonNumber_fromNat(x_21); -x_23 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Lsp_instFromJsonPosition___closed__2; -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -lean_inc(x_1); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_1); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Json_mkObj(x_27); -x_29 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_498____closed__1; -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = lean_ctor_get(x_13, 1); -lean_inc(x_31); -lean_dec(x_13); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = l_Lean_JsonNumber_fromNat(x_32); -x_34 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_19); -lean_ctor_set(x_35, 1, x_34); -x_36 = lean_ctor_get(x_31, 1); -lean_inc(x_36); -lean_dec(x_31); -x_37 = l_Lean_JsonNumber_fromNat(x_36); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_24); -lean_ctor_set(x_39, 1, x_38); -lean_inc(x_1); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_1); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_35); -lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_Json_mkObj(x_41); -x_43 = l_Lean_Lsp_instFromJsonRange___closed__1; -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -lean_inc(x_1); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_30); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_Json_mkObj(x_46); -x_48 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_50, 0, x_14); -x_51 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -lean_inc(x_1); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_1); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Json_mkObj(x_54); -x_56 = x_55; -x_57 = lean_array_uset(x_9, x_3, x_56); -x_3 = x_12; -x_4 = x_57; -goto _start; -} -else -{ -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; -x_59 = lean_ctor_get(x_10, 0); -lean_inc(x_59); -lean_dec(x_10); -x_60 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -lean_inc(x_1); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_1); -x_64 = l_Lean_Json_mkObj(x_63); -x_65 = x_64; -x_66 = lean_array_uset(x_9, x_3, x_65); -x_3 = x_12; -x_4 = x_66; -goto _start; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276____boxed), 1, 0); +return x_1; } } -} -} -lean_object* l_Lean_Lsp_DidChangeTextDocumentParams_hasToJson(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams() { _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; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_dec(x_2); -x_5 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_6 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(x_5, x_4); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_3); -x_8 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_List_append___rarg(x_6, x_11); -x_13 = l_Lean_Json_mkObj(x_12); -x_14 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -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_ctor_get(x_1, 1); -lean_inc(x_16); -lean_dec(x_1); -x_17 = lean_array_get_size(x_16); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_19 = 0; -x_20 = x_16; -x_21 = l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1(x_10, x_18, x_19, x_20); -x_22 = x_21; -x_23 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, 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_10); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_15); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Json_mkObj(x_27); -return x_28; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; +return x_1; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___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; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1(x_1, x_5, x_6, x_4); -return x_7; -} -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(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_Lean_Json_getBool_x3f(x_3); -lean_dec(x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonSaveOptions___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1() { _start: { lean_object* x_1; @@ -1534,66 +1333,14 @@ x_1 = lean_mk_string("includeText"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonSaveOptions(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonSaveOptions___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_1, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -lean_dec(x_3); -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_6); -return x_7; -} -} -} -} -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Lsp_instFromJsonSaveOptions___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonSaveOptions(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Lsp_instToJsonSaveOptions(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315_(lean_object* x_1) { _start: { 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; x_2 = lean_alloc_ctor(1, 0, 1); x_3 = lean_unbox(x_1); lean_ctor_set_uint8(x_2, 0, x_3); -x_4 = l_Lean_Lsp_instFromJsonSaveOptions___closed__1; +x_4 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1; x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_2); @@ -1605,21 +1352,47 @@ x_8 = l_Lean_Json_mkObj(x_7); return x_8; } } -lean_object* l_Lean_Lsp_instToJsonSaveOptions___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonSaveOptions(x_1); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instToJsonSaveOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonSaveOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonSaveOptions___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(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_Lean_Json_getBool_x3f(x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1647,22 +1420,47 @@ return x_7; } } } -lean_object* l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___boxed(lean_object* x_1) { +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams(x_1); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_DidCloseTextDocumentParams_hasToJson(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonSaveOptions___closed__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; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -x_3 = l_Lean_Lsp_instFromJsonLocation___closed__1; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonSaveOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonSaveOptions___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_364_(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; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_799_(x_1); +x_3 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_2); @@ -1671,15 +1469,81 @@ x_6 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_5); x_7 = l_Lean_Json_mkObj(x_6); -x_8 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_5); -x_11 = l_Lean_Json_mkObj(x_10); -return x_11; +return x_7; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDidCloseTextDocumentParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_364_), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonDidCloseTextDocumentParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonDidCloseTextDocumentParams___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentEdit____x40_Lean_Data_Lsp_Basic___hyg_917____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109____spec__1(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___closed__1; +return x_1; } } static lean_object* _init_l_Lean_Lsp_TextDocumentSyncOptions_save_x3f___default() { @@ -1690,13 +1554,209 @@ x_1 = lean_box(0); return x_1; } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1() { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_1; +x_1 = lean_mk_string("openClose"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("willSave"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("willSaveWaitUntil"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("save"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__5; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419_(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; uint8_t 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; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1); +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 2); +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 3); +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_7, 0, x_2); +x_8 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_10, 0, x_4); +x_11 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_13, 0, x_5); +x_14 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3; +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_box(0); +switch (x_3) { +case 0: +{ +lean_object* x_37; +x_37 = l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__2; +x_17 = x_37; +goto block_36; +} +case 1: +{ +lean_object* x_38; +x_38 = l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__4; +x_17 = x_38; +goto block_36; +} +default: +{ +lean_object* x_39; +x_39 = l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__7; +x_17 = x_39; +goto block_36; +} +} +block_36: +{ +lean_object* x_18; lean_object* x_19; +x_18 = l_Lean_Parser_Tactic_change___closed__1; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__6; +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_12); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_19); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_9); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_Json_mkObj(x_24); +return x_25; +} +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; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_26 = lean_ctor_get(x_6, 0); +x_27 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315_(x_26); +x_28 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_16); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_15); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_12); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_19); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_9); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_Json_mkObj(x_34); +return x_35; +} +} +} +} +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1; +return x_1; +} +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; x_3 = l_Lean_Json_getObjValD(x_1, x_2); -x_4 = l_Lean_Lsp_instFromJsonSaveOptions___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_3, x_4); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = l_Lean_instFromJsonOption___rarg___closed__1; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335_(x_3); lean_dec(x_3); if (lean_obj_tag(x_5) == 0) { @@ -1710,59 +1770,33 @@ uint8_t x_7; x_7 = !lean_is_exclusive(x_5); if (x_7 == 0) { -return x_5; +lean_object* x_8; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; } else { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_5, 0); -lean_inc(x_8); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); lean_dec(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_8); -return x_9; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +return x_11; } } } } -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openClose"); -return x_1; } -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("willSave"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("willSaveWaitUntil"); -return x_1; -} -} -static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("save"); -return x_1; -} -} -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -1776,7 +1810,7 @@ x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); x_6 = l_Lean_Parser_Tactic_change___closed__1; -x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___spec__1(x_1, x_6); +x_7 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____spec__1(x_1, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; @@ -1790,8 +1824,8 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); lean_dec(x_7); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2; -x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_1, x_10); +x_10 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2; +x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(x_1, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; @@ -1806,8 +1840,8 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3; -x_15 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonSaveOptions___spec__1(x_1, x_14); +x_14 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3; +x_15 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_335____spec__1(x_1, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; @@ -1819,39 +1853,53 @@ return x_16; } else { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4; +x_19 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____spec__1(x_1, x_18); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; -x_18 = lean_ctor_get(x_15, 0); -x_19 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -x_20 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(x_1, x_19); -x_21 = lean_alloc_ctor(0, 1, 4); -lean_ctor_set(x_21, 0, x_20); -x_22 = lean_unbox(x_5); -lean_dec(x_5); -lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_22); -x_23 = lean_unbox(x_9); -lean_dec(x_9); -lean_ctor_set_uint8(x_21, sizeof(void*)*1 + 1, x_23); -x_24 = lean_unbox(x_13); +lean_object* x_20; +lean_dec(x_17); lean_dec(x_13); -lean_ctor_set_uint8(x_21, sizeof(void*)*1 + 2, x_24); -x_25 = lean_unbox(x_18); -lean_dec(x_18); -lean_ctor_set_uint8(x_21, sizeof(void*)*1 + 3, x_25); -lean_ctor_set(x_15, 0, x_21); -return x_15; +lean_dec(x_9); +lean_dec(x_5); +x_20 = lean_box(0); +return x_20; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; -x_26 = lean_ctor_get(x_15, 0); -lean_inc(x_26); -lean_dec(x_15); -x_27 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -x_28 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(x_1, x_27); +uint8_t x_21; +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; +x_22 = lean_ctor_get(x_19, 0); +x_23 = lean_alloc_ctor(0, 1, 4); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_unbox(x_5); +lean_dec(x_5); +lean_ctor_set_uint8(x_23, sizeof(void*)*1, x_24); +x_25 = lean_unbox(x_9); +lean_dec(x_9); +lean_ctor_set_uint8(x_23, sizeof(void*)*1 + 1, x_25); +x_26 = lean_unbox(x_13); +lean_dec(x_13); +lean_ctor_set_uint8(x_23, sizeof(void*)*1 + 2, x_26); +x_27 = lean_unbox(x_17); +lean_dec(x_17); +lean_ctor_set_uint8(x_23, sizeof(void*)*1 + 3, x_27); +lean_ctor_set(x_19, 0, x_23); +return x_19; +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); x_29 = lean_alloc_ctor(0, 1, 4); lean_ctor_set(x_29, 0, x_28); x_30 = lean_unbox(x_5); @@ -1863,8 +1911,8 @@ lean_ctor_set_uint8(x_29, sizeof(void*)*1 + 1, x_31); x_32 = lean_unbox(x_13); lean_dec(x_13); lean_ctor_set_uint8(x_29, sizeof(void*)*1 + 2, x_32); -x_33 = lean_unbox(x_26); -lean_dec(x_26); +x_33 = lean_unbox(x_17); +lean_dec(x_17); lean_ctor_set_uint8(x_29, sizeof(void*)*1 + 3, x_33); x_34 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_34, 0, x_29); @@ -1876,201 +1924,40 @@ return x_34; } } } -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +} +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentSyncOptions___spec__1(x_1, x_2); +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions(x_1); +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1(lean_object* x_1, lean_object* x_2) { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1() { _start: { -lean_object* x_3; -x_3 = lean_box(0); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_alloc_ctor(1, 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; uint8_t 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_7 = lean_ctor_get(x_2, 0); -x_8 = lean_alloc_ctor(1, 0, 1); -x_9 = lean_unbox(x_7); -lean_ctor_set_uint8(x_8, 0, x_9); -x_10 = l_Lean_Lsp_instFromJsonSaveOptions___closed__1; -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(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_3); -x_13 = l_Lean_Json_mkObj(x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_1); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_3); -return x_15; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_463____boxed), 1, 0); +return x_1; } } -} -static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1() { +static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_change___closed__1; -x_2 = l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__2; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_change___closed__1; -x_2 = l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__4; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Tactic_change___closed__1; -x_2 = l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__7; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions(lean_object* x_1) { -_start: -{ -uint8_t x_2; uint8_t x_3; uint8_t 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; 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_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); -x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1); -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 2); -x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 3); -x_6 = lean_ctor_get(x_1, 0); -x_7 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4; -x_8 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1(x_7, x_6); -x_9 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_9, 0, x_2); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_12, 0, x_4); -x_13 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_15, 0, x_5); -x_16 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_14); -lean_ctor_set(x_20, 1, x_19); -switch (x_3) { -case 0: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1; -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_11); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_List_append___rarg(x_8, x_23); -x_25 = l_Lean_Json_mkObj(x_24); -return x_25; -} -case 1: -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_20); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_11); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_List_append___rarg(x_8, x_28); -x_30 = l_Lean_Json_mkObj(x_29); -return x_30; -} -default: -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3; -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_20); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_11); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_List_append___rarg(x_8, x_33); -x_35 = l_Lean_Json_mkObj(x_34); -return x_35; -} -} -} -} -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonTextDocumentSyncOptions___spec__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncOptions___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonTextDocumentSyncOptions(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1; +return x_1; } } lean_object* initialize_Init(lean_object*); @@ -2110,30 +1997,72 @@ l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__6 = _init_l_Lean_Lsp_instToJ lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__6); l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__7 = _init_l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__7(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__7); +l_Lean_Lsp_instToJsonDidOpenTextDocumentParams___closed__1 = _init_l_Lean_Lsp_instToJsonDidOpenTextDocumentParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDidOpenTextDocumentParams___closed__1); +l_Lean_Lsp_instToJsonDidOpenTextDocumentParams = _init_l_Lean_Lsp_instToJsonDidOpenTextDocumentParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDidOpenTextDocumentParams); +l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___closed__1 = _init_l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___closed__1); +l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams = _init_l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDidOpenTextDocumentParams); l_Lean_Lsp_TextDocumentChangeRegistrationOptions_documentSelector_x3f___default = _init_l_Lean_Lsp_TextDocumentChangeRegistrationOptions_documentSelector_x3f___default(); lean_mark_persistent(l_Lean_Lsp_TextDocumentChangeRegistrationOptions_documentSelector_x3f___default); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____closed__1 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonTextDocumentChangeRegistrationOptions____x40_Lean_Data_Lsp_TextSync___hyg_115____closed__1); l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions___closed__1); +l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions = _init_l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentChangeRegistrationOptions); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250____closed__1); +l_Lean_Lsp_instToJsonDidChangeTextDocumentParams___closed__1 = _init_l_Lean_Lsp_instToJsonDidChangeTextDocumentParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDidChangeTextDocumentParams___closed__1); +l_Lean_Lsp_instToJsonDidChangeTextDocumentParams = _init_l_Lean_Lsp_instToJsonDidChangeTextDocumentParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDidChangeTextDocumentParams); l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1 = _init_l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1); +l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams = _init_l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonSaveOptions____x40_Lean_Data_Lsp_TextSync___hyg_315____closed__1); +l_Lean_Lsp_instToJsonSaveOptions___closed__1 = _init_l_Lean_Lsp_instToJsonSaveOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonSaveOptions___closed__1); +l_Lean_Lsp_instToJsonSaveOptions = _init_l_Lean_Lsp_instToJsonSaveOptions(); +lean_mark_persistent(l_Lean_Lsp_instToJsonSaveOptions); l_Lean_Lsp_instFromJsonSaveOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonSaveOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonSaveOptions___closed__1); +l_Lean_Lsp_instFromJsonSaveOptions = _init_l_Lean_Lsp_instFromJsonSaveOptions(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonSaveOptions); +l_Lean_Lsp_instToJsonDidCloseTextDocumentParams___closed__1 = _init_l_Lean_Lsp_instToJsonDidCloseTextDocumentParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDidCloseTextDocumentParams___closed__1); +l_Lean_Lsp_instToJsonDidCloseTextDocumentParams = _init_l_Lean_Lsp_instToJsonDidCloseTextDocumentParams(); +lean_mark_persistent(l_Lean_Lsp_instToJsonDidCloseTextDocumentParams); +l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___closed__1 = _init_l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams___closed__1); +l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams = _init_l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonDidCloseTextDocumentParams); l_Lean_Lsp_TextDocumentSyncOptions_save_x3f___default = _init_l_Lean_Lsp_TextDocumentSyncOptions_save_x3f___default(); lean_mark_persistent(l_Lean_Lsp_TextDocumentSyncOptions_save_x3f___default); -l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1); -l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__2); -l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3 = _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__3); -l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4 = _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4(); -lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__4); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__1); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__2); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__3); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__4); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__5 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__5(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__5); +l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__6 = _init_l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__6(); +lean_mark_persistent(l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonTextDocumentSyncOptions____x40_Lean_Data_Lsp_TextSync___hyg_419____closed__6); l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1(); lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__1); -l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2 = _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2(); -lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__2); -l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3 = _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3(); -lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentSyncOptions___closed__3); +l_Lean_Lsp_instToJsonTextDocumentSyncOptions = _init_l_Lean_Lsp_instToJsonTextDocumentSyncOptions(); +lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentSyncOptions); +l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentSyncOptions___closed__1); +l_Lean_Lsp_instFromJsonTextDocumentSyncOptions = _init_l_Lean_Lsp_instFromJsonTextDocumentSyncOptions(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentSyncOptions); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Data/Lsp/Workspace.c b/stage0/stdlib/Lean/Data/Lsp/Workspace.c index dd7595caa7..87c271bc35 100644 --- a/stage0/stdlib/Lean/Data/Lsp/Workspace.c +++ b/stage0/stdlib/Lean/Data/Lsp/Workspace.c @@ -13,16 +13,20 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder; +lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9_(lean_object*); lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder___boxed(lean_object*); -lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder___boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1; lean_object* l_Lean_Json_mkObj(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; -lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35____boxed(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35_(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____boxed(lean_object*); +lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder; lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(lean_object*, lean_object*); -static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1() { +static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1() { _start: { lean_object* x_1; @@ -30,12 +34,68 @@ x_1 = lean_mk_string("name"); return x_1; } } -lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9_(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; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_4 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_4, 0, x_2); +x_5 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +lean_inc(x_3); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_3); +x_8 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_6); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Json_mkObj(x_12); +return x_13; +} +} +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9_(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceFolder() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1; +return x_1; +} +} +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_2); +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_458____closed__1; +x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_484____spec__1(x_1, x_2); if (lean_obj_tag(x_3) == 0) { lean_object* x_4; @@ -48,7 +108,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); lean_dec(x_3); -x_6 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; +x_6 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1; x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_1, x_6); if (lean_obj_tag(x_7) == 0) { @@ -88,53 +148,29 @@ return x_14; } } } -lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35____boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Lsp_instFromJsonWorkspaceFolder(x_1); +x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35_(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__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; -x_2 = lean_ctor_get(x_1, 0); -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -lean_inc(x_3); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_3); -x_8 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_6); -lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Json_mkObj(x_12); -return x_13; +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_35____boxed), 1, 0); +return x_1; } } -lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder___boxed(lean_object* x_1) { +static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceFolder() { _start: { -lean_object* x_2; -x_2 = l_Lean_Lsp_instToJsonWorkspaceFolder(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_1; +x_1 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1; +return x_1; } } lean_object* initialize_Init(lean_object*); @@ -154,8 +190,16 @@ lean_dec_ref(res); res = initialize_Lean_Data_Json(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1(); +lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_9____closed__1); +l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1 = _init_l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1); +l_Lean_Lsp_instToJsonWorkspaceFolder = _init_l_Lean_Lsp_instToJsonWorkspaceFolder(); +lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceFolder); l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1(); lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1); +l_Lean_Lsp_instFromJsonWorkspaceFolder = _init_l_Lean_Lsp_instFromJsonWorkspaceFolder(); +lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceFolder); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 474fb0203f..d8dff82e7b 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -19,6 +19,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__18___boxed(lean_object**); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_getQuotContent___closed__1; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__16___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*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__7___rarg(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__17; @@ -37,7 +38,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepF extern lean_object* l_Array_term_____x5b___x3a___x5d___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__2; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__21; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__1; lean_object* l_Lean_addTrace___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__8; extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; @@ -49,7 +49,6 @@ extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__9; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__27; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); extern lean_object* l_instReprOption___rarg___closed__1; @@ -62,11 +61,9 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__12; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937____closed__1; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2; -lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7; lean_object* l_List_head_x21___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__26; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_3356____closed__35; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__4; @@ -80,7 +77,6 @@ extern lean_object* l_term_x5b___x5d___closed__9; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_2137____closed__3; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__6; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__23; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__26; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__17; extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__2; @@ -88,10 +84,12 @@ extern lean_object* l_Lean_identKind___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__9___closed__6; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113____closed__1; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__4; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__5___rarg(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138____closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___lambda__1___closed__5; @@ -111,7 +109,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__17; extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__59; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987____closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__9; lean_object* l_Lean_Syntax_antiquotSuffixSplice_x3f(lean_object*); lean_object* l_List_format___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__9(lean_object*); @@ -125,20 +122,21 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__11; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__15; lean_object* l_Lean_Elab_Term_Quotation_mkTuple_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__12; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__18; extern lean_object* l_Lean_identKind___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__8; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__7; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__19___boxed(lean_object**); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133____closed__1; extern lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__1; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__10; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__13; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__24; @@ -147,6 +145,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_doElem_quot___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__2; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__4(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; @@ -169,19 +168,20 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__14; lean_object* l_List_append___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__5; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_10172____closed__9; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__23; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__27; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__7; uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__10(lean_object*, size_t, lean_object*, size_t, size_t); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__7; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__21; @@ -193,6 +193,7 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Qu lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_adaptRhs_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21____; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__69; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__5; lean_object* l_Lean_Elab_Term_Quotation_mkTuple_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__2; @@ -207,6 +208,7 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__5(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__2(lean_object*); extern lean_object* l_termDepIfThenElse___closed__24; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__3; @@ -219,7 +221,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lea lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__7___boxed(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__8(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__15; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25; lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5; lean_object* l_ReaderT_pure___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1(lean_object*); @@ -231,6 +232,7 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Qu extern lean_object* l_Std_Format_sbracket___closed__4; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__10; extern lean_object* l_myMacro____x40_Init_Notation___hyg_6051____closed__4; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__27; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__23; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___lambda__2___boxed(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__3(size_t, size_t, lean_object*); @@ -239,9 +241,9 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__11(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepFromSplice_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__13; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -259,11 +261,11 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__13; lean_object* l_ReaderT_pure___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__14; extern lean_object* l_myMacro____x40_Init_Notation___hyg_8366____closed__4; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__17; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__4; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29; uint8_t l_USize_decLt(size_t, size_t); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82; extern lean_object* l_Lean_instToMessageDataOption___rarg___closed__4; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__12___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*, lean_object*, lean_object*, lean_object*); @@ -271,20 +273,19 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___lambda__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_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__5(lean_object*); @@ -294,12 +295,11 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_109____spec__1(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__3; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__9(lean_object*, lean_object*, size_t, size_t); extern lean_object* l_myMacro____x40_Init_Notation___hyg_1340____closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__7; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982____closed__1; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932____closed__1; lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__1___closed__3; lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*); @@ -313,14 +313,14 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Qu lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_zip___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__72; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__30; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___lambda__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__6(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__10; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__5; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__46; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -350,10 +350,8 @@ extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_3356____closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__8___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__29; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952____closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__6; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_911____closed__3; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962____closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__7; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__9___closed__5; @@ -370,7 +368,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__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*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947____closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__1(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*, lean_object*); lean_object* l_Array_mapIdxM_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -389,15 +386,15 @@ extern lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__1; lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_2884____spec__3(size_t, size_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__4___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* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158____closed__1; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__22; lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__8; extern lean_object* l_myMacro____x40_Init_Notation___hyg_6311____closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___closed__1; extern lean_object* l_Lean_instQuoteProd___rarg___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942____closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__23; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__11; extern lean_object* l_myMacro____x40_Init_Notation___hyg_990____closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__13; @@ -416,13 +413,11 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy extern lean_object* l_instReprBool___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate_match__3(lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__21; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__3; extern lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__10; -lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__3(lean_object*); lean_object* l_instInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__1(lean_object*); @@ -433,17 +428,18 @@ lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3(lean_ob lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_sepByElemParser___closed__1; +lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__20; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__3(lean_object*); extern lean_object* l_Lean_MessageData_instCoeOptionExprMessageData___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__15___boxed(lean_object**); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__4; extern lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__2; lean_object* l_Nat_repr(lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11963____closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__10; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -452,7 +448,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__3; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_8366____closed__6; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; lean_object* l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSourceInfo___closed__1; @@ -471,6 +466,7 @@ lean_object* l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Qu lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__13; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__19; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__10(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12; lean_object* l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__4; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__28; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13073____closed__9; @@ -482,6 +478,7 @@ extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2884____closed__1; lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__8; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__1; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123____closed__1; lean_object* l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__8; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__5; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__5___closed__1; @@ -498,26 +495,26 @@ lean_object* l_Lean_Elab_Term_Quotation_mkTuple___boxed(lean_object*, lean_objec lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__20; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__4; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148____closed__1; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__28; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__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_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14; lean_object* l___private_Init_Meta_0__Lean_quoteName(lean_object*); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78; lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__2(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__20; lean_object* l_Lean_Elab_Term_Quotation_getAntiquotationIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__5; -lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__4; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__24; extern lean_object* l_Std_Format_paren___closed__4; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__10; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11571_(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11738_(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_10172____closed__3; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__25; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__7; @@ -536,6 +533,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__12(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*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__9___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__14; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5; extern lean_object* l_Lean_Parser_Term_prec_quot___elambda__1___closed__2; lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__49; @@ -550,12 +548,12 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy extern lean_object* l_instReprList___rarg___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__66; lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__16; extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; extern lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__1; lean_object* l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23(lean_object*); lean_object* l_String_dropRight(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__15; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__3; @@ -594,6 +592,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compile extern lean_object* l_Lean_Parser_Term_matchDiscr_quot___elambda__1___closed__1; extern lean_object* l_Lean_instToExprUnit___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__3; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__20; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__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_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__22; @@ -617,7 +616,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__13; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__5(lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; extern lean_object* l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__4(lean_object*); @@ -648,6 +646,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Quotation_match__syntax_ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__12; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__32; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__10; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24; extern lean_object* l_Option_get_x21___rarg___closed__4; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_mkApp___closed__1; @@ -655,6 +654,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lea lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__13(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__9(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__7; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__13___rarg(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__4(lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); @@ -674,30 +674,32 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__20(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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__20; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__4___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_5271____closed__3; extern lean_object* l_Lean_Expr_ctorName___closed__10; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957_(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158_(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143_(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__5; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__76; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__16___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__18; @@ -707,6 +709,8 @@ extern lean_object* l_Id_instMonadId; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__22; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -718,7 +722,6 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepF lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_adaptRhs_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__22; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__26; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__1(lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__7(lean_object*); lean_object* l_Lean_Syntax_getAntiquotSpliceSuffix(lean_object*); @@ -737,21 +740,19 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__18; extern lean_object* l_Lean_instQuoteSubstring___closed__4; lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__16; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1___boxed(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__5; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__62; -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__17(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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__15; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__16___closed__2; lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand_match__3___rarg(lean_object*, lean_object*, lean_object*); @@ -766,6 +767,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lea lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__28; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__20; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__13___closed__13; lean_object* l_Lean_Syntax_getPos(lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_911____closed__10; @@ -779,9 +781,9 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__2; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__12___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* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__1; extern lean_object* l_Lean_instInhabitedName; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__5; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__11; @@ -792,17 +794,19 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead extern lean_object* l_myMacro____x40_Init_Data_Array_Basic___hyg_3428____closed__5; lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__1; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__17; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13650____closed__12; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__5___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__10___closed__6; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108____closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__12___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__45; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__4; -lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__6; +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__12; @@ -816,12 +820,14 @@ lean_object* l_Lean_Syntax_getAntiquotSpliceContents(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__9; lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__1; lean_object* l_Array_mapIdxM_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__4; lean_object* l_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_object*, 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_Elab_Term_Quotation_stxQuot_expand___closed__16; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__35; lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_1340____closed__1; @@ -834,10 +840,8 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepFromSplice___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__8; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__12___closed__1; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__13; lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_adaptRhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate_match__3___rarg(lean_object*, lean_object*); @@ -847,6 +851,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__32; extern lean_object* l_Lean_Parser_Tactic_changeWith___closed__3; lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_651____at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__73; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__17; extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2884____closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__25___boxed(lean_object*, lean_object*, lean_object*); @@ -869,22 +874,24 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__24; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepFromSplice___closed__1; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__80; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__4___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkPure___rarg___closed__4; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__7(lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15; extern lean_object* l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__16; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__23; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__5; lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__31; lean_object* l_Lean_Syntax_antiquotSpliceKind_x3f(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__14(lean_object*, lean_object*); extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__4; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__14; lean_object* l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__11(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__7; @@ -910,7 +917,7 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Qu extern lean_object* l_myMacro____x40_Init_Notation___hyg_11224____closed__6; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate_match__2(lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__6; lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object*, lean_object*); @@ -918,6 +925,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lea lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___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*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__2(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -926,22 +934,21 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__4; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___boxed(lean_object**); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__25(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__15; lean_object* l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__9; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11963____closed__4; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__28; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__14___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__6___closed__1; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__1; -lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__13; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__9; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__5___closed__3; +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29; extern lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg___closed__1; extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_3356____closed__34; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__2; @@ -951,15 +958,14 @@ extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__2___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___boxed__const__1; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81; lean_object* l_Lean_Syntax_antiquotKind_x3f(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__3; -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__16; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12156____closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__7; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_setOptionFromString___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); @@ -978,6 +984,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMat extern lean_object* l___regBuiltinParser_Lean_Parser_Term_ident___closed__1; lean_object* l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__5(lean_object*); extern lean_object* l_Std_Format_paren___closed__3; extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__8; @@ -10017,7 +10024,7 @@ static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quot _start: { lean_object* x_1; -x_1 = lean_mk_string("info"); +x_1 = lean_mk_string("Option.getD"); return x_1; } } @@ -10047,37 +10054,69 @@ return x_4; static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__31; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("getD"); +return x_1; } } static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Syntax.ident"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__2; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__36() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; +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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__36; +x_3 = lean_alloc_ctor(1, 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("getHeadInfo"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__39() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__40() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__36; +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__39; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10085,7 +10124,123 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__42() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__43() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__42; +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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__43; +x_3 = lean_alloc_ctor(1, 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("info"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__46() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__46; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__49() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Syntax.ident"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__50() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__49; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__49; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__50; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -10095,7 +10250,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__39() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -10105,31 +10260,31 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__40() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__39; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53; 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__40; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54; x_3 = lean_alloc_ctor(1, 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__42() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56() { _start: { lean_object* x_1; @@ -10137,22 +10292,22 @@ x_1 = lean_mk_string("SourceInfo.mk"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__43() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__42; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__42; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__43; +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10160,7 +10315,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__59() { _start: { lean_object* x_1; @@ -10168,71 +10323,71 @@ x_1 = lean_mk_string("SourceInfo"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__46() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__59; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__46; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60; x_2 = l_Lean_instQuoteProd___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__62() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Syntax_addPrec___closed__2; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__45; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__59; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__49() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__62; x_2 = l_Lean_instQuoteProd___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__50() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__49; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__50; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64; x_3 = lean_alloc_ctor(1, 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__66() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -10244,19 +10399,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__66; x_3 = lean_alloc_ctor(1, 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68() { _start: { lean_object* x_1; @@ -10264,22 +10419,22 @@ x_1 = lean_mk_string("addMacroScope"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__69() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55; +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__69; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10287,51 +10442,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__72() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Syntax_addPrec___closed__2; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__54; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__59() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__73() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__72; 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__59; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__73; x_3 = lean_alloc_ctor(1, 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___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75() { _start: { lean_object* x_1; @@ -10339,22 +10494,22 @@ x_1 = lean_mk_string("mainModule"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__62() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__76() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__62; +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__76; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10362,17 +10517,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79() { _start: { lean_object* x_1; @@ -10380,22 +10535,22 @@ x_1 = lean_mk_string("scp"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__66() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__80() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__66; +x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__80; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10403,12 +10558,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -10460,254 +10615,567 @@ uint8_t x_110; x_110 = !lean_is_exclusive(x_109); if (x_110 == 0) { -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; uint8_t x_119; +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; uint8_t x_120; x_111 = lean_ctor_get(x_109, 1); x_112 = lean_ctor_get(x_109, 0); lean_dec(x_112); x_113 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); -x_114 = lean_ctor_get(x_113, 1); +x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); lean_dec(x_113); -x_115 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_114); +x_116 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_115); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); -lean_dec(x_115); -x_118 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec(x_116); +x_119 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_118); lean_dec(x_7); -x_119 = !lean_is_exclusive(x_118); -if (x_119 == 0) +x_120 = !lean_is_exclusive(x_119); +if (x_120 == 0) { -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; uint8_t x_130; -x_120 = lean_ctor_get(x_118, 0); -x_121 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; -x_122 = l_Lean_addMacroScope(x_120, x_121, x_116); -x_123 = l_Lean_instInhabitedSourceInfo___closed__1; -x_124 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; -x_125 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; -x_126 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -lean_ctor_set(x_126, 2, x_122); -lean_ctor_set(x_126, 3, x_125); -x_127 = l_Array_empty___closed__1; -x_128 = lean_array_push(x_127, x_126); -x_129 = l_Lean_Syntax_getAntiquotTerm(x_1); -x_130 = !lean_is_exclusive(x_1); -if (x_130 == 0) +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; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; 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; uint8_t x_146; +x_121 = lean_ctor_get(x_119, 0); +x_122 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; +lean_inc(x_117); +lean_inc(x_121); +x_123 = l_Lean_addMacroScope(x_121, x_122, x_117); +x_124 = lean_box(0); +x_125 = l_Lean_instInhabitedSourceInfo___closed__1; +x_126 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; +x_127 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; +x_128 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +lean_ctor_set(x_128, 2, x_123); +lean_ctor_set(x_128, 3, x_127); +x_129 = l_Array_empty___closed__1; +x_130 = lean_array_push(x_129, x_128); +x_131 = l_prec_x28___x29___closed__3; +lean_inc(x_114); +lean_ctor_set(x_109, 1, x_131); +lean_ctor_set(x_109, 0, x_114); +x_132 = lean_array_push(x_129, x_109); +x_133 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; +lean_inc(x_117); +lean_inc(x_121); +x_134 = l_Lean_addMacroScope(x_121, x_133, x_117); +x_135 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; +x_136 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37; +x_137 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_137, 0, x_125); +lean_ctor_set(x_137, 1, x_135); +lean_ctor_set(x_137, 2, x_134); +lean_ctor_set(x_137, 3, x_136); +x_138 = lean_array_push(x_129, x_137); +x_139 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; +lean_inc(x_117); +lean_inc(x_121); +x_140 = l_Lean_addMacroScope(x_121, x_139, x_117); +x_141 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__40; +x_142 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; +x_143 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_143, 0, x_125); +lean_ctor_set(x_143, 1, x_141); +lean_ctor_set(x_143, 2, x_140); +lean_ctor_set(x_143, 3, x_142); +x_144 = lean_array_push(x_129, x_143); +x_145 = l_Lean_Syntax_getAntiquotTerm(x_1); +x_146 = !lean_is_exclusive(x_1); +if (x_146 == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_131 = lean_ctor_get(x_1, 1); -lean_dec(x_131); -x_132 = lean_ctor_get(x_1, 0); -lean_dec(x_132); -x_133 = lean_array_push(x_127, x_129); -x_134 = l_Lean_Syntax_mkStrLit(x_111, x_123); -lean_dec(x_111); -x_135 = lean_array_push(x_133, x_134); -x_136 = l_Lean_nullKind___closed__2; -lean_ctor_set_tag(x_109, 1); -lean_ctor_set(x_109, 1, x_135); -lean_ctor_set(x_109, 0, x_136); -x_137 = lean_array_push(x_128, x_109); -x_138 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -lean_ctor_set(x_1, 1, x_137); -lean_ctor_set(x_1, 0, x_138); -lean_ctor_set(x_118, 0, x_1); -return x_118; -} -else -{ -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(x_1); -x_139 = lean_array_push(x_127, x_129); -x_140 = l_Lean_Syntax_mkStrLit(x_111, x_123); -lean_dec(x_111); -x_141 = lean_array_push(x_139, x_140); -x_142 = l_Lean_nullKind___closed__2; -lean_ctor_set_tag(x_109, 1); -lean_ctor_set(x_109, 1, x_141); -lean_ctor_set(x_109, 0, x_142); -x_143 = lean_array_push(x_128, x_109); -x_144 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -lean_ctor_set(x_118, 0, x_145); -return x_118; -} -} -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_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_146 = lean_ctor_get(x_118, 0); -x_147 = lean_ctor_get(x_118, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_118); -x_148 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; -x_149 = l_Lean_addMacroScope(x_146, x_148, x_116); -x_150 = l_Lean_instInhabitedSourceInfo___closed__1; -x_151 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; -x_152 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; -x_153 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_153, 0, x_150); +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_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 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; 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; +x_147 = lean_ctor_get(x_1, 1); +lean_dec(x_147); +x_148 = lean_ctor_get(x_1, 0); +lean_dec(x_148); +x_149 = lean_array_push(x_129, x_145); +x_150 = l_Lean_nullKind___closed__2; +lean_ctor_set(x_1, 1, x_149); +lean_ctor_set(x_1, 0, x_150); +x_151 = lean_array_push(x_144, x_1); +x_152 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_152); lean_ctor_set(x_153, 1, x_151); -lean_ctor_set(x_153, 2, x_149); -lean_ctor_set(x_153, 3, x_152); -x_154 = l_Array_empty___closed__1; -x_155 = lean_array_push(x_154, x_153); -x_156 = l_Lean_Syntax_getAntiquotTerm(x_1); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_157 = x_1; -} else { - lean_dec_ref(x_1); - x_157 = lean_box(0); -} -x_158 = lean_array_push(x_154, x_156); -x_159 = l_Lean_Syntax_mkStrLit(x_111, x_150); +x_154 = lean_array_push(x_129, x_153); +x_155 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_156 = lean_array_push(x_154, x_155); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_150); +lean_ctor_set(x_157, 1, x_156); +lean_inc(x_132); +x_158 = lean_array_push(x_132, x_157); +x_159 = l_prec_x28___x29___closed__7; +x_160 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_160, 0, x_114); +lean_ctor_set(x_160, 1, x_159); +lean_inc(x_160); +x_161 = lean_array_push(x_158, x_160); +x_162 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_161); +x_164 = lean_array_push(x_129, x_163); +x_165 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_166 = l_Lean_addMacroScope(x_121, x_165, x_117); +x_167 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_168 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_168, 0, x_125); +lean_ctor_set(x_168, 1, x_167); +lean_ctor_set(x_168, 2, x_166); +lean_ctor_set(x_168, 3, x_124); +x_169 = lean_array_push(x_164, x_168); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_150); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_array_push(x_138, x_170); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_152); +lean_ctor_set(x_172, 1, x_171); +x_173 = lean_array_push(x_129, x_172); +x_174 = lean_array_push(x_173, x_155); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_150); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_array_push(x_132, x_175); +x_177 = lean_array_push(x_176, x_160); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_162); +lean_ctor_set(x_178, 1, x_177); +x_179 = lean_array_push(x_129, x_178); +x_180 = l_Lean_Syntax_mkStrLit(x_111, x_125); lean_dec(x_111); -x_160 = lean_array_push(x_158, x_159); -x_161 = l_Lean_nullKind___closed__2; -lean_ctor_set_tag(x_109, 1); -lean_ctor_set(x_109, 1, x_160); -lean_ctor_set(x_109, 0, x_161); -x_162 = lean_array_push(x_155, x_109); -x_163 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -if (lean_is_scalar(x_157)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_157; -} -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_162); -x_165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_147); -return x_165; -} +x_181 = lean_array_push(x_179, x_180); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_150); +lean_ctor_set(x_182, 1, x_181); +x_183 = lean_array_push(x_130, x_182); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_152); +lean_ctor_set(x_184, 1, x_183); +lean_ctor_set(x_119, 0, x_184); +return x_119; } else { -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; 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; 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; -x_166 = lean_ctor_get(x_109, 1); -lean_inc(x_166); -lean_dec(x_109); -x_167 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); -x_168 = lean_ctor_get(x_167, 1); -lean_inc(x_168); -lean_dec(x_167); -x_169 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_168); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_172 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_171); -lean_dec(x_7); -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_175 = x_172; -} else { - lean_dec_ref(x_172); - x_175 = lean_box(0); -} -x_176 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; -x_177 = l_Lean_addMacroScope(x_173, x_176, x_170); -x_178 = l_Lean_instInhabitedSourceInfo___closed__1; -x_179 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; -x_180 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; -x_181 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); -lean_ctor_set(x_181, 2, x_177); -lean_ctor_set(x_181, 3, x_180); -x_182 = l_Array_empty___closed__1; -x_183 = lean_array_push(x_182, x_181); -x_184 = l_Lean_Syntax_getAntiquotTerm(x_1); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_185 = x_1; -} else { - lean_dec_ref(x_1); - x_185 = lean_box(0); -} -x_186 = lean_array_push(x_182, x_184); -x_187 = l_Lean_Syntax_mkStrLit(x_166, x_178); -lean_dec(x_166); -x_188 = lean_array_push(x_186, x_187); -x_189 = l_Lean_nullKind___closed__2; +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; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 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; lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_1); +x_185 = lean_array_push(x_129, x_145); +x_186 = l_Lean_nullKind___closed__2; +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_185); +x_188 = lean_array_push(x_144, x_187); +x_189 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; x_190 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_190, 0, x_189); lean_ctor_set(x_190, 1, x_188); -x_191 = lean_array_push(x_183, x_190); -x_192 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -if (lean_is_scalar(x_185)) { - x_193 = lean_alloc_ctor(1, 2, 0); -} else { - x_193 = x_185; -} -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_191); -if (lean_is_scalar(x_175)) { - x_194 = lean_alloc_ctor(0, 2, 0); -} else { - x_194 = x_175; -} -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_174); -return x_194; +x_191 = lean_array_push(x_129, x_190); +x_192 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_193 = lean_array_push(x_191, x_192); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_186); +lean_ctor_set(x_194, 1, x_193); +lean_inc(x_132); +x_195 = lean_array_push(x_132, x_194); +x_196 = l_prec_x28___x29___closed__7; +x_197 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_197, 0, x_114); +lean_ctor_set(x_197, 1, x_196); +lean_inc(x_197); +x_198 = lean_array_push(x_195, x_197); +x_199 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +x_201 = lean_array_push(x_129, x_200); +x_202 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_203 = l_Lean_addMacroScope(x_121, x_202, x_117); +x_204 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_205 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_205, 0, x_125); +lean_ctor_set(x_205, 1, x_204); +lean_ctor_set(x_205, 2, x_203); +lean_ctor_set(x_205, 3, x_124); +x_206 = lean_array_push(x_201, x_205); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_186); +lean_ctor_set(x_207, 1, x_206); +x_208 = lean_array_push(x_138, x_207); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_189); +lean_ctor_set(x_209, 1, x_208); +x_210 = lean_array_push(x_129, x_209); +x_211 = lean_array_push(x_210, x_192); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_186); +lean_ctor_set(x_212, 1, x_211); +x_213 = lean_array_push(x_132, x_212); +x_214 = lean_array_push(x_213, x_197); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_199); +lean_ctor_set(x_215, 1, x_214); +x_216 = lean_array_push(x_129, x_215); +x_217 = l_Lean_Syntax_mkStrLit(x_111, x_125); +lean_dec(x_111); +x_218 = lean_array_push(x_216, x_217); +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_186); +lean_ctor_set(x_219, 1, x_218); +x_220 = lean_array_push(x_130, x_219); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_189); +lean_ctor_set(x_221, 1, x_220); +lean_ctor_set(x_119, 0, x_221); +return x_119; } } else { -lean_object* x_195; lean_object* x_196; +lean_object* x_222; lean_object* x_223; 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; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; 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; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_222 = lean_ctor_get(x_119, 0); +x_223 = lean_ctor_get(x_119, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_119); +x_224 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; +lean_inc(x_117); +lean_inc(x_222); +x_225 = l_Lean_addMacroScope(x_222, x_224, x_117); +x_226 = lean_box(0); +x_227 = l_Lean_instInhabitedSourceInfo___closed__1; +x_228 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; +x_229 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; +x_230 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +lean_ctor_set(x_230, 2, x_225); +lean_ctor_set(x_230, 3, x_229); +x_231 = l_Array_empty___closed__1; +x_232 = lean_array_push(x_231, x_230); +x_233 = l_prec_x28___x29___closed__3; +lean_inc(x_114); +lean_ctor_set(x_109, 1, x_233); +lean_ctor_set(x_109, 0, x_114); +x_234 = lean_array_push(x_231, x_109); +x_235 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; +lean_inc(x_117); +lean_inc(x_222); +x_236 = l_Lean_addMacroScope(x_222, x_235, x_117); +x_237 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; +x_238 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37; +x_239 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_239, 0, x_227); +lean_ctor_set(x_239, 1, x_237); +lean_ctor_set(x_239, 2, x_236); +lean_ctor_set(x_239, 3, x_238); +x_240 = lean_array_push(x_231, x_239); +x_241 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; +lean_inc(x_117); +lean_inc(x_222); +x_242 = l_Lean_addMacroScope(x_222, x_241, x_117); +x_243 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__40; +x_244 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; +x_245 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_245, 0, x_227); +lean_ctor_set(x_245, 1, x_243); +lean_ctor_set(x_245, 2, x_242); +lean_ctor_set(x_245, 3, x_244); +x_246 = lean_array_push(x_231, x_245); +x_247 = l_Lean_Syntax_getAntiquotTerm(x_1); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_248 = x_1; +} else { + lean_dec_ref(x_1); + x_248 = lean_box(0); +} +x_249 = lean_array_push(x_231, x_247); +x_250 = l_Lean_nullKind___closed__2; +if (lean_is_scalar(x_248)) { + x_251 = lean_alloc_ctor(1, 2, 0); +} else { + x_251 = x_248; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_249); +x_252 = lean_array_push(x_246, x_251); +x_253 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_252); +x_255 = lean_array_push(x_231, x_254); +x_256 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_257 = lean_array_push(x_255, x_256); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_250); +lean_ctor_set(x_258, 1, x_257); +lean_inc(x_234); +x_259 = lean_array_push(x_234, x_258); +x_260 = l_prec_x28___x29___closed__7; +x_261 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_261, 0, x_114); +lean_ctor_set(x_261, 1, x_260); +lean_inc(x_261); +x_262 = lean_array_push(x_259, x_261); +x_263 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +x_265 = lean_array_push(x_231, x_264); +x_266 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_267 = l_Lean_addMacroScope(x_222, x_266, x_117); +x_268 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_269 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_269, 0, x_227); +lean_ctor_set(x_269, 1, x_268); +lean_ctor_set(x_269, 2, x_267); +lean_ctor_set(x_269, 3, x_226); +x_270 = lean_array_push(x_265, x_269); +x_271 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_271, 0, x_250); +lean_ctor_set(x_271, 1, x_270); +x_272 = lean_array_push(x_240, x_271); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_253); +lean_ctor_set(x_273, 1, x_272); +x_274 = lean_array_push(x_231, x_273); +x_275 = lean_array_push(x_274, x_256); +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_250); +lean_ctor_set(x_276, 1, x_275); +x_277 = lean_array_push(x_234, x_276); +x_278 = lean_array_push(x_277, x_261); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_263); +lean_ctor_set(x_279, 1, x_278); +x_280 = lean_array_push(x_231, x_279); +x_281 = l_Lean_Syntax_mkStrLit(x_111, x_227); +lean_dec(x_111); +x_282 = lean_array_push(x_280, x_281); +x_283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_250); +lean_ctor_set(x_283, 1, x_282); +x_284 = lean_array_push(x_232, x_283); +x_285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_285, 0, x_253); +lean_ctor_set(x_285, 1, x_284); +x_286 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_223); +return x_286; +} +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; 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; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; 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; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; +x_287 = lean_ctor_get(x_109, 1); +lean_inc(x_287); lean_dec(x_109); -x_195 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__23; -x_196 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_1, x_195, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_288 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); +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(x_288); +x_291 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_290); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_291, 1); +lean_inc(x_293); +lean_dec(x_291); +x_294 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_293); +lean_dec(x_7); +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 1); +lean_inc(x_296); +if (lean_is_exclusive(x_294)) { + lean_ctor_release(x_294, 0); + lean_ctor_release(x_294, 1); + x_297 = x_294; +} else { + lean_dec_ref(x_294); + x_297 = lean_box(0); +} +x_298 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; +lean_inc(x_292); +lean_inc(x_295); +x_299 = l_Lean_addMacroScope(x_295, x_298, x_292); +x_300 = lean_box(0); +x_301 = l_Lean_instInhabitedSourceInfo___closed__1; +x_302 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; +x_303 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; +x_304 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_304, 0, x_301); +lean_ctor_set(x_304, 1, x_302); +lean_ctor_set(x_304, 2, x_299); +lean_ctor_set(x_304, 3, x_303); +x_305 = l_Array_empty___closed__1; +x_306 = lean_array_push(x_305, x_304); +x_307 = l_prec_x28___x29___closed__3; +lean_inc(x_289); +x_308 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_308, 0, x_289); +lean_ctor_set(x_308, 1, x_307); +x_309 = lean_array_push(x_305, x_308); +x_310 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__35; +lean_inc(x_292); +lean_inc(x_295); +x_311 = l_Lean_addMacroScope(x_295, x_310, x_292); +x_312 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; +x_313 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37; +x_314 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_314, 0, x_301); +lean_ctor_set(x_314, 1, x_312); +lean_ctor_set(x_314, 2, x_311); +lean_ctor_set(x_314, 3, x_313); +x_315 = lean_array_push(x_305, x_314); +x_316 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; +lean_inc(x_292); +lean_inc(x_295); +x_317 = l_Lean_addMacroScope(x_295, x_316, x_292); +x_318 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__40; +x_319 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; +x_320 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_320, 0, x_301); +lean_ctor_set(x_320, 1, x_318); +lean_ctor_set(x_320, 2, x_317); +lean_ctor_set(x_320, 3, x_319); +x_321 = lean_array_push(x_305, x_320); +x_322 = l_Lean_Syntax_getAntiquotTerm(x_1); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_323 = x_1; +} else { + lean_dec_ref(x_1); + x_323 = lean_box(0); +} +x_324 = lean_array_push(x_305, x_322); +x_325 = l_Lean_nullKind___closed__2; +if (lean_is_scalar(x_323)) { + x_326 = lean_alloc_ctor(1, 2, 0); +} else { + x_326 = x_323; +} +lean_ctor_set(x_326, 0, x_325); +lean_ctor_set(x_326, 1, x_324); +x_327 = lean_array_push(x_321, x_326); +x_328 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_327); +x_330 = lean_array_push(x_305, x_329); +x_331 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_332 = lean_array_push(x_330, x_331); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_325); +lean_ctor_set(x_333, 1, x_332); +lean_inc(x_309); +x_334 = lean_array_push(x_309, x_333); +x_335 = l_prec_x28___x29___closed__7; +x_336 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_336, 0, x_289); +lean_ctor_set(x_336, 1, x_335); +lean_inc(x_336); +x_337 = lean_array_push(x_334, x_336); +x_338 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_338); +lean_ctor_set(x_339, 1, x_337); +x_340 = lean_array_push(x_305, x_339); +x_341 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_342 = l_Lean_addMacroScope(x_295, x_341, x_292); +x_343 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_344 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_344, 0, x_301); +lean_ctor_set(x_344, 1, x_343); +lean_ctor_set(x_344, 2, x_342); +lean_ctor_set(x_344, 3, x_300); +x_345 = lean_array_push(x_340, x_344); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_325); +lean_ctor_set(x_346, 1, x_345); +x_347 = lean_array_push(x_315, x_346); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_328); +lean_ctor_set(x_348, 1, x_347); +x_349 = lean_array_push(x_305, x_348); +x_350 = lean_array_push(x_349, x_331); +x_351 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_351, 0, x_325); +lean_ctor_set(x_351, 1, x_350); +x_352 = lean_array_push(x_309, x_351); +x_353 = lean_array_push(x_352, x_336); +x_354 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_354, 0, x_338); +lean_ctor_set(x_354, 1, x_353); +x_355 = lean_array_push(x_305, x_354); +x_356 = l_Lean_Syntax_mkStrLit(x_287, x_301); +lean_dec(x_287); +x_357 = lean_array_push(x_355, x_356); +x_358 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_358, 0, x_325); +lean_ctor_set(x_358, 1, x_357); +x_359 = lean_array_push(x_306, x_358); +x_360 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_360, 0, x_328); +lean_ctor_set(x_360, 1, x_359); +if (lean_is_scalar(x_297)) { + x_361 = lean_alloc_ctor(0, 2, 0); +} else { + x_361 = x_297; +} +lean_ctor_set(x_361, 0, x_360); +lean_ctor_set(x_361, 1, x_296); +return x_361; +} +} +else +{ +lean_object* x_362; lean_object* x_363; +lean_dec(x_109); +x_362 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__23; +x_363 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_1, x_362, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_196; +return x_363; } } else { -lean_object* x_197; -x_197 = lean_box(0); -x_91 = x_197; +lean_object* x_364; +x_364 = lean_box(0); +x_91 = x_364; goto block_103; } } } else { -uint8_t x_198; -x_198 = l_Lean_Syntax_isEscapedAntiquot(x_1); -if (x_198 == 0) +uint8_t x_365; +x_365 = l_Lean_Syntax_isEscapedAntiquot(x_1); +if (x_365 == 0) { -lean_object* x_199; lean_object* x_200; +lean_object* x_366; lean_object* x_367; lean_dec(x_13); lean_dec(x_7); lean_dec(x_6); @@ -10715,18 +11183,18 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_199 = l_Lean_Syntax_getAntiquotTerm(x_1); +x_366 = l_Lean_Syntax_getAntiquotTerm(x_1); lean_dec(x_1); -x_200 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_8); -return x_200; +x_367 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_367, 0, x_366); +lean_ctor_set(x_367, 1, x_8); +return x_367; } else { -lean_object* x_201; -x_201 = lean_box(0); -x_91 = x_201; +lean_object* x_368; +x_368 = lean_box(0); +x_91 = x_368; goto block_103; } } @@ -11007,791 +11475,791 @@ goto block_90; } case 2: { -uint8_t x_202; -x_202 = !lean_is_exclusive(x_1); -if (x_202 == 0) +uint8_t x_369; +x_369 = !lean_is_exclusive(x_1); +if (x_369 == 0) { -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_203 = lean_ctor_get(x_1, 1); -x_204 = lean_ctor_get(x_1, 0); -lean_dec(x_204); -x_205 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); -x_206 = lean_ctor_get(x_205, 1); -lean_inc(x_206); -lean_dec(x_205); -x_207 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_206); +lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; uint8_t x_378; +x_370 = lean_ctor_get(x_1, 1); +x_371 = lean_ctor_get(x_1, 0); +lean_dec(x_371); +x_372 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); +x_373 = lean_ctor_get(x_372, 1); +lean_inc(x_373); +lean_dec(x_372); +x_374 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_373); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -lean_dec(x_207); -x_210 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_209); -lean_dec(x_7); -x_211 = !lean_is_exclusive(x_210); -if (x_211 == 0) -{ -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; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 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; -x_212 = lean_ctor_get(x_210, 0); -x_213 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; -lean_inc(x_208); -lean_inc(x_212); -x_214 = l_Lean_addMacroScope(x_212, x_213, x_208); -x_215 = lean_box(0); -x_216 = l_Lean_instInhabitedSourceInfo___closed__1; -x_217 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; -x_218 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; -x_219 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_219, 0, x_216); -lean_ctor_set(x_219, 1, x_217); -lean_ctor_set(x_219, 2, x_214); -lean_ctor_set(x_219, 3, x_218); -x_220 = l_Array_empty___closed__1; -x_221 = lean_array_push(x_220, x_219); -x_222 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; -x_223 = l_Lean_addMacroScope(x_212, x_222, x_208); -x_224 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; -x_225 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_225, 0, x_216); -lean_ctor_set(x_225, 1, x_224); -lean_ctor_set(x_225, 2, x_223); -lean_ctor_set(x_225, 3, x_215); -x_226 = lean_array_push(x_220, x_225); -x_227 = l_Lean_Syntax_mkStrLit(x_203, x_216); -lean_dec(x_203); -x_228 = lean_array_push(x_226, x_227); -x_229 = l_Lean_nullKind___closed__2; -lean_ctor_set_tag(x_1, 1); -lean_ctor_set(x_1, 1, x_228); -lean_ctor_set(x_1, 0, x_229); -x_230 = lean_array_push(x_221, x_1); -x_231 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -x_232 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_230); -lean_ctor_set(x_210, 0, x_232); -return x_210; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_233 = lean_ctor_get(x_210, 0); -x_234 = lean_ctor_get(x_210, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_210); -x_235 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; -lean_inc(x_208); -lean_inc(x_233); -x_236 = l_Lean_addMacroScope(x_233, x_235, x_208); -x_237 = lean_box(0); -x_238 = l_Lean_instInhabitedSourceInfo___closed__1; -x_239 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; -x_240 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; -x_241 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_241, 0, x_238); -lean_ctor_set(x_241, 1, x_239); -lean_ctor_set(x_241, 2, x_236); -lean_ctor_set(x_241, 3, x_240); -x_242 = l_Array_empty___closed__1; -x_243 = lean_array_push(x_242, x_241); -x_244 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; -x_245 = l_Lean_addMacroScope(x_233, x_244, x_208); -x_246 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; -x_247 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_247, 0, x_238); -lean_ctor_set(x_247, 1, x_246); -lean_ctor_set(x_247, 2, x_245); -lean_ctor_set(x_247, 3, x_237); -x_248 = lean_array_push(x_242, x_247); -x_249 = l_Lean_Syntax_mkStrLit(x_203, x_238); -lean_dec(x_203); -x_250 = lean_array_push(x_248, x_249); -x_251 = l_Lean_nullKind___closed__2; -lean_ctor_set_tag(x_1, 1); -lean_ctor_set(x_1, 1, x_250); -lean_ctor_set(x_1, 0, x_251); -x_252 = lean_array_push(x_243, x_1); -x_253 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_252); -x_255 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_234); -return x_255; -} -} -else -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_256 = lean_ctor_get(x_1, 1); -lean_inc(x_256); -lean_dec(x_1); -x_257 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); -x_258 = lean_ctor_get(x_257, 1); -lean_inc(x_258); -lean_dec(x_257); -x_259 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_258); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); -lean_inc(x_261); -lean_dec(x_259); -x_262 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_261); -lean_dec(x_7); -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_265 = x_262; -} else { - lean_dec_ref(x_262); - x_265 = lean_box(0); -} -x_266 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; -lean_inc(x_260); -lean_inc(x_263); -x_267 = l_Lean_addMacroScope(x_263, x_266, x_260); -x_268 = lean_box(0); -x_269 = l_Lean_instInhabitedSourceInfo___closed__1; -x_270 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; -x_271 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; -x_272 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_272, 0, x_269); -lean_ctor_set(x_272, 1, x_270); -lean_ctor_set(x_272, 2, x_267); -lean_ctor_set(x_272, 3, x_271); -x_273 = l_Array_empty___closed__1; -x_274 = lean_array_push(x_273, x_272); -x_275 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; -x_276 = l_Lean_addMacroScope(x_263, x_275, x_260); -x_277 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; -x_278 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_278, 0, x_269); -lean_ctor_set(x_278, 1, x_277); -lean_ctor_set(x_278, 2, x_276); -lean_ctor_set(x_278, 3, x_268); -x_279 = lean_array_push(x_273, x_278); -x_280 = l_Lean_Syntax_mkStrLit(x_256, x_269); -lean_dec(x_256); -x_281 = lean_array_push(x_279, x_280); -x_282 = l_Lean_nullKind___closed__2; -x_283 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_281); -x_284 = lean_array_push(x_274, x_283); -x_285 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -x_286 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_286, 0, x_285); -lean_ctor_set(x_286, 1, x_284); -if (lean_is_scalar(x_265)) { - x_287 = lean_alloc_ctor(0, 2, 0); -} else { - x_287 = x_265; -} -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_264); -return x_287; -} -} -default: -{ -uint8_t x_288; -x_288 = !lean_is_exclusive(x_1); -if (x_288 == 0) -{ -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; -x_289 = lean_ctor_get(x_1, 1); -x_290 = lean_ctor_get(x_1, 2); -x_291 = lean_ctor_get(x_1, 3); -x_292 = lean_ctor_get(x_1, 0); -lean_dec(x_292); -lean_inc(x_6); -lean_inc(x_290); -x_293 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(x_290, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -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(x_293); -x_296 = l_List_append___rarg(x_294, x_291); -x_297 = l___private_Init_Meta_0__Lean_quoteName(x_290); -x_298 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_295); -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -lean_dec(x_298); -x_301 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_300); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -x_304 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_303); -lean_dec(x_7); -x_305 = !lean_is_exclusive(x_304); -if (x_305 == 0) -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; 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; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; 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; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; 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; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_306 = lean_ctor_get(x_304, 0); -x_307 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; -lean_inc(x_302); -lean_inc(x_306); -x_308 = l_Lean_addMacroScope(x_306, x_307, x_302); -x_309 = lean_box(0); -x_310 = l_Lean_instInhabitedSourceInfo___closed__1; -x_311 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37; -x_312 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; -lean_ctor_set(x_1, 3, x_312); -lean_ctor_set(x_1, 2, x_308); -lean_ctor_set(x_1, 1, x_311); -lean_ctor_set(x_1, 0, x_310); -x_313 = l_Array_empty___closed__1; -x_314 = lean_array_push(x_313, x_1); -x_315 = l_prec_x28___x29___closed__3; -lean_inc(x_299); -x_316 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_316, 0, x_299); -lean_ctor_set(x_316, 1, x_315); -x_317 = lean_array_push(x_313, x_316); -x_318 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; -lean_inc(x_302); -lean_inc(x_306); -x_319 = l_Lean_addMacroScope(x_306, x_318, x_302); -x_320 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; -x_321 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51; -x_322 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_322, 0, x_310); -lean_ctor_set(x_322, 1, x_320); -lean_ctor_set(x_322, 2, x_319); -lean_ctor_set(x_322, 3, x_321); -x_323 = lean_array_push(x_313, x_322); -x_324 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; -lean_inc(x_302); -lean_inc(x_306); -x_325 = l_Lean_addMacroScope(x_306, x_324, x_302); -x_326 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; -x_327 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53; -x_328 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_328, 0, x_310); -lean_ctor_set(x_328, 1, x_326); -lean_ctor_set(x_328, 2, x_325); -lean_ctor_set(x_328, 3, x_327); -lean_inc(x_328); -x_329 = lean_array_push(x_313, x_328); -lean_inc(x_328); -x_330 = lean_array_push(x_329, x_328); -x_331 = lean_array_push(x_330, x_328); -x_332 = l_Lean_nullKind___closed__2; -x_333 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_331); -x_334 = lean_array_push(x_323, x_333); -x_335 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -x_336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_334); -x_337 = lean_array_push(x_313, x_336); -x_338 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; -x_339 = lean_array_push(x_337, x_338); -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_332); -lean_ctor_set(x_340, 1, x_339); -lean_inc(x_317); -x_341 = lean_array_push(x_317, x_340); -x_342 = l_prec_x28___x29___closed__7; -x_343 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_343, 0, x_299); -lean_ctor_set(x_343, 1, x_342); -lean_inc(x_343); -x_344 = lean_array_push(x_341, x_343); -x_345 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_344); -x_347 = lean_array_push(x_313, x_346); -x_348 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57; -lean_inc(x_302); -lean_inc(x_306); -x_349 = l_Lean_addMacroScope(x_306, x_348, x_302); -x_350 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56; -x_351 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60; -x_352 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_352, 0, x_310); -lean_ctor_set(x_352, 1, x_350); -lean_ctor_set(x_352, 2, x_349); -lean_ctor_set(x_352, 3, x_351); -x_353 = lean_array_push(x_313, x_352); -x_354 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64; -lean_inc(x_302); -lean_inc(x_306); -x_355 = l_Lean_addMacroScope(x_306, x_354, x_302); -x_356 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; -x_357 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_357, 0, x_310); -lean_ctor_set(x_357, 1, x_356); -lean_ctor_set(x_357, 2, x_355); -lean_ctor_set(x_357, 3, x_309); -x_358 = lean_array_push(x_313, x_357); -x_359 = lean_array_push(x_358, x_297); -x_360 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; -x_361 = l_Lean_addMacroScope(x_306, x_360, x_302); -x_362 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; -x_363 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_363, 0, x_310); -lean_ctor_set(x_363, 1, x_362); -lean_ctor_set(x_363, 2, x_361); -lean_ctor_set(x_363, 3, x_309); -x_364 = lean_array_push(x_359, x_363); -x_365 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_365, 0, x_332); -lean_ctor_set(x_365, 1, x_364); -x_366 = lean_array_push(x_353, x_365); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_335); -lean_ctor_set(x_367, 1, x_366); -x_368 = lean_array_push(x_313, x_367); -x_369 = lean_array_push(x_368, x_338); -x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_332); -lean_ctor_set(x_370, 1, x_369); -x_371 = lean_array_push(x_317, x_370); -x_372 = lean_array_push(x_371, x_343); -x_373 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_373, 0, x_345); -lean_ctor_set(x_373, 1, x_372); -x_374 = l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(x_296); -x_375 = lean_ctor_get(x_289, 0); +x_375 = lean_ctor_get(x_374, 0); lean_inc(x_375); -x_376 = lean_ctor_get(x_289, 1); +x_376 = lean_ctor_get(x_374, 1); lean_inc(x_376); -x_377 = lean_ctor_get(x_289, 2); -lean_inc(x_377); -lean_dec(x_289); -x_378 = lean_string_utf8_extract(x_375, x_376, x_377); -lean_dec(x_377); -lean_dec(x_376); -lean_dec(x_375); -x_379 = l_Lean_Syntax_mkStrLit(x_378, x_310); -lean_dec(x_378); -x_380 = l_Lean_mkOptionalNode___closed__2; -x_381 = lean_array_push(x_380, x_379); -x_382 = l_Lean_instQuoteSubstring___closed__4; -x_383 = l_Lean_Syntax_mkCApp(x_382, x_381); -x_384 = lean_array_push(x_347, x_383); -x_385 = lean_array_push(x_384, x_373); -x_386 = lean_array_push(x_385, x_374); -x_387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_387, 0, x_332); -lean_ctor_set(x_387, 1, x_386); -x_388 = lean_array_push(x_314, x_387); -x_389 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_389, 0, x_335); -lean_ctor_set(x_389, 1, x_388); -lean_ctor_set(x_304, 0, x_389); -return x_304; +lean_dec(x_374); +x_377 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_376); +lean_dec(x_7); +x_378 = !lean_is_exclusive(x_377); +if (x_378 == 0) +{ +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_379 = lean_ctor_get(x_377, 0); +x_380 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; +lean_inc(x_375); +lean_inc(x_379); +x_381 = l_Lean_addMacroScope(x_379, x_380, x_375); +x_382 = lean_box(0); +x_383 = l_Lean_instInhabitedSourceInfo___closed__1; +x_384 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; +x_385 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; +x_386 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_386, 0, x_383); +lean_ctor_set(x_386, 1, x_384); +lean_ctor_set(x_386, 2, x_381); +lean_ctor_set(x_386, 3, x_385); +x_387 = l_Array_empty___closed__1; +x_388 = lean_array_push(x_387, x_386); +x_389 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_390 = l_Lean_addMacroScope(x_379, x_389, x_375); +x_391 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_392 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_392, 0, x_383); +lean_ctor_set(x_392, 1, x_391); +lean_ctor_set(x_392, 2, x_390); +lean_ctor_set(x_392, 3, x_382); +x_393 = lean_array_push(x_387, x_392); +x_394 = l_Lean_Syntax_mkStrLit(x_370, x_383); +lean_dec(x_370); +x_395 = lean_array_push(x_393, x_394); +x_396 = l_Lean_nullKind___closed__2; +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 1, x_395); +lean_ctor_set(x_1, 0, x_396); +x_397 = lean_array_push(x_388, x_1); +x_398 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_398); +lean_ctor_set(x_399, 1, x_397); +lean_ctor_set(x_377, 0, x_399); +return x_377; } else { -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; 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; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; -x_390 = lean_ctor_get(x_304, 0); -x_391 = lean_ctor_get(x_304, 1); -lean_inc(x_391); -lean_inc(x_390); -lean_dec(x_304); -x_392 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; -lean_inc(x_302); -lean_inc(x_390); -x_393 = l_Lean_addMacroScope(x_390, x_392, x_302); -x_394 = lean_box(0); -x_395 = l_Lean_instInhabitedSourceInfo___closed__1; -x_396 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37; -x_397 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; -lean_ctor_set(x_1, 3, x_397); -lean_ctor_set(x_1, 2, x_393); -lean_ctor_set(x_1, 1, x_396); -lean_ctor_set(x_1, 0, x_395); -x_398 = l_Array_empty___closed__1; -x_399 = lean_array_push(x_398, x_1); -x_400 = l_prec_x28___x29___closed__3; -lean_inc(x_299); -x_401 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_401, 0, x_299); -lean_ctor_set(x_401, 1, x_400); -x_402 = lean_array_push(x_398, x_401); -x_403 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; -lean_inc(x_302); -lean_inc(x_390); -x_404 = l_Lean_addMacroScope(x_390, x_403, x_302); -x_405 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; -x_406 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51; -x_407 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_407, 0, x_395); -lean_ctor_set(x_407, 1, x_405); -lean_ctor_set(x_407, 2, x_404); -lean_ctor_set(x_407, 3, x_406); -x_408 = lean_array_push(x_398, x_407); -x_409 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; -lean_inc(x_302); -lean_inc(x_390); -x_410 = l_Lean_addMacroScope(x_390, x_409, x_302); -x_411 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; -x_412 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53; -x_413 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_413, 0, x_395); -lean_ctor_set(x_413, 1, x_411); -lean_ctor_set(x_413, 2, x_410); -lean_ctor_set(x_413, 3, x_412); -lean_inc(x_413); -x_414 = lean_array_push(x_398, x_413); -lean_inc(x_413); -x_415 = lean_array_push(x_414, x_413); -x_416 = lean_array_push(x_415, x_413); -x_417 = l_Lean_nullKind___closed__2; -x_418 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_418, 0, x_417); -lean_ctor_set(x_418, 1, x_416); -x_419 = lean_array_push(x_408, x_418); +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_400 = lean_ctor_get(x_377, 0); +x_401 = lean_ctor_get(x_377, 1); +lean_inc(x_401); +lean_inc(x_400); +lean_dec(x_377); +x_402 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; +lean_inc(x_375); +lean_inc(x_400); +x_403 = l_Lean_addMacroScope(x_400, x_402, x_375); +x_404 = lean_box(0); +x_405 = l_Lean_instInhabitedSourceInfo___closed__1; +x_406 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; +x_407 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; +x_408 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_408, 0, x_405); +lean_ctor_set(x_408, 1, x_406); +lean_ctor_set(x_408, 2, x_403); +lean_ctor_set(x_408, 3, x_407); +x_409 = l_Array_empty___closed__1; +x_410 = lean_array_push(x_409, x_408); +x_411 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_412 = l_Lean_addMacroScope(x_400, x_411, x_375); +x_413 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_414 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_414, 0, x_405); +lean_ctor_set(x_414, 1, x_413); +lean_ctor_set(x_414, 2, x_412); +lean_ctor_set(x_414, 3, x_404); +x_415 = lean_array_push(x_409, x_414); +x_416 = l_Lean_Syntax_mkStrLit(x_370, x_405); +lean_dec(x_370); +x_417 = lean_array_push(x_415, x_416); +x_418 = l_Lean_nullKind___closed__2; +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 1, x_417); +lean_ctor_set(x_1, 0, x_418); +x_419 = lean_array_push(x_410, x_1); x_420 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; x_421 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_421, 0, x_420); lean_ctor_set(x_421, 1, x_419); -x_422 = lean_array_push(x_398, x_421); -x_423 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; -x_424 = lean_array_push(x_422, x_423); -x_425 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_425, 0, x_417); -lean_ctor_set(x_425, 1, x_424); -lean_inc(x_402); -x_426 = lean_array_push(x_402, x_425); -x_427 = l_prec_x28___x29___closed__7; -x_428 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_428, 0, x_299); -lean_ctor_set(x_428, 1, x_427); -lean_inc(x_428); -x_429 = lean_array_push(x_426, x_428); -x_430 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; -x_431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_429); -x_432 = lean_array_push(x_398, x_431); -x_433 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57; -lean_inc(x_302); -lean_inc(x_390); -x_434 = l_Lean_addMacroScope(x_390, x_433, x_302); -x_435 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56; -x_436 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60; -x_437 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_437, 0, x_395); -lean_ctor_set(x_437, 1, x_435); -lean_ctor_set(x_437, 2, x_434); -lean_ctor_set(x_437, 3, x_436); -x_438 = lean_array_push(x_398, x_437); -x_439 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64; -lean_inc(x_302); -lean_inc(x_390); -x_440 = l_Lean_addMacroScope(x_390, x_439, x_302); -x_441 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; -x_442 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_442, 0, x_395); -lean_ctor_set(x_442, 1, x_441); -lean_ctor_set(x_442, 2, x_440); -lean_ctor_set(x_442, 3, x_394); -x_443 = lean_array_push(x_398, x_442); -x_444 = lean_array_push(x_443, x_297); -x_445 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; -x_446 = l_Lean_addMacroScope(x_390, x_445, x_302); -x_447 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; -x_448 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_448, 0, x_395); -lean_ctor_set(x_448, 1, x_447); -lean_ctor_set(x_448, 2, x_446); -lean_ctor_set(x_448, 3, x_394); -x_449 = lean_array_push(x_444, x_448); -x_450 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_450, 0, x_417); -lean_ctor_set(x_450, 1, x_449); -x_451 = lean_array_push(x_438, x_450); -x_452 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_452, 0, x_420); -lean_ctor_set(x_452, 1, x_451); -x_453 = lean_array_push(x_398, x_452); -x_454 = lean_array_push(x_453, x_423); -x_455 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_455, 0, x_417); -lean_ctor_set(x_455, 1, x_454); -x_456 = lean_array_push(x_402, x_455); -x_457 = lean_array_push(x_456, x_428); -x_458 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_458, 0, x_430); -lean_ctor_set(x_458, 1, x_457); -x_459 = l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(x_296); -x_460 = lean_ctor_get(x_289, 0); -lean_inc(x_460); -x_461 = lean_ctor_get(x_289, 1); -lean_inc(x_461); -x_462 = lean_ctor_get(x_289, 2); -lean_inc(x_462); -lean_dec(x_289); -x_463 = lean_string_utf8_extract(x_460, x_461, x_462); -lean_dec(x_462); -lean_dec(x_461); -lean_dec(x_460); -x_464 = l_Lean_Syntax_mkStrLit(x_463, x_395); -lean_dec(x_463); -x_465 = l_Lean_mkOptionalNode___closed__2; -x_466 = lean_array_push(x_465, x_464); -x_467 = l_Lean_instQuoteSubstring___closed__4; -x_468 = l_Lean_Syntax_mkCApp(x_467, x_466); -x_469 = lean_array_push(x_432, x_468); -x_470 = lean_array_push(x_469, x_458); -x_471 = lean_array_push(x_470, x_459); -x_472 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_472, 0, x_417); -lean_ctor_set(x_472, 1, x_471); -x_473 = lean_array_push(x_399, x_472); -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_420); -lean_ctor_set(x_474, 1, x_473); -x_475 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_475, 0, x_474); -lean_ctor_set(x_475, 1, x_391); -return x_475; +x_422 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_401); +return x_422; } } else { -lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; -x_476 = lean_ctor_get(x_1, 1); -x_477 = lean_ctor_get(x_1, 2); -x_478 = lean_ctor_get(x_1, 3); -lean_inc(x_478); -lean_inc(x_477); -lean_inc(x_476); +lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_423 = lean_ctor_get(x_1, 1); +lean_inc(x_423); lean_dec(x_1); -lean_inc(x_6); -lean_inc(x_477); -x_479 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(x_477, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_480 = lean_ctor_get(x_479, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_479, 1); -lean_inc(x_481); -lean_dec(x_479); -x_482 = l_List_append___rarg(x_480, x_478); -x_483 = l___private_Init_Meta_0__Lean_quoteName(x_477); -x_484 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_481); -x_485 = lean_ctor_get(x_484, 0); -lean_inc(x_485); -x_486 = lean_ctor_get(x_484, 1); -lean_inc(x_486); -lean_dec(x_484); -x_487 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_486); +x_424 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_8); +x_425 = lean_ctor_get(x_424, 1); +lean_inc(x_425); +lean_dec(x_424); +x_426 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_425); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_488 = lean_ctor_get(x_487, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_487, 1); -lean_inc(x_489); -lean_dec(x_487); -x_490 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_489); +x_427 = lean_ctor_get(x_426, 0); +lean_inc(x_427); +x_428 = lean_ctor_get(x_426, 1); +lean_inc(x_428); +lean_dec(x_426); +x_429 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_428); lean_dec(x_7); -x_491 = lean_ctor_get(x_490, 0); -lean_inc(x_491); -x_492 = lean_ctor_get(x_490, 1); -lean_inc(x_492); -if (lean_is_exclusive(x_490)) { - lean_ctor_release(x_490, 0); - lean_ctor_release(x_490, 1); - x_493 = x_490; +x_430 = lean_ctor_get(x_429, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_429, 1); +lean_inc(x_431); +if (lean_is_exclusive(x_429)) { + lean_ctor_release(x_429, 0); + lean_ctor_release(x_429, 1); + x_432 = x_429; } else { - lean_dec_ref(x_490); - x_493 = lean_box(0); + lean_dec_ref(x_429); + x_432 = lean_box(0); } -x_494 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; -lean_inc(x_488); -lean_inc(x_491); -x_495 = l_Lean_addMacroScope(x_491, x_494, x_488); -x_496 = lean_box(0); -x_497 = l_Lean_instInhabitedSourceInfo___closed__1; -x_498 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__37; -x_499 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__41; -x_500 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_500, 0, x_497); +x_433 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__27; +lean_inc(x_427); +lean_inc(x_430); +x_434 = l_Lean_addMacroScope(x_430, x_433, x_427); +x_435 = lean_box(0); +x_436 = l_Lean_instInhabitedSourceInfo___closed__1; +x_437 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__26; +x_438 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__30; +x_439 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_439, 0, x_436); +lean_ctor_set(x_439, 1, x_437); +lean_ctor_set(x_439, 2, x_434); +lean_ctor_set(x_439, 3, x_438); +x_440 = l_Array_empty___closed__1; +x_441 = lean_array_push(x_440, x_439); +x_442 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; +x_443 = l_Lean_addMacroScope(x_430, x_442, x_427); +x_444 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; +x_445 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_445, 0, x_436); +lean_ctor_set(x_445, 1, x_444); +lean_ctor_set(x_445, 2, x_443); +lean_ctor_set(x_445, 3, x_435); +x_446 = lean_array_push(x_440, x_445); +x_447 = l_Lean_Syntax_mkStrLit(x_423, x_436); +lean_dec(x_423); +x_448 = lean_array_push(x_446, x_447); +x_449 = l_Lean_nullKind___closed__2; +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_449); +lean_ctor_set(x_450, 1, x_448); +x_451 = lean_array_push(x_441, x_450); +x_452 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_453 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_453, 0, x_452); +lean_ctor_set(x_453, 1, x_451); +if (lean_is_scalar(x_432)) { + x_454 = lean_alloc_ctor(0, 2, 0); +} else { + x_454 = x_432; +} +lean_ctor_set(x_454, 0, x_453); +lean_ctor_set(x_454, 1, x_431); +return x_454; +} +} +default: +{ +uint8_t x_455; +x_455 = !lean_is_exclusive(x_1); +if (x_455 == 0) +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; 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; uint8_t x_472; +x_456 = lean_ctor_get(x_1, 1); +x_457 = lean_ctor_get(x_1, 2); +x_458 = lean_ctor_get(x_1, 3); +x_459 = lean_ctor_get(x_1, 0); +lean_dec(x_459); +lean_inc(x_6); +lean_inc(x_457); +x_460 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(x_457, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_461 = lean_ctor_get(x_460, 0); +lean_inc(x_461); +x_462 = lean_ctor_get(x_460, 1); +lean_inc(x_462); +lean_dec(x_460); +x_463 = l_List_append___rarg(x_461, x_458); +x_464 = l___private_Init_Meta_0__Lean_quoteName(x_457); +x_465 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_462); +x_466 = lean_ctor_get(x_465, 0); +lean_inc(x_466); +x_467 = lean_ctor_get(x_465, 1); +lean_inc(x_467); +lean_dec(x_465); +x_468 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_467); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_469 = lean_ctor_get(x_468, 0); +lean_inc(x_469); +x_470 = lean_ctor_get(x_468, 1); +lean_inc(x_470); +lean_dec(x_468); +x_471 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_470); +lean_dec(x_7); +x_472 = !lean_is_exclusive(x_471); +if (x_472 == 0) +{ +lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; +x_473 = lean_ctor_get(x_471, 0); +x_474 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52; +lean_inc(x_469); +lean_inc(x_473); +x_475 = l_Lean_addMacroScope(x_473, x_474, x_469); +x_476 = lean_box(0); +x_477 = l_Lean_instInhabitedSourceInfo___closed__1; +x_478 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51; +x_479 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55; +lean_ctor_set(x_1, 3, x_479); +lean_ctor_set(x_1, 2, x_475); +lean_ctor_set(x_1, 1, x_478); +lean_ctor_set(x_1, 0, x_477); +x_480 = l_Array_empty___closed__1; +x_481 = lean_array_push(x_480, x_1); +x_482 = l_prec_x28___x29___closed__3; +lean_inc(x_466); +x_483 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_483, 0, x_466); +lean_ctor_set(x_483, 1, x_482); +x_484 = lean_array_push(x_480, x_483); +x_485 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; +lean_inc(x_469); +lean_inc(x_473); +x_486 = l_Lean_addMacroScope(x_473, x_485, x_469); +x_487 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58; +x_488 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65; +x_489 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_489, 0, x_477); +lean_ctor_set(x_489, 1, x_487); +lean_ctor_set(x_489, 2, x_486); +lean_ctor_set(x_489, 3, x_488); +x_490 = lean_array_push(x_480, x_489); +x_491 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; +lean_inc(x_469); +lean_inc(x_473); +x_492 = l_Lean_addMacroScope(x_473, x_491, x_469); +x_493 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; +x_494 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; +x_495 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_495, 0, x_477); +lean_ctor_set(x_495, 1, x_493); +lean_ctor_set(x_495, 2, x_492); +lean_ctor_set(x_495, 3, x_494); +lean_inc(x_495); +x_496 = lean_array_push(x_480, x_495); +lean_inc(x_495); +x_497 = lean_array_push(x_496, x_495); +x_498 = lean_array_push(x_497, x_495); +x_499 = l_Lean_nullKind___closed__2; +x_500 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_500, 0, x_499); lean_ctor_set(x_500, 1, x_498); -lean_ctor_set(x_500, 2, x_495); -lean_ctor_set(x_500, 3, x_499); -x_501 = l_Array_empty___closed__1; -x_502 = lean_array_push(x_501, x_500); -x_503 = l_prec_x28___x29___closed__3; -lean_inc(x_485); -x_504 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_504, 0, x_485); -lean_ctor_set(x_504, 1, x_503); -x_505 = lean_array_push(x_501, x_504); -x_506 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; -lean_inc(x_488); -lean_inc(x_491); -x_507 = l_Lean_addMacroScope(x_491, x_506, x_488); -x_508 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__44; -x_509 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51; -x_510 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_510, 0, x_497); -lean_ctor_set(x_510, 1, x_508); -lean_ctor_set(x_510, 2, x_507); -lean_ctor_set(x_510, 3, x_509); -x_511 = lean_array_push(x_501, x_510); -x_512 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; -lean_inc(x_488); -lean_inc(x_491); -x_513 = l_Lean_addMacroScope(x_491, x_512, x_488); -x_514 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; -x_515 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53; -x_516 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_516, 0, x_497); -lean_ctor_set(x_516, 1, x_514); -lean_ctor_set(x_516, 2, x_513); -lean_ctor_set(x_516, 3, x_515); -lean_inc(x_516); -x_517 = lean_array_push(x_501, x_516); -lean_inc(x_516); -x_518 = lean_array_push(x_517, x_516); -x_519 = lean_array_push(x_518, x_516); -x_520 = l_Lean_nullKind___closed__2; -x_521 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_521, 0, x_520); -lean_ctor_set(x_521, 1, x_519); -x_522 = lean_array_push(x_511, x_521); -x_523 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; -x_524 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_524, 0, x_523); -lean_ctor_set(x_524, 1, x_522); -x_525 = lean_array_push(x_501, x_524); -x_526 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; -x_527 = lean_array_push(x_525, x_526); -x_528 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_528, 0, x_520); -lean_ctor_set(x_528, 1, x_527); -lean_inc(x_505); -x_529 = lean_array_push(x_505, x_528); -x_530 = l_prec_x28___x29___closed__7; -x_531 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_531, 0, x_485); -lean_ctor_set(x_531, 1, x_530); -lean_inc(x_531); -x_532 = lean_array_push(x_529, x_531); -x_533 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_501 = lean_array_push(x_490, x_500); +x_502 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_503 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_503, 0, x_502); +lean_ctor_set(x_503, 1, x_501); +x_504 = lean_array_push(x_480, x_503); +x_505 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_506 = lean_array_push(x_504, x_505); +x_507 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_507, 0, x_499); +lean_ctor_set(x_507, 1, x_506); +lean_inc(x_484); +x_508 = lean_array_push(x_484, x_507); +x_509 = l_prec_x28___x29___closed__7; +x_510 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_510, 0, x_466); +lean_ctor_set(x_510, 1, x_509); +lean_inc(x_510); +x_511 = lean_array_push(x_508, x_510); +x_512 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_513 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_513, 0, x_512); +lean_ctor_set(x_513, 1, x_511); +x_514 = lean_array_push(x_480, x_513); +x_515 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71; +lean_inc(x_469); +lean_inc(x_473); +x_516 = l_Lean_addMacroScope(x_473, x_515, x_469); +x_517 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70; +x_518 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74; +x_519 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_519, 0, x_477); +lean_ctor_set(x_519, 1, x_517); +lean_ctor_set(x_519, 2, x_516); +lean_ctor_set(x_519, 3, x_518); +x_520 = lean_array_push(x_480, x_519); +x_521 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78; +lean_inc(x_469); +lean_inc(x_473); +x_522 = l_Lean_addMacroScope(x_473, x_521, x_469); +x_523 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77; +x_524 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_524, 0, x_477); +lean_ctor_set(x_524, 1, x_523); +lean_ctor_set(x_524, 2, x_522); +lean_ctor_set(x_524, 3, x_476); +x_525 = lean_array_push(x_480, x_524); +x_526 = lean_array_push(x_525, x_464); +x_527 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82; +x_528 = l_Lean_addMacroScope(x_473, x_527, x_469); +x_529 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81; +x_530 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_530, 0, x_477); +lean_ctor_set(x_530, 1, x_529); +lean_ctor_set(x_530, 2, x_528); +lean_ctor_set(x_530, 3, x_476); +x_531 = lean_array_push(x_526, x_530); +x_532 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_532, 0, x_499); +lean_ctor_set(x_532, 1, x_531); +x_533 = lean_array_push(x_520, x_532); x_534 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_534, 0, x_533); -lean_ctor_set(x_534, 1, x_532); -x_535 = lean_array_push(x_501, x_534); -x_536 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__57; -lean_inc(x_488); -lean_inc(x_491); -x_537 = l_Lean_addMacroScope(x_491, x_536, x_488); -x_538 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__56; -x_539 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__60; -x_540 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_540, 0, x_497); -lean_ctor_set(x_540, 1, x_538); -lean_ctor_set(x_540, 2, x_537); -lean_ctor_set(x_540, 3, x_539); -x_541 = lean_array_push(x_501, x_540); -x_542 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64; -lean_inc(x_488); -lean_inc(x_491); -x_543 = l_Lean_addMacroScope(x_491, x_542, x_488); -x_544 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; -x_545 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_545, 0, x_497); -lean_ctor_set(x_545, 1, x_544); -lean_ctor_set(x_545, 2, x_543); -lean_ctor_set(x_545, 3, x_496); -x_546 = lean_array_push(x_501, x_545); -x_547 = lean_array_push(x_546, x_483); -x_548 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; -x_549 = l_Lean_addMacroScope(x_491, x_548, x_488); -x_550 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; -x_551 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_551, 0, x_497); -lean_ctor_set(x_551, 1, x_550); -lean_ctor_set(x_551, 2, x_549); -lean_ctor_set(x_551, 3, x_496); -x_552 = lean_array_push(x_547, x_551); -x_553 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_553, 0, x_520); -lean_ctor_set(x_553, 1, x_552); -x_554 = lean_array_push(x_541, x_553); -x_555 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_555, 0, x_523); -lean_ctor_set(x_555, 1, x_554); -x_556 = lean_array_push(x_501, x_555); -x_557 = lean_array_push(x_556, x_526); -x_558 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_558, 0, x_520); -lean_ctor_set(x_558, 1, x_557); -x_559 = lean_array_push(x_505, x_558); -x_560 = lean_array_push(x_559, x_531); -x_561 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_561, 0, x_533); -lean_ctor_set(x_561, 1, x_560); -x_562 = l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(x_482); -x_563 = lean_ctor_get(x_476, 0); -lean_inc(x_563); -x_564 = lean_ctor_get(x_476, 1); -lean_inc(x_564); -x_565 = lean_ctor_get(x_476, 2); -lean_inc(x_565); -lean_dec(x_476); -x_566 = lean_string_utf8_extract(x_563, x_564, x_565); -lean_dec(x_565); -lean_dec(x_564); -lean_dec(x_563); -x_567 = l_Lean_Syntax_mkStrLit(x_566, x_497); -lean_dec(x_566); -x_568 = l_Lean_mkOptionalNode___closed__2; -x_569 = lean_array_push(x_568, x_567); -x_570 = l_Lean_instQuoteSubstring___closed__4; -x_571 = l_Lean_Syntax_mkCApp(x_570, x_569); -x_572 = lean_array_push(x_535, x_571); -x_573 = lean_array_push(x_572, x_561); -x_574 = lean_array_push(x_573, x_562); -x_575 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_575, 0, x_520); -lean_ctor_set(x_575, 1, x_574); -x_576 = lean_array_push(x_502, x_575); -x_577 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_577, 0, x_523); -lean_ctor_set(x_577, 1, x_576); -if (lean_is_scalar(x_493)) { - x_578 = lean_alloc_ctor(0, 2, 0); -} else { - x_578 = x_493; +lean_ctor_set(x_534, 0, x_502); +lean_ctor_set(x_534, 1, x_533); +x_535 = lean_array_push(x_480, x_534); +x_536 = lean_array_push(x_535, x_505); +x_537 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_537, 0, x_499); +lean_ctor_set(x_537, 1, x_536); +x_538 = lean_array_push(x_484, x_537); +x_539 = lean_array_push(x_538, x_510); +x_540 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_540, 0, x_512); +lean_ctor_set(x_540, 1, x_539); +x_541 = l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(x_463); +x_542 = lean_ctor_get(x_456, 0); +lean_inc(x_542); +x_543 = lean_ctor_get(x_456, 1); +lean_inc(x_543); +x_544 = lean_ctor_get(x_456, 2); +lean_inc(x_544); +lean_dec(x_456); +x_545 = lean_string_utf8_extract(x_542, x_543, x_544); +lean_dec(x_544); +lean_dec(x_543); +lean_dec(x_542); +x_546 = l_Lean_Syntax_mkStrLit(x_545, x_477); +lean_dec(x_545); +x_547 = l_Lean_mkOptionalNode___closed__2; +x_548 = lean_array_push(x_547, x_546); +x_549 = l_Lean_instQuoteSubstring___closed__4; +x_550 = l_Lean_Syntax_mkCApp(x_549, x_548); +x_551 = lean_array_push(x_514, x_550); +x_552 = lean_array_push(x_551, x_540); +x_553 = lean_array_push(x_552, x_541); +x_554 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_554, 0, x_499); +lean_ctor_set(x_554, 1, x_553); +x_555 = lean_array_push(x_481, x_554); +x_556 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_556, 0, x_502); +lean_ctor_set(x_556, 1, x_555); +lean_ctor_set(x_471, 0, x_556); +return x_471; } -lean_ctor_set(x_578, 0, x_577); -lean_ctor_set(x_578, 1, x_492); -return x_578; +else +{ +lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; +x_557 = lean_ctor_get(x_471, 0); +x_558 = lean_ctor_get(x_471, 1); +lean_inc(x_558); +lean_inc(x_557); +lean_dec(x_471); +x_559 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52; +lean_inc(x_469); +lean_inc(x_557); +x_560 = l_Lean_addMacroScope(x_557, x_559, x_469); +x_561 = lean_box(0); +x_562 = l_Lean_instInhabitedSourceInfo___closed__1; +x_563 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51; +x_564 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55; +lean_ctor_set(x_1, 3, x_564); +lean_ctor_set(x_1, 2, x_560); +lean_ctor_set(x_1, 1, x_563); +lean_ctor_set(x_1, 0, x_562); +x_565 = l_Array_empty___closed__1; +x_566 = lean_array_push(x_565, x_1); +x_567 = l_prec_x28___x29___closed__3; +lean_inc(x_466); +x_568 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_568, 0, x_466); +lean_ctor_set(x_568, 1, x_567); +x_569 = lean_array_push(x_565, x_568); +x_570 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; +lean_inc(x_469); +lean_inc(x_557); +x_571 = l_Lean_addMacroScope(x_557, x_570, x_469); +x_572 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58; +x_573 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65; +x_574 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_574, 0, x_562); +lean_ctor_set(x_574, 1, x_572); +lean_ctor_set(x_574, 2, x_571); +lean_ctor_set(x_574, 3, x_573); +x_575 = lean_array_push(x_565, x_574); +x_576 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; +lean_inc(x_469); +lean_inc(x_557); +x_577 = l_Lean_addMacroScope(x_557, x_576, x_469); +x_578 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; +x_579 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; +x_580 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_580, 0, x_562); +lean_ctor_set(x_580, 1, x_578); +lean_ctor_set(x_580, 2, x_577); +lean_ctor_set(x_580, 3, x_579); +lean_inc(x_580); +x_581 = lean_array_push(x_565, x_580); +lean_inc(x_580); +x_582 = lean_array_push(x_581, x_580); +x_583 = lean_array_push(x_582, x_580); +x_584 = l_Lean_nullKind___closed__2; +x_585 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_585, 0, x_584); +lean_ctor_set(x_585, 1, x_583); +x_586 = lean_array_push(x_575, x_585); +x_587 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_588 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_588, 0, x_587); +lean_ctor_set(x_588, 1, x_586); +x_589 = lean_array_push(x_565, x_588); +x_590 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_591 = lean_array_push(x_589, x_590); +x_592 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_592, 0, x_584); +lean_ctor_set(x_592, 1, x_591); +lean_inc(x_569); +x_593 = lean_array_push(x_569, x_592); +x_594 = l_prec_x28___x29___closed__7; +x_595 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_595, 0, x_466); +lean_ctor_set(x_595, 1, x_594); +lean_inc(x_595); +x_596 = lean_array_push(x_593, x_595); +x_597 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_598 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_598, 0, x_597); +lean_ctor_set(x_598, 1, x_596); +x_599 = lean_array_push(x_565, x_598); +x_600 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71; +lean_inc(x_469); +lean_inc(x_557); +x_601 = l_Lean_addMacroScope(x_557, x_600, x_469); +x_602 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70; +x_603 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74; +x_604 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_604, 0, x_562); +lean_ctor_set(x_604, 1, x_602); +lean_ctor_set(x_604, 2, x_601); +lean_ctor_set(x_604, 3, x_603); +x_605 = lean_array_push(x_565, x_604); +x_606 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78; +lean_inc(x_469); +lean_inc(x_557); +x_607 = l_Lean_addMacroScope(x_557, x_606, x_469); +x_608 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77; +x_609 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_609, 0, x_562); +lean_ctor_set(x_609, 1, x_608); +lean_ctor_set(x_609, 2, x_607); +lean_ctor_set(x_609, 3, x_561); +x_610 = lean_array_push(x_565, x_609); +x_611 = lean_array_push(x_610, x_464); +x_612 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82; +x_613 = l_Lean_addMacroScope(x_557, x_612, x_469); +x_614 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81; +x_615 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_615, 0, x_562); +lean_ctor_set(x_615, 1, x_614); +lean_ctor_set(x_615, 2, x_613); +lean_ctor_set(x_615, 3, x_561); +x_616 = lean_array_push(x_611, x_615); +x_617 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_617, 0, x_584); +lean_ctor_set(x_617, 1, x_616); +x_618 = lean_array_push(x_605, x_617); +x_619 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_619, 0, x_587); +lean_ctor_set(x_619, 1, x_618); +x_620 = lean_array_push(x_565, x_619); +x_621 = lean_array_push(x_620, x_590); +x_622 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_622, 0, x_584); +lean_ctor_set(x_622, 1, x_621); +x_623 = lean_array_push(x_569, x_622); +x_624 = lean_array_push(x_623, x_595); +x_625 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_625, 0, x_597); +lean_ctor_set(x_625, 1, x_624); +x_626 = l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(x_463); +x_627 = lean_ctor_get(x_456, 0); +lean_inc(x_627); +x_628 = lean_ctor_get(x_456, 1); +lean_inc(x_628); +x_629 = lean_ctor_get(x_456, 2); +lean_inc(x_629); +lean_dec(x_456); +x_630 = lean_string_utf8_extract(x_627, x_628, x_629); +lean_dec(x_629); +lean_dec(x_628); +lean_dec(x_627); +x_631 = l_Lean_Syntax_mkStrLit(x_630, x_562); +lean_dec(x_630); +x_632 = l_Lean_mkOptionalNode___closed__2; +x_633 = lean_array_push(x_632, x_631); +x_634 = l_Lean_instQuoteSubstring___closed__4; +x_635 = l_Lean_Syntax_mkCApp(x_634, x_633); +x_636 = lean_array_push(x_599, x_635); +x_637 = lean_array_push(x_636, x_625); +x_638 = lean_array_push(x_637, x_626); +x_639 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_639, 0, x_584); +lean_ctor_set(x_639, 1, x_638); +x_640 = lean_array_push(x_566, x_639); +x_641 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_641, 0, x_587); +lean_ctor_set(x_641, 1, x_640); +x_642 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_642, 0, x_641); +lean_ctor_set(x_642, 1, x_558); +return x_642; +} +} +else +{ +lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; +x_643 = lean_ctor_get(x_1, 1); +x_644 = lean_ctor_get(x_1, 2); +x_645 = lean_ctor_get(x_1, 3); +lean_inc(x_645); +lean_inc(x_644); +lean_inc(x_643); +lean_dec(x_1); +lean_inc(x_6); +lean_inc(x_644); +x_646 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(x_644, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_647 = lean_ctor_get(x_646, 0); +lean_inc(x_647); +x_648 = lean_ctor_get(x_646, 1); +lean_inc(x_648); +lean_dec(x_646); +x_649 = l_List_append___rarg(x_647, x_645); +x_650 = l___private_Init_Meta_0__Lean_quoteName(x_644); +x_651 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_6, x_7, x_648); +x_652 = lean_ctor_get(x_651, 0); +lean_inc(x_652); +x_653 = lean_ctor_get(x_651, 1); +lean_inc(x_653); +lean_dec(x_651); +x_654 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3, x_4, x_5, x_6, x_7, x_653); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_655 = lean_ctor_get(x_654, 0); +lean_inc(x_655); +x_656 = lean_ctor_get(x_654, 1); +lean_inc(x_656); +lean_dec(x_654); +x_657 = l_Lean_Elab_Term_getMainModule___rarg(x_7, x_656); +lean_dec(x_7); +x_658 = lean_ctor_get(x_657, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_657, 1); +lean_inc(x_659); +if (lean_is_exclusive(x_657)) { + lean_ctor_release(x_657, 0); + lean_ctor_release(x_657, 1); + x_660 = x_657; +} else { + lean_dec_ref(x_657); + x_660 = lean_box(0); +} +x_661 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__52; +lean_inc(x_655); +lean_inc(x_658); +x_662 = l_Lean_addMacroScope(x_658, x_661, x_655); +x_663 = lean_box(0); +x_664 = l_Lean_instInhabitedSourceInfo___closed__1; +x_665 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__51; +x_666 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__55; +x_667 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_667, 0, x_664); +lean_ctor_set(x_667, 1, x_665); +lean_ctor_set(x_667, 2, x_662); +lean_ctor_set(x_667, 3, x_666); +x_668 = l_Array_empty___closed__1; +x_669 = lean_array_push(x_668, x_667); +x_670 = l_prec_x28___x29___closed__3; +lean_inc(x_652); +x_671 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_671, 0, x_652); +lean_ctor_set(x_671, 1, x_670); +x_672 = lean_array_push(x_668, x_671); +x_673 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__61; +lean_inc(x_655); +lean_inc(x_658); +x_674 = l_Lean_addMacroScope(x_658, x_673, x_655); +x_675 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__58; +x_676 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__65; +x_677 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_677, 0, x_664); +lean_ctor_set(x_677, 1, x_675); +lean_ctor_set(x_677, 2, x_674); +lean_ctor_set(x_677, 3, x_676); +x_678 = lean_array_push(x_668, x_677); +x_679 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__6; +lean_inc(x_655); +lean_inc(x_658); +x_680 = l_Lean_addMacroScope(x_658, x_679, x_655); +x_681 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; +x_682 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; +x_683 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_683, 0, x_664); +lean_ctor_set(x_683, 1, x_681); +lean_ctor_set(x_683, 2, x_680); +lean_ctor_set(x_683, 3, x_682); +lean_inc(x_683); +x_684 = lean_array_push(x_668, x_683); +lean_inc(x_683); +x_685 = lean_array_push(x_684, x_683); +x_686 = lean_array_push(x_685, x_683); +x_687 = l_Lean_nullKind___closed__2; +x_688 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_688, 0, x_687); +lean_ctor_set(x_688, 1, x_686); +x_689 = lean_array_push(x_678, x_688); +x_690 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4; +x_691 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_691, 0, x_690); +lean_ctor_set(x_691, 1, x_689); +x_692 = lean_array_push(x_668, x_691); +x_693 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8; +x_694 = lean_array_push(x_692, x_693); +x_695 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_695, 0, x_687); +lean_ctor_set(x_695, 1, x_694); +lean_inc(x_672); +x_696 = lean_array_push(x_672, x_695); +x_697 = l_prec_x28___x29___closed__7; +x_698 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_698, 0, x_652); +lean_ctor_set(x_698, 1, x_697); +lean_inc(x_698); +x_699 = lean_array_push(x_696, x_698); +x_700 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_701 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_701, 0, x_700); +lean_ctor_set(x_701, 1, x_699); +x_702 = lean_array_push(x_668, x_701); +x_703 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71; +lean_inc(x_655); +lean_inc(x_658); +x_704 = l_Lean_addMacroScope(x_658, x_703, x_655); +x_705 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70; +x_706 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74; +x_707 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_707, 0, x_664); +lean_ctor_set(x_707, 1, x_705); +lean_ctor_set(x_707, 2, x_704); +lean_ctor_set(x_707, 3, x_706); +x_708 = lean_array_push(x_668, x_707); +x_709 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78; +lean_inc(x_655); +lean_inc(x_658); +x_710 = l_Lean_addMacroScope(x_658, x_709, x_655); +x_711 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77; +x_712 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_712, 0, x_664); +lean_ctor_set(x_712, 1, x_711); +lean_ctor_set(x_712, 2, x_710); +lean_ctor_set(x_712, 3, x_663); +x_713 = lean_array_push(x_668, x_712); +x_714 = lean_array_push(x_713, x_650); +x_715 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82; +x_716 = l_Lean_addMacroScope(x_658, x_715, x_655); +x_717 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81; +x_718 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_718, 0, x_664); +lean_ctor_set(x_718, 1, x_717); +lean_ctor_set(x_718, 2, x_716); +lean_ctor_set(x_718, 3, x_663); +x_719 = lean_array_push(x_714, x_718); +x_720 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_720, 0, x_687); +lean_ctor_set(x_720, 1, x_719); +x_721 = lean_array_push(x_708, x_720); +x_722 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_722, 0, x_690); +lean_ctor_set(x_722, 1, x_721); +x_723 = lean_array_push(x_668, x_722); +x_724 = lean_array_push(x_723, x_693); +x_725 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_725, 0, x_687); +lean_ctor_set(x_725, 1, x_724); +x_726 = lean_array_push(x_672, x_725); +x_727 = lean_array_push(x_726, x_698); +x_728 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_728, 0, x_700); +lean_ctor_set(x_728, 1, x_727); +x_729 = l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(x_649); +x_730 = lean_ctor_get(x_643, 0); +lean_inc(x_730); +x_731 = lean_ctor_get(x_643, 1); +lean_inc(x_731); +x_732 = lean_ctor_get(x_643, 2); +lean_inc(x_732); +lean_dec(x_643); +x_733 = lean_string_utf8_extract(x_730, x_731, x_732); +lean_dec(x_732); +lean_dec(x_731); +lean_dec(x_730); +x_734 = l_Lean_Syntax_mkStrLit(x_733, x_664); +lean_dec(x_733); +x_735 = l_Lean_mkOptionalNode___closed__2; +x_736 = lean_array_push(x_735, x_734); +x_737 = l_Lean_instQuoteSubstring___closed__4; +x_738 = l_Lean_Syntax_mkCApp(x_737, x_736); +x_739 = lean_array_push(x_702, x_738); +x_740 = lean_array_push(x_739, x_728); +x_741 = lean_array_push(x_740, x_729); +x_742 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_742, 0, x_687); +lean_ctor_set(x_742, 1, x_741); +x_743 = lean_array_push(x_669, x_742); +x_744 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_744, 0, x_690); +lean_ctor_set(x_744, 1, x_743); +if (lean_is_scalar(x_660)) { + x_745 = lean_alloc_ctor(0, 2, 0); +} else { + x_745 = x_660; +} +lean_ctor_set(x_745, 0, x_744); +lean_ctor_set(x_745, 1, x_659); +return x_745; } } } @@ -12627,11 +13095,11 @@ x_41 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_41, 0, x_14); lean_ctor_set(x_41, 1, x_40); x_42 = lean_array_push(x_29, x_41); -x_43 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; +x_43 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; lean_inc(x_17); lean_inc(x_21); x_44 = l_Lean_addMacroScope(x_21, x_43, x_17); -x_45 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; +x_45 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; x_46 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_46, 0, x_25); lean_ctor_set(x_46, 1, x_45); @@ -12662,11 +13130,11 @@ lean_ctor_set(x_58, 1, x_56); lean_ctor_set(x_58, 2, x_55); lean_ctor_set(x_58, 3, x_57); x_59 = lean_array_push(x_29, x_58); -x_60 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; +x_60 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82; lean_inc(x_17); lean_inc(x_21); x_61 = l_Lean_addMacroScope(x_21, x_60, x_17); -x_62 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; +x_62 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81; x_63 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_63, 0, x_25); lean_ctor_set(x_63, 1, x_62); @@ -12691,11 +13159,11 @@ lean_ctor_set(x_72, 1, x_70); lean_ctor_set(x_72, 2, x_69); lean_ctor_set(x_72, 3, x_71); x_73 = lean_array_push(x_29, x_72); -x_74 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64; +x_74 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78; lean_inc(x_17); lean_inc(x_21); x_75 = l_Lean_addMacroScope(x_21, x_74, x_17); -x_76 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; +x_76 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77; x_77 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_77, 0, x_25); lean_ctor_set(x_77, 1, x_76); @@ -12870,11 +13338,11 @@ x_162 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_162, 0, x_14); lean_ctor_set(x_162, 1, x_161); x_163 = lean_array_push(x_150, x_162); -x_164 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__34; +x_164 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__48; lean_inc(x_17); lean_inc(x_141); x_165 = l_Lean_addMacroScope(x_141, x_164, x_17); -x_166 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__33; +x_166 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__47; x_167 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_167, 0, x_146); lean_ctor_set(x_167, 1, x_166); @@ -12905,11 +13373,11 @@ lean_ctor_set(x_179, 1, x_177); lean_ctor_set(x_179, 2, x_176); lean_ctor_set(x_179, 3, x_178); x_180 = lean_array_push(x_150, x_179); -x_181 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68; +x_181 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82; lean_inc(x_17); lean_inc(x_141); x_182 = l_Lean_addMacroScope(x_141, x_181, x_17); -x_183 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; +x_183 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81; x_184 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_184, 0, x_146); lean_ctor_set(x_184, 1, x_183); @@ -12934,11 +13402,11 @@ lean_ctor_set(x_193, 1, x_191); lean_ctor_set(x_193, 2, x_190); lean_ctor_set(x_193, 3, x_192); x_194 = lean_array_push(x_150, x_193); -x_195 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__64; +x_195 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78; lean_inc(x_17); lean_inc(x_141); x_196 = l_Lean_addMacroScope(x_141, x_195, x_17); -x_197 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__63; +x_197 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77; x_198 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_198, 0, x_146); lean_ctor_set(x_198, 1, x_197); @@ -13199,7 +13667,7 @@ x_1 = l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__9; return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -13208,13 +13676,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__4; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__1; +x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__1; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13222,7 +13690,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3() { _start: { lean_object* x_1; @@ -13230,22 +13698,22 @@ x_1 = lean_mk_string("elabQuot"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__4; +x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__4; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13253,17 +13721,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__7() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -13272,13 +13740,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__8; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__7; +x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__7; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13286,7 +13754,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -13296,7 +13764,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__10() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -13308,19 +13776,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__10; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__10; x_3 = lean_alloc_ctor(1, 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_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12() { _start: { lean_object* x_1; @@ -13328,22 +13796,22 @@ x_1 = lean_mk_string("adaptExpander"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__13() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__13; +x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__13; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13351,51 +13819,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__16() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__1; -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__17() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__16; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__16; 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_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__17; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__17; x_3 = lean_alloc_ctor(1, 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_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19() { _start: { lean_object* x_1; @@ -13403,22 +13871,22 @@ x_1 = lean_mk_string("stxQuot.expand"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__20() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__20; +x_3 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__20; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -13426,7 +13894,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22() { _start: { lean_object* x_1; @@ -13434,17 +13902,17 @@ x_1 = lean_mk_string("stxQuot"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__23() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24() { _start: { lean_object* x_1; @@ -13452,61 +13920,61 @@ x_1 = lean_mk_string("expand"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__23; -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__23; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__26() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__2; -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__27() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__26; -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24; +x_1 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__26; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__28() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__27; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__27; 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_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__28; +x_2 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__28; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -13554,7 +14022,7 @@ lean_inc(x_14); x_20 = l_Lean_addMacroScope(x_14, x_19, x_13); x_21 = lean_box(0); x_22 = l_Lean_instInhabitedSourceInfo___closed__1; -x_23 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2; +x_23 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2; x_24 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -13614,11 +14082,11 @@ x_57 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_57, 0, x_12); lean_ctor_set(x_57, 1, x_56); x_58 = lean_array_push(x_17, x_57); -x_59 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6; +x_59 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6; lean_inc(x_13); lean_inc(x_14); x_60 = l_Lean_addMacroScope(x_14, x_59, x_13); -x_61 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5; +x_61 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5; x_62 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_62, 0, x_22); lean_ctor_set(x_62, 1, x_61); @@ -13637,12 +14105,12 @@ x_69 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_69, 0, x_12); lean_ctor_set(x_69, 1, x_68); x_70 = lean_array_push(x_17, x_69); -x_71 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9; +x_71 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9; lean_inc(x_13); lean_inc(x_14); x_72 = l_Lean_addMacroScope(x_14, x_71, x_13); -x_73 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8; -x_74 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11; +x_73 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8; +x_74 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11; x_75 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_75, 0, x_22); lean_ctor_set(x_75, 1, x_73); @@ -13668,22 +14136,22 @@ x_86 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_86, 0, x_12); lean_ctor_set(x_86, 1, x_85); x_87 = lean_array_push(x_17, x_86); -x_88 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15; +x_88 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15; lean_inc(x_13); lean_inc(x_14); x_89 = l_Lean_addMacroScope(x_14, x_88, x_13); -x_90 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14; -x_91 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18; +x_90 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14; +x_91 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18; x_92 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_92, 0, x_22); lean_ctor_set(x_92, 1, x_90); lean_ctor_set(x_92, 2, x_89); lean_ctor_set(x_92, 3, x_91); x_93 = lean_array_push(x_17, x_92); -x_94 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25; +x_94 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25; x_95 = l_Lean_addMacroScope(x_14, x_94, x_13); -x_96 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21; -x_97 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29; +x_96 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21; +x_97 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29; x_98 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_98, 0, x_22); lean_ctor_set(x_98, 1, x_96); @@ -13743,7 +14211,7 @@ lean_inc(x_117); x_123 = l_Lean_addMacroScope(x_117, x_122, x_116); x_124 = lean_box(0); x_125 = l_Lean_instInhabitedSourceInfo___closed__1; -x_126 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2; +x_126 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2; x_127 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_127, 0, x_125); lean_ctor_set(x_127, 1, x_126); @@ -13803,11 +14271,11 @@ x_160 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_160, 0, x_114); lean_ctor_set(x_160, 1, x_159); x_161 = lean_array_push(x_120, x_160); -x_162 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6; +x_162 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6; lean_inc(x_116); lean_inc(x_117); x_163 = l_Lean_addMacroScope(x_117, x_162, x_116); -x_164 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5; +x_164 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5; x_165 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_165, 0, x_125); lean_ctor_set(x_165, 1, x_164); @@ -13826,12 +14294,12 @@ x_172 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_172, 0, x_114); lean_ctor_set(x_172, 1, x_171); x_173 = lean_array_push(x_120, x_172); -x_174 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9; +x_174 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9; lean_inc(x_116); lean_inc(x_117); x_175 = l_Lean_addMacroScope(x_117, x_174, x_116); -x_176 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8; -x_177 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11; +x_176 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8; +x_177 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11; x_178 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_178, 0, x_125); lean_ctor_set(x_178, 1, x_176); @@ -13857,22 +14325,22 @@ x_189 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_189, 0, x_114); lean_ctor_set(x_189, 1, x_188); x_190 = lean_array_push(x_120, x_189); -x_191 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15; +x_191 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15; lean_inc(x_116); lean_inc(x_117); x_192 = l_Lean_addMacroScope(x_117, x_191, x_116); -x_193 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14; -x_194 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18; +x_193 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14; +x_194 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18; x_195 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_195, 0, x_125); lean_ctor_set(x_195, 1, x_193); lean_ctor_set(x_195, 2, x_192); lean_ctor_set(x_195, 3, x_194); x_196 = lean_array_push(x_120, x_195); -x_197 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25; +x_197 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25; x_198 = l_Lean_addMacroScope(x_117, x_197, x_116); -x_199 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21; -x_200 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29; +x_199 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21; +x_200 = l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29; x_201 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_201, 0, x_125); lean_ctor_set(x_201, 1, x_199); @@ -13911,7 +14379,7 @@ return x_217; } } } -static lean_object* _init_l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1() { _start: { lean_object* x_1; @@ -13919,366 +14387,366 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_stxQuot_expand), 8, return x_1; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Level_quot___elambda__1___closed__1; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_quot___elambda__1___closed__1; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__3; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_matchDiscr_quot___elambda__1___closed__1; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Tactic_quot___elambda__1___closed__1; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_stx_quot___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_prec_quot___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_attr_quot___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_prio_quot___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Parser_Term_doElem_quot___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987_(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* l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158_(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; -x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1; +x_10 = l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1; x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987_), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158_), 9, 0); return x_1; } } -lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987_(lean_object* x_1) { +lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; x_3 = l_Lean_Syntax_getQuotContent___closed__1; -x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158____closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -21671,7 +22139,7 @@ x_196 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Ela x_197 = l_Lean_addMacroScope(x_194, x_196, x_191); x_198 = l_Lean_instInhabitedSourceInfo___closed__1; x_199 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__5; -x_200 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__53; +x_200 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67; x_201 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_201, 0, x_198); lean_ctor_set(x_201, 1, x_199); @@ -24312,73 +24780,6 @@ return x_128; } } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("discr.getHeadInfo.get!"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("getHeadInfo"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("get!"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__5; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__6; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27(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: { @@ -24419,11 +24820,11 @@ x_29 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_29, 0, x_11); lean_ctor_set(x_29, 1, x_28); x_30 = lean_array_push(x_27, x_29); -x_31 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7; +x_31 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; x_32 = l_Lean_addMacroScope(x_18, x_31, x_14); x_33 = lean_box(0); x_34 = l_Lean_instInhabitedSourceInfo___closed__1; -x_35 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3; +x_35 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; x_36 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); @@ -24484,11 +24885,11 @@ x_65 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_65, 0, x_11); lean_ctor_set(x_65, 1, x_64); x_66 = lean_array_push(x_63, x_65); -x_67 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7; +x_67 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; x_68 = l_Lean_addMacroScope(x_53, x_67, x_14); x_69 = lean_box(0); x_70 = l_Lean_instInhabitedSourceInfo___closed__1; -x_71 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3; +x_71 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; x_72 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_72, 0, x_70); lean_ctor_set(x_72, 1, x_71); @@ -34122,7 +34523,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11571_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11738_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -34467,6 +34868,34 @@ l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__67); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68(); lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__68); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__69 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__69(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__69); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__70); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__71); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__72 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__72(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__72); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__73 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__73(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__73); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__74); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__75); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__76 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__76(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__76); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__77); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__78); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__79); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__80 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__80(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__80); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__81); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__82); l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1 = _init_l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1); l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__2 = _init_l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__2(); @@ -34551,129 +34980,129 @@ l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__9 = _init_l_Lean lean_mark_persistent(l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21_______closed__9); l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21____ = _init_l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21____(); lean_mark_persistent(l_Lean_Elab_Term_Quotation_commandElabStxQuot_x21____); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__1 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__1); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__2); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__3); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__4 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__4); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__5); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__6); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__7 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__7); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__8); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__9); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__10 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__10); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__11); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__12); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__13 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__13); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__14); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__15); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__16 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__16(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__16); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__17 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__17(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__17); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__18); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__19); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__20 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__20(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__20); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__21); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__22); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__23 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__23(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__23); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__24); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__25); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__26 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__26(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__26); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__27 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__27(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__27); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__28 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__28(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__28); -l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3482____closed__29); -l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1 = _init_l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3927_(lean_io_mk_world()); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__1 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__1); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__2); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__3); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__4 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__4); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__5); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__6); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__7 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__7); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__8); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__9); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__10 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__10); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__11); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__12); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__13 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__13); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__14); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__15); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__16 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__16(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__16); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__17 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__17(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__17); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__18); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__19); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__20 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__20(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__20); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__21); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__22); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__23 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__23(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__23); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__24); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__25); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__26 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__26(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__26); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__27 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__27(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__27); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__28 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__28(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__28); +l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29 = _init_l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3653____closed__29); +l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1 = _init_l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4098_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3932_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4103_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3937_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4108_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3942_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4113_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3947_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4118_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3952_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4123_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3957_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4128_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3962_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4133_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3967_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4138_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3972_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4143_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3977_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4148_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3982_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4153_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987____closed__1); -res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_3987_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158____closed__1 = _init_l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158____closed__1); +res = l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4158_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___closed__1(); @@ -34924,20 +35353,6 @@ l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6(); lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__3); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__4 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__4); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__5 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__5); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__6 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__6); -l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__7); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__2 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__2(); @@ -35005,7 +35420,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___c res = l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11571_(lean_io_mk_world()); +res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11738_(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/Parser/Transform.c b/stage0/stdlib/Lean/Parser/Transform.c new file mode 100644 index 0000000000..61631c5c42 --- /dev/null +++ b/stage0/stdlib/Lean/Parser/Transform.c @@ -0,0 +1,1586 @@ +// Lean compiler output +// Module: Lean.Parser.Transform +// Imports: Init Lean.Parser.Basic +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_setTailInfo(lean_object*, lean_object*); +lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); +lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_removeParen_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__1(lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedSourceInfo___closed__1; +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedSyntax; +lean_object* l_Lean_Syntax_manyToSepBy(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getNumArgs(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__2(lean_object*); +extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +lean_object* l_Lean_Syntax_removeParen(lean_object*); +uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* l_Lean_Syntax_getTailInfo(lean_object*); +extern lean_object* l_prec_x28___x29___closed__7; +lean_object* l_Lean_Syntax_manyToSepBy_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_Syntax_removeParen_match__1(lean_object*); +lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__2___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_manyToSepBy_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Syntax_manyToSepBy_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_manyToSepBy_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Syntax_manyToSepBy_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +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); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l_Lean_Syntax_manyToSepBy_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_manyToSepBy_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___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: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_3, 1); +x_8 = lean_nat_dec_le(x_7, x_5); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_4, x_9); +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_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_4, x_11); +lean_dec(x_4); +x_13 = l_Lean_instInhabitedSyntax; +x_14 = lean_array_get(x_13, x_2, x_5); +x_15 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_6); +x_16 = l_Lean_Syntax_getTailInfo(x_15); +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; lean_object* x_22; +lean_dec(x_15); +x_17 = l_Lean_instInhabitedSourceInfo___closed__1; +lean_inc(x_1); +x_18 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_1); +x_19 = lean_array_push(x_6, x_18); +x_20 = lean_array_push(x_19, x_14); +x_21 = lean_ctor_get(x_3, 2); +x_22 = lean_nat_add(x_5, x_21); +lean_dec(x_5); +x_4 = x_12; +x_5 = x_22; +x_6 = x_20; +goto _start; +} +else +{ +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; +x_24 = lean_ctor_get(x_16, 0); +lean_inc(x_24); +lean_dec(x_16); +x_25 = lean_array_get_size(x_6); +x_26 = lean_nat_sub(x_25, x_11); +lean_dec(x_25); +x_27 = lean_array_set(x_6, x_26, x_15); +lean_dec(x_26); +lean_inc(x_1); +x_28 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_1); +x_29 = lean_array_push(x_27, x_28); +x_30 = lean_array_push(x_29, x_14); +x_31 = lean_ctor_get(x_3, 2); +x_32 = lean_nat_add(x_5, x_31); +lean_dec(x_5); +x_4 = x_12; +x_5 = x_32; +x_6 = x_30; +goto _start; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +} +lean_object* l_Lean_Syntax_manyToSepBy(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t 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); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_1); +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; lean_object* x_16; lean_object* x_17; +x_9 = lean_ctor_get(x_1, 1); +lean_dec(x_9); +x_10 = lean_ctor_get(x_1, 0); +lean_dec(x_10); +x_11 = l_Lean_instInhabitedSyntax; +x_12 = lean_array_get(x_11, x_4, x_6); +x_13 = l_Lean_mkOptionalNode___closed__2; +x_14 = lean_array_push(x_13, x_12); +x_15 = lean_unsigned_to_nat(1u); +lean_inc(x_5); +x_16 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_5); +lean_ctor_set(x_16, 2, x_15); +x_17 = l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(x_2, x_4, x_16, x_5, x_15, x_14); +lean_dec(x_16); +lean_dec(x_4); +lean_ctor_set(x_1, 1, x_17); +return x_1; +} +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; lean_object* x_25; +lean_dec(x_1); +x_18 = l_Lean_instInhabitedSyntax; +x_19 = lean_array_get(x_18, x_4, x_6); +x_20 = l_Lean_mkOptionalNode___closed__2; +x_21 = lean_array_push(x_20, x_19); +x_22 = lean_unsigned_to_nat(1u); +lean_inc(x_5); +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_5); +lean_ctor_set(x_23, 2, x_22); +x_24 = l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(x_2, x_4, x_23, x_5, x_22, x_21); +lean_dec(x_23); +lean_dec(x_4); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_3); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +} +else +{ +lean_dec(x_2); +return x_1; +} +} +} +lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Std_Range_forIn_loop___at_Lean_Syntax_manyToSepBy___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Syntax_removeParen_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_5, 2); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +lean_dec(x_3); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_5, 2); +lean_dec(x_10); +x_11 = lean_ctor_get(x_5, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_5, 0); +lean_dec(x_12); +x_13 = !lean_is_exclusive(x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_1, 0); +lean_dec(x_14); +lean_ctor_set(x_5, 0, x_8); +x_15 = lean_apply_2(x_4, x_1, x_2); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_dec(x_1); +lean_ctor_set(x_5, 0, x_8); +x_17 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_apply_2(x_4, x_17, x_2); +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_dec(x_5); +x_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_20 = x_1; +} else { + lean_dec_ref(x_1); + x_20 = lean_box(0); +} +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_7); +lean_ctor_set(x_21, 2, x_8); +if (lean_is_scalar(x_20)) { + x_22 = lean_alloc_ctor(2, 2, 0); +} else { + x_22 = x_20; +} +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +x_23 = lean_apply_2(x_4, x_22, x_2); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_1, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_8, 0); +lean_inc(x_25); +x_26 = l_prec_x28___x29___closed__7; +x_27 = lean_string_dec_eq(x_24, x_26); +lean_dec(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +x_28 = lean_apply_2(x_4, x_1, x_2); +return x_28; +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_1); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_1, 1); +lean_dec(x_30); +x_31 = lean_ctor_get(x_1, 0); +lean_dec(x_31); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_32; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +lean_ctor_set(x_1, 1, x_26); +x_32 = lean_apply_2(x_4, x_1, x_2); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_5); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_5, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_5, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_5, 0); +lean_dec(x_38); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_2); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_2, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_33, 2); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +lean_dec(x_25); +lean_dec(x_3); +x_43 = !lean_is_exclusive(x_33); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_33, 2); +lean_dec(x_44); +x_45 = lean_ctor_get(x_33, 1); +lean_dec(x_45); +x_46 = lean_ctor_get(x_33, 0); +lean_dec(x_46); +lean_ctor_set(x_33, 2, x_8); +lean_ctor_set(x_33, 0, x_42); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_33); +lean_ctor_set(x_5, 2, x_42); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_42); +lean_ctor_set(x_2, 0, x_5); +x_47 = lean_apply_2(x_4, x_1, x_2); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_33); +x_48 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_39); +lean_ctor_set(x_48, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_48); +lean_ctor_set(x_5, 2, x_42); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_42); +lean_ctor_set(x_2, 0, x_5); +x_49 = lean_apply_2(x_4, x_1, x_2); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; +lean_free_object(x_2); +lean_free_object(x_5); +lean_free_object(x_1); +lean_dec(x_8); +lean_dec(x_4); +x_50 = lean_ctor_get(x_42, 0); +lean_inc(x_50); +lean_dec(x_42); +x_51 = lean_apply_3(x_3, x_25, x_33, x_50); +return x_51; +} +} +else +{ +lean_object* x_52; +lean_dec(x_2); +x_52 = lean_ctor_get(x_33, 2); +lean_inc(x_52); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + x_53 = x_33; +} else { + lean_dec_ref(x_33); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(0, 3, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_39); +lean_ctor_set(x_54, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_54); +lean_ctor_set(x_5, 2, x_52); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_52); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_5); +x_56 = lean_apply_2(x_4, x_1, x_55); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_free_object(x_5); +lean_free_object(x_1); +lean_dec(x_8); +lean_dec(x_4); +x_57 = lean_ctor_get(x_52, 0); +lean_inc(x_57); +lean_dec(x_52); +x_58 = lean_apply_3(x_3, x_25, x_33, x_57); +return x_58; +} +} +} +else +{ +uint8_t x_59; +lean_dec(x_39); +lean_free_object(x_5); +lean_dec(x_25); +lean_dec(x_3); +x_59 = !lean_is_exclusive(x_33); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_33, 2); +lean_dec(x_60); +x_61 = lean_ctor_get(x_33, 1); +lean_dec(x_61); +x_62 = lean_ctor_get(x_33, 0); +lean_dec(x_62); +lean_ctor_set(x_33, 2, x_8); +lean_ctor_set(x_33, 1, x_7); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_33); +x_63 = lean_apply_2(x_4, x_1, x_2); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_33); +x_64 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_64, 0, x_34); +lean_ctor_set(x_64, 1, x_7); +lean_ctor_set(x_64, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_64); +x_65 = lean_apply_2(x_4, x_1, x_2); +return x_65; +} +} +} +else +{ +lean_object* x_66; +lean_dec(x_5); +x_66 = lean_ctor_get(x_33, 1); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_67 = x_2; +} else { + lean_dec_ref(x_2); + x_67 = lean_box(0); +} +x_68 = lean_ctor_get(x_33, 2); +lean_inc(x_68); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + x_69 = x_33; +} else { + lean_dec_ref(x_33); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 3, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_66); +lean_ctor_set(x_70, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_70); +x_71 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_66); +lean_ctor_set(x_71, 2, x_68); +if (lean_is_scalar(x_67)) { + x_72 = lean_alloc_ctor(1, 1, 0); +} else { + x_72 = x_67; +} +lean_ctor_set(x_72, 0, x_71); +x_73 = lean_apply_2(x_4, x_1, x_72); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; +lean_dec(x_67); +lean_free_object(x_1); +lean_dec(x_8); +lean_dec(x_4); +x_74 = lean_ctor_get(x_68, 0); +lean_inc(x_74); +lean_dec(x_68); +x_75 = lean_apply_3(x_3, x_25, x_33, x_74); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_66); +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + x_76 = x_33; +} else { + lean_dec_ref(x_33); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(0, 3, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_34); +lean_ctor_set(x_77, 1, x_7); +lean_ctor_set(x_77, 2, x_8); +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_77); +x_78 = lean_apply_2(x_4, x_1, x_2); +return x_78; +} +} +} +else +{ +lean_object* x_79; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +lean_ctor_set(x_1, 1, x_26); +x_79 = lean_apply_2(x_4, x_1, x_2); +return x_79; +} +} +} +else +{ +lean_dec(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +x_80 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_80, 0, x_5); +lean_ctor_set(x_80, 1, x_26); +x_81 = lean_apply_2(x_4, x_80, x_2); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_2, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + x_84 = x_5; +} else { + lean_dec_ref(x_5); + x_84 = lean_box(0); +} +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + x_86 = x_2; +} else { + lean_dec_ref(x_2); + x_86 = lean_box(0); +} +x_87 = lean_ctor_get(x_82, 2); +lean_inc(x_87); +if (lean_obj_tag(x_87) == 0) +{ +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_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + x_88 = x_82; +} else { + lean_dec_ref(x_82); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 3, 0); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_85); +lean_ctor_set(x_89, 2, x_8); +x_90 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_26); +if (lean_is_scalar(x_84)) { + x_91 = lean_alloc_ctor(0, 3, 0); +} else { + x_91 = x_84; +} +lean_ctor_set(x_91, 0, x_87); +lean_ctor_set(x_91, 1, x_85); +lean_ctor_set(x_91, 2, x_87); +if (lean_is_scalar(x_86)) { + x_92 = lean_alloc_ctor(1, 1, 0); +} else { + x_92 = x_86; +} +lean_ctor_set(x_92, 0, x_91); +x_93 = lean_apply_2(x_4, x_90, x_92); +return x_93; +} +else +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_86); +lean_dec(x_84); +lean_dec(x_8); +lean_dec(x_4); +x_94 = lean_ctor_get(x_87, 0); +lean_inc(x_94); +lean_dec(x_87); +x_95 = lean_apply_3(x_3, x_25, x_82, x_94); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_25); +lean_dec(x_3); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + x_96 = x_82; +} else { + lean_dec_ref(x_82); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 3, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_83); +lean_ctor_set(x_97, 1, x_7); +lean_ctor_set(x_97, 2, x_8); +x_98 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_26); +x_99 = lean_apply_2(x_4, x_98, x_2); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_3); +x_100 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_100, 0, x_5); +lean_ctor_set(x_100, 1, x_26); +x_101 = lean_apply_2(x_4, x_100, x_2); +return x_101; +} +} +} +} +} +} +else +{ +lean_object* x_102; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_102 = lean_apply_2(x_4, x_1, x_2); +return x_102; +} +} +else +{ +lean_object* x_103; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_103 = lean_apply_2(x_4, x_1, x_2); +return x_103; +} +} +else +{ +lean_object* x_104; +lean_dec(x_3); +x_104 = lean_apply_2(x_4, x_1, x_2); +return x_104; +} +} +} +lean_object* l_Lean_Syntax_removeParen_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Syntax_removeParen_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Syntax_removeParen(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = l_myMacro____x40_Init_Notation___hyg_11546____closed__8; +x_5 = lean_name_eq(x_2, x_4); +if (x_5 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +else +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +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; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 1); +lean_dec(x_7); +x_8 = lean_ctor_get(x_1, 0); +lean_dec(x_8); +lean_inc(x_3); +x_9 = l_Lean_instInhabitedSyntax; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_array_get(x_9, x_3, x_10); +x_12 = l_Lean_Syntax_getNumArgs(x_11); +x_13 = lean_unsigned_to_nat(2u); +x_14 = lean_nat_dec_eq(x_12, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_dec(x_11); +lean_dec(x_3); +return x_1; +} +else +{ +lean_object* x_15; uint8_t x_16; +x_15 = l_Lean_Syntax_getArg(x_11, x_10); +x_16 = l_Lean_Syntax_isNone(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_dec(x_11); +lean_dec(x_3); +return x_1; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Lean_Syntax_getArg(x_11, x_17); +lean_dec(x_11); +x_19 = lean_array_get(x_9, x_3, x_13); +lean_dec(x_3); +if (lean_obj_tag(x_19) == 2) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Syntax_getTailInfo(x_18); +x_23 = lean_ctor_get(x_20, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_20, 2); +lean_inc(x_25); +lean_dec(x_20); +if (lean_obj_tag(x_25) == 0) +{ +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_18); +return x_1; +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l_prec_x28___x29___closed__7; +x_28 = lean_string_dec_eq(x_21, x_27); +lean_dec(x_21); +if (x_28 == 0) +{ +lean_dec(x_26); +lean_dec(x_22); +lean_dec(x_18); +return x_1; +} +else +{ +if (lean_obj_tag(x_22) == 0) +{ +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_22, 0); +lean_inc(x_29); +lean_dec(x_22); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 2); +x_34 = lean_ctor_get(x_29, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_29, 0); +lean_dec(x_35); +if (lean_obj_tag(x_33) == 0) +{ +lean_free_object(x_29); +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +else +{ +uint8_t x_36; +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) +{ +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; uint8_t x_44; +x_37 = lean_ctor_get(x_33, 0); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 2); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_string_utf8_extract(x_38, x_39, x_40); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +x_42 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_43 = lean_string_append(x_41, x_42); +x_44 = !lean_is_exclusive(x_26); +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; +x_45 = lean_ctor_get(x_26, 0); +x_46 = lean_ctor_get(x_26, 1); +x_47 = lean_ctor_get(x_26, 2); +x_48 = lean_string_utf8_extract(x_45, x_46, x_47); +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +x_49 = lean_string_append(x_43, x_48); +lean_dec(x_48); +x_50 = lean_string_utf8_byte_size(x_49); +lean_ctor_set(x_26, 2, x_50); +lean_ctor_set(x_26, 1, x_17); +lean_ctor_set(x_26, 0, x_49); +lean_ctor_set(x_33, 0, x_26); +x_51 = l_Lean_Syntax_setTailInfo(x_18, x_29); +return x_51; +} +else +{ +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; +x_52 = lean_ctor_get(x_26, 0); +x_53 = lean_ctor_get(x_26, 1); +x_54 = lean_ctor_get(x_26, 2); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_26); +x_55 = lean_string_utf8_extract(x_52, x_53, x_54); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_52); +x_56 = lean_string_append(x_43, x_55); +lean_dec(x_55); +x_57 = lean_string_utf8_byte_size(x_56); +x_58 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_17); +lean_ctor_set(x_58, 2, x_57); +lean_ctor_set(x_33, 0, x_58); +x_59 = l_Lean_Syntax_setTailInfo(x_18, x_29); +return x_59; +} +} +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; lean_object* x_70; 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_60 = lean_ctor_get(x_33, 0); +lean_inc(x_60); +lean_dec(x_33); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_60, 2); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_string_utf8_extract(x_61, x_62, x_63); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +x_65 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_66 = lean_string_append(x_64, x_65); +x_67 = lean_ctor_get(x_26, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_26, 1); +lean_inc(x_68); +x_69 = lean_ctor_get(x_26, 2); +lean_inc(x_69); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + x_70 = x_26; +} else { + lean_dec_ref(x_26); + x_70 = lean_box(0); +} +x_71 = lean_string_utf8_extract(x_67, x_68, x_69); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_67); +x_72 = lean_string_append(x_66, x_71); +lean_dec(x_71); +x_73 = lean_string_utf8_byte_size(x_72); +if (lean_is_scalar(x_70)) { + x_74 = lean_alloc_ctor(0, 3, 0); +} else { + x_74 = x_70; +} +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_17); +lean_ctor_set(x_74, 2, x_73); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_29, 2, x_75); +x_76 = l_Lean_Syntax_setTailInfo(x_18, x_29); +return x_76; +} +} +} +else +{ +lean_object* x_77; +x_77 = lean_ctor_get(x_29, 2); +lean_inc(x_77); +lean_dec(x_29); +if (lean_obj_tag(x_77) == 0) +{ +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +else +{ +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; 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; +lean_dec(x_1); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + x_79 = x_77; +} else { + lean_dec_ref(x_77); + x_79 = lean_box(0); +} +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_78, 2); +lean_inc(x_82); +lean_dec(x_78); +x_83 = lean_string_utf8_extract(x_80, x_81, x_82); +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_80); +x_84 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_85 = lean_string_append(x_83, x_84); +x_86 = lean_ctor_get(x_26, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_26, 1); +lean_inc(x_87); +x_88 = lean_ctor_get(x_26, 2); +lean_inc(x_88); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + x_89 = x_26; +} else { + lean_dec_ref(x_26); + x_89 = lean_box(0); +} +x_90 = lean_string_utf8_extract(x_86, x_87, x_88); +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_86); +x_91 = lean_string_append(x_85, x_90); +lean_dec(x_90); +x_92 = lean_string_utf8_byte_size(x_91); +if (lean_is_scalar(x_89)) { + x_93 = lean_alloc_ctor(0, 3, 0); +} else { + x_93 = x_89; +} +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_17); +lean_ctor_set(x_93, 2, x_92); +if (lean_is_scalar(x_79)) { + x_94 = lean_alloc_ctor(1, 1, 0); +} else { + x_94 = x_79; +} +lean_ctor_set(x_94, 0, x_93); +x_95 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_95, 0, x_30); +lean_ctor_set(x_95, 1, x_31); +lean_ctor_set(x_95, 2, x_94); +x_96 = l_Lean_Syntax_setTailInfo(x_18, x_95); +return x_96; +} +} +} +else +{ +lean_dec(x_31); +lean_dec(x_29); +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +} +else +{ +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_26); +lean_dec(x_18); +return x_1; +} +} +} +} +} +else +{ +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_18); +return x_1; +} +} +else +{ +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_18); +return x_1; +} +} +else +{ +lean_dec(x_19); +lean_dec(x_18); +return x_1; +} +} +} +} +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; uint8_t x_103; +lean_dec(x_1); +lean_inc(x_3); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_2); +lean_ctor_set(x_97, 1, x_3); +x_98 = l_Lean_instInhabitedSyntax; +x_99 = lean_unsigned_to_nat(1u); +x_100 = lean_array_get(x_98, x_3, x_99); +x_101 = l_Lean_Syntax_getNumArgs(x_100); +x_102 = lean_unsigned_to_nat(2u); +x_103 = lean_nat_dec_eq(x_101, x_102); +lean_dec(x_101); +if (x_103 == 0) +{ +lean_dec(x_100); +lean_dec(x_3); +return x_97; +} +else +{ +lean_object* x_104; uint8_t x_105; +x_104 = l_Lean_Syntax_getArg(x_100, x_99); +x_105 = l_Lean_Syntax_isNone(x_104); +lean_dec(x_104); +if (x_105 == 0) +{ +lean_dec(x_100); +lean_dec(x_3); +return x_97; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_unsigned_to_nat(0u); +x_107 = l_Lean_Syntax_getArg(x_100, x_106); +lean_dec(x_100); +x_108 = lean_array_get(x_98, x_3, x_102); +lean_dec(x_3); +if (lean_obj_tag(x_108) == 2) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +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(x_108); +x_111 = l_Lean_Syntax_getTailInfo(x_107); +x_112 = lean_ctor_get(x_109, 0); +lean_inc(x_112); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; +x_113 = lean_ctor_get(x_109, 1); +lean_inc(x_113); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; +x_114 = lean_ctor_get(x_109, 2); +lean_inc(x_114); +lean_dec(x_109); +if (lean_obj_tag(x_114) == 0) +{ +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_107); +return x_97; +} +else +{ +lean_object* x_115; lean_object* x_116; uint8_t x_117; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +lean_dec(x_114); +x_116 = l_prec_x28___x29___closed__7; +x_117 = lean_string_dec_eq(x_110, x_116); +lean_dec(x_110); +if (x_117 == 0) +{ +lean_dec(x_115); +lean_dec(x_111); +lean_dec(x_107); +return x_97; +} +else +{ +if (lean_obj_tag(x_111) == 0) +{ +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +else +{ +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_111, 0); +lean_inc(x_118); +lean_dec(x_111); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +if (lean_obj_tag(x_120) == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_118, 2); +lean_inc(x_121); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + lean_ctor_release(x_118, 2); + x_122 = x_118; +} else { + lean_dec_ref(x_118); + x_122 = lean_box(0); +} +if (lean_obj_tag(x_121) == 0) +{ +lean_dec(x_122); +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +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_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_97); +x_123 = lean_ctor_get(x_121, 0); +lean_inc(x_123); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + x_124 = x_121; +} else { + lean_dec_ref(x_121); + x_124 = lean_box(0); +} +x_125 = lean_ctor_get(x_123, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_123, 2); +lean_inc(x_127); +lean_dec(x_123); +x_128 = lean_string_utf8_extract(x_125, x_126, x_127); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_125); +x_129 = l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___closed__3; +x_130 = lean_string_append(x_128, x_129); +x_131 = lean_ctor_get(x_115, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_115, 1); +lean_inc(x_132); +x_133 = lean_ctor_get(x_115, 2); +lean_inc(x_133); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + lean_ctor_release(x_115, 2); + x_134 = x_115; +} else { + lean_dec_ref(x_115); + x_134 = lean_box(0); +} +x_135 = lean_string_utf8_extract(x_131, x_132, x_133); +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_131); +x_136 = lean_string_append(x_130, x_135); +lean_dec(x_135); +x_137 = lean_string_utf8_byte_size(x_136); +if (lean_is_scalar(x_134)) { + x_138 = lean_alloc_ctor(0, 3, 0); +} else { + x_138 = x_134; +} +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_106); +lean_ctor_set(x_138, 2, x_137); +if (lean_is_scalar(x_124)) { + x_139 = lean_alloc_ctor(1, 1, 0); +} else { + x_139 = x_124; +} +lean_ctor_set(x_139, 0, x_138); +if (lean_is_scalar(x_122)) { + x_140 = lean_alloc_ctor(0, 3, 0); +} else { + x_140 = x_122; +} +lean_ctor_set(x_140, 0, x_119); +lean_ctor_set(x_140, 1, x_120); +lean_ctor_set(x_140, 2, x_139); +x_141 = l_Lean_Syntax_setTailInfo(x_107, x_140); +return x_141; +} +} +else +{ +lean_dec(x_120); +lean_dec(x_118); +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +} +else +{ +lean_dec(x_119); +lean_dec(x_118); +lean_dec(x_115); +lean_dec(x_107); +return x_97; +} +} +} +} +} +else +{ +lean_dec(x_113); +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +return x_97; +} +} +else +{ +lean_dec(x_112); +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_107); +return x_97; +} +} +else +{ +lean_dec(x_108); +lean_dec(x_107); +return x_97; +} +} +} +} +} +} +else +{ +return x_1; +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser_Basic(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Parser_Transform(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Parser_Basic(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)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 4a34fabbd2..a346244430 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -14,6 +14,7 @@ extern "C" { #endif lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__9(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_154____closed__7; lean_object* lean_string_push(lean_object*, uint32_t); lean_object* l_IO_mkRef___at_Lean_Server_FileWorker_initAndRunWorker___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___closed__1; @@ -26,7 +27,9 @@ lean_object* l_IO_AsyncList_unfoldAsync___at_Lean_Server_FileWorker_unfoldCmdSna lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover___rarg(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___lambda__2___boxed(lean_object*, lean_object*); extern lean_object* l_Char_quote___closed__1; @@ -34,13 +37,10 @@ lean_object* l_Lean_Server_FileWorker_handleDidOpen(lean_object*, lean_object*, lean_object* l_Std_RBNode_erase___at_Lean_Server_FileWorker_handleCancelRequest___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__3; lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__2___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__7; lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__28; @@ -74,14 +74,12 @@ lean_object* l_IO_throwServerError___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__2; extern lean_object* l_Std_instInhabitedPersistentArray___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__24; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__2(size_t, size_t, lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___closed__2; lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__1(lean_object*); lean_object* l_IO_FS_Stream_readMessage(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__1; lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___rarg___closed__1; lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__2; @@ -102,10 +100,8 @@ lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__4; lean_object* l_IO_getStdin___at_Lean_Server_FileWorker_workerMain___spec__1(lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_get_x21___rarg___closed__4; -extern lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__2; lean_object* l_ReaderT_bind___at_Lean_Server_FileWorker_handleRequest___spec__3(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mainLoop___closed__1; @@ -113,11 +109,9 @@ lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__1___rarg(lean_obje lean_object* l_Lean_Server_FileWorker_handleCancelRequest___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_instDecidableNot___rarg(uint8_t); extern lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__6; lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___boxed(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_compress(lean_object*); -extern lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__1; lean_object* l_Lean_Server_FileWorker_updateDocument_match__2(lean_object*); @@ -137,11 +131,11 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lea lean_object* l_IO_AsyncList_append___rarg(lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readLspNotificationAs___closed__1; lean_object* l_Std_RBNode_insert___at_Lean_Server_FileWorker_queueRequest___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11_(lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent(lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__3; lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__3; lean_object* l_Lean_Server_FileWorker_handleNotification_match__1___rarg___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__2; lean_object* l_Std_RBNode_appendTrees___rarg(lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__1; @@ -150,6 +144,7 @@ lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps___lambda__1(lean_object*, l lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__2(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); lean_object* l_IO_AsyncList_unfoldAsync___at_Lean_Server_FileWorker_unfoldCmdSnaps___spec__1(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_154____closed__3; extern lean_object* l_Lean_Lsp_Ipc_collectDiagnostics_loop_match__2___rarg___closed__1; lean_object* l_Lean_Server_Snapshots_compileHeader(lean_object*, lean_object*, lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); @@ -160,11 +155,10 @@ lean_object* l_IO_FS_Stream_writeLspMessage(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Server_FileWorker_initAndRunWorker_match__3(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3___closed__1; lean_object* l_List_get_x21___at_Lean_Server_FileWorker_updateDocument___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*); @@ -174,39 +168,38 @@ lean_object* l_Lean_Server_FileWorker_handleRequest(lean_object*, lean_object*, lean_object* l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDidChange___closed__2; -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__4; lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; lean_object* l_Lean_Server_FileWorker_parseParams_match__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_instInhabitedModuleParserState___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__10___boxed(lean_object*, 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_79_(lean_object*); lean_object* l_List_takeWhile___rarg(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853_(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_mkEmptyEnvironment___lambda__1___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__44; lean_object* l_Lean_FileMap_ofString(lean_object*); extern lean_object* l_Lean_Server_Snapshots_instInhabitedSnapshot; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Std_RBNode_balLeft___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__8(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1; lean_object* l_Lean_Server_FileWorker_mainLoop(lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; lean_object* lean_io_has_finished(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleNotification_match__1(lean_object*); lean_object* l_IO_AsyncList_ofList___rarg(lean_object*); lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__36; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readNotificationAs___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest___closed__1; lean_object* l_Lean_Server_Snapshots_parseNextCmd(lean_object*, lean_object*, lean_object*); @@ -244,8 +237,6 @@ lean_object* l_List_get_x21___at_Lean_Server_FileWorker_updateDocument___spec__2 extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__20; lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__3; lean_object* lean_panic_fn(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__2; -extern lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; lean_object* l_Lean_Server_FileWorker_handleRequest_match__1___rarg___closed__1; lean_object* lean_get_stdout(lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument(lean_object*, lean_object*, lean_object*, lean_object*); @@ -261,12 +252,12 @@ lean_object* l_Lean_Server_FileWorker_parseParams___rarg___boxed(lean_object*, l lean_object* l_Lean_Json_mkObj(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__11; extern lean_object* l_IO_FS_Stream_readRequestAs___closed__2; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; lean_object* l_Lean_Server_FileWorker_instCoeErrorTaskError(lean_object*); lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__8; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_ins___at_Lean_Server_FileWorker_queueRequest___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__1; lean_object* l_Lean_Server_FileWorker_mainLoop_match__1(lean_object*); @@ -283,7 +274,6 @@ lean_object* l_Lean_Server_foldDocumentChanges(lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___lambda__1___closed__1; lean_object* l_IO_FS_Stream_withPrefix(lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_msgLog(lean_object*); extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1; lean_object* l_Lean_Server_FileWorker_handleDidChange(lean_object*, lean_object*, lean_object*); @@ -296,17 +286,14 @@ lean_object* l_Lean_Json_toStructured_x3f___at___private_Lean_Server_FileWorker_ lean_object* l_Lean_Server_maybeTee(lean_object*, uint8_t, 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_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(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_Lean_Server_FileWorker_compileDocument_match__1(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonHover___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; lean_object* l_Lean_Server_FileWorker_workerMain___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__13; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__2; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__12; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__6(lean_object*, lean_object*, lean_object*); @@ -315,7 +302,6 @@ lean_object* l_Lean_Server_FileWorker_workerMain___boxed__const__1; lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__9; lean_object* l_Lean_Server_FileWorker_updateDocument_match__1(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; lean_object* l_Lean_Server_FileWorker_compileDocument_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleRequest_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); @@ -1296,53 +1282,16 @@ return x_61; lean_object* l_Lean_Json_toStructured_x3f___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__7(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; size_t x_11; size_t 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_Diagnostics_0__Lean_Lsp_toJsonPublishDiagnosticsParams____x40_Lean_Data_Lsp_Diagnostics___hyg_853_(x_1); +x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -lean_dec(x_1); -x_5 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_6 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(x_5, x_3); -lean_dec(x_3); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_2); -x_8 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_array_get_size(x_4); -x_11 = lean_usize_of_nat(x_10); -lean_dec(x_10); -x_12 = 0; -x_13 = x_4; -x_14 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonPublishDiagnosticsParams___spec__2(x_11, x_12, x_13); -x_15 = x_14; -x_16 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_16, 0, x_15); -x_17 = l_Lean_Lsp_instFromJsonPublishDiagnosticsParams___closed__1; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_9); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_List_append___rarg(x_6, x_21); -x_23 = l_Lean_Json_mkObj(x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -return x_26; +lean_dec(x_2); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspNotification___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -4540,89 +4489,62 @@ return x_2; lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__1(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_JsonRpc_instToJsonMessage___closed__7; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleNotification___spec__2(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_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(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_dec(x_12); -x_15 = l_Lean_Json_compress(x_1); -x_16 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; -x_17 = lean_string_append(x_16, x_15); -lean_dec(x_15); -x_18 = l_Lean_instInhabitedParserDescr___closed__1; -x_19 = lean_string_append(x_17, x_18); -x_20 = l_IO_throwServerError___rarg(x_19, x_3); -return x_20; +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_21 = lean_ctor_get(x_14, 0); -lean_inc(x_21); -lean_dec(x_14); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_12); -lean_ctor_set(x_22, 1, 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_3); -return x_23; -} +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } @@ -7381,57 +7303,31 @@ return x_2; lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__1(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_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(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_dec(x_12); -x_15 = l_Lean_Json_compress(x_1); -x_16 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; -x_17 = lean_string_append(x_16, x_15); -lean_dec(x_15); -x_18 = l_Lean_instInhabitedParserDescr___closed__1; -x_19 = lean_string_append(x_17, x_18); -x_20 = l_IO_throwServerError___rarg(x_19, x_3); -return x_20; +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_21 = lean_ctor_get(x_14, 0); -lean_inc(x_21); -lean_dec(x_14); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_12); -lean_ctor_set(x_22, 1, 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_3); -return x_23; -} +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } @@ -7457,80 +7353,20 @@ return x_8; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t 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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_9 = lean_ctor_get(x_2, 0); lean_inc(x_9); lean_dec(x_2); x_10 = lean_ctor_get(x_4, 0); lean_inc(x_10); lean_dec(x_4); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*1); -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Lsp_instFromJsonMarkupContent___closed__2; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -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_ctor_get(x_10, 1); -lean_inc(x_19); -lean_dec(x_10); -x_20 = l_Lean_Lsp_instFromJsonLocation___closed__2; -x_21 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonLocationLink___spec__1(x_20, x_19); -if (x_12 == 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; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_22 = l_Lean_Lsp_instToJsonMarkupContent___closed__1; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_18); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Lean_Lsp_instFromJsonHover___closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, 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_21); -x_28 = l_Lean_Json_mkObj(x_27); -x_29 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_29, 0, x_9); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_IO_FS_Stream_writeLspMessage(x_1, x_29, x_3); -lean_dec(x_29); -return x_30; -} -else -{ -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_31 = l_Lean_Lsp_instToJsonMarkupContent___closed__2; -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_18); -x_33 = l_Lean_Json_mkObj(x_32); -x_34 = l_Lean_Lsp_instFromJsonHover___closed__1; -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_21); -x_37 = l_Lean_Json_mkObj(x_36); -x_38 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_38, 0, x_9); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_IO_FS_Stream_writeLspMessage(x_1, x_38, x_3); -lean_dec(x_38); -return x_39; -} +x_11 = l___private_Lean_Data_Lsp_Hover_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_Hover___hyg_11_(x_10); +x_12 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_IO_FS_Stream_writeLspMessage(x_1, x_12, x_3); +lean_dec(x_12); +return x_13; } } } @@ -7588,32 +7424,31 @@ return x_3; lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__4(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_Lsp_instFromJsonLocation___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_FileWorker_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } @@ -8920,17 +8755,17 @@ goto block_46; block_46: { 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; -x_23 = l_Lean_Lsp_instFromJsonInitializeParams___closed__1; +x_23 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3; x_24 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_22, x_23); -x_25 = l_Lean_Lsp_instFromJsonInitializeParams___closed__2; +x_25 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4; x_26 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_22, x_25); -x_27 = l_Lean_Lsp_instFromJsonInitializeParams___closed__3; +x_27 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; x_28 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_22, x_27); -x_29 = l_Lean_Lsp_instFromJsonInitializeParams___closed__4; +x_29 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; x_30 = l_Lean_Json_getObjVal_x3f(x_22, x_29); -x_31 = l_Lean_Lsp_instFromJsonInitializeParams___closed__6; +x_31 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7; x_32 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_22, x_31); -x_33 = l_Lean_Lsp_instFromJsonInitializeParams___closed__7; +x_33 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; x_34 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_22, x_33); lean_dec(x_22); if (lean_obj_tag(x_32) == 0) @@ -9948,516 +9783,515 @@ lean_object* x_131; lean_dec(x_119); if (lean_obj_tag(x_120) == 0) { +lean_object* x_147; +x_147 = lean_box(0); +x_131 = x_147; +goto block_146; +} +else +{ lean_object* x_148; -x_148 = lean_box(0); -x_131 = x_148; -goto block_147; -} -else -{ -lean_object* x_149; -x_149 = lean_ctor_get(x_120, 0); -lean_inc(x_149); +x_148 = lean_ctor_get(x_120, 0); +lean_inc(x_148); lean_dec(x_120); -if (lean_obj_tag(x_149) == 0) +if (lean_obj_tag(x_148) == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -lean_dec(x_149); -x_151 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_151, 0, x_150); -x_131 = x_151; -goto block_147; +lean_object* x_149; lean_object* x_150; +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +lean_dec(x_148); +x_150 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_150, 0, x_149); +x_131 = x_150; +goto block_146; } else { -lean_object* x_152; lean_object* x_153; -x_152 = lean_ctor_get(x_149, 0); -lean_inc(x_152); -lean_dec(x_149); -x_153 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_153, 0, x_152); -x_131 = x_153; -goto block_147; +lean_object* x_151; lean_object* x_152; +x_151 = lean_ctor_get(x_148, 0); +lean_inc(x_151); +lean_dec(x_148); +x_152 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_152, 0, x_151); +x_131 = x_152; +goto block_146; } } -block_147: +block_146: { -lean_object* x_132; lean_object* x_133; -x_132 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_133 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(x_131, x_132); -if (lean_obj_tag(x_133) == 0) +lean_object* x_132; +x_132 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(x_131); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_134; lean_object* x_135; lean_object* x_136; 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; -x_134 = l_Lean_Json_compress(x_131); -x_135 = l_IO_FS_Stream_readRequestAs___closed__3; -x_136 = lean_string_append(x_135, x_134); -lean_dec(x_134); -x_137 = l_IO_FS_Stream_readRequestAs___closed__4; -x_138 = lean_string_append(x_136, x_137); -x_139 = lean_string_append(x_138, x_3); -lean_dec(x_3); -x_140 = l_Char_quote___closed__1; -x_141 = lean_string_append(x_139, x_140); -x_142 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_142, 0, x_141); -if (lean_is_scalar(x_118)) { - x_143 = lean_alloc_ctor(1, 2, 0); -} else { - x_143 = x_118; - lean_ctor_set_tag(x_143, 1); -} -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_117); -return x_143; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_131); -x_144 = lean_ctor_get(x_133, 0); -lean_inc(x_144); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_133 = l_Lean_Json_compress(x_131); +x_134 = l_IO_FS_Stream_readRequestAs___closed__3; +x_135 = lean_string_append(x_134, x_133); lean_dec(x_133); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_3); -lean_ctor_set(x_145, 1, x_144); +x_136 = l_IO_FS_Stream_readRequestAs___closed__4; +x_137 = lean_string_append(x_135, x_136); +x_138 = lean_string_append(x_137, x_3); +lean_dec(x_3); +x_139 = l_Char_quote___closed__1; +x_140 = lean_string_append(x_138, x_139); +x_141 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_141, 0, x_140); if (lean_is_scalar(x_118)) { - x_146 = lean_alloc_ctor(0, 2, 0); + x_142 = lean_alloc_ctor(1, 2, 0); } else { - x_146 = x_118; + x_142 = x_118; + lean_ctor_set_tag(x_142, 1); } -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_117); -return x_146; +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_117); +return x_142; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_131); +x_143 = lean_ctor_get(x_132, 0); +lean_inc(x_143); +lean_dec(x_132); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_3); +lean_ctor_set(x_144, 1, x_143); +if (lean_is_scalar(x_118)) { + x_145 = lean_alloc_ctor(0, 2, 0); +} else { + x_145 = x_118; +} +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_117); +return x_145; } } } } case 2: { -uint8_t x_154; +uint8_t x_153; lean_dec(x_3); -x_154 = !lean_is_exclusive(x_5); -if (x_154 == 0) +x_153 = !lean_is_exclusive(x_5); +if (x_153 == 0) { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_155 = lean_ctor_get(x_5, 0); -lean_dec(x_155); -x_156 = lean_ctor_get(x_6, 0); +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_154 = lean_ctor_get(x_5, 0); +lean_dec(x_154); +x_155 = lean_ctor_get(x_6, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_6, 1); lean_inc(x_156); -x_157 = lean_ctor_get(x_6, 1); -lean_inc(x_157); lean_dec(x_6); -x_158 = l_Lean_JsonRpc_instToJsonMessage___closed__9; -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_157); -x_160 = lean_box(0); -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_159); -lean_ctor_set(x_161, 1, x_160); -switch (lean_obj_tag(x_156)) { +x_157 = l_Lean_JsonRpc_instToJsonMessage___closed__9; +x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = lean_box(0); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set(x_160, 1, x_159); +switch (lean_obj_tag(x_155)) { case 0: { -lean_object* x_162; 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; -x_162 = lean_ctor_get(x_156, 0); -lean_inc(x_162); -lean_dec(x_156); -x_163 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_163, 0, x_162); -x_164 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_165 = lean_alloc_ctor(0, 2, 0); +lean_object* x_161; lean_object* x_162; 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; +x_161 = lean_ctor_get(x_155, 0); +lean_inc(x_161); +lean_dec(x_155); +x_162 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_162, 0, x_161); +x_163 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_164 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_162); +x_165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_163); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_161); -x_167 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_166); -x_169 = l_Lean_Json_mkObj(x_168); -x_170 = l_Lean_Json_compress(x_169); -x_171 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_172 = lean_string_append(x_171, x_170); -lean_dec(x_170); -x_173 = l_Char_quote___closed__1; -x_174 = lean_string_append(x_172, x_173); -x_175 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_165, 1, x_160); +x_166 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_165); +x_168 = l_Lean_Json_mkObj(x_167); +x_169 = l_Lean_Json_compress(x_168); +x_170 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_171 = lean_string_append(x_170, x_169); +lean_dec(x_169); +x_172 = l_Char_quote___closed__1; +x_173 = lean_string_append(x_171, x_172); +x_174 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_174, 0, x_173); lean_ctor_set_tag(x_5, 1); -lean_ctor_set(x_5, 0, x_175); +lean_ctor_set(x_5, 0, x_174); return x_5; } case 1: { -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; lean_object* x_188; lean_object* x_189; -x_176 = lean_ctor_get(x_156, 0); -lean_inc(x_176); -lean_dec(x_156); -x_177 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_177, 0, x_176); -x_178 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_179 = lean_alloc_ctor(0, 2, 0); +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; lean_object* x_188; +x_175 = lean_ctor_get(x_155, 0); +lean_inc(x_175); +lean_dec(x_155); +x_176 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_176, 0, x_175); +x_177 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_178 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_177); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_161); -x_181 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -x_183 = l_Lean_Json_mkObj(x_182); -x_184 = l_Lean_Json_compress(x_183); -x_185 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_186 = lean_string_append(x_185, x_184); -lean_dec(x_184); -x_187 = l_Char_quote___closed__1; -x_188 = lean_string_append(x_186, x_187); -x_189 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_179, 1, x_160); +x_180 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_179); +x_182 = l_Lean_Json_mkObj(x_181); +x_183 = l_Lean_Json_compress(x_182); +x_184 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_185 = lean_string_append(x_184, x_183); +lean_dec(x_183); +x_186 = l_Char_quote___closed__1; +x_187 = lean_string_append(x_185, x_186); +x_188 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_188, 0, x_187); lean_ctor_set_tag(x_5, 1); -lean_ctor_set(x_5, 0, x_189); +lean_ctor_set(x_5, 0, x_188); return x_5; } default: { -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; -x_190 = l_Lean_JsonRpc_instToJsonMessage___closed__8; -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_161); -x_192 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_191); -x_194 = l_Lean_Json_mkObj(x_193); -x_195 = l_Lean_Json_compress(x_194); -x_196 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_197 = lean_string_append(x_196, x_195); -lean_dec(x_195); -x_198 = l_Char_quote___closed__1; -x_199 = lean_string_append(x_197, x_198); -x_200 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_200, 0, x_199); +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; +x_189 = l_Lean_JsonRpc_instToJsonMessage___closed__8; +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_160); +x_191 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_190); +x_193 = l_Lean_Json_mkObj(x_192); +x_194 = l_Lean_Json_compress(x_193); +x_195 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_196 = lean_string_append(x_195, x_194); +lean_dec(x_194); +x_197 = l_Char_quote___closed__1; +x_198 = lean_string_append(x_196, x_197); +x_199 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_199, 0, x_198); lean_ctor_set_tag(x_5, 1); -lean_ctor_set(x_5, 0, x_200); +lean_ctor_set(x_5, 0, x_199); return x_5; } } } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_201 = lean_ctor_get(x_5, 1); -lean_inc(x_201); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_200 = lean_ctor_get(x_5, 1); +lean_inc(x_200); lean_dec(x_5); -x_202 = lean_ctor_get(x_6, 0); +x_201 = lean_ctor_get(x_6, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_6, 1); lean_inc(x_202); -x_203 = lean_ctor_get(x_6, 1); -lean_inc(x_203); lean_dec(x_6); -x_204 = l_Lean_JsonRpc_instToJsonMessage___closed__9; -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -x_206 = lean_box(0); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -switch (lean_obj_tag(x_202)) { +x_203 = l_Lean_JsonRpc_instToJsonMessage___closed__9; +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +x_205 = lean_box(0); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +switch (lean_obj_tag(x_201)) { case 0: { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 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; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_208 = lean_ctor_get(x_202, 0); -lean_inc(x_208); -lean_dec(x_202); -x_209 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_209, 0, x_208); -x_210 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_211 = lean_alloc_ctor(0, 2, 0); +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 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; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_207 = lean_ctor_get(x_201, 0); +lean_inc(x_207); +lean_dec(x_201); +x_208 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_208, 0, x_207); +x_209 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_208); +x_211 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_209); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_207); -x_213 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_212); -x_215 = l_Lean_Json_mkObj(x_214); -x_216 = l_Lean_Json_compress(x_215); -x_217 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_218 = lean_string_append(x_217, x_216); -lean_dec(x_216); -x_219 = l_Char_quote___closed__1; -x_220 = lean_string_append(x_218, x_219); -x_221 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_211, 1, x_206); +x_212 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_211); +x_214 = l_Lean_Json_mkObj(x_213); +x_215 = l_Lean_Json_compress(x_214); +x_216 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_217 = lean_string_append(x_216, x_215); +lean_dec(x_215); +x_218 = l_Char_quote___closed__1; +x_219 = lean_string_append(x_217, x_218); +x_220 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_220, 0, x_219); +x_221 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_221, 0, x_220); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_201); -return x_222; +lean_ctor_set(x_221, 1, x_200); +return x_221; } case 1: { -lean_object* x_223; 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; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_223 = lean_ctor_get(x_202, 0); -lean_inc(x_223); -lean_dec(x_202); -x_224 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_224, 0, x_223); -x_225 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_226 = lean_alloc_ctor(0, 2, 0); +lean_object* x_222; lean_object* x_223; 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; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_222 = lean_ctor_get(x_201, 0); +lean_inc(x_222); +lean_dec(x_201); +x_223 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_223, 0, x_222); +x_224 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_225 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_223); +x_226 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_224); -x_227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_207); -x_228 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_229 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_227); -x_230 = l_Lean_Json_mkObj(x_229); -x_231 = l_Lean_Json_compress(x_230); -x_232 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_233 = lean_string_append(x_232, x_231); -lean_dec(x_231); -x_234 = l_Char_quote___closed__1; -x_235 = lean_string_append(x_233, x_234); -x_236 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_226, 1, x_206); +x_227 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_226); +x_229 = l_Lean_Json_mkObj(x_228); +x_230 = l_Lean_Json_compress(x_229); +x_231 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_232 = lean_string_append(x_231, x_230); +lean_dec(x_230); +x_233 = l_Char_quote___closed__1; +x_234 = lean_string_append(x_232, x_233); +x_235 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_235, 0, x_234); +x_236 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_236, 0, x_235); -x_237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_237, 0, x_236); -lean_ctor_set(x_237, 1, x_201); -return x_237; +lean_ctor_set(x_236, 1, x_200); +return x_236; } default: { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_238 = l_Lean_JsonRpc_instToJsonMessage___closed__8; -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_207); -x_240 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_241 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_239); -x_242 = l_Lean_Json_mkObj(x_241); -x_243 = l_Lean_Json_compress(x_242); -x_244 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_245 = lean_string_append(x_244, x_243); -lean_dec(x_243); -x_246 = l_Char_quote___closed__1; -x_247 = lean_string_append(x_245, x_246); -x_248 = lean_alloc_ctor(18, 1, 0); +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_237 = l_Lean_JsonRpc_instToJsonMessage___closed__8; +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_206); +x_239 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_238); +x_241 = l_Lean_Json_mkObj(x_240); +x_242 = l_Lean_Json_compress(x_241); +x_243 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_244 = lean_string_append(x_243, x_242); +lean_dec(x_242); +x_245 = l_Char_quote___closed__1; +x_246 = lean_string_append(x_244, x_245); +x_247 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_247, 0, x_246); +x_248 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_248, 0, x_247); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_201); -return x_249; +lean_ctor_set(x_248, 1, x_200); +return x_248; } } } } default: { -lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t 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; lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_252; 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; lean_object* x_261; lean_object* x_262; lean_dec(x_3); -x_250 = lean_ctor_get(x_5, 1); -lean_inc(x_250); +x_249 = lean_ctor_get(x_5, 1); +lean_inc(x_249); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_251 = x_5; + x_250 = x_5; } else { lean_dec_ref(x_5); - x_251 = lean_box(0); + x_250 = lean_box(0); } -x_252 = lean_ctor_get(x_6, 0); -lean_inc(x_252); -x_253 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_254 = lean_ctor_get(x_6, 1); +x_251 = lean_ctor_get(x_6, 0); +lean_inc(x_251); +x_252 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); +x_253 = lean_ctor_get(x_6, 1); +lean_inc(x_253); +x_254 = lean_ctor_get(x_6, 2); lean_inc(x_254); -x_255 = lean_ctor_get(x_6, 2); -lean_inc(x_255); lean_dec(x_6); -x_256 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_256, 0, x_254); -x_257 = l_Lean_JsonRpc_instToJsonMessage___closed__10; -x_258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_256); -x_259 = lean_box(0); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -x_261 = l_Lean_JsonRpc_instToJsonMessage___closed__11; -x_262 = l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(x_261, x_255); -lean_dec(x_255); -switch (lean_obj_tag(x_252)) { +x_255 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_255, 0, x_253); +x_256 = l_Lean_JsonRpc_instToJsonMessage___closed__10; +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_255); +x_258 = lean_box(0); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +x_260 = l_Lean_JsonRpc_instToJsonMessage___closed__11; +x_261 = l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(x_260, x_254); +lean_dec(x_254); +switch (lean_obj_tag(x_251)) { case 0: { -lean_object* x_299; lean_object* x_300; -x_299 = lean_ctor_get(x_252, 0); -lean_inc(x_299); -lean_dec(x_252); -x_300 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_300, 0, x_299); -x_263 = x_300; -goto block_298; +lean_object* x_298; lean_object* x_299; +x_298 = lean_ctor_get(x_251, 0); +lean_inc(x_298); +lean_dec(x_251); +x_299 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_299, 0, x_298); +x_262 = x_299; +goto block_297; } case 1: { -lean_object* x_301; lean_object* x_302; -x_301 = lean_ctor_get(x_252, 0); -lean_inc(x_301); -lean_dec(x_252); -x_302 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_302, 0, x_301); -x_263 = x_302; -goto block_298; +lean_object* x_300; lean_object* x_301; +x_300 = lean_ctor_get(x_251, 0); +lean_inc(x_300); +lean_dec(x_251); +x_301 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_301, 0, x_300); +x_262 = x_301; +goto block_297; } default: { -lean_object* x_303; -x_303 = lean_box(0); -x_263 = x_303; -goto block_298; +lean_object* x_302; +x_302 = lean_box(0); +x_262 = x_302; +goto block_297; } } -block_298: +block_297: { -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_264); -lean_ctor_set(x_265, 1, x_263); -switch (x_253) { +lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_263 = l_Lean_JsonRpc_instToJsonMessage___closed__7; +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +switch (x_252) { case 0: { -lean_object* x_287; -x_287 = l_Lean_JsonRpc_instToJsonErrorCode___closed__4; -x_266 = x_287; -goto block_286; +lean_object* x_286; +x_286 = l_Lean_JsonRpc_instToJsonErrorCode___closed__4; +x_265 = x_286; +goto block_285; } case 1: { -lean_object* x_288; -x_288 = l_Lean_JsonRpc_instToJsonErrorCode___closed__8; -x_266 = x_288; -goto block_286; +lean_object* x_287; +x_287 = l_Lean_JsonRpc_instToJsonErrorCode___closed__8; +x_265 = x_287; +goto block_285; } case 2: { -lean_object* x_289; -x_289 = l_Lean_JsonRpc_instToJsonErrorCode___closed__12; -x_266 = x_289; -goto block_286; +lean_object* x_288; +x_288 = l_Lean_JsonRpc_instToJsonErrorCode___closed__12; +x_265 = x_288; +goto block_285; } case 3: { -lean_object* x_290; -x_290 = l_Lean_JsonRpc_instToJsonErrorCode___closed__16; -x_266 = x_290; -goto block_286; +lean_object* x_289; +x_289 = l_Lean_JsonRpc_instToJsonErrorCode___closed__16; +x_265 = x_289; +goto block_285; } case 4: { -lean_object* x_291; -x_291 = l_Lean_JsonRpc_instToJsonErrorCode___closed__20; -x_266 = x_291; -goto block_286; +lean_object* x_290; +x_290 = l_Lean_JsonRpc_instToJsonErrorCode___closed__20; +x_265 = x_290; +goto block_285; } case 5: { -lean_object* x_292; -x_292 = l_Lean_JsonRpc_instToJsonErrorCode___closed__24; -x_266 = x_292; -goto block_286; +lean_object* x_291; +x_291 = l_Lean_JsonRpc_instToJsonErrorCode___closed__24; +x_265 = x_291; +goto block_285; } case 6: { -lean_object* x_293; -x_293 = l_Lean_JsonRpc_instToJsonErrorCode___closed__28; -x_266 = x_293; -goto block_286; +lean_object* x_292; +x_292 = l_Lean_JsonRpc_instToJsonErrorCode___closed__28; +x_265 = x_292; +goto block_285; } case 7: { -lean_object* x_294; -x_294 = l_Lean_JsonRpc_instToJsonErrorCode___closed__32; -x_266 = x_294; -goto block_286; +lean_object* x_293; +x_293 = l_Lean_JsonRpc_instToJsonErrorCode___closed__32; +x_265 = x_293; +goto block_285; } case 8: { -lean_object* x_295; -x_295 = l_Lean_JsonRpc_instToJsonErrorCode___closed__36; -x_266 = x_295; -goto block_286; +lean_object* x_294; +x_294 = l_Lean_JsonRpc_instToJsonErrorCode___closed__36; +x_265 = x_294; +goto block_285; } case 9: { -lean_object* x_296; -x_296 = l_Lean_JsonRpc_instToJsonErrorCode___closed__40; -x_266 = x_296; -goto block_286; +lean_object* x_295; +x_295 = l_Lean_JsonRpc_instToJsonErrorCode___closed__40; +x_265 = x_295; +goto block_285; } default: { -lean_object* x_297; -x_297 = l_Lean_JsonRpc_instToJsonErrorCode___closed__44; -x_266 = x_297; -goto block_286; +lean_object* x_296; +x_296 = l_Lean_JsonRpc_instToJsonErrorCode___closed__44; +x_265 = x_296; +goto block_285; } } -block_286: +block_285: { -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_267 = l_Lean_JsonRpc_instToJsonMessage___closed__12; -x_268 = lean_alloc_ctor(0, 2, 0); +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_266 = l_Lean_JsonRpc_instToJsonMessage___closed__12; +x_267 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_267, 0, x_266); +lean_ctor_set(x_267, 1, x_265); +x_268 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_268, 0, x_267); -lean_ctor_set(x_268, 1, x_266); -x_269 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_260); -x_270 = l_List_append___rarg(x_269, x_262); -x_271 = l_Lean_Json_mkObj(x_270); -x_272 = l_Lean_JsonRpc_instToJsonMessage___closed__13; -x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 1, x_259); +x_269 = l_List_append___rarg(x_268, x_261); +x_270 = l_Lean_Json_mkObj(x_269); +x_271 = l_Lean_JsonRpc_instToJsonMessage___closed__13; +x_272 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_270); +x_273 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_271); +lean_ctor_set(x_273, 1, x_258); x_274 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_274, 0, x_273); -lean_ctor_set(x_274, 1, x_259); -x_275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_275, 0, x_265); -lean_ctor_set(x_275, 1, x_274); -x_276 = l_Lean_JsonRpc_instToJsonMessage___closed__4; -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_275); -x_278 = l_Lean_Json_mkObj(x_277); -x_279 = l_Lean_Json_compress(x_278); -x_280 = l_IO_FS_Stream_readNotificationAs___closed__1; -x_281 = lean_string_append(x_280, x_279); -lean_dec(x_279); -x_282 = l_Char_quote___closed__1; -x_283 = lean_string_append(x_281, x_282); -x_284 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_284, 0, x_283); -if (lean_is_scalar(x_251)) { - x_285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_264); +lean_ctor_set(x_274, 1, x_273); +x_275 = l_Lean_JsonRpc_instToJsonMessage___closed__4; +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_274); +x_277 = l_Lean_Json_mkObj(x_276); +x_278 = l_Lean_Json_compress(x_277); +x_279 = l_IO_FS_Stream_readNotificationAs___closed__1; +x_280 = lean_string_append(x_279, x_278); +lean_dec(x_278); +x_281 = l_Char_quote___closed__1; +x_282 = lean_string_append(x_280, x_281); +x_283 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_283, 0, x_282); +if (lean_is_scalar(x_250)) { + x_284 = lean_alloc_ctor(1, 2, 0); } else { - x_285 = x_251; - lean_ctor_set_tag(x_285, 1); + x_284 = x_250; + lean_ctor_set_tag(x_284, 1); } -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_250); -return x_285; +lean_ctor_set(x_284, 0, x_283); +lean_ctor_set(x_284, 1, x_249); +return x_284; } } } @@ -10465,25 +10299,25 @@ return x_285; } else { -uint8_t x_304; +uint8_t x_303; lean_dec(x_3); -x_304 = !lean_is_exclusive(x_5); -if (x_304 == 0) +x_303 = !lean_is_exclusive(x_5); +if (x_303 == 0) { return x_5; } else { -lean_object* x_305; lean_object* x_306; lean_object* x_307; -x_305 = lean_ctor_get(x_5, 0); -x_306 = lean_ctor_get(x_5, 1); -lean_inc(x_306); +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_5, 0); +x_305 = lean_ctor_get(x_5, 1); lean_inc(x_305); +lean_inc(x_304); lean_dec(x_5); -x_307 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_307, 0, x_305); -lean_ctor_set(x_307, 1, x_306); -return x_307; +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_304); +lean_ctor_set(x_306, 1, x_305); +return x_306; } } } diff --git a/stage0/stdlib/Lean/Server/Watchdog.c b/stage0/stdlib/Lean/Server/Watchdog.c index b74bc25d03..327e4dc6e7 100644 --- a/stage0/stdlib/Lean/Server/Watchdog.c +++ b/stage0/stdlib/Lean/Server/Watchdog.c @@ -16,6 +16,7 @@ extern "C" { lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__1(lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___boxed(lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__2___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); extern lean_object* l_Lean_Name_toString___closed__1; @@ -25,17 +26,16 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage___lambda__1___boxed(l lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker(lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask_match__1(lean_object*); -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___closed__1; lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__2(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__5; lean_object* lean_get_stdin(lean_object*); lean_object* l_IO_FS_Stream_writeLspRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Server_Watchdog_updateFileWorkers___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleDidChange___spec__3(lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidOpen(lean_object*, lean_object*, lean_object*); @@ -44,11 +44,9 @@ lean_object* l_Lean_Server_Watchdog_handleRequest___closed__1; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__2; lean_object* lean_io_wait_any(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleCancelRequest___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___closed__1; lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__3; lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Watchdog_log___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,14 +59,10 @@ lean_object* l_Lean_Server_Watchdog_terminateFileWorker___boxed(lean_object*, le lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___closed__1; lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Lsp_Ipc_collectDiagnostics___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__3; -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__2; -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__7; lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__5; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__1; extern lean_object* l_Lean_Lsp_Ipc_ipcStdioConfig___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Lsp_Ipc_collectDiagnostics___closed__1; lean_object* l_Std_RBNode_erase___at_Lean_Server_Watchdog_eraseFileWorker___spec__1___boxed(lean_object*, lean_object*); @@ -85,7 +79,6 @@ extern lean_object* l_Array_empty___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__16; lean_object* l_Lean_Json_toStructured_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_CancelParams_hasToJson___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; @@ -114,9 +107,7 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Serve lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__3; lean_object* l_Lean_Server_Watchdog_mainLoop_match__4(lean_object*); -extern lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__6; lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_Watchdog_initAndRunWatchdogAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__2; lean_object* l_Lean_Server_Watchdog_handleDidChange_match__2(lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux(lean_object*, lean_object*); lean_object* l_IO_throwServerError___rarg(lean_object*, lean_object*); @@ -135,7 +126,6 @@ uint8_t l_USize_decLt(size_t, size_t); lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readMessage(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__7___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__1; lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__2; lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__8(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_parseImports___closed__1; @@ -162,14 +152,11 @@ lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequ lean_object* l_Lean_Server_Watchdog_findFileWorker_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleDidChange___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__5; -extern lean_object* l_Lean_Lsp_instFromJsonPosition___closed__1; lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__3; lean_object* l_Std_RBNode_erase___at_Lean_Server_Watchdog_eraseFileWorker___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop___closed__1; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_terminateFileWorker(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -181,7 +168,6 @@ uint8_t l_instDecidableNot___rarg(uint8_t); extern lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__1; lean_object* l_Lean_Server_Watchdog_runClientTask___closed__1; lean_object* l_Lean_Server_Watchdog_handleDidClose(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__6; lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__7; lean_object* l_Lean_Json_compress(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -215,15 +201,11 @@ lean_object* l_Lean_Server_Watchdog_eraseFileWorker(lean_object*, lean_object*, lean_object* l_Lean_Server_Watchdog_shutdown_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__10___closed__2; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidClose___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__12___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__4(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__8; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__2; lean_object* l_Std_RBNode_appendTrees___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_InitializeParams_hasToJson___closed__4; lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequest___spec__7___closed__2; lean_object* l_Lean_Server_Watchdog_parseParams___rarg___closed__1; @@ -234,8 +216,10 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_writeMessage(lean_object*, lean_o uint8_t l_Std_RBNode_isBlack___rarg(lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__1; lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__1(lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59_(lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__5; @@ -244,48 +228,48 @@ lean_object* l_IO_FS_Stream_writeLspMessage(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__8___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__8; -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Watchdog_watchdogMain___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__4(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__2; lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleDidChange___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCrash(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___closed__1; +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___closed__1; lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_shutdown___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleCancelRequest___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_FileWorker_errorPendingRequests___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_stream_of_handle(lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeParams___closed__4; +lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_stdout(lean_object*); lean_object* lean_server_watchdog_main(lean_object*); lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification_match__1(lean_object*); +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79_(lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages___lambda__1___boxed(lean_object*); lean_object* l_Lean_Server_Watchdog_shutdown_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__2; lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__1___rarg(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_154____closed__4; extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__44; lean_object* l_Lean_FileMap_ofString(lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_balLeft___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1; extern lean_object* l_Task_Priority_default; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleDidChange___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; lean_object* l_Lean_Server_Watchdog_handleNotification(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384_(lean_object*); lean_object* l_Lean_Server_Watchdog_watchdogMain___boxed__const__1; lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); @@ -311,7 +295,6 @@ lean_object* l_Lean_Server_Watchdog_shutdown(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__7(lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); -extern lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities; lean_object* l_List_redLength___rarg(lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_match__1(lean_object*); @@ -319,7 +302,6 @@ lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(lean_ lean_object* l_Lean_Server_Watchdog_handleCancelRequest_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__1(lean_object*); -lean_object* l_Lean_JsonNumber_fromNat(lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification_match__1___rarg___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__12; @@ -331,6 +313,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__32; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250_(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_tryWriteMessage___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__20; @@ -340,7 +323,6 @@ lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_shutdown___spec_ lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage_match__2(lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask___lambda__2(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_Server_Watchdog_findFileWorker___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; lean_object* l_IO_FS_Stream_putStrLn___at_Lean_Server_Watchdog_log___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_get_stdout(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__3___rarg(lean_object*, size_t, size_t, lean_object*); @@ -358,11 +340,11 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleDidChange___ lean_object* l_Lean_Server_Watchdog_FileWorker_stdin(lean_object*); lean_object* l_Lean_Server_Watchdog_shutdown_match__2(lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__2; +extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; lean_object* l_Lean_Server_Watchdog_updateFileWorkers(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCrash___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__8; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__2___rarg___closed__1; extern lean_object* l_IO_FS_Stream_readRequestAs___closed__1; @@ -377,15 +359,13 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleCancelReques lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_parseHeaderAst_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleDidChange___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonInitializeResult___closed__1; +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_63_(lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__2; lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_startFileWorker___closed__1; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_updateFileWorkers___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__3; @@ -395,7 +375,6 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification(lean_object*); lean_object* l_Lean_Server_Watchdog_findFileWorker___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Lsp_instToJsonTextDocumentSyncKind___closed__1; -extern lean_object* l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleDidChange___spec__6(size_t, size_t, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage(lean_object*, lean_object*); @@ -403,18 +382,17 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage_match__1___rarg(lean_ lean_object* l_Lean_Server_maybeTee(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_io_app_dir(lean_object*); lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__1; -lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_tryWriteMessage___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_FileWorker_errorPendingRequests___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleCancelRequest___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonLocation___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__13; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCancelRequest(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_log(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___closed__1; lean_object* l_Std_RBNode_ins___at_Lean_Server_Watchdog_updateFileWorkers___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop_match__2(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__12; lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux_match__1(lean_object*); @@ -422,30 +400,27 @@ lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_ha lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_ins___at_Lean_Server_Watchdog_FileWorker_writeRequest___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleDidChange___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154_(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__9; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2(lean_object*, lean_object*); uint8_t l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1___closed__2; lean_object* l_Lean_Server_Watchdog_tryWriteMessage_match__1(lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_mainLoop___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_findFileWorker(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_handleCancelRequest___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__1(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__1___closed__2; -lean_object* l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__1___closed__1; +lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(lean_object*); uint8_t l___private_Lean_Data_JsonRpc_0__Lean_JsonRpc_RequestID_lt(lean_object*, lean_object*); -extern lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; uint8_t lean_string_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleDidChange___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -7386,115 +7361,19 @@ return x_8; } } } -static lean_object* _init_l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Lsp_instFromJsonInitializeParams___closed__5; -x_2 = l_Lean_Lsp_instToJsonWaitForDiagnostics___closed__1; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__1; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Lsp_instFromJsonInitializeParams___closed__1; -x_4 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__1(x_3, x_2); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154_(x_1); +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); lean_dec(x_2); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -x_6 = l_Lean_Lsp_instFromJsonInitializeParams___closed__2; -x_7 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__2(x_6, x_5); -lean_dec(x_5); -x_8 = l_List_append___rarg(x_4, x_7); -x_9 = lean_ctor_get(x_1, 2); -lean_inc(x_9); -x_10 = l_Lean_Lsp_instFromJsonInitializeParams___closed__3; -x_11 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonDocumentFilter___spec__1(x_10, x_9); -lean_dec(x_9); -x_12 = l_List_append___rarg(x_8, x_11); -x_13 = lean_ctor_get(x_1, 3); -lean_inc(x_13); -x_14 = l_Lean_Lsp_instFromJsonInitializeParams___closed__4; -x_15 = l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__2(x_14, x_13); -lean_dec(x_13); -x_16 = l_List_append___rarg(x_12, x_15); -x_17 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__2; -x_18 = l_List_append___rarg(x_16, x_17); -x_19 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); -x_20 = lean_ctor_get(x_1, 5); -lean_inc(x_20); -lean_dec(x_1); -x_21 = l_Lean_Lsp_instFromJsonInitializeParams___closed__7; -x_22 = l_Lean_Json_opt___at_Lean_Lsp_InitializeParams_hasToJson___spec__3(x_21, x_20); -switch (x_19) { -case 0: -{ -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; -x_23 = l_Lean_Lsp_InitializeParams_hasToJson___closed__4; -x_24 = l_List_append___rarg(x_18, x_23); -x_25 = l_List_append___rarg(x_24, x_22); -x_26 = l_Lean_Json_mkObj(x_25); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_28); -return x_29; -} -case 1: -{ -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; -x_30 = l_Lean_Lsp_InitializeParams_hasToJson___closed__6; -x_31 = l_List_append___rarg(x_18, x_30); -x_32 = l_List_append___rarg(x_31, x_22); -x_33 = l_Lean_Json_mkObj(x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_35); -return x_36; -} -default: -{ -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_37 = l_Lean_Lsp_InitializeParams_hasToJson___closed__8; -x_38 = l_List_append___rarg(x_18, x_37); -x_39 = l_List_append___rarg(x_38, x_22); -x_40 = l_Lean_Json_mkObj(x_39); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_42); -return x_43; -} -} +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -7521,71 +7400,16 @@ return x_9; lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__7(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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_63_(x_1); +x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 3); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_6, 0, x_2); -x_7 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_9, 0, x_3); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = l_Lean_JsonNumber_fromNat(x_4); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -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(3, 1, 0); -lean_ctor_set(x_16, 0, x_5); -x_17 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__2; -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_15); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_8); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, 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_19); -x_28 = l_Lean_Json_mkObj(x_27); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -return x_31; +lean_dec(x_2); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -8779,63 +8603,16 @@ return x_2; lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleDidChange___spec__3(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_250_(x_1); x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); lean_dec(x_2); -x_5 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__1; -x_6 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___spec__1(x_5, x_4); -x_7 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_7, 0, x_3); -x_8 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_List_append___rarg(x_6, x_11); -x_13 = l_Lean_Json_mkObj(x_12); -x_14 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -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_ctor_get(x_1, 1); -lean_inc(x_16); -lean_dec(x_1); -x_17 = lean_array_get_size(x_16); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_19 = 0; -x_20 = x_16; -x_21 = l_Array_mapMUnsafe_map___at_Lean_Lsp_DidChangeTextDocumentParams_hasToJson___spec__1(x_10, x_18, x_19, x_20); -x_22 = x_21; -x_23 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, 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_10); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_15); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Json_mkObj(x_27); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -return x_31; +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleDidChange___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -9829,81 +9606,19 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Server_Watchdog_handleCancelRequest_matc return x_2; } } -static lean_object* _init_l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Lsp_CancelParams_hasToJson___closed__2; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_3, 0, x_2); -x_4 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_4, 0, x_3); -return x_4; -} -} lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_box(0); -switch (lean_obj_tag(x_1)) { -case 0: -{ -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; -x_3 = lean_ctor_get(x_1, 0); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_59_(x_1); +x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); -x_4 = lean_alloc_ctor(3, 1, 0); +lean_dec(x_2); +x_4 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_4, 0, x_3); -x_5 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -x_7 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_2); -x_8 = l_Lean_Json_mkObj(x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_10); -return x_11; -} -case 1: -{ -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_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_JsonRpc_instToJsonMessage___closed__7; -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, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_2); -x_17 = l_Lean_Json_mkObj(x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -return x_20; -} -default: -{ -lean_object* x_21; -x_21 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___closed__1; -return x_21; -} -} +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleCancelRequest___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -10833,129 +10548,47 @@ return x_2; lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__1(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_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1109_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonRange___spec__1(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_dec(x_12); -x_15 = l_Lean_Json_compress(x_1); -x_16 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_17 = lean_string_append(x_16, x_15); -lean_dec(x_15); -x_18 = l_Lean_instInhabitedParserDescr___closed__1; -x_19 = lean_string_append(x_17, x_18); -x_20 = l_IO_throwServerError___rarg(x_19, x_3); -return x_20; +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_21 = lean_ctor_get(x_14, 0); -lean_inc(x_21); -lean_dec(x_14); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_12); -lean_ctor_set(x_22, 1, 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_3); -return x_23; -} +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__4(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; 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; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 1); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1083_(x_1); +x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_4, 0, x_2); -x_5 = l_Lean_Lsp_instFromJsonLocation___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -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); -x_9 = l_Lean_Json_mkObj(x_8); -x_10 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = l_Lean_JsonNumber_fromNat(x_12); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Lsp_instFromJsonPosition___closed__1; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_ctor_get(x_3, 1); -lean_inc(x_17); -lean_dec(x_3); -x_18 = l_Lean_JsonNumber_fromNat(x_17); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Lsp_instFromJsonPosition___closed__2; -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, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_7); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_16); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); -x_25 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__1; -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, 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_7); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_11); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_Json_mkObj(x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_31); -return x_32; +lean_dec(x_2); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_4); +return x_5; } } lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_handleRequest___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -11518,32 +11151,31 @@ return x_44; lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__8(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_Lsp_instFromJsonLocation___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonLocation___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParam____x40_Lean_Data_Lsp_Extra___hyg_27_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } @@ -12445,153 +12077,124 @@ return x_2; lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__1(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_JsonRpc_instToJsonMessage___closed__7; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCancelParams____x40_Lean_Data_Lsp_Basic___hyg_79_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__2(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_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentPositionParams___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidCloseTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_384_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__3(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_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonTextDocumentEdit___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_276_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_13 = l_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___closed__1; -x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidChangeTextDocumentParams___spec__1(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_dec(x_12); -x_15 = l_Lean_Json_compress(x_1); -x_16 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_17 = lean_string_append(x_16, x_15); -lean_dec(x_15); -x_18 = l_Lean_instInhabitedParserDescr___closed__1; -x_19 = lean_string_append(x_17, x_18); -x_20 = l_IO_throwServerError___rarg(x_19, x_3); -return x_20; +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_21 = lean_ctor_get(x_14, 0); -lean_inc(x_21); -lean_dec(x_14); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_12); -lean_ctor_set(x_22, 1, 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_3); -return x_23; -} +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__4(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_Lsp_instFromJsonTextDocumentEdit___closed__1; -x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonDidOpenTextDocumentParams___spec__1(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_83_(x_1); +if (lean_obj_tag(x_4) == 0) { -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 = l_Lean_Json_compress(x_1); -x_7 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; -x_8 = lean_string_append(x_7, x_6); -lean_dec(x_6); -x_9 = l_Lean_instInhabitedParserDescr___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_IO_throwServerError___rarg(x_10, x_3); -return x_11; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Json_compress(x_1); +x_6 = l_Lean_Server_Watchdog_parseParams___rarg___closed__1; +x_7 = lean_string_append(x_6, x_5); +lean_dec(x_5); +x_8 = l_Lean_instInhabitedParserDescr___closed__1; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_IO_throwServerError___rarg(x_9, x_3); +return x_10; } else { -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_dec(x_1); -x_12 = lean_ctor_get(x_5, 0); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; } } } @@ -15765,17 +15368,17 @@ goto block_46; block_46: { 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; -x_23 = l_Lean_Lsp_instFromJsonInitializeParams___closed__1; +x_23 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__3; x_24 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_22, x_23); -x_25 = l_Lean_Lsp_instFromJsonInitializeParams___closed__2; +x_25 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__4; x_26 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_22, x_25); -x_27 = l_Lean_Lsp_instFromJsonInitializeParams___closed__3; +x_27 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__5; x_28 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__2(x_22, x_27); -x_29 = l_Lean_Lsp_instFromJsonInitializeParams___closed__4; +x_29 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__6; x_30 = l_Lean_Json_getObjVal_x3f(x_22, x_29); -x_31 = l_Lean_Lsp_instFromJsonInitializeParams___closed__6; +x_31 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__7; x_32 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_22, x_31); -x_33 = l_Lean_Lsp_instFromJsonInitializeParams___closed__7; +x_33 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_154____closed__8; x_34 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_22, x_33); lean_dec(x_22); if (lean_obj_tag(x_32) == 0) @@ -16487,44 +16090,17 @@ return x_41; lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__4(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; uint8_t 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_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); x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_5, 0); -x_7 = lean_ctor_get(x_6, 0); -x_8 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__1; -x_9 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonServerCapabilities___spec__1(x_8, x_7); -x_10 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_11 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_11, 0, x_10); -x_12 = l_Lean_Lsp_instFromJsonServerCapabilities___closed__2; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -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_List_append___rarg(x_9, x_15); -x_17 = l_Lean_Json_mkObj(x_16); -x_18 = l_Lean_Lsp_instFromJsonInitializeParams___closed__5; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_ctor_get(x_5, 1); -x_21 = l_Lean_Lsp_instFromJsonInitializeResult___closed__1; -x_22 = l_Lean_Json_opt___at_Lean_Lsp_instToJsonInitializeResult___spec__1(x_21, x_20); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_19); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Json_mkObj(x_23); +x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_371_(x_5); lean_inc(x_4); -x_25 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_25, 0, x_4); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_IO_FS_Stream_writeLspMessage(x_1, x_25, x_3); -lean_dec(x_25); -return x_26; +x_7 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_7, 0, x_4); +lean_ctor_set(x_7, 1, x_6); +x_8 = l_IO_FS_Stream_writeLspMessage(x_1, x_7, x_3); +lean_dec(x_7); +return x_8; } } static lean_object* _init_l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__1() { @@ -17241,10 +16817,6 @@ l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___ lean_mark_persistent(l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__4); l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages___closed__1 = _init_l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages___closed__1(); lean_mark_persistent(l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages___closed__1); -l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__1 = _init_l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__1(); -lean_mark_persistent(l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__1); -l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__2 = _init_l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__2(); -lean_mark_persistent(l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4___closed__2); l_Lean_Server_Watchdog_startFileWorker___closed__1 = _init_l_Lean_Server_Watchdog_startFileWorker___closed__1(); lean_mark_persistent(l_Lean_Server_Watchdog_startFileWorker___closed__1); l_Lean_Server_Watchdog_startFileWorker___closed__2 = _init_l_Lean_Server_Watchdog_startFileWorker___closed__2(); @@ -17276,8 +16848,6 @@ l_Lean_Server_Watchdog_handleDidChange___closed__1 = _init_l_Lean_Server_Watchdo lean_mark_persistent(l_Lean_Server_Watchdog_handleDidChange___closed__1); l_Lean_Server_Watchdog_handleDidChange___closed__2 = _init_l_Lean_Server_Watchdog_handleDidChange___closed__2(); lean_mark_persistent(l_Lean_Server_Watchdog_handleDidChange___closed__2); -l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___closed__1 = _init_l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___closed__1(); -lean_mark_persistent(l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___closed__1); l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__1 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__1(); lean_mark_persistent(l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__1); l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__2 = _init_l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__4___closed__2();