commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file contains utf-8 non-ASCII characters, |
|
7 |
;;; and so cannot be loaded into Emacs 22 or earlier. |
|
8 |
(and (boundp 'emacs-version) |
|
9 |
(< (aref emacs-version (1- (length emacs-version))) ?A) |
|
10 |
(string-lessp emacs-version "23") |
|
11 |
(error "`%s' was compiled for Emacs 23 or later" #$)) |
|
12 |
|
|
13 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
14 |
|
|
15 |
|
|
16 |
(byte-code "\301\302!\210\301\303!\210\301\304!\210\301\305!\210\301\306!\210\301\307!\210\301\310!\210\301\311!\210\301\312!\210\313\314\"\2042 \301\315!\210\202A \316\317\320\"\210\316\321\322\"\210\316\323\324\"\210\313\325\"\203M \316\326\327\"\210\301\207" [emacs-version require cl-lib cc-mode semantic semantic/tag-ls semantic/bovine/c semantic/format semantic/doc srecode/semantic srefactor-ui version< "24.4" subr-x defalias string-empty-p #[(string) "\301\230\207" [string #1=""] 2 "Check whether STRING is empty."] string-trim-left #[(string) "\301\302\"\203 \303\304\305\211$\207\207" [string string-match "\\`[ \n
]+" replace-match #1# t] 5 "Remove leading whitespace from STRING."] string-trim-right #[(string) "\301\302\"\203 \303\304\305\211$\207\207" [string string-match "[ \n
]+\\'" replace-match #1# t] 5 "Remove trailing whitespace from STRING."] "25" semantic-documentation-comment-preceding-tag semantic-documentation-comment-preceeding-tag] 3) |
|
17 |
#@33 Current local variable at point |
|
18 |
(defvar srefactor--current-local-var nil (#$ . 1389)) |
|
19 |
(byte-code "\300\301\302\303\304\305%\210\300\306\307\303\304\305%\210\300\310\311\312\304\305%\210\300\313\314\315\304\305\316\317&\207" [custom-declare-variable srefactor--getter-prefix "get_" "Prefix for inserting getter." :group srefactor srefactor--setter-prefix "set_" srefactor--getter-setter-removal-prefix "" "Prefix for removing getter and setter." srefactor--getter-setter-capitalize-p nil "Whether getter and setter should be capitalized." :type boolean] 8) |
|
20 |
#@41 Use experimental SRecode tag insertion |
|
21 |
(defvar srefactor-use-srecode-p nil (#$ . 1952)) |
|
22 |
(defalias 'srefactor--is-proto '(macro . #[(type) "\301\302BB\207" [type eq ('gen-func-proto)] 3])) |
|
23 |
(defalias 'srefactor--add-menu-item '(macro . #[(label operation-type file-options) "\303\304\305\306 D\nFE\207" [label operation-type file-options add-to-list 'menu-item-list list quote] 6])) |
|
24 |
#@146 Offer contextual menu with actions based on current tag in scope. |
|
25 |
|
|
26 |
Each menu item added returns a token for what type of refactoring |
|
27 |
to perform. |
|
28 |
(defalias 'srefactor-refactor-at-point #[nil "\306\307 \310\311!\312 \313\314\315\316#\317\320 5\321!\2035 \322\323\nE\2116
\235\203/
\210\2024 6
B)\324!\203R \325\326\nE\2117
\235\203L
\210\202Q 7
B)\327!\203o \330\331\nE\2118
\235\203i
\210\202n 8
B)\332!\203\214 \333\334\nE\2119
\235\203\206
\210\202\213 9
B)\335!\203\327 \336\337\nE\211:
\235\203\243
\210\202\250 :
B)\340\341\nE\211;
\235\203\272
\210\202\277 ;
B)\342\343\nE\211<
\235\203\321
\210\202\326 <
B)5\203\366 5\344\345\346E\211=
\235\203\360
\210\202\365 =
B)\347 \203\350\351\nE\211>
\235\203\f
\210\202>
B)\352 \203.\353\354\317E\211?
\235\203(
\210\202-?
B)\355\f\356
#\210\355\f\357\360#\210\355\f\361#\210\355\f\362\363#\210\364\f!.\207" [semanticdb-find-default-throttle refresh srefactor--file-options tag menu menu-item-list (file) semantic-parse-changes-default srefactor-ui--return-option-list file srefactor--copy-tag make-instance srefactor-ui-menu :name "menu" nil srefactor--menu-add-rename-local-p srefactor--menu-add-function-implementation-p "Generate Function Implementation (Other file)" gen-func-impl srefactor--menu-add-function-proto-p "Generate Function Prototype (Other file)" gen-func-proto srefactor--menu-add-function-pointer-p "Generate Function Pointer (Current file)" gen-func-ptr srefactor--menu-add-getters-setters-p "Generate Getters and Setters (Current file)" gen-getters-setters srefactor--menu-add-getter-setter-p "Generate Setter (Current file)" gen-setter "Generate Getter (Current file)" gen-getter "Generate Getter and Setter (Current file)" gen-getter-setter "Rename local variable (Current file)" rename-local-var ("(Current file)") srefactor--menu-add-move-p "Move (Current file)" move region-active-p "Extract function (Current file)" extract-function eieio-oset :items :action srefactor-ui--refactor-action :context :shortcut-p t srefactor-ui-create-menu srefactor--current-local-var #1=#:x #2=#:x #3=#:x #4=#:x #5=#:x #6=#:x #7=#:x #8=#:x #9=#:x #10=#:x] 5 (#$ . 2343) nil]) |
|
29 |
#@287 Filter TAGS based on PREDICATE that satisfies TAG-CLASSES-OR-NAMES. |
|
30 |
|
|
31 |
TAG-CLASSES-OR-NAMES can be a list of Semantic tag classes, or a |
|
32 |
list of Semantic tag names, but not both. |
|
33 |
|
|
34 |
Based on the type of list passed above, either use |
|
35 |
`semantic-tag-class' or `semantic-tag-name' as PREDICATE. |
|
36 |
(defalias 'srefactor--tag-filter #[(predicate tag-classes-or-names tags) "\306 \306\211\203 |