Skip to content

Commit 82a3006

Browse files
committed
macros: replace unsupported [this] comment references with this.
Work towards dart-lang/dartdoc#3761 Sibling CL to https://dart-review.googlesource.com/c/sdk/+/365204 The analyzer has never recognized `[this]` as a valid doc comment reference (and the `comment_references` lint rule has similarly reported such reference attempts). dartdoc has its own algorithms for resolving comment references, which we are dismantling in favor of a single resolution, provided by the analyzer. We've also decided against adding support in the analyzer (see https://github.com/dart-lang/linter/issues/2079), so these reference attempts should be re-written. Change-Id: I872c215a574dc3d04f0708387408d22fdfd14c14 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366882 Reviewed-by: Daco Harkes <[email protected]> Reviewed-by: Jake Macdonald <[email protected]>
1 parent adabc90 commit 82a3006

12 files changed

+19
-12
lines changed

pkg/_macros/CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Required steps when updating this package
22

3-
Whenever any change to the `lib` directory of this package is made, the
3+
When making any functional change in the `lib` directory of this package, the
44
following procedure **must** be followed.
55

66
### Update pubspec/changelog for each release.
@@ -30,6 +30,12 @@ version of this package, during the pre-release period. Version compatibility is
3030
thus **not** guaranteed on the dev or main channels, only the beta and stable
3131
channels.
3232

33+
### Bypassing presubmit checks
34+
35+
When making a non-functional change in the `lib` directory, use the
36+
`--bypass-hooks` flag to bypass presubmit checks, as in
37+
`git cl upload --bypass-hooks`.
38+
3339
## Special considerations for this package
3440

3541
This package should generally be treated like a `dart:` library, since only

pkg/_macros/lib/src/api/code.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ final class TypeParameterCode implements Code {
457457
}
458458

459459
extension Join<T extends Object> on List<T> {
460-
/// Joins all the items in [this] with [separator], and returns a new list.
460+
/// Joins all the items in this [Join] with [separator], and returns a new
461+
/// list.
461462
///
462463
/// Works on any kind of non-nullable list which accepts String entries, and
463464
/// does not convert the individual items to strings.

pkg/front_end/testcases/incremental/macro_change_entry_one.yaml.world.1.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
4949
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
5050

5151
holepunch:pkg/_macros/lib/src/api/code.dart:
52-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
52+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
5353
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
5454
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
5555

pkg/front_end/testcases/incremental/macro_change_entry_one.yaml.world.2.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
3636
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
3737

3838
holepunch:pkg/_macros/lib/src/api/code.dart:
39-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
39+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
4040
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
4141
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
4242

pkg/front_end/testcases/incremental/macro_change_entry_two.yaml.world.1.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
4949
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
5050

5151
holepunch:pkg/_macros/lib/src/api/code.dart:
52-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
52+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
5353
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
5454
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
5555

pkg/front_end/testcases/incremental/macro_change_entry_two.yaml.world.2.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
4545
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
4646

4747
holepunch:pkg/_macros/lib/src/api/code.dart:
48-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
48+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
4949
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
5050
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
5151

pkg/front_end/testcases/incremental/macro_change_nestedness.yaml.world.1.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
6969
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7070

7171
holepunch:pkg/_macros/lib/src/api/code.dart:
72-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
72+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
7373
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
7474
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7575

pkg/front_end/testcases/incremental/macro_change_nestedness.yaml.world.2.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
8484
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
8585

8686
holepunch:pkg/_macros/lib/src/api/code.dart:
87-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
87+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
8888
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
8989
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
9090

pkg/front_end/testcases/incremental/macro_recompile.yaml.world.1.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
6969
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7070

7171
holepunch:pkg/_macros/lib/src/api/code.dart:
72-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
72+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
7373
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
7474
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7575

pkg/front_end/testcases/incremental/macro_recompile.yaml.world.2.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
6666
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
6767

6868
holepunch:pkg/_macros/lib/src/api/code.dart:
69-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
69+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
7070
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
7171
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7272

pkg/front_end/testcases/incremental/macro_reuse_compiled_macro.yaml.world.1.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
6868
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
6969

7070
holepunch:pkg/_macros/lib/src/api/code.dart:
71-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
71+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
7272
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
7373
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7474

pkg/front_end/testcases/incremental/macro_reuse_compiled_macro.yaml.world.2.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ holepunch:pkg/_macros/lib/src/api/builders.dart:
6565
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
6666

6767
holepunch:pkg/_macros/lib/src/api/code.dart:
68-
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:473:6)
68+
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
6969
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
7070
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
7171

0 commit comments

Comments
 (0)