-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clojure: Fix skipMetadata not called for functions (#2728)
* Clojure: Fix skipMetadata not called for functions * Units(Clojure): Add tests clojure-metadata-in-fn * Units(Clojure): Fix input.clj path for test clojure-metadata-in-fn
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Units/parser-clojure.r/clojure-metadata-in-fn.d/expected.tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
my-fn input.clj /^(defn my-fn [])$/;" f | ||
my-hinted-fn input.clj /^(defn my-hinted-fn ^MyReturnType [])$/;" f | ||
my-private-fn input.clj /^(defn ^:private my-private-fn [])$/;" f | ||
my-private-hinted-fn input.clj /^(defn ^:private my-private-hinted-fn ^MyReturnType [])$/;" f | ||
my-public-fn input.clj /^(defn ^{:foo :bar} my-public-fn [])$/;" f | ||
so-many-hints input.clj /^(defn ^:private so-many-hints ^MyReturnType$/;" f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(defn my-fn []) | ||
|
||
(defn ^:private my-private-fn []) | ||
|
||
(defn ^{:foo :bar} my-public-fn []) | ||
|
||
(defn my-hinted-fn ^MyReturnType []) | ||
|
||
(defn ^:private my-private-hinted-fn ^MyReturnType []) | ||
|
||
(defn ^:private so-many-hints ^MyReturnType | ||
[^MyArgType x]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters