Skip to content

Comments

#4134. Add comments placement tests for operators#4213

Merged
szakarias merged 2 commits intodart-lang:mainfrom
sgrekhov:sgrekhov-dartdoc-10
Feb 24, 2026
Merged

#4134. Add comments placement tests for operators#4213
szakarias merged 2 commits intodart-lang:mainfrom
sgrekhov:sgrekhov-dartdoc-10

Conversation

@sgrekhov
Copy link
Collaborator

No description provided.


@reflectiveTest
class PlacementTest extends Co19TestBase {
/// Check that doc comments in a class can be recognized before a user-defined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Check that doc comments in a class can be recognized before a user-defined
/// Check that doc comments in a class can be recognized before user-defined

Line 1''');
}

/// Check that block-based doc comments in a class can be recognized before a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Check that block-based doc comments in a class can be recognized before a
/// Check that block-based doc comments in a class can be recognized before

expect(op2.documentation, 'Line 1');
}

/// Check that doc comments in a mixin can be recognized before a user-defined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Check that doc comments in a mixin can be recognized before a user-defined
/// Check that doc comments in a mixin can be recognized before user-defined

}

/// Check that doc comments in a mixin can be recognized before a user-defined
/// operator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// operator.
/// operators.

Line 1''');
}

/// Check that block-based doc comments in a mixin can be recognized before a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just clean up all the commets and decide on singular or plural of "operator" in the descriptions.

@sgrekhov
Copy link
Collaborator Author

Thank you. All comments rewritten using plural.

@szakarias szakarias merged commit 3ca5602 into dart-lang:main Feb 24, 2026
14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants