From dd35db6192a62c0c269a922a1841acf08f12b67a Mon Sep 17 00:00:00 2001 From: pq Date: Thu, 9 Sep 2021 18:14:36 +0000 Subject: [PATCH] "master->main" migration Change-Id: I773e0a60a782f9e6678cea22e2a7d8fae48cffa3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212869 Reviewed-by: Konstantin Shcheglov Reviewed-by: Brian Wilkerson Commit-Queue: Phil Quitslund --- pkg/analysis_server/README.md | 2 +- pkg/analysis_server/doc/tutorial/quick_fix.md | 2 +- pkg/analysis_server/lib/src/status/diagnostics.dart | 2 +- pkg/analyzer/README.md | 8 ++++---- pkg/analyzer/pubspec.yaml | 2 +- pkg/dartdev/README.md | 4 ++-- pkg/dartdev/lib/src/commands/language_server.dart | 2 +- pkg/dartdev/test/smoke/smoke_test.dart | 2 +- pkg/meta/README.md | 2 +- pkg/meta/pubspec.yaml | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pkg/analysis_server/README.md b/pkg/analysis_server/README.md index c6a1813a8eb..12af60f5cf8 100644 --- a/pkg/analysis_server/README.md +++ b/pkg/analysis_server/README.md @@ -21,5 +21,5 @@ and [Language Server Protocol][lsp_spec] support is documented in Please file feature requests and bugs at the [issue tracker][tracker]. [tracker]: https://github.com/dart-lang/sdk/issues -[api]: https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/doc/api.html +[api]: https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/doc/api.html [lsp_spec]: https://microsoft.github.io/language-server-protocol/ diff --git a/pkg/analysis_server/doc/tutorial/quick_fix.md b/pkg/analysis_server/doc/tutorial/quick_fix.md index dcb1bc6a12b..8f1596bab35 100644 --- a/pkg/analysis_server/doc/tutorial/quick_fix.md +++ b/pkg/analysis_server/doc/tutorial/quick_fix.md @@ -319,7 +319,7 @@ list of fields with `final`. We're now ready to create the actual fix. To do that we're going to use the `ChangeBuilder` passed to the `compute` method. In the example below we'll introduce a couple of the methods on `ChangeBuilder`, but for more information -you can read [Creating `SourceChange`s](https://github.com/dart-lang/sdk/blob/master/pkg/analyzer_plugin/doc/tutorial/creating_edits.md). +you can read [Creating `SourceChange`s](https://github.com/dart-lang/sdk/blob/main/pkg/analyzer_plugin/doc/tutorial/creating_edits.md). Fields can be declared with either `final`, `const`, `var`, or a type annotation, and the change that needs to be made depends on how the field was diff --git a/pkg/analysis_server/lib/src/status/diagnostics.dart b/pkg/analysis_server/lib/src/status/diagnostics.dart index 999bc4d071e..a6d6d847bcc 100644 --- a/pkg/analysis_server/lib/src/status/diagnostics.dart +++ b/pkg/analysis_server/lib/src/status/diagnostics.dart @@ -667,7 +667,7 @@ abstract class DiagnosticPage extends Page { Diagnostics Feedback Docs - Spec + Spec diff --git a/pkg/analyzer/README.md b/pkg/analyzer/README.md index 590e1acd4d6..f574d8c0baf 100644 --- a/pkg/analyzer/README.md +++ b/pkg/analyzer/README.md @@ -96,13 +96,13 @@ our clients, but some pain is inevitable. See the [LICENSE] file. -[serverapi]: https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/doc/api.html -[dartanalyzer]: https://github.com/dart-lang/sdk/tree/master/pkg/analyzer_cli#dartanalyzer +[serverapi]: https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/doc/api.html +[dartanalyzer]: https://github.com/dart-lang/sdk/tree/main/pkg/analyzer_cli#dartanalyzer [list]: https://groups.google.com/a/dartlang.org/forum/#!forum/analyzer-discuss [lintrules]: https://dart-lang.github.io/linter/lints/ [glob]: https://pub.dev/packages/glob -[LICENSE]: https://github.com/dart-lang/sdk/blob/master/pkg/analyzer/LICENSE +[LICENSE]: https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/LICENSE [dartfmt]: https://github.com/dart-lang/dart_style [dartdoc]: https://github.com/dart-lang/dartdoc -[analysis_sever]: https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server +[analysis_sever]: https://github.com/dart-lang/sdk/tree/main/pkg/analysis_server [custom_analysis]: https://dart.dev/guides/language/analysis-options diff --git a/pkg/analyzer/pubspec.yaml b/pkg/analyzer/pubspec.yaml index 5f6cc0f3632..17b5859820e 100644 --- a/pkg/analyzer/pubspec.yaml +++ b/pkg/analyzer/pubspec.yaml @@ -1,7 +1,7 @@ name: analyzer version: 2.2.0 description: This package provides a library that performs static analysis of Dart code. -homepage: https://github.com/dart-lang/sdk/tree/master/pkg/analyzer +homepage: https://github.com/dart-lang/sdk/tree/main/pkg/analyzer environment: sdk: '>=2.12.0 <3.0.0' diff --git a/pkg/dartdev/README.md b/pkg/dartdev/README.md index 667956263de..7ad5057c8bd 100644 --- a/pkg/dartdev/README.md +++ b/pkg/dartdev/README.md @@ -36,6 +36,6 @@ yourself with the [design principles][design] that guide this tool's UX. Please file feature requests and bugs in the Dart SDK [issue tracker][tracker] with label `area-dart-cli`. -[contributing]: https://github.com/dart-lang/sdk/blob/master/CONTRIBUTING.md -[design] https://github.com/dart-lang/sdk/blob/master/pkg/dartdev/doc/design.md +[contributing]: https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md +[design] https://github.com/dart-lang/sdk/blob/main/pkg/dartdev/doc/design.md [tracker]: https://github.com/dart-lang/sdk/labels/area-dart-cli diff --git a/pkg/dartdev/lib/src/commands/language_server.dart b/pkg/dartdev/lib/src/commands/language_server.dart index 282168213ff..6de3df3d647 100644 --- a/pkg/dartdev/lib/src/commands/language_server.dart +++ b/pkg/dartdev/lib/src/commands/language_server.dart @@ -22,7 +22,7 @@ It communicates over stdin and stdout and provides services like code completion For more information about the server's capabilities and configuration, see: - https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server'''; + https://github.com/dart-lang/sdk/tree/main/pkg/analysis_server'''; LanguageServerCommand({bool verbose = false}) : super(commandName, commandDescription, verbose, hidden: !verbose); diff --git a/pkg/dartdev/test/smoke/smoke_test.dart b/pkg/dartdev/test/smoke/smoke_test.dart index 17abdc33a6c..7b1c688ae9a 100644 --- a/pkg/dartdev/test/smoke/smoke_test.dart +++ b/pkg/dartdev/test/smoke/smoke_test.dart @@ -54,7 +54,7 @@ void main() { // This test verifies that an error isn't thrown when a valid experiment // is passed. // Experiments are lists here: - // https://github.com/dart-lang/sdk/blob/master/tools/experimental_features.yaml + // https://github.com/dart-lang/sdk/blob/main/tools/experimental_features.yaml test( 'dart --enable-experiment=variance ' 'run smoke.dart', () async { diff --git a/pkg/meta/README.md b/pkg/meta/README.md index 9df903ff3ed..81fae764d9d 100644 --- a/pkg/meta/README.md +++ b/pkg/meta/README.md @@ -30,5 +30,5 @@ Questions and discussions are welcome at the See the [LICENSE][license] file. [issues]: https://github.com/dart-lang/sdk/issues -[license]: https://github.com/dart-lang/sdk/blob/master/pkg/analyzer/LICENSE +[license]: https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/LICENSE [list]: https://groups.google.com/a/dartlang.org/forum/#!forum/analyzer-discuss diff --git a/pkg/meta/pubspec.yaml b/pkg/meta/pubspec.yaml index d4d36da9d67..2e3c2386072 100644 --- a/pkg/meta/pubspec.yaml +++ b/pkg/meta/pubspec.yaml @@ -1,7 +1,7 @@ name: meta # Note, because version `2.0.0` was mistakenly released, the next major version must be `3.x.y`. version: 1.7.1-dev -homepage: https://github.com/dart-lang/sdk/tree/master/pkg/meta +homepage: https://github.com/dart-lang/sdk/tree/main/pkg/meta description: >- Annotations that developers can use to express the intentions that otherwise can't be deduced by statically analyzing the source code. These annotations