Skip to content

Resolving references in extension method documentation #2030

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
dcharkes opened this issue Sep 26, 2019 · 1 comment
Closed

Resolving references in extension method documentation #2030

dcharkes opened this issue Sep 26, 2019 · 1 comment

Comments

@dcharkes
Copy link
Contributor

Question about the state of supporting extension methods in dartdoc.

We are moving the dart:ffi to extension methods (dart-lang/sdk#37773).

extension PointerInt8 on Pointer<Int8> {
  /// Load a Dart value from this location.
  ///
  /// The value is automatically unmarshalled from its native representation.
  ///
  /// Note that [address] needs to be aligned the size of [Int8].
  int get val => _loadInt8(this);

  // ...
}

This comment refers to address, which is a member of Pointer/this.

Will (or does) dartdoc understand this?

@dcharkes
Copy link
Contributor Author

Nevermind, this already works! 👍 (I had to recompile the whole sdk with the right flag.)

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

No branches or pull requests

1 participant