diff --git a/test/model_test.dart b/test/model_test.dart index c9fc44569b..1122d0004b 100644 --- a/test/model_test.dart +++ b/test/model_test.dart @@ -1201,6 +1201,12 @@ void main() { expect(localMethod.documentationAsHtml, contains('bar')); }); + test('doc comment inherited from getter', () { + Field getterWithDocs = subForDocComments.instanceProperties + .firstWhere((m) => m.name == 'getterWithDocs'); + expect(getterWithDocs.documentationAsHtml, contains('Some really great topics.')); + }); + test( 'a property with no explicit getters and setters does not duplicate docs', () { diff --git a/testing/test_package/lib/fake.dart b/testing/test_package/lib/fake.dart index 9b8bb4f92e..9afbbc57c6 100644 --- a/testing/test_package/lib/fake.dart +++ b/testing/test_package/lib/fake.dart @@ -839,6 +839,9 @@ class BaseForDocComments { void anotherMethod() {} + /// Some really great topics. + bool get getterWithDocs => true; + String operator [](String key) => "${key}'s value"; } @@ -847,6 +850,9 @@ class BaseForDocComments { class SubForDocComments extends BaseForDocComments { /// Reference to [foo] and [bar] void localMethod(String foo, bar) {} + + @override + final bool getterWithDocs = false; } typedef void VoidCallback(); diff --git a/testing/test_package_docs/fake/BaseForDocComments-class.html b/testing/test_package_docs/fake/BaseForDocComments-class.html index 41a4d427e1..a5d7f0bb63 100644 --- a/testing/test_package_docs/fake/BaseForDocComments-class.html +++ b/testing/test_package_docs/fake/BaseForDocComments-class.html @@ -203,10 +203,18 @@

Constructors

-
+

Properties

+
+ getterWithDocs + → bool +
+
+ Some really great topics. +
read-only
+
hashCode → int @@ -302,9 +310,10 @@

Operators

  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/BaseForDocComments.html b/testing/test_package_docs/fake/BaseForDocComments/BaseForDocComments.html index 1eed7c9781..9e88d0d4b8 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/BaseForDocComments.html +++ b/testing/test_package_docs/fake/BaseForDocComments/BaseForDocComments.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/anotherMethod.html b/testing/test_package_docs/fake/BaseForDocComments/anotherMethod.html index 627f089f3b..4c826a3d0b 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/anotherMethod.html +++ b/testing/test_package_docs/fake/BaseForDocComments/anotherMethod.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/doAwesomeStuff.html b/testing/test_package_docs/fake/BaseForDocComments/doAwesomeStuff.html index 35c1672933..2532a58957 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/doAwesomeStuff.html +++ b/testing/test_package_docs/fake/BaseForDocComments/doAwesomeStuff.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/getterWithDocs.html b/testing/test_package_docs/fake/BaseForDocComments/getterWithDocs.html new file mode 100644 index 0000000000..bacca00e7b --- /dev/null +++ b/testing/test_package_docs/fake/BaseForDocComments/getterWithDocs.html @@ -0,0 +1,108 @@ + + + + + + + + getterWithDocs property - BaseForDocComments class - fake library - Dart API + + + + + + + + + + + + +
    + +
    + + +
    getterWithDocs
    + +
    + +
    + + + +
    +

    getterWithDocs property

    + + +
    + +
    + bool + getterWithDocs + +
    + +
    +

    Some really great topics.

    +
    + +
    + +
    + + + +
    + +
    + + test_package 0.0.1 + + +
    + + + + + + + + + + + diff --git a/testing/test_package_docs/fake/BaseForDocComments/hashCode.html b/testing/test_package_docs/fake/BaseForDocComments/hashCode.html index 523f8a5b65..b777c675cc 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/hashCode.html +++ b/testing/test_package_docs/fake/BaseForDocComments/hashCode.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/noSuchMethod.html b/testing/test_package_docs/fake/BaseForDocComments/noSuchMethod.html index f013070346..d32ba1e776 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/noSuchMethod.html +++ b/testing/test_package_docs/fake/BaseForDocComments/noSuchMethod.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html b/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html index 667a0fab3a..39f60437de 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html +++ b/testing/test_package_docs/fake/BaseForDocComments/operator_equals.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/operator_get.html b/testing/test_package_docs/fake/BaseForDocComments/operator_get.html index a0ebd93568..f26b3f7066 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/operator_get.html +++ b/testing/test_package_docs/fake/BaseForDocComments/operator_get.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/runtimeType.html b/testing/test_package_docs/fake/BaseForDocComments/runtimeType.html index 296e06015b..0bedbf4003 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/runtimeType.html +++ b/testing/test_package_docs/fake/BaseForDocComments/runtimeType.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/BaseForDocComments/toString.html b/testing/test_package_docs/fake/BaseForDocComments/toString.html index a46a3994f5..0e905d72b4 100644 --- a/testing/test_package_docs/fake/BaseForDocComments/toString.html +++ b/testing/test_package_docs/fake/BaseForDocComments/toString.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/SubForDocComments-class.html b/testing/test_package_docs/fake/SubForDocComments-class.html index 92927310d0..9c1dd6cf92 100644 --- a/testing/test_package_docs/fake/SubForDocComments-class.html +++ b/testing/test_package_docs/fake/SubForDocComments-class.html @@ -203,10 +203,18 @@

    Constructors

    -
    +

    Properties

    +
    + getterWithDocs + → bool +
    +
    + Some really great topics. +
    final
    +
    hashCode → int @@ -311,9 +319,10 @@

    Operators

  • Constructors
  • SubForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/SubForDocComments/SubForDocComments.html b/testing/test_package_docs/fake/SubForDocComments/SubForDocComments.html index c01f9b5838..e15cdb4f46 100644 --- a/testing/test_package_docs/fake/SubForDocComments/SubForDocComments.html +++ b/testing/test_package_docs/fake/SubForDocComments/SubForDocComments.html @@ -42,9 +42,10 @@
    SubForDocComments class
  • Constructors
  • SubForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/fake/SubForDocComments/getterWithDocs.html b/testing/test_package_docs/fake/SubForDocComments/getterWithDocs.html new file mode 100644 index 0000000000..94a63aab84 --- /dev/null +++ b/testing/test_package_docs/fake/SubForDocComments/getterWithDocs.html @@ -0,0 +1,104 @@ + + + + + + + + getterWithDocs property - SubForDocComments class - fake library - Dart API + + + + + + + + + + + + +
    + +
    + + +
    getterWithDocs
    + +
    + +
    + + + +
    +

    getterWithDocs property

    + +
    + bool + getterWithDocs +
    final
    +
    +
    +

    Some really great topics.

    +
    + + +
    + + + +
    + +
    + + test_package 0.0.1 + + +
    + + + + + + + + + + + diff --git a/testing/test_package_docs/fake/SubForDocComments/localMethod.html b/testing/test_package_docs/fake/SubForDocComments/localMethod.html index f682cacee3..33012e4e5f 100644 --- a/testing/test_package_docs/fake/SubForDocComments/localMethod.html +++ b/testing/test_package_docs/fake/SubForDocComments/localMethod.html @@ -42,9 +42,10 @@
    SubForDocComments class
  • Constructors
  • SubForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs/index.json b/testing/test_package_docs/index.json index 4eef96b4c2..03ff01a7a4 100644 --- a/testing/test_package_docs/index.json +++ b/testing/test_package_docs/index.json @@ -4528,6 +4528,17 @@ "type": "class" } }, + { + "name": "getterWithDocs", + "qualifiedName": "fake.BaseForDocComments.getterWithDocs", + "href": "fake/BaseForDocComments/getterWithDocs.html", + "type": "property", + "overriddenDepth": 0, + "enclosedBy": { + "name": "BaseForDocComments", + "type": "class" + } + }, { "name": "hashCode", "qualifiedName": "fake.BaseForDocComments.hashCode", @@ -8664,6 +8675,17 @@ "type": "class" } }, + { + "name": "getterWithDocs", + "qualifiedName": "fake.SubForDocComments.getterWithDocs", + "href": "fake/SubForDocComments/getterWithDocs.html", + "type": "property", + "overriddenDepth": 0, + "enclosedBy": { + "name": "SubForDocComments", + "type": "class" + } + }, { "name": "localMethod", "qualifiedName": "fake.SubForDocComments.localMethod", diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments-class.html b/testing/test_package_docs_dev/fake/BaseForDocComments-class.html index 41a4d427e1..a5d7f0bb63 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments-class.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments-class.html @@ -203,10 +203,18 @@

    Constructors

    -
    +

    Properties

    +
    + getterWithDocs + → bool +
    +
    + Some really great topics. +
    read-only
    +
    hashCode → int @@ -302,9 +310,10 @@

    Operators

  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/BaseForDocComments.html b/testing/test_package_docs_dev/fake/BaseForDocComments/BaseForDocComments.html index 1eed7c9781..9e88d0d4b8 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/BaseForDocComments.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/BaseForDocComments.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/anotherMethod.html b/testing/test_package_docs_dev/fake/BaseForDocComments/anotherMethod.html index 627f089f3b..4c826a3d0b 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/anotherMethod.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/anotherMethod.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/doAwesomeStuff.html b/testing/test_package_docs_dev/fake/BaseForDocComments/doAwesomeStuff.html index 35c1672933..2532a58957 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/doAwesomeStuff.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/doAwesomeStuff.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/getterWithDocs.html b/testing/test_package_docs_dev/fake/BaseForDocComments/getterWithDocs.html new file mode 100644 index 0000000000..bacca00e7b --- /dev/null +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/getterWithDocs.html @@ -0,0 +1,108 @@ + + + + + + + + getterWithDocs property - BaseForDocComments class - fake library - Dart API + + + + + + + + + + + + +
    + +
    + + +
    getterWithDocs
    + +
    + +
    + + + +
    +

    getterWithDocs property

    + + +
    + +
    + bool + getterWithDocs + +
    + +
    +

    Some really great topics.

    +
    + +
    + +
    + + + +
    + +
    + + test_package 0.0.1 + + +
    + + + + + + + + + + + diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/hashCode.html b/testing/test_package_docs_dev/fake/BaseForDocComments/hashCode.html index 523f8a5b65..b777c675cc 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/hashCode.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/hashCode.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/noSuchMethod.html b/testing/test_package_docs_dev/fake/BaseForDocComments/noSuchMethod.html index f013070346..d32ba1e776 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/noSuchMethod.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/noSuchMethod.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/operator_equals.html b/testing/test_package_docs_dev/fake/BaseForDocComments/operator_equals.html index 667a0fab3a..39f60437de 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/operator_equals.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/operator_equals.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/operator_get.html b/testing/test_package_docs_dev/fake/BaseForDocComments/operator_get.html index a0ebd93568..f26b3f7066 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/operator_get.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/operator_get.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/runtimeType.html b/testing/test_package_docs_dev/fake/BaseForDocComments/runtimeType.html index 296e06015b..0bedbf4003 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/runtimeType.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/runtimeType.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/BaseForDocComments/toString.html b/testing/test_package_docs_dev/fake/BaseForDocComments/toString.html index a46a3994f5..0e905d72b4 100644 --- a/testing/test_package_docs_dev/fake/BaseForDocComments/toString.html +++ b/testing/test_package_docs_dev/fake/BaseForDocComments/toString.html @@ -42,9 +42,10 @@
    BaseForDocComments class
  • Constructors
  • BaseForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/SubForDocComments-class.html b/testing/test_package_docs_dev/fake/SubForDocComments-class.html index 92927310d0..9c1dd6cf92 100644 --- a/testing/test_package_docs_dev/fake/SubForDocComments-class.html +++ b/testing/test_package_docs_dev/fake/SubForDocComments-class.html @@ -203,10 +203,18 @@

    Constructors

    -
    +

    Properties

    +
    + getterWithDocs + → bool +
    +
    + Some really great topics. +
    final
    +
    hashCode → int @@ -311,9 +319,10 @@

    Operators

  • Constructors
  • SubForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/SubForDocComments/SubForDocComments.html b/testing/test_package_docs_dev/fake/SubForDocComments/SubForDocComments.html index c01f9b5838..e15cdb4f46 100644 --- a/testing/test_package_docs_dev/fake/SubForDocComments/SubForDocComments.html +++ b/testing/test_package_docs_dev/fake/SubForDocComments/SubForDocComments.html @@ -42,9 +42,10 @@
    SubForDocComments class
  • Constructors
  • SubForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/fake/SubForDocComments/getterWithDocs.html b/testing/test_package_docs_dev/fake/SubForDocComments/getterWithDocs.html new file mode 100644 index 0000000000..94a63aab84 --- /dev/null +++ b/testing/test_package_docs_dev/fake/SubForDocComments/getterWithDocs.html @@ -0,0 +1,104 @@ + + + + + + + + getterWithDocs property - SubForDocComments class - fake library - Dart API + + + + + + + + + + + + +
    + +
    + + +
    getterWithDocs
    + +
    + +
    + + + +
    +

    getterWithDocs property

    + +
    + bool + getterWithDocs +
    final
    +
    +
    +

    Some really great topics.

    +
    + + +
    + + + +
    + +
    + + test_package 0.0.1 + + +
    + + + + + + + + + + + diff --git a/testing/test_package_docs_dev/fake/SubForDocComments/localMethod.html b/testing/test_package_docs_dev/fake/SubForDocComments/localMethod.html index f682cacee3..33012e4e5f 100644 --- a/testing/test_package_docs_dev/fake/SubForDocComments/localMethod.html +++ b/testing/test_package_docs_dev/fake/SubForDocComments/localMethod.html @@ -42,9 +42,10 @@
    SubForDocComments class
  • Constructors
  • SubForDocComments
  • -
  • +
  • Properties
  • +
  • getterWithDocs
  • hashCode
  • runtimeType
  • diff --git a/testing/test_package_docs_dev/index.json b/testing/test_package_docs_dev/index.json index e6ec585b08..9669d87147 100644 --- a/testing/test_package_docs_dev/index.json +++ b/testing/test_package_docs_dev/index.json @@ -4539,6 +4539,17 @@ "type": "class" } }, + { + "name": "getterWithDocs", + "qualifiedName": "fake.BaseForDocComments.getterWithDocs", + "href": "fake/BaseForDocComments/getterWithDocs.html", + "type": "property", + "overriddenDepth": 0, + "enclosedBy": { + "name": "BaseForDocComments", + "type": "class" + } + }, { "name": "hashCode", "qualifiedName": "fake.BaseForDocComments.hashCode", @@ -8675,6 +8686,17 @@ "type": "class" } }, + { + "name": "getterWithDocs", + "qualifiedName": "fake.SubForDocComments.getterWithDocs", + "href": "fake/SubForDocComments/getterWithDocs.html", + "type": "property", + "overriddenDepth": 0, + "enclosedBy": { + "name": "SubForDocComments", + "type": "class" + } + }, { "name": "localMethod", "qualifiedName": "fake.SubForDocComments.localMethod",