File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 310310 (when (and (= emacs-major-version 24 ) (>= emacs-minor-version 4 ))
311311 (require 'cl )))
312312
313+ (require 'imenu )
314+
313315; ; ==================================================================
314316; ; c# upfront stuff
315317; ; ==================================================================
@@ -1602,6 +1604,14 @@ See also, `csharp-move-fwd-to-end-of-defun'.
16021604 (goto-char found))))))
16031605
16041606
1607+ (defun csharp--on-defun-open-curly-p ()
1608+ " return t when point is on the open-curly of a method."
1609+ (and (looking-at " {" )
1610+ (not (looking-back (csharp--regexp 'class-start ) nil ))
1611+ (not (looking-back (csharp--regexp 'namespace-start ) nil ))
1612+ (looking-back (csharp--regexp 'func-start ) nil )))
1613+
1614+
16051615(defun csharp--on-class-open-curly-p ()
16061616 " return t when point is on the open-curly of a class."
16071617 (and (looking-at " {" )
You can’t perform that action at this time.
0 commit comments