From 93dcf994d55f212b6db7008ae9abcde7dace92d9 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 13 May 2020 12:47:52 -0700 Subject: [PATCH] Update outdated docs for ImportCache.importCanonical(). (#982) --- lib/src/async_import_cache.dart | 4 ++-- lib/src/import_cache.dart | 6 +++--- lib/src/stylesheet_graph.dart | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/src/async_import_cache.dart b/lib/src/async_import_cache.dart index 9b6b09c2..03142a13 100644 --- a/lib/src/async_import_cache.dart +++ b/lib/src/async_import_cache.dart @@ -171,8 +171,8 @@ Relative canonical URLs are deprecated and will eventually be disallowed. /// Otherwise returns `null`. /// /// If passed, the [originalUrl] represents the URL that was canonicalized - /// into [canonicalUrl]. It's used as the URL for the parsed stylesheet, which - /// is in turn used in error reporting. + /// into [canonicalUrl]. It's used to resolve a relative canonical URL, which + /// importers may return for legacy reasons. /// /// Caches the result of the import and uses cached results if possible. Future importCanonical(AsyncImporter importer, Uri canonicalUrl, diff --git a/lib/src/import_cache.dart b/lib/src/import_cache.dart index a2bb535b..c86a1c9a 100644 --- a/lib/src/import_cache.dart +++ b/lib/src/import_cache.dart @@ -5,7 +5,7 @@ // DO NOT EDIT. This file was generated from async_import_cache.dart. // See tool/grind/synchronize.dart for details. // -// Checksum: c39f68f9964e4ae03c6447d845349e276def5031 +// Checksum: 8f54034c56e0d38fc8c90ad4d5f017628cab6190 // // ignore_for_file: unused_import @@ -171,8 +171,8 @@ Relative canonical URLs are deprecated and will eventually be disallowed. /// Otherwise returns `null`. /// /// If passed, the [originalUrl] represents the URL that was canonicalized - /// into [canonicalUrl]. It's used as the URL for the parsed stylesheet, which - /// is in turn used in error reporting. + /// into [canonicalUrl]. It's used to resolve a relative canonical URL, which + /// importers may return for legacy reasons. /// /// Caches the result of the import and uses cached results if possible. Stylesheet importCanonical(Importer importer, Uri canonicalUrl, diff --git a/lib/src/stylesheet_graph.dart b/lib/src/stylesheet_graph.dart index 8e970df5..5dbb07a2 100644 --- a/lib/src/stylesheet_graph.dart +++ b/lib/src/stylesheet_graph.dart @@ -80,8 +80,8 @@ class StylesheetGraph { /// stylesheets it imports to this graph and returns its node. /// /// If passed, the [originalUrl] represents the URL that was canonicalized - /// into [canonicalUrl]. It's used as the URL for the parsed stylesheet, which - /// is in turn used in error reporting. + /// into [canonicalUrl]. It's used to resolve a relative canonical URL, which + /// importers may return for legacy reasons. /// /// Returns the set of nodes that need to be recompiled because their imports /// changed as a result of this stylesheet being added. This does not include