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

Add support for comments - line and doc #830

Open
kevmoo opened this issue Jul 26, 2018 · 4 comments
Open

Add support for comments - line and doc #830

kevmoo opened this issue Jul 26, 2018 · 4 comments
Labels
good first issue A good starting issue for contributors (issues with this label will appear in /contribute) package:code_builder type-enhancement A request for a change that isn't a bug

Comments

@kevmoo
Copy link
Member

kevmoo commented Jul 26, 2018

No description provided.

@matanlurey matanlurey added the good first issue A good starting issue for contributors (issues with this label will appear in /contribute) label Jul 26, 2018
@srawlins
Copy link
Member

Something to keep in mind for this one: supporting references in doc comments. For example, if I have:

import 'foo.dart' as _i1;

/// This class extends [Foo].
class Bar extends _i1.Foo {}

Then I get a "Only reference in scope identifiers in doc comments" lint report. If a first-class Doc comment could be made, I could add text ("This class extends ") and references (TypeReference(...)).

@donny-dont
Copy link
Contributor

@srawlins if you take another stab at this my wish list would be

  • Add line breaks to support formatting line lengths
  • Some markdown support, like adding a link to a URL
  • Example code block

@srawlins
Copy link
Member

Good ideas. I don't foresee mailing a PR any time soon.

@devoncarew
Copy link
Member

dart-archive/code_builder#389 implements a little bit of this - the ability to have line comments for libraries, emitted at the beginning of the file (// Generated by ...).

@devoncarew devoncarew added the type-enhancement A request for a change that isn't a bug label Aug 7, 2023
@mosuem mosuem transferred this issue from dart-archive/code_builder Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A good starting issue for contributors (issues with this label will appear in /contribute) package:code_builder type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants