;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\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\210\300\312!\210\300\313!\210\300\314!\210\300\315!\210\300\316!\210\300\317!\210\320\321\322\323\324\325\326\327\330\331& \210\332\333\334\335\336DD\337\340\341\326\321&\210\332\342\334\335\343DD\344\345\346\340\347\326\321& \210\332\350\334\335\351DD\352\340\353\326\321&\210\332\354\334\335\355DD\356\340\353\326\321&\210\332\357\334\335\360DD\361\340\353\326\321&\210\332\362\334\335\363DD\364\340\365\326\321&\210\332\366\334\335\367DD\370\340\353\326\321&\210\332\371\334\335\372DD\373\340\353\326\321&\207" [require f dash lsp-mode lsp-dart-protocol lsp-dart-utils lsp-dart-closing-labels lsp-dart-dap lsp-dart-test-support lsp-dart-test-output lsp-dart-test-tree lsp-dart-code-lens lsp-dart-outline lsp-dart-flutter-fringe-colors lsp-dart-flutter-widget-guide lsp-dart-commands custom-declare-group lsp-dart nil "LSP support for Dart, using dart analysis server." :prefix "lsp-dart-" :group applications :link (url-link :tag "GitHub" "https://github.com/emacs-lsp/lsp-dart") custom-declare-variable lsp-dart-server-command funcall function #[0 "\300\207" [nil] 1] "The analysis_server executable to use." :type (repeat string) lsp-dart-extra-library-directories #[0 "\300\207" [nil] 1] "List of directories which will be considered to be libraries." :risky t (repeat string) lsp-dart-only-analyze-projects-with-open-files #[0 "\300\207" [nil] 1] "Analyze project root of open files even if not using workspace folders.\nWhen set to non-nil, even if the file was not openned as a workspace project,\nthe analysis server will try to find the project root and analyze all project\nfiles." boolean lsp-dart-suggest-from-unimported-libraries #[0 "\300\207" [t] 1] "Import suggestions happens only for non imported symbols.\nWhen set to nil, completion will not include symbols that are not already\nimported into the current file." lsp-dart-enable-sdk-formatter #[0 "\300\207" [t] 1] "When to enable server formmating." lsp-dart-line-length #[0 "\300\207" [80] 1] "The number of characters the formatter should wrap code at." number lsp-dart-show-todos #[0 "\300\207" [nil] 1] "Whether to generate diagnostics for TODO comments.\nIf unspecified, diagnostics will not be generated." lsp-dart-complete-function-calls #[0 "\300\207" [t] 1] "Completes functions/methods with their required parameters."] 10) #@45 Return the library folders path to analyze. (defalias 'lsp-dart--library-folders #[0 "\301 \203\n\302 \202\f\303 \304\305 \"\203\306\307\305 !C\"\207\207" [lsp-dart-extra-library-directories lsp-dart-flutter-project-p lsp-dart-get-flutter-sdk-dir lsp-dart-get-sdk-dir string-prefix-p buffer-file-name append file-name-directory] 4 (#$ . 2527)]) #@66 Return the client workspace configuration. (fn WORKSPACE ITEMS) (defalias 'lsp-dart--configuration #[514 "\304\305\306\307\"\310\311#\210\310\312 #\210\310\313\n#\210\310\314 #\210\211\262!\207" [lsp-dart-enable-sdk-formatter lsp-dart-complete-function-calls lsp-dart-show-todos lsp-dart-line-length vector make-hash-table :test equal puthash "enableSdkFormatter" "completeFunctionCalls" "showTodos" "lineLength"] 8 (#$ . 2885)]) #@31 Generate LSP startup command. (defalias 'lsp-dart--server-command #[0 "\301\302\303\304#\205\305\306\307\310!\"\206 \311 \312\313\314 \315\"!\316\317\257\207" [lsp-dart-server-command require pkg-info nil t format "--client-version %s" pkg-info-version-info lsp-dart lsp-dart-dart-command expand-file-name f-join lsp-dart-get-sdk-dir "bin/snapshots/analysis_server.dart.snapshot" "--lsp" "--client-id emacs.lsp-dart"] 6 (#$ . 3328)]) #@40 Activate lsp-dart features if enabled. (defalias 'lsp-dart--activate-features #[0 "\306 \203\307 \210\203\310\311!\210 \203\312\311!\210\n\203 \313\311!\210 \203(\314\311!\210\f\2030\315\311!\210\316\317 !\203;\320\311!\210 \203C\321\311!\210\205K\322\311!\207" [lsp-dart-flutter-widget-guides lsp-dart-flutter-fringe-colors lsp-dart-closing-labels lsp-dart-outline lsp-dart-flutter-outline lsp-dart-main-code-lens lsp-dart-flutter-project-p lsp-dart-flutter-daemon-start lsp-dart-flutter-widget-guides-mode 1 lsp-dart-flutter-fringe-colors-mode lsp-dart-closing-labels-mode lsp-dart-outline-mode lsp-dart-flutter-outline-mode lsp-dart-test-file-p buffer-file-name lsp-dart-test-mode lsp-dart-main-code-lens-mode lsp-dart-test-code-lens-mode lsp-dart-test-code-lens] 2 (#$ . 3774)]) (byte-code "\305\306\307\310\311!\312\313\314\315\316\317B\320 B\321\nB\322 B\323\fB\257\324\325\326\327\330\331\"\332\333\334#\210\332\335\336#\210\332\337\340#\210\332\341\342#\210\211\262\343\327\330\331\"\332\344\345#\210\211\262\346\347\350\351&!\207" [lsp-dart-only-analyze-projects-with-open-files lsp-dart-suggest-from-unimported-libraries lsp-dart-closing-labels lsp-dart-outline lsp-dart-flutter-outline lsp-register-client make-lsp-client :new-connection lsp-stdio-connection lsp-dart--server-command :activation-fn #[513 "\300\301!\206 \302!\303\230\207" [derived-mode-p dart-mode f-filename "pubspec.yaml"] 4 "\n\n(fn FILENAME &optional _)"] :priority 1 :initialization-options onlyAnalyzeProjectsWithOpenFiles suggestFromUnimportedLibraries closingLabels outline flutterOutline :library-folders-fn #[257 "\300 \207" [lsp-dart--library-folders] 2 "\n\n(fn WORKSPACE)"] :notification-handlers make-hash-table :test equal puthash "dart/textDocument/publishClosingLabels" #[514 "\300\301\"\207" [run-hook-with-args lsp-dart-closing-labels-arrived-hook] 5 "\n\n(fn WORKSPACE NOTIFICATION)"] "dart/textDocument/publishOutline" #[514 "\300\301\"\207" [run-hook-with-args lsp-dart-outline-arrived-hook] 5 "\n\n(fn WORKSPACE NOTIFICATION)"] "dart/textDocument/publishFlutterOutline" #[514 "\300 \205 \301\302\"\207" [lsp-dart-flutter-project-p run-hook-with-args lsp-dart-flutter-outline-arrived-hook] 5 "\n\n(fn WORKSPACE NOTIFICATION)"] "$/analyzerStatus" ignore :request-handlers "workspace/configuration" lsp-dart--configuration :after-open-fn lsp-dart--activate-features :server-id dart_analysis_server] 20) #@208 Get the lsp-dart version as string. The returned string includes the version from main file header, the current time and the Emacs version. If the version number could not be determined, signal an error. (defalias 'lsp-dart-version #[0 "\302\303\304\305#\205 \306\307!\310\311\206\312\313\314\315 \"$\316 \203)\317\320\321\322#\323 P\202,\324 P\325\326 \2063\327P\330\331 \203>\332\202?\333P\334\335 \206G\327P\336\257\337\340\341#\266\202!\207" [emacs-version lsp-dart-sdk-dir require pkg-info nil t pkg-info-version-info lsp-dart format "%s at %s @ Emacs %s" "unknown" format-time-string "%Y.%m.%d" current-time lsp-dart-get-sdk-dir propertize "[Dart SDK] " face font-lock-function-name-face lsp-dart-get-full-dart-version "No Dart SDK found, `lsp-dart-sdk-dir` is: %s" "[Flutter SDK] " lsp-dart-get-flutter-sdk-dir "Not found" "[Flutter project] " lsp-dart-flutter-project-p "true" "false" "[Project entrypoint] " lsp-dart-get-project-entrypoint lsp-dart-log "\n" mapconcat identity] 13 (#$ . 6213) nil]) (provide 'lsp-dart)