Skip to content

Var definitions in scaladoc #26

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

Closed
scabug opened this issue Aug 29, 2007 · 4 comments
Closed

Var definitions in scaladoc #26

scabug opened this issue Aug 29, 2007 · 4 comments

Comments

@scabug
Copy link

scabug commented Aug 29, 2007

Aladdin: [http://scala-webapps.epfl.ch/bugtracking/bugs/displayItem.do?id=736 bug 736]

package pack

/** hello */
abstract class Foo {
  /** hola */
  var x:Int
}

/** hello */
class Bar extends Foo {
  /** hola */
  override var x = 3
}

documentation for Foo:x shows the setter and getter methods, and does not indicate that "there is an abstract vardef"

documentation for Bar:x is altogether missing

I would expect "abstract var x:Int" in documentation of Foo, and "var x" in definition of Bar.

[sean] I think NSC is doing some early transformations before or during type checking is completed that blow away all of this information. Vars never really exist, and we can't piece them back together very easily in Scaladoc.

[martin] nsc now marks setters and getters of abstract fields with the ABSTRACT flag. What's more, isSetter and isGetter (in Symbols.scala) now return true for such members. So, back to you, Sean...

@scabug
Copy link
Author

scabug commented Aug 29, 2007

Imported From: https://issues.scala-lang.org/browse/SI-26?orig=1
Reporter: @burakemir
Assignee: Geoffrey Alan Washburn (washburn)

@scabug
Copy link
Author

scabug commented Sep 5, 2007

@michelou said:
Updated milestone to "postponed"

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone next_feature deleted

@scabug
Copy link
Author

scabug commented Feb 17, 2009

@paulp said:
This example generates the expected documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant