Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@doc can't access macros in other modules #11548

Closed
fcard opened this issue Jun 2, 2015 · 0 comments
Closed

@doc can't access macros in other modules #11548

fcard opened this issue Jun 2, 2015 · 0 comments
Assignees
Labels
docs This change adds or pertains to documentation

Comments

@fcard
Copy link
Contributor

fcard commented Jun 2, 2015

It can neither document nor retrieve documentation.

julia> module M
           macro m() end
       end

julia> @doc "macro m" M.@m
M

julia> @doc M  # it documents the module instead
macro m

julia> @doc M.@m # can't read the macro either
macro m

julia> import M.@m; @doc @m # the macro still has no documentation

julia>

Likely cause: When @doc notices a :macrocall, it doesn't account for modules and when it tries to extract the name of the macro it takes the name of the module instead.

@jakebolewski jakebolewski added the docs This change adds or pertains to documentation label Jun 2, 2015
fcard added a commit to fcard/julia that referenced this issue Jun 3, 2015
@MikeInnes MikeInnes self-assigned this Jun 3, 2015
@vtjnash vtjnash closed this as completed in dc13050 Jun 4, 2015
vtjnash added a commit that referenced this issue Jun 4, 2015
In docs, consider expressions like `x.y` to be names (fix #11548)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

3 participants