Skip to content

Commit 79e478e

Browse files
Lorenz Nickelcommit-bot@chromium.org
authored andcommitted
Fixed some links
**I fixed some links and some other minor flaws.** I also found the following outdated links, which I didn't fix: - [This link](https://github.com/dart-lang/pool/tree/zone.strong) in [this file](https://github.com/dart-lang/sdk/blob/master/docs/newsletter/20170728.md) (didn't fix because don't know new location and this is some sort of archive so the link should probably stay the original) - [This link](https://www.dartlang.org/tools/analyzer) in [this file](https://github.com/dart-lang/sdk/blob/master/pkg/analyzer_cli/lib/src/options.dart) (didn't fix since the link is still working, it just gets redirected and the link is part of the programm, I don't want to break anything by changing it, all other links are in comments) - [This link](https://github.com/domokit/mojo/issues/728) in [this file](https://github.com/dart-lang/sdk/blob/master/build/config/compiler/BUILD.gn) (didn't fix since probably has no new location and is part of TODO, which I don't want to change) While doing all this I also noticed that [these tests](https://github.com/dart-lang/sdk/tree/master/tests/compiler/dart2js_extra) contain a lot of other inconsistencies in their comments and the location of the import-statements (I only fixed one which was not link-related), could be target of another PR. Closes #36927 #36927 GitOrigin-RevId: 71d05d0 Change-Id: Ide4b2424fccad8ae2e06c788efd4443dc0de997b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102222 Reviewed-by: Michael Thomsen <[email protected]> Commit-Queue: Michael Thomsen <[email protected]>
1 parent 279c1da commit 79e478e

File tree

24 files changed

+32
-31
lines changed

24 files changed

+32
-31
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ You can also contribute patches, as described in [Contributing][contrib].
5959
[repo]: https://github.com/dart-lang/sdk
6060
[lang]: https://www.dartlang.org/docs/dart-up-and-running/ch02.html
6161
[tools]: https://www.dartlang.org/tools/
62-
[codelab]: https://www.dartlang.org/codelabs/darrrt/
62+
[codelab]: https://dart.dev/codelabs
6363
[dartbug]: http://dartbug.com
6464
[contrib]: https://github.com/dart-lang/sdk/wiki/Contributing
6565
[pubsite]: https://pub.dev

build/sanitizers/tsan_suppressions.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ char kTSanDefaultSuppressions[] =
263263
// http://crbug.com/380554
264264
"deadlock:g_type_add_interface_static\n"
265265

266-
// http:://crbug.com/386385
266+
// http://crbug.com/386385
267267
"race:content::AppCacheStorageImpl::DatabaseTask::CallRunCompleted\n"
268268

269269
// http://crbug.com/388730

pkg/analyzer/test/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class AstFinder {
216216
*/
217217
class TypeAssertions {
218218
// TODO(leafp): Make these matchers.
219-
// https://www.dartdocs.org/documentation/matcher/0.12.0%2B1/matcher/Matcher-class.html
219+
// https://pub.dev/documentation/matcher/latest/matcher/Matcher-class.html
220220

221221
/**
222222
* Provides primitive types for basic type assertions.

pkg/dev_compiler/lib/src/js_ast/printer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ class Printer implements NodeVisitor {
10201020
spaceOut();
10211021
// Object initializers require parenthesis to disambiguate
10221022
// AssignmentExpression from FunctionBody. See:
1023-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-arrow-function-definitions
1023+
// https://tc39.github.io/ecma262/#sec-arrow-function-definitions
10241024
var needsParen = fun.body is ObjectInitializer;
10251025
if (needsParen) out("(");
10261026
visitNestedExpression(body, ASSIGNMENT,

pkg/sourcemap_testing/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ places where the debugger stopped.
112112
### Technical details
113113

114114
Some of the logic comes from https://github.com/ChromeDevTools/devtools-frontend/, for instance see
115-
https://github.com/ChromeDevTools/devtools-frontend/blob/fa18d70a995f06cb73365b2e5b8ae974cf60bd3a/
116-
front_end/sources/JavaScriptSourceFrame.js#L1520-L1523
115+
https://github.com/ChromeDevTools/devtools-frontend/blob/fa18d70a995f06cb73365b2e5b8ae974cf60bd3a/front_end/sources/JavaScriptSourceFrame.js#L1520-L1523
117116
for how a line breakpoint is resolved:
118117
Basically the line asked to break on in user code (e.g. in dart code) is asked for first and last
119118
javascript positions; these are then used to get possible breakpoints in that part. If there are

runtime/platform/utils.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ uint32_t Utils::StringHash(const char* data, int length) {
9898
uint32_t Utils::WordHash(intptr_t key) {
9999
// TODO(iposva): Need to check hash spreading.
100100
// This example is from http://www.concentric.net/~Ttwang/tech/inthash.htm
101+
// via. http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
101102
uword a = static_cast<uword>(key);
102103
a = (a + 0x7ed55d16) + (a << 12);
103104
a = (a ^ 0xc761c23c) ^ (a >> 19);

runtime/vm/libfuzzer/dart_libfuzzer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int TestUnicode(const uint8_t* Data, size_t Size) {
3131
}
3232

3333
// Target function that stresses various utilities.
34-
// Found: http:/dartbug.com/36818
34+
// Found: http://dartbug.com/36818
3535
static int TestUtilities(const uint8_t* Data, size_t Size) {
3636
dart::Utils::StringHash(reinterpret_cast<const char*>(Data), Size);
3737
dart::bin::DartUtils::SniffForMagicNumber(Data, Size);

runtime/vm/timeline.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,7 @@ class TimelineEventPlatformRecorder : public TimelineEventRecorder {
919919
};
920920

921921
#if defined(HOST_OS_FUCHSIA) && !defined(FUCHSIA_SDK)
922-
// A recorder that sends events to Fuchsia's tracing app. See:
923-
// https://fuchsia.googlesource.com/garnet/+/master/docs/tracing_usage_guide.md
922+
// A recorder that sends events to Fuchsia's tracing app.
924923
class TimelineEventFuchsiaRecorder : public TimelineEventPlatformRecorder {
925924
public:
926925
TimelineEventFuchsiaRecorder() {}

samples-dev/swarm/swarm_ui_lib/util/Uri.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ part of utilslib;
66

77
/**
88
* A parsed URI, inspired by:
9-
* http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html
9+
* https://github.com/google/closure-library/blob/master/closure/goog/uri/uri.js
1010
*/
1111
class SwarmUri {
1212
/**

sdk/lib/_internal/js_runtime/lib/async_patch.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class _AsyncRun {
5858
storedCallback = callback;
5959
// Because of a broken shadow-dom polyfill we have to change the
6060
// children instead a cheap property.
61-
// See https://github.com/Polymer/ShadowDOM/issues/468
6261
JS('', '#.firstChild ? #.removeChild(#): #.appendChild(#)', div, div,
6362
span, div, span);
6463
};

0 commit comments

Comments
 (0)