Skip to content

Commit 540fe2d

Browse files
authored
Merge pull request #1216 from dart-lang/more_references
More references
2 parents 9e74697 + f461d2b commit 540fe2d

File tree

70 files changed

+1302
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1302
-14
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+
}

testing/test_package_docs/ex/ShapeType-class.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ <h5><a href="ex/ex-library.html">ex</a></h5>
132132
<div class="col-xs-12 col-sm-9 col-md-8 main-content">
133133

134134
<section class="desc markdown">
135-
<p><code>Object</code> foo bar</p><ol><li>
136-
<p>All references should be hyperlinks. <code>Object</code> <code>MyError</code> <a href="ex/ShapeType-class.html">ShapeType</a>
137-
<code>MyError</code> <code>MyException</code>
138-
<code>MyError</code> <code>MyException</code> <code>Object</code>
139-
<a href="ex/ShapeType-class.html">ShapeType</a> foo bar</p></li></ol>
135+
<p>Foo bar.</p><ol><li>
136+
<p>All references should be hyperlinks. <a href="ex/MyError-class.html">MyError</a> and
137+
<code>ShapeType</code> and <a href="ex/MyError-class.html">MyError</a> and <code>MyException</code> and
138+
<a href="ex/MyError-class.html">MyError</a> and <code>MyException</code> and
139+
<code>ShapeType</code> foo bar.</p></li></ol>
140140
</section>
141141

142142

testing/test_package_docs/ex/ex-library.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ <h2>Classes</h2>
397397
<span class="name "><a href="ex/ShapeType-class.html">ShapeType</a></span>
398398
</dt>
399399
<dd>
400-
<p><code>Object</code> foo bar</p>
400+
<p>Foo bar.</p>
401401
</dd>
402402
<dt id="SpecializedDuration">
403403
<span class="name "><a href="ex/SpecializedDuration-class.html">SpecializedDuration</a></span>

testing/test_package_docs/fake/Annotation-class.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ <h5><a href="fake/fake-library.html">fake</a></h5>
135135
<li><a href="fake/Interface-class.html">Interface</a></li>
136136
<li><a href="fake/LongFirstLine-class.html">LongFirstLine</a></li>
137137
<li><a href="fake/MixMeIn-class.html">MixMeIn</a></li>
138+
<li><a href="fake/OperatorReferenceClass-class.html">OperatorReferenceClass</a></li>
138139
<li><a href="fake/OtherGenericsThing-class.html">OtherGenericsThing</a></li>
139140
<li><a href="fake/SpecialList-class.html">SpecialList</a></li>
140141
<li><a href="fake/SubForDocComments-class.html">SubForDocComments</a></li>

testing/test_package_docs/fake/AnotherInterface-class.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ <h5><a href="fake/fake-library.html">fake</a></h5>
134134
<li><a href="fake/Interface-class.html">Interface</a></li>
135135
<li><a href="fake/LongFirstLine-class.html">LongFirstLine</a></li>
136136
<li><a href="fake/MixMeIn-class.html">MixMeIn</a></li>
137+
<li><a href="fake/OperatorReferenceClass-class.html">OperatorReferenceClass</a></li>
137138
<li><a href="fake/OtherGenericsThing-class.html">OtherGenericsThing</a></li>
138139
<li><a href="fake/SpecialList-class.html">SpecialList</a></li>
139140
<li><a href="fake/SubForDocComments-class.html">SubForDocComments</a></li>

testing/test_package_docs/fake/BaseForDocComments-class.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ <h5><a href="fake/fake-library.html">fake</a></h5>
135135
<li><a href="fake/Interface-class.html">Interface</a></li>
136136
<li><a href="fake/LongFirstLine-class.html">LongFirstLine</a></li>
137137
<li><a href="fake/MixMeIn-class.html">MixMeIn</a></li>
138+
<li><a href="fake/OperatorReferenceClass-class.html">OperatorReferenceClass</a></li>
138139
<li><a href="fake/OtherGenericsThing-class.html">OtherGenericsThing</a></li>
139140
<li><a href="fake/SpecialList-class.html">SpecialList</a></li>
140141
<li><a href="fake/SubForDocComments-class.html">SubForDocComments</a></li>

testing/test_package_docs/fake/CUSTOM_CLASS-constant.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ <h5><a href="fake/fake-library.html">fake</a></h5>
129129
<li><a href="fake/Interface-class.html">Interface</a></li>
130130
<li><a href="fake/LongFirstLine-class.html">LongFirstLine</a></li>
131131
<li><a href="fake/MixMeIn-class.html">MixMeIn</a></li>
132+
<li><a href="fake/OperatorReferenceClass-class.html">OperatorReferenceClass</a></li>
132133
<li><a href="fake/OtherGenericsThing-class.html">OtherGenericsThing</a></li>
133134
<li><a href="fake/SpecialList-class.html">SpecialList</a></li>
134135
<li><a href="fake/SubForDocComments-class.html">SubForDocComments</a></li>

testing/test_package_docs/fake/Callback2.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ <h5><a href="fake/fake-library.html">fake</a></h5>
129129
<li><a href="fake/Interface-class.html">Interface</a></li>
130130
<li><a href="fake/LongFirstLine-class.html">LongFirstLine</a></li>
131131
<li><a href="fake/MixMeIn-class.html">MixMeIn</a></li>
132+
<li><a href="fake/OperatorReferenceClass-class.html">OperatorReferenceClass</a></li>
132133
<li><a href="fake/OtherGenericsThing-class.html">OtherGenericsThing</a></li>
133134
<li><a href="fake/SpecialList-class.html">SpecialList</a></li>
134135
<li><a href="fake/SubForDocComments-class.html">SubForDocComments</a></li>

0 commit comments

Comments
 (0)