Skip to content

Commit 694347d

Browse files
committed
add some more dartdoc references
1 parent 9e74697 commit 694347d

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

lib/src/model.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,8 +1363,7 @@ abstract class ModelElement implements Comparable, Nameable, Documentable {
13631363
bool get canHaveParameters =>
13641364
element is ExecutableElement || element is FunctionTypeAliasElement;
13651365

1366-
/// Returns the docs, stripped of their
1367-
/// leading comments syntax.
1366+
/// Returns the docs, stripped of their leading comments syntax.
13681367
///
13691368
/// This getter will walk up the inheritance hierarchy
13701369
/// to find docs, if the current class doesn't have docs

testing/test_package/lib/example.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ class PublicClassImplementsPrivateInterface implements _PrivateInterface {
269269
void test() {}
270270
}
271271

272-
/// [Object] foo bar
272+
/// Foo bar.
273273
///
274-
/// 3. All references should be hyperlinks. [Object] [MyError] [ShapeType]
275-
/// [MyError] [MyException]
276-
/// [MyError] [MyException] [Object]
277-
/// [ShapeType] foo bar
274+
/// 3. All references should be hyperlinks. [MyError] and
275+
/// [ShapeType] and [MyError] and [MyException] and
276+
/// [MyError] and [MyException] and
277+
/// [ShapeType] foo bar.
278278
class ShapeType extends _RetainedEnum {
279279
static const ShapeType rect = const ShapeType._internal("Rect");
280280
static const ShapeType ellipse = const ShapeType._internal("Ellipse");

testing/test_package/lib/fake.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,3 +467,13 @@ void paintImage2(
467467
// nothing to do here -
468468

469469
}
470+
471+
/// Test operator references: [OperatorReferenceClass.==].
472+
class OperatorReferenceClass {
473+
OperatorReferenceClass();
474+
475+
@override
476+
bool operator ==(dynamic other) {
477+
return false;
478+
}
479+
}

0 commit comments

Comments
 (0)