;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311DD\312\313\314\315\316&\210\305\317\307\310\320DD\321\313\322\315\316&\210\305\323\307\310\324DD\325\313\314\315\316&\210\305\326\307\310\327DD\330\313\322\315\316&\210\305\331\307\310\332DD\333\313\334\315\316&\210\305\335\307\310\336DD\337\313\334\315\316&\207" [require lsp-lens lsp-treemacs lsp-dart-protocol lsp-dart-utils custom-declare-variable lsp-dart-outline funcall function #[0 "\300\207" [t] 1] "Enable the analysis server outline custom method.\nWhen set to non-nil, dart/textDocument/publishOutline notifications will\nbe sent with outline information for open files." :type boolean :group lsp-dart lsp-dart-outline-position-params #[0 "\302B\303\304 BE\207" [treemacs-position treemacs-width side (slot . 2) window-width] 4] "The outline tree position params.\nDefaults to side following treemacs default." list lsp-dart-flutter-outline #[0 "\300\207" [t] 1] "Enable the analysis server Flutter outline custom method.\nWhen set to non-nil, dart/textDocument/publishFlutterOutline notifications will\nbe sent with Flutter outline information for open files." lsp-dart-flutter-outline-position-params #[0 "\302B\303\304 BE\207" [treemacs-position treemacs-width side (slot . 2) window-width] 4] "The Flutter outline tree position params.\nDefaults to side following treemacs default." lsp-dart-outline-arrived-hook #[0 "\300\207" [nil] 1] "Hooks to run after a outline notification arrive.\nThe hook will receive the notification data as argument." hook lsp-dart-flutter-outline-arrived-hook #[0 "\300\207" [nil] 1] "Hooks to run after a flutter outline notification arrive.\nThe hook will receive the notification data as argument."] 8) (defvar lsp-dart-current-outline nil nil) (make-variable-buffer-local 'lsp-dart-current-outline) (defvar lsp-dart-current-flutter-outline nil nil) (make-variable-buffer-local 'lsp-dart-current-flutter-outline) (defconst lsp-dart--outline-buffer-name "*Dart Outline*") (defconst lsp-dart--flutter-outline-buffer-name "*Flutter Outline*") #@150 Save in WORKSPACE the PARAMS metadata with KEY-PREFIX. The key is composed of the KEY-PREFIX with PARAMS uri path. (fn WORKSPACE PARAMS KEY-PREFIX) (defalias 'lsp-dart-outline--set-metadata #[771 "\300\301!!\302Q\303#\207" [lsp--uri-to-path lsp:outline-notification-uri "--" lsp-workspace-set-metadata] 9 (#$ . 2169)]) #@98 Return the metadata saved in current workspace of BUFFER for KEY-PREFIX. (fn BUFFER KEY-PREFIX) (defalias 'lsp-dart-outline--get-metadata #[514 "\211\300\301!Q\302\303\211!\"\207" ["--" buffer-file-name lsp-workspace-get-metadata lsp-find-workspace] 7 (#$ . 2502)]) #@184 Maps an outline KIND to a treemacs icon symbol. Kinds from https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/spec/generated/java/types/ElementKind.java (fn KIND) (defalias 'lsp-dart-outline--outline-kind->icon #[257 "\211\300\267\2026\301\207\301\207\302\207\303\207\304\207\305\207\305\207\306\207\306\207\307\207\304\207\304\207\304\207\310\207\311\207\312\207\303\207\312\207\313\207\313\207\314\207\304\207\315\207\316\207\317\207" [#s(hash-table size 24 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ("CLASS" 6 "CLASS_TYPE_ALIAS" 8 "COMPILATION_UNIT" 10 "FIELD" 12 "METHOD" 14 "CONSTRUCTOR" 16 "CONSTRUCTOR_INVOCATION" 18 "GETTER" 20 "SETTER" 22 "TOP_LEVEL_VARIABLE" 24 "FUNCTION" 26 "FUNCTION_INVOCATION" 28 "FUNCTION_TYPE_ALIAS" 30 "LABEL" 32 "LIBRARY" 34 "EXTENSION" 36 "LOCAL_VARIABLE" 38 "MIXIN" 40 "PARAMETER" 42 "TYPE_PARAMETER" 44 "UNIT_TEST_GROUP" 46 "UNIT_TEST_TEST" 48 "ENUM" 50 "ENUM_CONSTANT" 52)) class document field method namespace property constant number template interface string structure enumerator enumitem nil] 3 (#$ . 2778)]) #@172 Build the ret action for an item in the outline tree view. URI is the source of the item. RANGE is the range of positions to where this item should point. (fn URI RANGE) (defalias 'lsp-dart-outline--outline-tree-ret-action #[514 "\300\301!!\210\302\303!!b\210\304\305!\207" [lsp-treemacs--open-file-in-mru lsp--uri-to-path lsp--position-to-point lsp:range-start run-hooks xref-after-jump-hook] 5 (#$ . 3884) nil]) #@110 Builds an outline tree. URI is the source of the outline. OUTLINES are the outline items. (fn URI OUTLINES) (defalias 'lsp-dart-outline--outlines->tree #[514 "\300\301\302\"\"\207" [seq-map make-closure #[257 "\301\302\"\301\303\"\301\304\"\301\305\"\301\306\"\301\307\"\205$\310\311P\312\313#P\314\315\316\317\n!\320\321\322\300#\323\321\324\300#\257\n\207" [V0 gethash "children" "element" "kind" "name" "range" "parameters" propertize " " face lsp-lens-face :key :label :icon lsp-dart-outline--outline-kind->icon :children make-closure #[128 "\302\301!?\205 \303\300\301\"\207" [V0 V1 seq-empty-p lsp-dart-outline--outlines->tree] 4 "\n\n(fn &rest _)"] :ret-action #[128 "\302\300\301\"\207" [V0 V1 lsp-dart-outline--outline-tree-ret-action] 4 "\n\n(fn &rest _)"]] 21 "\n\n(fn INPUT0)"]] 6 (#$ . 4308)]) #@156 Build the action options for the Flutter outline tree view. URI is the source of the outline. RANGE is the range for currently build item. (fn URI RANGE) (defalias 'lsp-dart-outline--build-flutter-outline-widget-actions #[514 "\300\301!!\211\205r\211q\210\302!@b\210\303\304\305\306\307 \"\")\207" [find-buffer-visiting lsp--uri-to-path lsp--range-to-region -map #[257 "\211\300\301\"\302\303D\"\207" [gethash "title" vector lsp-execute-code-action] 7 "\n\n(fn INPUT0)"] -filter #[257 "\300\301\"\211\205\f\302\303\"\207" [gethash "kind" string-match "^refactor"] 5 "\n\n(fn INPUT0)"] lsp-code-actions-at-point] 8 (#$ . 5143)]) #@117 Builds a Flutter outline tree. URI is the source of the outline. OUTLINES are the outline items. (fn URI OUTLINES) (defalias 'lsp-dart-outline--flutter-outline->tree #[514 "\300\301\302\"\"\207" [seq-map make-closure #[257 "\301\302\"\301\303\"\301\304\"\301\305\"\301\306\"\301\307\"\310\230?\211\203)\311Q\202<\312!\313!\205;\314\311\313!P\315\316#P\203D\317\202I\320\321!!\322\323\324\325\326\327\300#\330\326\331\300#\332 \205h\333\300\"\334\300\257\207" [V0 gethash "children" "kind" "codeRange" "className" "label" "dartElement" "DART_ELEMENT" " " lsp:element-name lsp:element-parameters\? propertize face lsp-lens-face flutter lsp-dart-outline--outline-kind->icon lsp:element-kind :key :label :icon :children make-closure #[128 "\302\301!?\205 \303\300\301\"\207" [V0 V1 seq-empty-p lsp-dart-outline--flutter-outline->tree] 4 "\n\n(fn &rest _)"] :ret-action #[128 "\302\300\301\"\207" [V0 V1 lsp-dart-outline--outline-tree-ret-action] 4 "\n\n(fn &rest _)"] :actions lsp-dart-outline--build-flutter-outline-widget-actions :uri] 24 "\n\n(fn INPUT0)"]] 6 (#$ . 5789)]) #@82 Render an outline view with the source URI and OUTLINES data. (fn URI OUTLINES) (defalias 'lsp-dart-outline--render-outline-tree #[514 "\212\301\302\"\303\304$)\207" [lsp-dart--outline-buffer-name lsp-treemacs-render lsp-dart-outline--outlines->tree "Outline" t] 7 (#$ . 6905)]) #@90 Render an Flutter outline view with the source URI and OUTLINES data. (fn URI OUTLINES) (defalias 'lsp-dart-outline--render-flutter-outline-tree #[514 "\212\301\302\"\303\304$)\207" [lsp-dart--flutter-outline-buffer-name lsp-treemacs-render lsp-dart-outline--flutter-outline->tree "Flutter Outline" t] 7 (#$ . 7194)]) #@94 Show an outline tree for BUFFER. Focus on it if IGNORE-FOCUS? is nil. (fn IGNORE-FOCUS\=\?) (defalias 'lsp-dart-outline--show-outline #[257 "\302!\205\n\303\304\"\211\2039\303\305\302!\205\303\306\"\"\211\2035\307\"\310 \"?\2054\311!\210\312\313\"\207\314\315!\207\314\315!\207" [lsp-dart-current-outline lsp-dart-outline-position-params ht\? gethash "uri" "children" "outline" lsp-dart-outline--render-outline-tree display-buffer-in-side-window select-window set-window-dedicated-p t lsp-dart-log "No Dart outline data found"] 8 (#$ . 7522)]) #@101 Show a Flutter outline tree for BUFFER. Focus on it if IGNORE-FOCUS? is nil. (fn IGNORE-FOCUS\=\?) (defalias 'lsp-dart-outline--show-flutter-outline #[257 "\302!\205\n\303\304\"\211\2039\303\305\302!\205\303\306\"\"\211\2035\307\"\310 \"?\2054\311!\210\312\313\"\207\314\315!\207\314\315!\207" [lsp-dart-current-flutter-outline lsp-dart-flutter-outline-position-params ht\? gethash "uri" "children" "outline" lsp-dart-outline--render-flutter-outline-tree display-buffer-in-side-window select-window set-window-dedicated-p t lsp-dart-log "No Flutter outline data found"] 8 (#$ . 8090)]) #@174 Outline notification handling from WORKSPACE. NOTIFICATION is outline notification data received from server. It updates the outline view if it already exists. (fn INPUT0) (defalias 'lsp-dart--outline-check #[257 "\211\302\303\"\304\305!!\211\205r\211q\210\306 !\205\307\310!)\207" [lsp-dart-current-outline lsp-dart--outline-buffer-name gethash "uri" find-buffer-visiting lsp--uri-to-path get-buffer-window lsp-dart-outline--show-outline t] 6 (#$ . 8700)]) #@198 Flutter outline notification handling from WORKSPACE. NOTIFICATION is Flutter outline notification data received from server. It updates the Flutter outline view if it already exists. (fn INPUT0) (defalias 'lsp-dart--flutter-outline-check #[257 "\211\302\303\"\304\305!!\211\205r\211q\210\306 !\205\307\310!)\207" [lsp-dart-current-flutter-outline lsp-dart--flutter-outline-buffer-name gethash "uri" find-buffer-visiting lsp--uri-to-path get-buffer-window lsp-dart-outline--show-flutter-outline t] 6 (#$ . 9174)]) #@111 Non-nil if Lsp-Dart-Outline mode is enabled. Use the command `lsp-dart-outline-mode' to change this variable. (defvar lsp-dart-outline-mode nil (#$ . 9704)) (make-variable-buffer-local 'lsp-dart-outline-mode) #@594 Mode for updating outline. This is a minor mode. If called interactively, toggle the `Lsp-Dart-Outline mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `lsp-dart-outline-mode'. The mode's hook is called both when the mode is enabled and when it is disabled. (fn &optional ARG) (defalias 'lsp-dart-outline-mode #[256 "\302 \303=\203 ?\202\247\203\304W\203\305\202\306\307\301!\2031\310\300 \"\2031\300 B\203?\311\312\313\305\306$\210\202E\314\312\313\306#\210\315\316\203O\317\202P\320\"\210\321\322!\203r\302 \203d\211\302 \232\203r\323\324\203n\325\202o\326\327#\210\210\330 \210\207" [lsp-dart-outline-mode local-minor-modes current-message toggle 1 nil t boundp delq add-hook lsp-dart-outline-arrived-hook lsp-dart--outline-check remove-hook run-hooks lsp-dart-outline-mode-hook lsp-dart-outline-mode-on-hook lsp-dart-outline-mode-off-hook called-interactively-p any message "Lsp-Dart-Outline mode %sabled%s" "en" "dis" " in current buffer" force-mode-line-update] 7 (#$ . 9920) (byte-code "\203\n\301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)]) (defvar lsp-dart-outline-mode-hook nil) (byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205#\310\211%\207" [lsp-dart-outline-mode-map lsp-dart-outline-mode-hook variable-documentation put "Hook run after entering or leaving `lsp-dart-outline-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode lsp-dart-outline-mode boundp] 6) #@127 Non-nil if Lsp-Dart-Flutter-Outline mode is enabled. Use the command `lsp-dart-flutter-outline-mode' to change this variable. (defvar lsp-dart-flutter-outline-mode nil (#$ . 11883)) (make-variable-buffer-local 'lsp-dart-flutter-outline-mode) #@618 Mode for updating flutter outline. This is a minor mode. If called interactively, toggle the `Lsp-Dart-Flutter-Outline mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `lsp-dart-flutter-outline-mode'. The mode's hook is called both when the mode is enabled and when it is disabled. (fn &optional ARG) (defalias 'lsp-dart-flutter-outline-mode #[256 "\302 \303=\203 ?\202\247\203\304W\203\305\202\306\307\301!\2031\310\300 \"\2031\300 B\203?\311\312\313\305\306$\210\202E\314\312\313\306#\210\315\316\203O\317\202P\320\"\210\321\322!\203r\302 \203d\211\302 \232\203r\323\324\203n\325\202o\326\327#\210\210\330 \210\207" [lsp-dart-flutter-outline-mode local-minor-modes current-message toggle 1 nil t boundp delq add-hook lsp-dart-flutter-outline-arrived-hook lsp-dart--flutter-outline-check remove-hook run-hooks lsp-dart-flutter-outline-mode-hook lsp-dart-flutter-outline-mode-on-hook lsp-dart-flutter-outline-mode-off-hook called-interactively-p any message "Lsp-Dart-Flutter-Outline mode %sabled%s" "en" "dis" " in current buffer" force-mode-line-update] 7 (#$ . 12132) (byte-code "\203\n\301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)]) (defvar lsp-dart-flutter-outline-mode-hook nil) (byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205#\310\211%\207" [lsp-dart-flutter-outline-mode-map lsp-dart-flutter-outline-mode-hook variable-documentation put "Hook run after entering or leaving `lsp-dart-flutter-outline-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode lsp-dart-flutter-outline-mode boundp] 6) #@86 Show an outline tree and focus on it if IGNORE-FOCUS? is nil. (fn IGNORE-FOCUS\=\?) (defalias 'lsp-dart-show-outline #[257 "\300\301!\210\302!\207" [lsp-dart-assert-sdk-min-version "2.8.0" lsp-dart-outline--show-outline] 3 (#$ . 14223) "P"]) #@93 Show a Flutter outline tree and focus on it if IGNORE-FOCUS? is nil. (fn IGNORE-FOCUS\=\?) (defalias 'lsp-dart-show-flutter-outline #[257 "\300\301!\210\302!\207" [lsp-dart-assert-sdk-min-version "2.8.0" lsp-dart-outline--show-flutter-outline] 3 (#$ . 14473) "P"]) (provide 'lsp-dart-outline)